/* =============================================================================
   8bitedge mobile — v2 /games/{console}/{game} feature styles
   Single-game info page: cover art, screenshots, stats + isolated pricing
   sub-panel, latest eBay listings (card styles borrowed from search.css via
   the shared _listings.blade.php partial). Cyberpunk neon aesthetic, matching
   /search, /pricing, /lots, /console.
   ========================================================================== */

.grecaptcha-badge { visibility: hidden !important; }

.games-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 26px 16px 16px;
}

/* ---- Hero: cover art + screenshots + title/description/CTAs --------------- */
.games-hero {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}
/* Cover + screenshots share one scrollable row (.games-media-scroll) so every
   game image is grouped together and scrolls as a single strip, rather than
   the cover being fixed and only the screenshots scrolling independently. */
.games-hero-media {
    position: relative;
}
.games-media-scroll {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 4px;
}
.games-media-img {
    flex: 0 0 auto;
    width: 140px;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--v2-cyan-25, rgba(0, 217, 255, 0.25));
    box-shadow: 0 0 16px rgba(0, 217, 255, 0.15);
}
.games-cover-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: rgba(10, 10, 20, 0.55);
    color: var(--v2-text-dim, #b8b8c8);
    font-family: 'Electrolize', sans-serif;
    font-size: 0.78rem;
    padding: 8px;
}
/* Nav arrows: transparent by default, only faded in (via JS toggling
   .visible) when there's more of the strip to scroll to in that direction. */
