/* ── Landing page ────────────────────────────────────────────────────────────
   Used by: index.html
   Served at: /index.css
   Note: Google Fonts (Orbitron, Rajdhani, Geist) are loaded via <link> in HTML.
   ───────────────────────────────────────────────────────────────────────── */

body {
    background: #0a0a0a;
    color: #e0e0e0;
    font-family: 'Geist', sans-serif;
    font-size: 16px;
    line-height: 1.6;
}

/* ── Navbar ─────────────────────────────────────────────────────────────── */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px;
    z-index: 1000;
    transition: background 0.3s ease, backdrop-filter 0.3s ease, box-shadow 0.3s ease;
}

.navbar.scrolled {
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    box-shadow: 0 1px 0 rgba(46, 204, 113, 0.2);
}

.nav-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #fff;
    text-decoration: none;
    letter-spacing: 0.05em;
}

.nav-logo span {
    color: #2ecc71;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
    list-style: none;
}

.nav-links a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-family: 'Geist', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: color 0.2s;
}

.nav-links a:hover {
    color: #fff;
}

.nav-cta {
    background: transparent;
    border: none;
    color: rgba(255, 255, 255, 0.8) !important;
    padding: 0;
    transition: color 0.2s !important;
}

.nav-cta:hover {
    color: #fff !important;
    background: transparent !important;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 4px;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
}

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
    display: none;
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: rgba(10, 10, 10, 0.97);
    backdrop-filter: blur(12px);
    flex-direction: column;
    padding: 20px 40px 30px;
    gap: 20px;
    z-index: 999;
    border-top: 1px solid #252525;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu a {
    color: rgba(255, 255, 255, 0.85);
    text-decoration: none;
    font-family: 'Geist', sans-serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 10px 0;
    border-bottom: 1px solid #1e1e1e;
    transition: color 0.2s;
}

.mobile-menu a:hover {
    color: #2ecc71;
}

.mobile-menu .nav-cta {
    border: 1.5px solid #2ecc71;
    color: #2ecc71;
    padding: 12px 20px;
    border-radius: 4px;
    text-align: center;
    margin-top: 4px;
}

/* ── Hero section ───────────────────────────────────────────────────────── */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: url('/img/hero.jpg') center center / cover no-repeat;
    z-index: 0;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.15) 40%,
        rgba(0, 0, 0, 0.30) 100%
    );
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: left;
    padding: 0 80px;
    max-width: 900px;
    width: 100%;
    align-self: flex-end;
    margin-bottom: 120px;
}

.hero-badge {
    display: inline-block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #2ecc71;
    border: 1px solid rgba(46, 204, 113, 0.5);
    padding: 6px 16px;
    border-radius: 20px;
    margin-bottom: 24px;
}

.hero-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(2.8rem, 8vw, 5.5rem);
    font-weight: 900;
    color: #ffffff;
    line-height: 1.05;
    letter-spacing: 0.04em;
    margin-bottom: 20px;
    text-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
}

.hero-tagline {
    font-family: 'Rajdhani', sans-serif;
    font-size: clamp(1rem, 2.5vw, 1.35rem);
    font-weight: 400;
    color: rgba(255, 255, 255, 0.75);
    letter-spacing: 0.05em;
    margin-bottom: 40px;
}

.hero-buttons {
    display: flex;
    gap: 16px;
    justify-content: flex-start;
    flex-wrap: wrap;
}

.scroll-indicator {
    position: absolute;
    bottom: 32px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.5);
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    text-decoration: none;
}

.scroll-indicator svg {
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(6px); }
}

/* ── Leagues section ────────────────────────────────────────────────────── */
.section {
    padding: 100px 40px;
}

.section-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.section-label {
    display: block;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: #2ecc71;
    margin-bottom: 12px;
}

.section-title {
    font-family: 'Orbitron', sans-serif;
    font-size: clamp(1.6rem, 3.5vw, 2.4rem);
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 12px;
}

.section-subtitle {
    font-family: 'Geist', sans-serif;
    font-size: 1.05rem;
    color: rgba(255, 255, 255, 0.5);
    margin-bottom: 48px;
    max-width: 520px;
}

.leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}

.league-card {
    background: #141414;
    border: 1px solid #252525;
    border-radius: 8px;
    padding: 28px 24px;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    gap: 14px;
    transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
    cursor: pointer;
}

.league-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px var(--league-color-shadow, rgba(46, 204, 113, 0.15));
    border-color: var(--league-color-border, rgba(46, 204, 113, 0.4));
}

.card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.status-badge {
    flex-shrink: 0;
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    margin-top: 3px;
}

.status-active {
    background: var(--league-color-bg, rgba(46, 204, 113, 0.12));
    color: var(--league-color, #2ecc71);
    border: 1px solid var(--league-color-border, rgba(46, 204, 113, 0.35));
}

.status-completed {
    background: rgba(150, 150, 150, 0.1);
    color: #888;
    border: 1px solid rgba(150, 150, 150, 0.25);
}

.card-league-name {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.3;
}

.card-action {
    display: flex;
    align-items: center;
    gap: 6px;
    font-family: 'Geist', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    color: var(--league-color, #2ecc71);
    margin-top: 4px;
}

.card-completed .card-action {
    color: #666;
}

.card-action svg {
    transition: transform 0.2s;
}

.league-card:hover .card-action svg {
    transform: translateX(4px);
}

.completed-heading {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #555;
    margin: 48px 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.completed-heading::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #252525;
}

.loading-msg {
    color: #555;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    padding: 20px 0;
}

.error-msg {
    color: #e74c3c;
    font-family: 'Rajdhani', sans-serif;
    font-size: 1rem;
    padding: 20px 0;
}

/* ── About & Contact sections ───────────────────────────────────────────── */
.section-dark {
    background: #0d0d0d;
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
}

.section-center {
    text-align: center;
}

.section-center .section-subtitle {
    margin-left: auto;
    margin-right: auto;
}

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer {
    background: #080808;
    border-top: 1px solid #1a1a1a;
    padding: 24px 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-brand {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.9rem;
    color: #444;
}

.footer-brand strong {
    color: #666;
}

.footer-admin {
    font-family: 'Rajdhani', sans-serif;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #444;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-admin:hover {
    color: #2ecc71;
}

/* ── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
    .nav-links {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .navbar {
        padding: 0 20px;
    }

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

    .hero-content {
        text-align: center;
        padding: 0 24px;
        margin-bottom: 0;
        align-self: auto;
    }

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

    .section {
        padding: 70px 20px;
    }

    footer {
        padding: 20px;
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .leagues-grid {
        grid-template-columns: 1fr;
    }
}
