/* ================================================================
   BATTLEX — home.css
   Authentic, Clean Esports Design System
   Card-Free • Modern Sans-Serif • High Contrast
   ================================================================ */

:root {
    --gold-primary: #d4a72c;
    --gold-hover:   #e0b83f;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-hover: rgba(212, 167, 44, 0.35);
    --transition-fast: all 0.2s ease;
}

/* ── LAYOUT & COMMON SECTIONS ─────────────────────────────────── */
.home-section {
    padding: 80px 32px;
    position: relative;
    border-bottom: 1px solid var(--border-subtle);
}

.section-container {
    max-width: 1140px;
    margin: 0 auto;
}

.section-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 32px;
    gap: 20px;
}

.section-header-simple {
    margin-bottom: 44px;
}

.section-title {
    font-size: clamp(1.7rem, 2.8vw, 2.2rem);
    font-weight: 800;
    color: #ffffff;
    letter-spacing: -0.02em;
    line-height: 1.25;
}

.section-subtext {
    font-size: 0.95rem;
    color: var(--text-muted);
    margin-top: 6px;
}

.section-subtitle {
    font-size: 1rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-top: 8px;
    max-width: 600px;
}

.view-all-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold-primary);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition-fast);
    padding-bottom: 2px;
    border-bottom: 1px solid transparent;
    white-space: nowrap;
}
.view-all-link:hover {
    color: #ffffff;
    border-bottom-color: var(--gold-primary);
    transform: translateX(3px);
}

/* ── HERO SECTION ─────────────────────────────────────────────── */
.hero-section {
    position: relative;
    padding: 120px 32px 72px;
    min-height: 82vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: radial-gradient(circle at 50% 0%, rgba(212, 167, 44, 0.07) 0%, transparent 60%);
    border-bottom: 1px solid var(--border-subtle);
}

.hero-container {
    max-width: 1140px;
    margin: 0 auto;
    width: 100%;
    display: grid;
    grid-template-columns: 1.15fr 0.95fr;
    align-items: center;
    gap: 48px;
}

.hero-copy {
    display: flex;
    flex-direction: column;
}

.hero-title {
    font-size: clamp(2.3rem, 4.2vw, 3.6rem);
    font-weight: 800;
    line-height: 1.14;
    letter-spacing: -0.03em;
    color: #ffffff;
    margin-bottom: 18px;
}

.hero-title .accent {
    color: var(--gold-primary);
}

.hero-subtitle {
    font-size: 1.05rem;
    line-height: 1.68;
    color: #a0a4b0;
    max-width: 520px;
    margin-bottom: 30px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
    flex-wrap: wrap;
}

.btn-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--gold-primary);
    color: #0b0c0f;
    font-size: 0.94rem;
    font-weight: 700;
    padding: 13px 26px;
    border-radius: 8px;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-primary:hover {
    background: var(--gold-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(212, 167, 44, 0.35);
}

.btn-primary .btn-icon {
    transition: transform 0.2s ease;
}

.btn-primary:hover .btn-icon {
    transform: translateX(3px);
}

.btn-ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: transparent;
    color: #f3f1ea;
    font-size: 0.94rem;
    font-weight: 600;
    padding: 13px 24px;
    border-radius: 8px;
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    cursor: pointer;
    transition: var(--transition-fast);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.35);
    color: #ffffff;
    transform: translateY(-2px);
}

.hero-quick-points {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.82rem;
    font-weight: 500;
    color: #888d9a;
    flex-wrap: wrap;
}

.bullet-sep {
    color: var(--gold-primary);
    opacity: 0.7;
}

/* ── HERO IMAGE SHOWCASE ──────────────────────────────────────── */
.hero-visual-col {
    position: relative;
    display: flex;
    justify-content: center;
}

.hero-image-wrapper {
    position: relative;
    width: 100%;
    max-width: 500px;
}

.image-frame {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    aspect-ratio: 16 / 10;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
}

.hero-main-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.hero-image-wrapper:hover .hero-main-img {
    transform: scale(1.02);
}

