/* === Kulta Lab — Global Styles === */

[x-cloak] {
    display: none !important;
}

/* Navigation links */
.nav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.375rem 0.75rem;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 0.8125rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: rgba(255, 255, 255, 0.5);
    border-radius: 0.375rem;
    transition: all 0.2s ease;
}

.nav-link:hover {
    color: rgba(255, 255, 255, 0.9);
    background: rgba(255, 255, 255, 0.04);
}

.nav-active {
    color: #C9A84C !important;
}

.mobile-nav-link {
    display: block;
    padding: 0.625rem 0;
    font-family: 'Space Grotesk', system-ui, sans-serif;
    font-size: 0.9375rem;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s ease;
}

.mobile-nav-link:hover {
    color: white;
}

/* Grid background for hero */
.hero-grid {
    background-image:
        linear-gradient(rgba(201, 168, 76, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(201, 168, 76, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
    animation: grid-drift 20s linear infinite;
}

@keyframes grid-drift {
    0% { background-position: 0 0; }
    100% { background-position: 60px 60px; }
}

/* Subtle glow */
.glow-kulta {
    box-shadow: 0 0 80px rgba(201, 168, 76, 0.08);
}

/* Card hover */
.card-hover {
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.card-hover:hover {
    border-color: rgba(201, 168, 76, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Fade-in animations */
.fade-up {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Staggered children */
.stagger-children > * {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.1s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.2s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.3s; opacity: 1; transform: translateY(0); }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.4s; opacity: 1; transform: translateY(0); }

/* Quote styling */
.quote-border {
    border-left: 2px solid #C9A84C;
    padding-left: 1.5rem;
}

/* Table styling for leaderboards */
.leaderboard-table th {
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.35);
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.leaderboard-table td {
    padding: 0.875rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.875rem;
}

.leaderboard-table tr:hover td {
    background: rgba(255, 255, 255, 0.02);
}

/* Rank badges */
.rank-1 { color: #FFD700; }
.rank-2 { color: #C0C0C0; }
.rank-3 { color: #CD7F32; }

/* Page header */
.page-header {
    padding-top: 4rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

/* Tag pills */
.tag-pill {
    display: inline-block;
    padding: 0.125rem 0.625rem;
    font-size: 0.6875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: rgba(201, 168, 76, 0.8);
    background: rgba(201, 168, 76, 0.08);
    border: 1px solid rgba(201, 168, 76, 0.15);
    border-radius: 9999px;
}

/* Flywheel animation */
@keyframes rotate-slow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.rotate-slow {
    animation: rotate-slow 30s linear infinite;
}

/* Smooth scroll offset for fixed nav */
html {
    scroll-padding-top: 5rem;
}

/* Spotlight — cursor as light source on text */
.spotlight {
    --mx: -200px;
    --my: -200px;
    --radius: 120px;
    color: rgba(255, 255, 255, 0.18);
    background-image: radial-gradient(
        circle var(--radius) at var(--mx) var(--my),
        rgba(255, 255, 255, 0.95) 0%,
        rgba(201, 168, 76, 0.6) 50%,
        rgba(255, 255, 255, 0.18) 100%
    );
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.spotlight-lg {
    --radius: 180px;
}

/* Selection color */
::selection {
    background: rgba(201, 168, 76, 0.3);
    color: white;
}
