/* ===== ANIMATIONS ===== */

@keyframes fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes float {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-12px); }
}

.animate-fade-in {
    animation: fade-in 0.8s ease-out both;
}

.animate-fade-in-up {
    animation: fade-in-up 0.8s ease-out both;
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

.delay-100 { animation-delay: 0.1s; }
.delay-200 { animation-delay: 0.2s; }
.delay-300 { animation-delay: 0.3s; }

/* ===== SCROLL REVEAL ===== */

.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal:nth-child(2) { transition-delay: 0.1s; }
.reveal:nth-child(3) { transition-delay: 0.2s; }
.reveal:nth-child(4) { transition-delay: 0.15s; }
.reveal:nth-child(5) { transition-delay: 0.2s; }
.reveal:nth-child(6) { transition-delay: 0.25s; }
.reveal:nth-child(7) { transition-delay: 0.3s; }
.reveal:nth-child(8) { transition-delay: 0.35s; }

/* ===== NAVBAR ===== */

#navbar {
    background: rgba(15, 23, 42, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid transparent;
}

#navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom-color: rgba(0, 0, 0, 0.05);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.nav-link {
    color: rgba(255, 255, 255, 0.7);
}

.nav-link:hover {
    color: rgba(255, 255, 255, 1);
}

.nav-logo-text {
    color: white;
}

#navbar.scrolled .nav-link {
    color: #6b7280;
}

#navbar.scrolled .nav-link:hover {
    color: #111827;
}

#navbar.scrolled .nav-logo-text {
    color: #111827;
}

#navbar.scrolled #mobile-menu-btn svg {
    color: #374151;
}

/* ===== COURT SLOT STYLES ===== */

.court-slot {
    transition: all 0.2s ease;
    min-height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.court-slot.free {
    background: rgba(16, 185, 129, 0.08);
    border: 1px dashed rgba(16, 185, 129, 0.2);
    color: rgba(16, 185, 129, 0.5);
}

.court-slot.free:hover {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(16, 185, 129, 0.4);
    color: rgba(16, 185, 129, 0.8);
}

.court-slot.booked-green {
    background: rgba(16, 185, 129, 0.2);
    border: 1px solid rgba(16, 185, 129, 0.3);
    color: #34d399;
}

.court-slot.booked-blue {
    background: rgba(59, 130, 246, 0.2);
    border: 1px solid rgba(59, 130, 246, 0.3);
    color: #60a5fa;
}

.court-slot.booked-amber {
    background: rgba(245, 158, 11, 0.2);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
}

.court-slot.booked-purple {
    background: rgba(139, 92, 246, 0.2);
    border: 1px solid rgba(139, 92, 246, 0.3);
    color: #a78bfa;
}

/* ===== PRICING CARD HOVER ===== */

.feature-card {
    position: relative;
}

.feature-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 1rem;
    padding: 2px;
    background: linear-gradient(135deg, transparent 40%, rgba(16, 185, 129, 0.15));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity 0.3s;
}

.feature-card:hover::before {
    opacity: 1;
}

/* ===== SMOOTH SCROLLBAR ===== */

html {
    scroll-padding-top: 5rem;
}

/* ===== SELECTION COLOR ===== */

::selection {
    background: rgba(16, 185, 129, 0.2);
    color: inherit;
}

/* ===== COUNTER ANIMATION ===== */

[data-count] {
    font-variant-numeric: tabular-nums;
}

/* ===== RESPONSIVE TWEAKS ===== */

@media (max-width: 768px) {
    .court-slot {
        min-height: 24px;
        font-size: 8px !important;
    }
}

/* ===== GRADIENT TEXT FALLBACK ===== */

@supports not (background-clip: text) {
    .text-transparent.bg-clip-text {
        color: #34d399;
    }
}