/* ── TOURNAMENT STREAM / OPEN LIST (NO CARDS) ─────────────────── */
.tournament-stream {
    display: flex;
    flex-direction: column;
    width: 100%;
}

.preview-stream-skeleton {
    height: 68px;
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
    background: linear-gradient(90deg, rgba(255,255,255,0.02) 25%, rgba(255,255,255,0.05) 50%, rgba(255,255,255,0.02) 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.tp-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1.6fr auto;
    align-items: center;
    gap: 24px;
    padding: 20px 8px;
    border-bottom: 1px solid var(--border-subtle);
    transition: var(--transition-fast);
}

.tp-row:hover {
    background: rgba(255, 255, 255, 0.02);
    border-bottom-color: rgba(212, 167, 44, 0.3);
}

.tp-col-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.tp-tags {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tp-mode {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
}

.tp-mode-SOLO {
    background: rgba(90, 160, 255, 0.15);
    color: #64b5ff;
}

.tp-mode-DUO {
    background: rgba(180, 110, 255, 0.15);
    color: #c47cff;
}

.tp-mode-SQUAD {
    background: rgba(255, 160, 60, 0.15);
    color: #ffa347;
}

.tp-fee-pill {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--gold-primary);
    font-family: 'Space Grotesk', sans-serif;
}

.tp-name {
    font-size: 1.08rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0;
    line-height: 1.3;
}

.tp-col-prize {
    display: flex;
    flex-direction: column;
}

.tp-col-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #808490;
    margin-bottom: 2px;
}

.tp-prize-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
}

.tp-col-slots {
    display: flex;
    flex-direction: column;
    gap: 6px;
    max-width: 240px;
}

.tp-slots-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.76rem;
    color: #9296a2;
}

.tp-slots-remaining {
    color: var(--gold-primary);
    font-weight: 600;
}

.tp-bar {
    height: 4px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 99px;
    overflow: hidden;
}

.tp-bar-fill {
    height: 100%;
    background: var(--gold-primary);
    border-radius: 99px;
    transition: width 0.4s ease;
}

.tp-col-action {
    display: flex;
    justify-content: flex-end;
}

.tp-join-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold-primary);
    font-weight: 700;
    font-size: 0.86rem;
    text-decoration: none;
    padding: 7px 16px;
    border-radius: 6px;
    border: 1px solid rgba(212, 167, 44, 0.3);
    transition: var(--transition-fast);
}

.tp-join-btn:hover {
    background: var(--gold-primary);
    color: #0b0c0f;
    border-color: var(--gold-primary);
}

.empty-note {
    text-align: center;
    padding: 48px 20px;
}

.empty-icon {
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.empty-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 6px;
}

.empty-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
}

/* ── GAME MODES (DESKTOP ONLY - HIDDEN ON MOBILE) ─────────────── */
.modes-panoramic-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 36px;
}

.mode-panoramic-item {
    display: flex;
    flex-direction: column;
}

.mode-img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
}

.mode-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.mode-panoramic-item:hover .mode-img {
    transform: scale(1.03);
}

.mode-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 4px;
    z-index: 1;
}

.br-badge {
    background: rgba(235, 120, 20, 0.9);
    color: #ffffff;
}

.cs-badge {
    background: rgba(40, 120, 240, 0.9);
    color: #ffffff;
}

.mode-content {
    padding-top: 18px;
    display: flex;
    flex-direction: column;
}

.mode-title {
    font-size: 1.25rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 8px;
}

.mode-desc {
    font-size: 0.9rem;
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 14px;
}

.mode-specs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.spec-pill {
    font-size: 0.72rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #b5b8c2;
    padding: 3px 8px;
    border-radius: 4px;
}

.mode-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--gold-primary);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    transition: var(--transition-fast);
}

.mode-link:hover {
    color: #ffffff;
    transform: translateX(3px);
}

/* ── HOW IT WORKS (CLEAN OPEN TIMELINE) ───────────────────────── */
.steps-timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 32px;
}

.step-column {
    display: flex;
    flex-direction: column;
    padding-top: 20px;
    border-top: 2px solid var(--border-subtle);
    transition: border-color 0.2s ease;
}

