/* ══════════════════════════════════════════
   BASE OVERRIDES
   Bootstrap's .container has a max-width at each breakpoint, leaving
   gaps where the dark html background (#1c1c1c) bleeds through.
   The original home page was self-contained and didn't use the container —
   this restores that full-width behavior for all content.
══════════════════════════════════════════ */
.container {
    max-width: 100%;
}

/* ══════════════════════════════════════════
   HERO — 2-column split layout
   Overrides the centered single-column hero in Styles.css
══════════════════════════════════════════ */
.hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: clamp(2rem, 4vw, 4rem);
    padding: 4rem 2rem 3.5rem;
    text-align: left;
}

.hero-content {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.hero-content h1 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 900;
    font-size: clamp(3rem, 8vw, 6rem);
    line-height: .9;
    text-transform: uppercase;
    letter-spacing: -.02em;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: .95rem;
    color: var(--muted);
    max-width: 440px;
    line-height: 1.65;
    margin-bottom: 1.75rem;
}

.hero-ctas {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 0;
}

.hero-btn-primary {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: var(--accent);
    color: #000;
    text-decoration: none;
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-radius: 4px;
    border: none;
}

.hero-btn-secondary {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    background: transparent;
    color: var(--text);
    text-decoration: none;
    font-family: 'DM Mono', monospace;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: .1em;
    text-transform: uppercase;
    border-radius: 4px;
    border: 1px solid var(--text);
}

/* When no photos exist, collapse hero to a single centred column */
.hero--no-slideshow {
    grid-template-columns: 1fr;
    max-width: 640px;
    margin-inline: auto;
}

/* ── Slideshow placeholder ── */
.hero-slideshow {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}

.slideshow-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.5s ease;
}

.slideshow-track .slide {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    flex-shrink: 0;
}

.slideshow-track .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Game title overlay — scrolls with its slide, sits above the nav dots */
.slide-title {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 2.75rem 1.25rem 1.9rem;
    background: linear-gradient(to top, rgba(0, 0, 0, .78), transparent);
    color: #fff;
    font-family: 'DM Sans', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
    letter-spacing: .02em;
    line-height: 1.25;
    pointer-events: none;
}

.slideshow-nav {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.4rem;
}

.slideshow-dot {
    width: 28px;
    height: 3px;
    border-radius: 2px;
    border: none;
    cursor: pointer;
    padding: 0;
    background: rgba(255, 255, 255, 0.4);
    transition: background 0.2s;
}

.slideshow-dot.active,
.slideshow-dot:hover {
    background: rgba(255, 255, 255, 0.9);
}


/* ══════════════════════════════════════════
   SECTION-HEADER-HOME — child selectors
   (parent rule + margin-left live in Styles.css;
    child selectors mirror .section-header ones)
══════════════════════════════════════════ */
.section-header-home h2 {
    font-family: 'Bebas Neue', sans-serif;
    font-size: 2.3rem;
    letter-spacing: .1em;
    white-space: nowrap;
    color: var(--text);
}
.section-header-home .line {
    flex: 1;
    height: 1px;
    background: var(--border);
}
.section-header-home a {
    font-size: 12px;
    font-family: 'DM Mono', monospace;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    letter-spacing: .05em;
    font-weight: 500;
}
.section-header-home a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════
   MICRO-INTERACTIONS & MISSING STATES
══════════════════════════════════════════ */

/* ── Hero CTA buttons ── */
.hero-btn-primary,
.hero-btn-secondary {
    transition: opacity .2s, transform .15s, background .2s, border-color .2s;
}
.hero-btn-primary:hover   { opacity: .9; transform: translateY(-2px); }
.hero-btn-primary:active  { opacity: 1; transform: translateY(0); }
.hero-btn-secondary:hover { background: rgba(255,255,255,.06); }
.hero-btn-secondary:active { transform: translateY(0); }

