/* ============================================
   CryptoMine — Tailwind companion CSS
   Keeps only what Tailwind Play CDN can't express
   ============================================ */

:root {
    --gold: #d4af37;
    --gold-light: #f5c518;
}

html { scroll-behavior: smooth; }
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    -webkit-font-smoothing: antialiased;
    background: #000;
    color: #f4f4f5;
    min-height: 100vh;
}

::selection { background: var(--gold); color: #000; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #050505; }
::-webkit-scrollbar-thumb { background: #1a1a1a; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ---------- Preloader ---------- */
#preloader {
    position: fixed; inset: 0;
    z-index: 9999;
    background: radial-gradient(ellipse at center, #0a0806 0%, #000 70%);
    display: flex; align-items: center; justify-content: center;
    transition: opacity .6s ease, visibility .6s ease;
}
#preloader.hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}
.preloader-inner {
    position: relative;
    width: 120px; height: 120px;
    display: flex; align-items: center; justify-content: center;
}
.preloader-ring {
    position: absolute; inset: 0;
    border: 3px solid rgba(212, 175, 55, 0.15);
    border-top-color: var(--gold);
    border-right-color: var(--gold-light);
    border-radius: 50%;
    animation: preloader-spin 1.1s cubic-bezier(.5,.2,.5,.8) infinite;
}
.preloader-ring.r2 {
    inset: 12px;
    border-width: 2px;
    border-top-color: var(--gold-light);
    border-right-color: transparent;
    border-bottom-color: transparent;
    border-left-color: var(--gold);
    animation-duration: .8s;
    animation-direction: reverse;
}
.preloader-coin {
    width: 54px; height: 54px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 30%, #ffd966, #d4af37 60%, #8a6f1b 100%);
    display: flex; align-items: center; justify-content: center;
    color: #000;
    font-weight: 900;
    font-size: 28px;
    box-shadow: 0 0 30px rgba(212, 175, 55, 0.6), inset 0 0 12px rgba(0,0,0,.25);
    animation: coin-flip 2.4s ease-in-out infinite;
}
.preloader-label {
    position: absolute;
    bottom: -34px; left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    letter-spacing: 3px;
    color: var(--gold);
    text-transform: uppercase;
    white-space: nowrap;
    animation: fade-pulse 1.4s ease-in-out infinite;
}
@keyframes preloader-spin { to { transform: rotate(360deg); } }
@keyframes coin-flip {
    0%, 100% { transform: rotateY(0deg); }
    50% { transform: rotateY(180deg); box-shadow: 0 0 40px rgba(245, 197, 24, 0.8), inset 0 0 12px rgba(0,0,0,.25); }
}
@keyframes fade-pulse { 0%,100% { opacity: .4; } 50% { opacity: 1; } }

/* ---------- Mining-themed animations ---------- */
@keyframes float-slow { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-22px) rotate(4deg); } }
@keyframes float-medium { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(-3deg); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes spin-reverse { from { transform: rotate(360deg); } to { transform: rotate(0); } }
@keyframes pulse-gold {
    0%, 100% { filter: drop-shadow(0 0 8px rgba(212,175,55,.4)); }
    50% { filter: drop-shadow(0 0 20px rgba(245,197,24,.8)); }
}
@keyframes hash-rain {
    0% { transform: translateY(-100%); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(110vh); opacity: 0; }
}
@keyframes shimmer-gold {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}
@keyframes led-blink {
    0%, 90%, 100% { opacity: 1; }
    45% { opacity: 0.25; }
}
@keyframes gear-rotate { to { transform: rotate(360deg); } }

.anim-float-slow { animation: float-slow 7s ease-in-out infinite; }
.anim-float-medium { animation: float-medium 5s ease-in-out infinite; }
.anim-spin-slow { animation: spin-slow 18s linear infinite; transform-origin: center; }
.anim-spin-reverse { animation: spin-reverse 14s linear infinite; transform-origin: center; }
.anim-pulse-gold { animation: pulse-gold 2.6s ease-in-out infinite; }
.anim-shimmer {
    background: linear-gradient(90deg, transparent, rgba(212,175,55,.35), transparent);
    background-size: 200% 100%;
    animation: shimmer-gold 3s linear infinite;
}
.anim-led { animation: led-blink 1.2s ease-in-out infinite; }
.anim-gear { animation: gear-rotate 12s linear infinite; transform-origin: center; }

.delay-0 { animation-delay: 0s; }
.delay-1 { animation-delay: .2s; }
.delay-2 { animation-delay: .5s; }
.delay-3 { animation-delay: .9s; }
.delay-4 { animation-delay: 1.3s; }

/* Gold gradient text */
.text-gradient-gold {
    background: linear-gradient(135deg, #ffffff 0%, #f5c518 40%, #d4af37 80%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mining rig LED row */
.led-row span {
    display: inline-block;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #6eff8e;
    box-shadow: 0 0 8px rgba(110, 255, 142, .7);
    animation: led-blink 1.4s ease-in-out infinite;
}
.led-row span:nth-child(2) { animation-delay: .2s; background: #f5c518; box-shadow: 0 0 8px rgba(245,197,24,.7); }
.led-row span:nth-child(3) { animation-delay: .4s; }
.led-row span:nth-child(4) { animation-delay: .6s; background: #f5c518; box-shadow: 0 0 8px rgba(245,197,24,.7); }

/* Hash rain column */
.hash-column {
    position: absolute;
    top: -100%;
    font-family: 'SF Mono', 'Fira Code', monospace;
    font-size: 12px;
    color: rgba(212, 175, 55, 0.35);
    white-space: nowrap;
    animation: hash-rain 12s linear infinite;
    pointer-events: none;
}

/* Noise / grid overlay */
.grid-overlay {
    background-image:
        linear-gradient(rgba(212, 175, 55, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(212, 175, 55, 0.04) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

/* Glow radial spot */
.radial-gold-tl {
    background: radial-gradient(600px circle at 10% 0%, rgba(212, 175, 55, 0.12), transparent 60%);
}
.radial-gold-br {
    background: radial-gradient(700px circle at 90% 100%, rgba(212, 175, 55, 0.1), transparent 60%);
}

/* ---------- Prose (admin-editable content pages) ---------- */
.prose { line-height: 1.8; color: #b5b5b5; }
.prose h1, .prose h2, .prose h3, .prose h4 { color: #f4f4f5; margin: 28px 0 14px; line-height: 1.3; }
.prose h2 { font-size: 24px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; color: var(--gold); }
.prose p { margin-bottom: 16px; }
.prose a { color: var(--gold); border-bottom: 1px solid rgba(212,175,55,.3); }
.prose a:hover { border-bottom-color: var(--gold); }
.prose ul, .prose ol { margin: 0 0 18px 24px; }
.prose li { margin-bottom: 8px; }
.prose code {
    background: #0a0a0a;
    color: var(--gold);
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 13px;
    border: 1px solid rgba(212,175,55,.2);
}
.prose details {
    background: #080808;
    border: 1px solid rgba(212,175,55,.15);
    border-radius: 12px;
    padding: 18px 22px;
    margin-bottom: 12px;
    transition: border-color .25s;
}
.prose details[open] { border-color: rgba(212,175,55,.4); }
.prose details summary {
    cursor: pointer;
    color: #f4f4f5;
    font-weight: 600;
    list-style: none;
    position: relative;
    padding-right: 30px;
}
.prose details summary::-webkit-details-marker { display: none; }
.prose details summary::after {
    content: '+';
    position: absolute;
    right: 0; top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 24px;
    font-weight: 300;
    transition: transform .25s;
}
.prose details[open] summary::after { content: '−'; }
.prose blockquote {
    border-left: 3px solid var(--gold);
    padding: 10px 22px;
    margin: 20px 0;
    color: #a0a0a0;
    background: #080808;
    border-radius: 0 8px 8px 0;
}

/* Fade-in */
.fade-in { animation: fadeIn .6s ease-out both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }

/* Toast */
.toast-pop { animation: toast-in .4s cubic-bezier(.2,1.2,.4,1) both; }
@keyframes toast-in { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ---------- Slick carousel — black + gold overrides ---------- */
.reviews-slider .slick-slide > div { height: 100%; }
.reviews-slider .slick-track { display: flex !important; align-items: stretch; padding: 10px 0; }
.reviews-slider .slick-slide { height: auto !important; }

.reviews-slider .slick-prev,
.reviews-slider .slick-next {
    z-index: 2;
    width: 44px;
    height: 44px;
    background: #0a0a0a;
    border: 1px solid rgba(212, 175, 55, 0.3);
    border-radius: 50%;
    transition: all .25s cubic-bezier(.22,.61,.36,1);
}
.reviews-slider .slick-prev { left: -22px; }
.reviews-slider .slick-next { right: -22px; }
.reviews-slider .slick-prev:hover,
.reviews-slider .slick-next:hover {
    background: linear-gradient(135deg, #d4af37, #f5c518);
    border-color: #d4af37;
    transform: scale(1.08);
    box-shadow: 0 10px 25px rgba(212, 175, 55, 0.35);
}
.reviews-slider .slick-prev:before,
.reviews-slider .slick-next:before {
    font-family: 'Arial', sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #d4af37;
    opacity: 1;
    transition: color .25s;
}
.reviews-slider .slick-prev:hover:before,
.reviews-slider .slick-next:hover:before { color: #000; }
.reviews-slider .slick-prev:before { content: '‹'; }
.reviews-slider .slick-next:before { content: '›'; }

.reviews-slider .slick-dots {
    bottom: -48px;
}
.reviews-slider .slick-dots li {
    width: 10px;
    height: 10px;
    margin: 0 5px;
}
.reviews-slider .slick-dots li button {
    width: 10px;
    height: 10px;
    padding: 0;
}
.reviews-slider .slick-dots li button:before {
    content: '';
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #1a1a1a;
    border: 1px solid rgba(212, 175, 55, 0.3);
    opacity: 1;
    transition: all .25s;
}
.reviews-slider .slick-dots li.slick-active button:before {
    background: linear-gradient(135deg, #d4af37, #f5c518);
    border-color: #d4af37;
    transform: scale(1.3);
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.6);
}

@media (max-width: 640px) {
    .reviews-slider .slick-prev,
    .reviews-slider .slick-next { display: none !important; }
}

/* Utility: clamp text to N lines */
.line-clamp-2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.line-clamp-3 { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Alpine x-cloak safety */
[x-cloak] { display: none !important; }

/* ---------- Lock icon animation (restriction modal) ---------- */
@keyframes lock-pulse {
    0%, 100% { transform: scale(1);   opacity: 0.45; }
    50%      { transform: scale(1.18); opacity: 0.15; }
}
@keyframes lock-shake {
    0%, 100% { transform: rotate(0) translateX(0); filter: drop-shadow(0 0 8px rgba(248,113,113,.5)); }
    15%      { transform: rotate(-6deg) translateX(-2px); }
    30%      { transform: rotate(6deg)  translateX(2px); }
    45%      { transform: rotate(-4deg) translateX(-1px); }
    60%      { transform: rotate(4deg)  translateX(1px); filter: drop-shadow(0 0 16px rgba(248,113,113,.9)); }
    75%      { transform: rotate(0); }
}
.lock-pulse { animation: lock-pulse 2.2s cubic-bezier(.4,0,.6,1) infinite; }
.lock-shake { animation: lock-shake 2.8s ease-in-out infinite; }