.step-column:hover {
    border-top-color: var(--gold-primary);
}

.step-num-display {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--gold-primary);
    line-height: 1;
    margin-bottom: 14px;
}

.step-heading {
    font-size: 1.1rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.step-text {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* ── WHY PLAY ON BATTLEX (OPEN GRID) ─────────────────────────── */
.features-open-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 36px 30px;
}

.feat-item {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}

.feat-icon-bullet {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: rgba(212, 167, 44, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gold-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.feat-title {
    font-size: 1.02rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 4px;
}

.feat-desc {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.58;
}

/* ── BOTTOM CTA ───────────────────────────────────────────────── */
.bottom-cta-section {
    padding: 88px 32px;
    text-align: center;
    background: radial-gradient(circle at 50% 50%, rgba(212, 167, 44, 0.05) 0%, transparent 65%);
}

.cta-seamless-content {
    max-width: 620px;
    margin: 0 auto;
}

.cta-heading {
    font-size: clamp(1.8rem, 3.4vw, 2.5rem);
    font-weight: 800;
    color: #ffffff;
    line-height: 1.25;
    margin-bottom: 14px;
}

.cta-description {
    font-size: 1.02rem;
    color: #9fa3af;
    line-height: 1.6;
    margin-bottom: 28px;
}

.cta-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 14px;
    flex-wrap: wrap;
}

/* ── FOOTER ───────────────────────────────────────────────────── */
.site-footer {
    background: #080a0d;
    border-top: 1px solid var(--border-subtle);
    padding: 64px 32px 32px;
}

.footer-container {
    max-width: 1140px;
    margin: 0 auto;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.footer-brand {
    max-width: 320px;
}

.footer-tagline {
    font-size: 0.86rem;
    color: var(--text-muted);
    line-height: 1.65;
    margin-top: 14px;
}

.footer-nav-groups {
    display: flex;
    gap: 48px;
    flex-wrap: wrap;
}

.footer-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-heading {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 4px;
}

.footer-group a {
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.86rem;
    transition: color 0.2s ease;
}

.footer-group a:hover {
    color: var(--gold-primary);
}

.footer-bottom {
    border-top: 1px solid var(--border-subtle);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.8rem;
    color: #6a6e78;
    flex-wrap: wrap;
    gap: 12px;
}

.footer-social-note {
    font-weight: 500;
    color: #7d818d;
}

/* ── RESPONSIVE MEDIA QUERIES ─────────────────────────────────── */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }

    .hero-copy {
        align-items: center;
    }

    .hero-subtitle, .hero-actions, .hero-quick-points {
        margin-left: auto;
        margin-right: auto;
        justify-content: center;
    }

    .tp-row {
        grid-template-columns: 1.5fr 1fr 1.5fr auto;
        gap: 16px;
    }

    .steps-timeline {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }

    .features-open-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 28px;
    }
}

/* ── MOBILE SCREENS (≤ 768px) ─────────────────────────────────── */
@media (max-width: 768px) {
    /* REMOVE PLAY YOUR WAY ON MOBILE AS REQUESTED */
    .modes-desktop-only,
    #game-modes {
        display: none !important;
    }

    .hero-section {
        padding: 96px 20px 44px;
        min-height: auto;
    }

    .home-section {
        padding: 48px 20px;
    }

    .section-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .tp-row {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 16px 0;
    }

    .tp-col-slots {
        max-width: 100%;
    }

    .tp-col-action {
        justify-content: flex-start;
        margin-top: 4px;
    }

    .tp-join-btn {
        width: 100%;
        justify-content: center;
    }

    .steps-timeline {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .features-open-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .footer-top {
        flex-direction: column;
        gap: 32px;
    }

    .hero-actions {
        flex-direction: column;
        width: 100%;
    }

    .hero-actions .btn-primary,
    .hero-actions .btn-ghost {
        width: 100%;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }

    .cta-buttons .btn-primary,
    .cta-buttons .btn-ghost {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 88px 16px 36px;
    }

    .home-section {
        padding: 40px 16px;
    }

    .hero-title {
        font-size: 2.1rem;
    }
}