/* ── Active press states (missing everywhere) ── */
.add-btn:active          { transform: translateY(1px); background: var(--accent3); }
.vote-btn:active         { transform: translateY(1px); }
.btn-primary:active,
.btn-submit:active       { transform: translateY(0) !important; opacity: 1 !important; }
.filter-chip:active      { transform: scale(.96); }
.list-summary-card:active { transform: translateY(0); box-shadow: none; }
.info-card:active        { transform: translateY(-2px); }
.cart-remove-btn:active  { transform: scale(.9); }
.nav-icon-link:active,
.profile-trigger:active  { background: rgba(255,255,255,.2); transform: scale(.93); }
.game-card:active        { transform: translateY(-2px); box-shadow: 0 0 12px rgba(78,168,222,0.2); }
.slideshow-dot:active    { transform: scaleX(.75); }
.wishlist-hover:active   { transform: scale(.88); }
.back-link:active        { opacity: .7; }

/* ── Hover states that were missing ── */
.tab-btn:not(.active):hover {
    background: var(--bg);
    color: var(--text);
}
.faq-question:hover { color: var(--muted); }
.btn-sm:hover       { background: var(--bg); border-color: var(--text); color: var(--text); }
.btn-sm--danger:hover { background: rgba(192,57,43,.06); }
.btn-sm:active      { transform: scale(.96); }
.admin-tile:hover   { opacity: 1; transform: translateY(-3px); box-shadow: 4px 4px 0 var(--border); }
.admin-tile         { transition: opacity .2s, transform .2s, box-shadow .2s; }

/* ── Wishlist button: active (favorited) state ── */
.wishlist-hover.active {
    opacity: 1;
    color: var(--accent2);
    background: rgba(255,79,79,.1);
    border-color: rgba(255,79,79,.35);
}
.wishlist-hover.active svg {
    fill: var(--accent2);
    stroke: var(--accent2);
}

/* ── Wishlist button: loading spinner ── */
.wishlist-hover.loading {
    opacity: 1;
    pointer-events: none;
}
.wishlist-hover.loading svg { opacity: 0; }
.wishlist-hover.loading::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1.5px solid rgba(17,17,17,.15);
    border-top-color: var(--muted);
    border-radius: 50%;
    animation: fp-spin .65s linear infinite;
}
@keyframes fp-spin { to { transform: rotate(360deg); } }

/* ── Profile dropdown: fix display:none→block transition ──
   Switch to visibility so opacity/transform can animate properly */
.profile-dropdown {
    display: block !important;
    visibility: hidden;
    pointer-events: none;
    transition: opacity .18s, transform .18s, visibility 0s .18s;
}
.profile-dropdown.open {
    visibility: visible;
    pointer-events: auto;
    transition: opacity .18s, transform .18s, visibility 0s 0s;
}

/* ── Page-level loading bar ── */
.fp-page-bar {
    position: fixed;
    top: 0; left: 0;
    height: 2px;
    width: 0%;
    background: var(--muted);
    z-index: 99999;
    pointer-events: none;
    opacity: 1;
    transition: width .25s ease;
}
.fp-page-bar.fp-bar-done {
    width: 100% !important;
    opacity: 0;
    transition: width .1s ease, opacity .35s .05s ease;
}

/* ── Game cover image: fade in when loaded ── */
.game-cover { transition: opacity .35s ease; }
.game-cover.fp-loading { opacity: 0; }

/* ══════════════════════════════════════════
   GAME GRID — fixed 3-column
   Overrides the auto-fill rule in Styles.css
══════════════════════════════════════════ */
.game-grid {
    grid-template-columns: repeat(4, 1fr);
    padding-bottom: 5rem;
    align-items: start;
}


/* ══════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════ */
@media (max-width: 1024px) {
    .game-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
    }

    /* Stack the slideshow under the hero copy instead of hiding it on mobile */
    .hero-slideshow {
        max-width: 560px;
        justify-self: center;
        width: 100%;
    }

    .slide-title {
        font-size: .95rem;
        padding: 2.25rem 1rem 1.6rem;
    }
}

@media (max-width: 768px) {
    .game-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .game-grid {
        grid-template-columns: 1fr;
    }
}
