/* ===== CSS Variables - Modern Casino Theme ===== */
:root {
    --primary-color: #00ff9d; /* Neon Mint */
    --primary-dark: #00cc7d;
    --secondary-color: #7000ff; /* Electric Purple */
    --accent-red: #ff3366;
    --accent-gold: #ffd700;
    --text-color: #ffffff;
    --text-muted: #94a3b8;
    --bg-dark: #0b0f19;
    --bg-darker: #05070a;
    --bg-card: #151b2b;
    --border-color: #2a3245;
    --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 60px rgba(0, 255, 157, 0.1);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base Styles ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(112, 0, 255, 0.15) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(0, 255, 157, 0.1) 0%, transparent 40%);
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== Header & Navigation ===== */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(11, 15, 25, 0.9);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border-color);
    z-index: 1000;
    transition: var(--transition);
}

.header.scrolled {
    background: rgba(11, 15, 25, 0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 20px;
}

.nav-logo h2 {
    font-family: 'Inter', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.5px;
    color: var(--text-color);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-logo h2::before {
    content: '';
    display: block;
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-link {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 0.95rem;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--text-color);
}

.nav-link-cta {
    background: var(--primary-color);
    color: var(--bg-darker) !important;
    padding: 0.5rem 1.2rem;
    border-radius: 6px;
    font-weight: 700;
}

.nav-link-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 157, 0.3);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 24px;
    height: 2px;
    background: var(--text-color);
    transition: var(--transition);
}

/* ===== Hero Banner Section ===== */
.hero-banner {
    position: relative;
    min-height: 80vh; /* Reduced height */
    display: flex;
    align-items: center;
    padding-top: 80px;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(11, 15, 25, 0) 0%, var(--bg-dark) 100%);
    z-index: 0;
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    z-index: 1;
    position: relative;
    width: 100%;
}

.hero-text {
    max-width: 600px;
}

.hero-title {
    font-family: 'Inter', sans-serif;
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #fff 0%, #cbd5e1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero-description {
    font-size: 1rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: nowrap; /* Force inline on desktop */
}

@media (max-width: 768px) {
    .hero-buttons {
        flex-wrap: wrap;
        justify-content: center;
    }
}

.hero-media {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-media img {
    filter: drop-shadow(0 0 40px rgba(112, 0, 255, 0.3));
    animation: float 6s ease-in-out infinite;
}

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

/* ===== Buttons ===== */
.btn {
    padding: 1rem 2rem;
    font-size: 0.95rem;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background: var(--primary-color);
    color: var(--bg-darker);
}

.btn-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 255, 157, 0.4);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text-color);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.btn-telegram {
    background: #24A1DE;
    color: white;
}

.btn-telegram:hover {
    background: #208bc0;
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(36, 161, 222, 0.4);
}

.btn-glow {
    position: relative;
    overflow: hidden;
}

/* ===== Rewards/Casinos Section ===== */
.rewards-section {
    padding: 6rem 0;
    background: var(--bg-dark);
    position: relative;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 0.5rem;
    color: var(--text-color);
}

.section-subtitle {
    font-size: 1.1rem;
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
}

.rewards-grid {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.reward-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 1.5rem 2rem;
    border-radius: 16px;
    transition: var(--transition);
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: left;
    gap: 2rem;
}

.reward-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.reward-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 255, 157, 0.1);
    color: var(--primary-color);
    padding: 0.3rem 0.8rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    display: none; /* Hide badge on desktop for cleaner look, or move it */
}

/* Show badge on mobile if needed, or keeping hidden */
@media (max-width: 768px) {
    .reward-badge { display: block; }
}

.reward-icon {
    width: 80px;
    height: 80px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 10px;
    flex-shrink: 0;
}

.reward-icon img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.reward-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.reward-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.3rem;
    color: var(--text-color);
}

.reward-description {
    color: var(--text-muted);
    font-size: 0.95rem;
    margin-bottom: 0.8rem;
}

.offer-features {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    background: transparent;
    border-radius: 0;
}

.offer-features li {
    margin-bottom: 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: rgba(255, 255, 255, 0.03);
    padding: 0.2rem 0.6rem;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.offer-features li::before {
    content: '✓';
    color: var(--primary-color);
    font-weight: bold;
    font-size: 0.9rem;
}

.reward-action {
    flex-shrink: 0;
}

.reward-action .btn {
    padding: 0.8rem 2rem;
    font-size: 1rem;
    white-space: nowrap;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .reward-card {
        flex-direction: column;
        text-align: center;
        padding: 2.5rem 1.5rem 2rem;
        gap: 1.5rem;
    }

    .reward-icon {
        width: 70px;
        height: 70px;
        margin-bottom: 0.5rem;
    }

    .reward-info {
        width: 100%;
    }

    .offer-features {
        justify-content: center;
        gap: 0.8rem;
        margin-bottom: 1rem;
    }
    
    .reward-action {
        width: 100%;
    }
    
    .reward-action .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ===== Leaderboard Section ===== */
.leaderboard-section {
    padding: 6rem 0;
    background: var(--bg-dark); /* Changed from --bg-darker to match other pages */
    position: relative;
    border-top: 1px solid var(--border-color);
}

.countdown-wrapper {
    margin-bottom: 4rem;
    text-align: center;
}

.countdown-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.countdown-container {
    display: inline-flex;
    gap: 1.5rem;
    background: var(--bg-card);
    padding: 2rem 3rem;
    border-radius: 16px;
    border: 1px solid var(--border-color);
}

.countdown-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.countdown-value {
    font-size: 3rem;
    font-weight: 900;
    color: var(--text-color);
    line-height: 1;
}

.countdown-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.countdown-separator {
    font-size: 3rem;
    color: var(--border-color);
    line-height: 1;
}

.leaderboard-container {
    background: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--border-color);
    overflow: hidden;
    margin: 0 auto 3rem;
    max-width: 1000px; /* Match rewards-grid width */
    transition: var(--transition);
}

.leaderboard-container:hover {
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.leaderboard-table {
    width: 100%;
    border-collapse: collapse;
}

.leaderboard-table th {
    background: rgba(0, 0, 0, 0.2);
    padding: 1.5rem;
    text-align: left;
    font-weight: 700;
    color: var(--primary-color);
    font-size: 0.9rem;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border-color);
}

.leaderboard-table td {
    padding: 1.5rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05); /* Subtler border */
    color: var(--text-color);
    font-weight: 500;
}

.leaderboard-table tr:last-child td {
    border-bottom: none;
}

.leaderboard-table tbody tr {
    transition: background-color 0.2s;
}

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

.rank-1 { color: #ffd700; }
.rank-2 { color: #c0c0c0; }
.leaderboard-cta {
    text-align: center;
    margin-top: 2rem;
}

/* ===== Community Section ===== */
.telegram-cta-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, rgba(36, 161, 222, 0.1), rgba(112, 0, 255, 0.1));
    text-align: center;
}

.telegram-description {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 600px;
    margin: 0 auto 3rem;
}

/* ===== Footer ===== */
.footer {
    background: var(--bg-darker);
    border-top: 1px solid var(--border-color);
    padding: 3rem 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero-content {
        grid-template-columns: 1fr;
        text-align: center;
        gap: 2rem;
    }

    .hero-buttons {
        justify-content: center;
    }

    .nav-menu {
        display: none; /* Add JS toggle support if needed, or keeping it simple */
        /* If nav toggle script works, styles should handle 'active' class */
    }

    .countdown-container {
        padding: 1.5rem;
        gap: 0.5rem;
    }

    .countdown-value {
        font-size: 2rem;
    }
}