.games-media-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 1px solid rgba(0, 217, 255, 0.3);
    background: rgba(10, 10, 20, 0.35);
    color: var(--v2-cyan, #00d9ff);
    font-size: 0.75rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
}
.games-media-arrow.visible {
    opacity: 0.85;
    pointer-events: auto;
}
.games-media-arrow:hover { opacity: 1; box-shadow: 0 0 8px rgba(0, 217, 255, 0.3); }
.games-media-arrow-left { left: 4px; }
.games-media-arrow-right { right: 4px; }
.games-hero-info { flex: 1 1 auto; min-width: 0; }
.games-badge-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}
.games-console-badge,
.games-notify-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Electrolize', sans-serif;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    padding: 3px 8px;
    text-decoration: none;
}
.games-console-badge {
    color: var(--v2-cyan, #00d9ff);
    border: 1px solid rgba(0, 217, 255, 0.4);
}
.games-console-badge:hover {
    box-shadow: 0 0 8px rgba(0, 217, 255, 0.3);
}
.games-notify-badge {
    color: var(--v2-green, #00ff41);
    border: 1px solid rgba(0, 255, 65, 0.4);
    background: transparent;
    cursor: pointer;
}
.games-notify-badge:hover {
    box-shadow: 0 0 8px rgba(0, 255, 65, 0.3);
}
.games-notify-caret { font-size: 0.6rem; }

/* ---- Notifications dropdown ------------------------------------------------ */
.games-notify-dropdown { position: relative; }
.games-notify-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    z-index: 20;
    min-width: 200px;
    max-width: 260px;
    max-height: 260px;
    overflow-y: auto;
    background: #0f0f1e;
    border: 1px solid rgba(0, 255, 65, 0.4);
    border-radius: 6px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    padding: 6px;
}
.games-notify-option {
    display: block;
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    background: transparent;
    border: none;
    border-radius: 4px;
    padding: 8px 10px;
    font-family: 'Electrolize', sans-serif;
    font-size: 0.8rem;
    color: var(--v2-text, #e8f6ff);
    text-decoration: none;
    cursor: pointer;
}
.games-notify-option:hover { background: rgba(0, 255, 65, 0.1); }
.games-notify-option-new {
    color: var(--v2-green, #00ff41);
    font-weight: 700;
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
    margin-bottom: 4px;
    padding-bottom: 10px;
}

/* ---- Toast (Notifications add confirmation) -------------------------------- */
.games-toast {
    position: fixed;
    left: 50%;
    bottom: 84px;
    transform: translateX(-50%) translateY(12px);
    z-index: 2147483600;
    max-width: calc(100vw - 32px);
    background: #0f0f1e;
    border: 1px solid rgba(0, 255, 65, 0.5);
    color: var(--v2-text, #e8f6ff);
    font-family: 'Electrolize', sans-serif;
    font-size: 0.82rem;
    border-radius: 6px;
    padding: 10px 16px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.games-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}
.games-toast-error { border-color: rgba(255, 82, 82, 0.5); }
.games-title {
    font-family: 'Electrolize', sans-serif;
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--v2-text, #e8f6ff);
    text-shadow: 0 0 12px rgba(0, 217, 255, 0.3);
    margin: 0 0 8px;
}
.games-description {
    font-family: 'Electrolize', sans-serif;
    font-size: 0.85rem;
    line-height: 1.5;
    color: var(--v2-text-dim, #b8b8c8);
    margin: 0 0 14px;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.games-cta-row { display: flex; }
.games-cta {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-family: 'Electrolize', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-decoration: none;
    color: #0a0e27;
    background: var(--v2-cyan, #00d9ff);
    border-radius: 6px;
    padding: 8px 14px;
    box-shadow: 0 0 12px rgba(0, 217, 255, 0.3);
    box-sizing: border-box;
}

/* ---- Generic panel (screenshots / stats / listings) ----------------------- */
.games-panel {
    background: rgba(10, 10, 20, 0.55);
    border: 1px solid var(--v2-cyan-25, rgba(0, 217, 255, 0.25));
    border-radius: 8px;
    padding: 16px;
    margin-bottom: 16px;
}
.games-panel-title {
    font-family: 'Electrolize', sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--v2-cyan, #00d9ff);
    text-shadow: 0 0 8px rgba(0, 217, 255, 0.3);
    margin: 0 0 12px;
}


/* ---- Stats grid ------------------------------------------------------------ */
.games-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 14px;
    margin-bottom: 16px;
}
.games-stat { display: flex; flex-direction: column; gap: 4px; }
.games-stat-label {
    font-family: 'Electrolize', sans-serif;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--v2-text-dim, #b8b8c8);
}
.games-stat-val {
    font-family: 'Electrolize', sans-serif;
    font-size: 0.88rem;
    color: var(--v2-text, #e8f6ff);
}
.games-rarity-common     { color: var(--v2-text-dim, #b8b8c8); }
.games-rarity-uncommon   { color: var(--v2-green, #00ff41); }
.games-rarity-rare       { color: #ffc700; }
.games-rarity-in-ranking { color: var(--v2-cyan, #00d9ff); }

/* ---- Pricing sub-panel: deliberately isolated (own border/background) from
   the stats above and the eBay listings panel below, so PriceCharting
   reference values never look like an active eBay listing. --------------- */
.games-pricing-subpanel {
    background: rgba(0, 217, 255, 0.06);
    border: 1px solid rgba(0, 217, 255, 0.3);
    border-radius: 6px;
    padding: 12px 14px;
}
.games-pricing-title {
    font-family: 'Electrolize', sans-serif;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--v2-cyan, #00d9ff);
    margin: 0 0 10px;
}
.games-pricing-rows { display: flex; gap: 18px; flex-wrap: wrap; }
.games-price-row { display: flex; flex-direction: column; gap: 2px; }
.games-price-label {
    font-family: 'Electrolize', sans-serif;
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--v2-text-dim, #b8b8c8);
}
.games-price-val {
    font-family: 'Electrolize', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: var(--v2-green, #00ff41);
}
.games-pricing-note {
    font-family: 'Electrolize', sans-serif;
    font-size: 0.68rem;
    color: var(--v2-text-dim, #b8b8c8);
    margin: 10px 0 0;
}

/* ---- Listings panel --------------------------------------------------------
   .listing/.results-list card styles come from search.css (shared with
   _listings.blade.php); only the panel chrome + head row are defined here. */
.games-listings-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 4px;
}
.games-listings-count {
    font-family: 'Electrolize', sans-serif;
    font-size: 0.78rem;
    color: var(--v2-text-dim, #b8b8c8);
}
/* This page has no pricing-popover JS wired up (unlike /search), and pricing
   already has its own dedicated panel above — hide the "Pricing" peek button
   here only, scoped to this page's markup so _listings.blade.php and /search
   (which does wire up the popover) are untouched. */
.games-results-list .listing-price-peek {
    display: none;
}
.games-viewall {
    display: block;
    text-align: center;
    font-family: 'Electrolize', sans-serif;
    font-size: 0.82rem;
    color: var(--v2-cyan, #00d9ff);
    text-decoration: none;
    margin-top: 12px;
}
.games-viewall:hover { text-shadow: 0 0 8px rgba(0, 217, 255, 0.4); }
