/* ==========================================================================
   CYBERPUNK STYLING SYSTEM (VANILLA CSS)
   Project: cyberpunk.slotwin.ai
   Description: Premium Cyberpunk UI for JILI Games Portal (VI/EN Localized)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Root Variables
   -------------------------------------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Fira+Code:wght@400;500;700&family=Orbitron:wght@500;700;900&family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    /* Colors */
    --bg-dark: #0a0a0e;
    --bg-deep: #0e0f16;
    --bg-card: rgba(17, 18, 26, 0.75);
    --bg-card-hover: rgba(26, 28, 41, 0.9);
    
    --neon-cyan: #00f0ff;
    --neon-magenta: #ff0055;
    --neon-yellow: #fdee06;
    --neon-green: #39ff14;
    --neon-gold: #ffb800;
    
    --text-primary: #f5f6fa;
    --text-secondary: #9ea4b0;
    --text-muted: #646a78;
    
    --border-cyan: rgba(0, 240, 255, 0.2);
    --border-magenta: rgba(255, 0, 85, 0.2);
    --border-dark: rgba(255, 255, 255, 0.05);
    
    /* Fonts */
    --font-heading: 'Orbitron', sans-serif;
    --font-body: 'Outfit', sans-serif;
    --font-mono: 'Fira Code', monospace;
    
    /* Transitions & Spring Easing */
    --transition-fast: 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-spring: 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    
    /* FX */
    --shadow-neon-cyan: 0 0 15px rgba(0, 240, 255, 0.3);
    --shadow-neon-magenta: 0 0 15px rgba(255, 0, 85, 0.3);
    --shadow-neon-gold: 0 0 15px rgba(255, 184, 0, 0.4);
    --glass-border: 1px solid rgba(255, 255, 255, 0.05);
    --glass-inset: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* --------------------------------------------------------------------------
   2. Reset & Core Structure
   -------------------------------------------------------------------------- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
    background-color: var(--bg-dark);
}

body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
    font-family: var(--font-body);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
    /* Grid Pattern Overlay */
    background-image: 
        linear-gradient(rgba(0, 240, 255, 0.02) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.02) 1px, transparent 1px);
    background-size: 40px 40px;
    background-attachment: fixed;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: var(--bg-dark);
}
::-webkit-scrollbar-thumb {
    background: var(--border-cyan);
    border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
    box-shadow: var(--shadow-neon-cyan);
}

/* --------------------------------------------------------------------------
   3. Cyberpunk Components (Buttons, Badges, Utilities)
   -------------------------------------------------------------------------- */
a {
    color: inherit;
    text-decoration: none;
}

/* Neon Glow Effect */
.glow-cyan {
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.6);
}
.glow-magenta {
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.6);
}

/* Custom Cyber Button */
.btn-cyber {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 24px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #000;
    background: var(--neon-cyan);
    border: none;
    cursor: pointer;
    position: relative;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
    transition: var(--transition-fast);
}

.btn-cyber::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transform: translateX(-100%);
    transition: 0.5s;
}

.btn-cyber:hover::before {
    transform: translateX(100%);
}

.btn-cyber:hover {
    background: #fff;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
    transform: translateY(-2px);
}

.btn-cyber:active {
    transform: translateY(0) scale(0.98);
}

.btn-cyber.magenta {
    background: var(--neon-magenta);
    color: #fff;
}
.btn-cyber.magenta:hover {
    background: #fff;
    color: var(--bg-dark);
    box-shadow: 0 0 15px rgba(255, 0, 85, 0.6);
}

.btn-cyber.outline {
    background: transparent;
    color: var(--neon-cyan);
    border: 1px solid var(--neon-cyan);
    box-shadow: inset 0 0 10px rgba(0, 240, 255, 0.1);
}
.btn-cyber.outline:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: var(--shadow-neon-cyan);
}

/* Liquid Glass Cards */
.cyber-card {
    background: var(--bg-card);
    border: var(--glass-border);
    box-shadow: var(--glass-inset), 0 10px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 8px;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
}

.cyber-card:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--glass-inset), 0 0 20px rgba(0, 240, 255, 0.15);
    transform: translateY(-5px);
}

/* Dynamic Favorite Card state */
.cyber-card.is-favorite {
    border-color: rgba(255, 184, 0, 0.4);
}
.cyber-card.is-favorite::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 4px; height: 100%;
    background: var(--neon-gold);
    box-shadow: var(--shadow-neon-gold);
    z-index: 5;
}

/* Cyber Badge */
.cyber-badge {
    display: inline-block;
    padding: 3px 10px;
    font-family: var(--font-heading);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    color: var(--text-secondary);
}

.cyber-badge.cyan {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.05);
}

.cyber-badge.magenta {
    color: var(--neon-magenta);
    border-color: var(--neon-magenta);
    background: rgba(255, 0, 85, 0.05);
}

.cyber-badge.yellow {
    color: var(--neon-yellow);
    border-color: var(--neon-yellow);
    background: rgba(253, 238, 6, 0.05);
}

.cyber-badge.gold {
    color: var(--neon-gold);
    border-color: var(--neon-gold);
    background: rgba(255, 184, 0, 0.05);
}

/* ==========================================================================
   UNIFIED GLOBAL CONTAINER GRID SYSTEM (Header, Body, Footer 100% Aligned)
   ========================================================================== */
.header-inner-container,
.nav-container,
.hero-section,
.filter-section,
.games-section,
.cyber-main-container,
.footer-container {
    max-width: 1320px !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 20px !important;
    padding-right: 20px !important;
    box-sizing: border-box !important;
}

/* --------------------------------------------------------------------------
   4. Header & Navigation
   -------------------------------------------------------------------------- */
.cyber-header {
    background: rgba(10, 10, 14, 0.85);
    border-bottom: 1px solid var(--border-dark);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

.logo span.highlight {
    color: var(--neon-cyan);
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.5);
}

.logo span.badge {
    color: var(--neon-magenta);
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
}

.logo svg {
    width: 28px;
    height: 28px;
    fill: var(--neon-cyan);
    filter: drop-shadow(0 0 5px rgba(0, 240, 255, 0.5));
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav-link {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    padding: 5px 0;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--neon-cyan);
    transition: var(--transition-fast);
    box-shadow: var(--shadow-neon-cyan);
}

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

.nav-link:hover::after {
    width: 100%;
}

.nav-link.active {
    color: var(--neon-cyan);
}

.nav-link.active::after {
    width: 100%;
}

/* --------------------------------------------------------------------------
   5. Hero Section
   -------------------------------------------------------------------------- */
.hero-section {
    max-width: 1300px;
    margin: 40px auto 20px;
    padding: 0 20px;
}

.hero-banner {
    background: linear-gradient(135deg, rgba(14, 15, 22, 0.9) 0%, rgba(20, 22, 33, 0.8) 100%);
    border: 1px solid var(--border-cyan);
    border-radius: 12px;
    padding: 60px;
    position: relative;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0, 240, 255, 0.05), 0 10px 40px rgba(0,0,0,0.6);
}

/* Cyber Scanning Line */
.hero-banner::after {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 4px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    opacity: 0.3;
    animation: scanline 6s linear infinite;
    pointer-events: none;
}

@keyframes scanline {
    0% { top: -4%; }
    100% { top: 104%; }
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.hero-content h1 {
    font-family: var(--font-heading);
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin-bottom: 20px;
    text-transform: uppercase;
}

.hero-content h1 span.accent {
    background: linear-gradient(90deg, var(--neon-cyan) 0%, var(--neon-magenta) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 15px rgba(0, 240, 255, 0.2));
}

.hero-content p {
    color: var(--text-secondary);
    font-size: 1.05rem;
    margin-bottom: 30px;
    max-width: 580px;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    border-top: 1px solid var(--border-dark);
    padding-top: 30px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}

.stat-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------------
   6. Search & Filters
   -------------------------------------------------------------------------- */
.filter-section {
    max-width: 1300px;
    margin: 40px auto 20px;
    padding: 0 20px;
}

.filter-bar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 20px;
    background: var(--bg-card);
    border: var(--glass-border);
    border-radius: 8px;
    backdrop-filter: blur(10px);
}

/* Categories Tabs */
.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}

.category-tab {
    padding: 8px 18px;
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: var(--transition-fast);
}

.category-tab:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.03);
}

.category-tab.active {
    color: #000;
    background: var(--neon-cyan);
    border-color: var(--neon-cyan);
    box-shadow: var(--shadow-neon-cyan);
}

.category-tab.gold-active.active {
    color: #000;
    background: var(--neon-gold);
    border-color: var(--neon-gold);
    box-shadow: var(--shadow-neon-gold);
}

/* Cyber Search Box */
.search-box {
    position: relative;
    width: 320px;
    max-width: 100%;
}

.search-input {
    width: 100%;
    padding: 10px 15px 10px 40px;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    color: var(--text-primary);
    font-family: var(--font-body);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.search-input:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.1);
}

.search-box svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    fill: var(--text-muted);
    transition: var(--transition-fast);
    pointer-events: none;
}

.search-input:focus + svg {
    fill: var(--neon-cyan);
    filter: drop-shadow(0 0 3px rgba(0, 240, 255, 0.5));
}

/* --------------------------------------------------------------------------
   7. Games Grid & Cyber Card UI
   -------------------------------------------------------------------------- */
.games-section {
    max-width: 1300px;
    margin: 0 auto 60px;
    padding: 0 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    border-left: 4px solid var(--neon-magenta);
    padding-left: 15px;
}

.section-title {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.section-title span.count {
    color: var(--neon-magenta);
    font-family: var(--font-mono);
    margin-left: 8px;
    font-size: 1.1rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Cyber Game Card Specifics */
.game-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.game-thumb-container {
    position: relative;
    width: 100%;
    padding-top: 68.84%; /* 552:380 Aspect Ratio */
    background-color: var(--bg-deep);
    overflow: hidden;
    border-bottom: 1px solid var(--border-dark);
}

.game-thumb {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    background-color: #09090d;
    transition: transform var(--transition-spring);
}

.game-card:hover .game-thumb {
    transform: scale(1.08);
}

.game-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to top, rgba(10, 10, 14, 0.95) 0%, rgba(10, 10, 14, 0.4) 50%, transparent 100%);
    opacity: 0.9;
    transition: var(--transition-fast);
}

.game-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
}

/* Card Bookmarking Star */
.favorite-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    background: rgba(10, 10, 14, 0.8);
    border: 1px solid var(--border-dark);
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--text-muted);
}

.favorite-btn:hover {
    border-color: var(--neon-gold);
    color: var(--neon-gold);
    box-shadow: 0 0 8px rgba(255, 184, 0, 0.3);
}

.favorite-btn.active {
    color: var(--neon-gold);
    border-color: var(--neon-gold);
    background: rgba(255, 184, 0, 0.15);
    box-shadow: var(--shadow-neon-gold);
}

.favorite-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.5);
}

.favorite-btn:active svg {
    transform: scale(0.8);
}

.game-card-content {
    padding: 12px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.game-card-title {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    margin-bottom: 5px;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: var(--transition-fast);
}

.game-card:hover .game-card-title {
    color: var(--neon-cyan);
}

.game-stats-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 0;
    border-top: 1px dashed var(--border-dark);
    padding-top: 12px;
}

.game-stat {
    display: flex;
    flex-direction: column;
}

.game-stat-label {
    font-size: 0.65rem;
    text-transform: uppercase;
    color: var(--text-muted);
}

.game-stat-val {
    font-family: var(--font-mono);
    font-size: 0.8rem;
    color: var(--text-primary);
    font-weight: 500;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-stat-val.gold {
    color: var(--neon-gold);
}

.game-actions {
    display: grid;
    grid-template-columns: 1.6fr 0.4fr;
    gap: 8px;
    margin-top: auto;
}

.btn-detail-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition-fast);
    height: 38px;
}

.btn-detail-icon svg {
    width: 18px;
    height: 18px;
    fill: var(--text-secondary);
}

.btn-detail-icon:hover {
    background: var(--bg-card-hover);
    border-color: var(--neon-magenta);
}

.btn-detail-icon:hover svg {
    fill: var(--neon-magenta);
    filter: drop-shadow(0 0 3px rgba(255, 0, 85, 0.5));
}

/* --------------------------------------------------------------------------
   8. Detail Page & Iframe Console
   -------------------------------------------------------------------------- */
.game-detail-main-content,
.detail-section {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}

.detail-grid {
    display: flex;
    flex-direction: column;
    gap: 35px;
}

/* Specs Grid Top Dashboard Layout */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 15px;
    margin-top: 15px;
}

.spec-card-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.015);
    border: 1px solid var(--border-dark);
    border-radius: 8px;
    transition: var(--transition-fast);
}

.spec-card-item:hover {
    border-color: rgba(0, 240, 255, 0.25);
    background: rgba(0, 240, 255, 0.01);
}

.spec-card-item .detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-heading);
}

.spec-card-item .detail-val {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-primary);
}

.console-wrapper {
    background: var(--bg-card);
    border: 1px solid var(--border-cyan);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-neon-cyan), 0 20px 50px rgba(0,0,0,0.8);
    transition: box-shadow var(--transition-smooth);
}

.console-wrapper.theater-active {
    border-color: var(--neon-magenta);
    box-shadow: var(--shadow-neon-magenta), 0 20px 60px rgba(0,0,0,0.9);
}

.console-header {
    background: rgba(0, 0, 0, 0.6);
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.console-title-container {
    display: flex;
    align-items: center;
    gap: 10px;
}

.console-status-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-green);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-green);
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { opacity: 0.4; }
    50% { opacity: 1; }
    100% { opacity: 0.4; }
}

.console-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--neon-cyan);
    text-transform: uppercase;
}

.console-controls {
    display: flex;
    gap: 12px;
    align-items: center;
}

.console-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    transition: var(--transition-fast);
}

.console-btn svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.console-btn:hover {
    color: var(--neon-cyan);
}

.console-btn.active {
    color: var(--neon-magenta);
    filter: drop-shadow(0 0 3px var(--neon-magenta));
}

.game-iframe-container {
    width: 100%;
    padding-top: 68.84%; /* 552:380 Aspect Ratio */
    position: relative;
    background: #000;
    transition: padding-top var(--transition-smooth);
}

.game-iframe-container iframe {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border: none;
}

.console-footer {
    background: rgba(0, 0, 0, 0.4);
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

/* Detail Info Card */
.detail-info-card {
    height: max-content;
}

.detail-info-title {
    font-family: var(--font-heading);
    font-size: 1.3rem;
    font-weight: 900;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: #fff;
    border-bottom: 1px solid var(--border-dark);
    padding-bottom: 12px;
}

.detail-list {
    list-style: none;
}

.detail-list-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border-dark);
    font-size: 0.9rem;
}

.detail-label {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.detail-val {
    color: var(--text-primary);
    font-weight: 500;
}

.detail-val.cyan {
    color: var(--neon-cyan);
    font-family: var(--font-mono);
}

.detail-val.magenta {
    color: var(--neon-magenta);
}

.detail-val.yellow {
    color: var(--neon-yellow);
    font-family: var(--font-mono);
}

.detail-val.gold {
    color: var(--neon-gold);
    font-family: var(--font-mono);
    font-weight: 700;
    text-shadow: 0 0 5px rgba(255, 184, 0, 0.2);
}

/* Screenshots Gallery Slider */
.screenshots-gallery {
    margin-top: 45px;
    margin-bottom: 60px;
}

.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.slider-controls {
    display: flex;
    gap: 10px;
}

.slider-arrow {
    background: rgba(10, 10, 14, 0.8);
    border: 1px solid var(--border-dark);
    border-radius: 4px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition-fast);
    color: var(--text-secondary);
}

.slider-arrow:hover {
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    box-shadow: var(--shadow-neon-cyan);
}

.slider-arrow svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

.slider-viewport {
    width: 100%;
    overflow: hidden;
    border-radius: 6px;
}

.slider-track {
    display: flex;
    gap: 15px;
    transition: transform var(--transition-smooth);
}

.screenshot-slide {
    flex: 0 0 calc(33.333% - 10px);
    min-width: 180px;
}

@media (max-width: 768px) {
    .screenshot-slide {
        flex: 0 0 calc(50% - 7.5px);
    }
}

@media (max-width: 480px) {
    .screenshot-slide {
        flex: 0 0 100%;
    }
}

.screenshot-item {
    position: relative;
    padding-top: 56.25%;
    background-color: var(--bg-deep);
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    overflow: hidden;
    cursor: zoom-in;
    transition: var(--transition-fast);
}

.screenshot-item img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    object-fit: cover;
    transition: var(--transition-smooth);
}

.screenshot-item:hover {
    border-color: var(--neon-cyan);
}

.screenshot-item:hover img {
    transform: scale(1.05);
}

/* Toast Copy Link Notification */
.cyber-toast {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: rgba(10, 10, 14, 0.95);
    border: 1px solid var(--neon-cyan);
    box-shadow: var(--shadow-neon-cyan);
    border-radius: 6px;
    padding: 15px 25px;
    color: #fff;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    z-index: 999;
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    pointer-events: none;
}

.cyber-toast.show {
    transform: translateY(0);
    opacity: 1;
}

/* Fullscreen screenshot lightbox */
.lightbox {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(5, 5, 8, 0.95);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-content {
    max-width: 75%;
    max-height: 70vh;
    border: 2px solid var(--neon-cyan);
    box-shadow: var(--shadow-neon-cyan);
    border-radius: 8px;
    overflow: hidden;
    background: #000;
}

.lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: 65vh;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 25px;
    right: 25px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    background: none;
    border: none;
    transition: var(--transition-fast);
}

.lightbox-close:hover {
    color: var(--neon-magenta);
    text-shadow: 0 0 10px rgba(255, 0, 85, 0.5);
}

/* --------------------------------------------------------------------------
   9. Footer & SEO Text
   -------------------------------------------------------------------------- */
.cyber-footer {
    background: #060609;
    border-top: 1px solid var(--border-dark);
    padding: 60px 20px 30px;
    margin-top: auto;
}

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

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr;
    gap: 40px;
    margin-bottom: 40px;
}

.footer-brand p {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 15px;
    max-width: 360px;
}

.footer-nav-title {
    font-family: var(--font-heading);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #fff;
    margin-bottom: 20px;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition-fast);
}

.footer-links a:hover {
    color: var(--neon-cyan);
    padding-left: 5px;
}

.footer-seo-rich {
    color: var(--text-muted);
    font-size: 0.8rem;
    line-height: 1.7;
}

.footer-bottom {
    border-top: 1px solid var(--border-dark);
    padding-top: 30px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
}

.copyright {
    color: var(--text-muted);
    font-size: 0.85rem;
    text-align: center;
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-dark);
    border-radius: 50%;
    transition: var(--transition-fast);
}

.social-icon svg {
    width: 16px;
    height: 16px;
    fill: var(--text-secondary);
}

.social-icon:hover {
    background: rgba(0, 240, 255, 0.05);
    border-color: var(--neon-cyan);
}

.social-icon:hover svg {
    fill: var(--neon-cyan);
    filter: drop-shadow(0 0 3px rgba(0, 240, 255, 0.5));
}

/* --------------------------------------------------------------------------
   10. UX Enhancements: Skeleton, Scroll-to-Top, Mobile Menu, Animations
   -------------------------------------------------------------------------- */

/* Skeleton Loading Placeholder */
.skeleton-pulse {
    background: linear-gradient(90deg, var(--bg-card) 25%, rgba(255,255,255,0.04) 50%, var(--bg-card) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 8px;
}

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

/* Scroll-to-Top Button */
.scroll-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: rgba(10, 10, 14, 0.9);
    border: 1px solid var(--neon-cyan);
    border-radius: 8px;
    color: var(--neon-cyan);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 90;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: var(--shadow-neon-cyan);
}

.scroll-top-btn.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top-btn:hover {
    background: var(--neon-cyan);
    color: #000;
    transform: translateY(-3px);
}

.scroll-top-btn svg {
    width: 20px;
    height: 20px;
    fill: currentColor;
}

/* Mobile Hamburger Menu */
.menu-toggle {
    display: none;
    background: none;
    border: 1px solid var(--border-dark);
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: var(--transition-fast);
}

.menu-toggle:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
}

.menu-toggle svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

/* Scroll Reveal Animation */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* Redesigned Premium Cyberpunk Breadcrumb */
.breadcrumb {
    width: 100% !important;
    max-width: 100% !important;
    margin: 25px 0 15px 0 !important;
    padding: 10px 16px !important;
    box-sizing: border-box !important;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    background: rgba(10, 10, 14, 0.6);
    border: 1px solid var(--border-dark);
    border-left: 3px solid var(--neon-cyan);
    border-radius: 4px;
    backdrop-filter: blur(5px);
}

.breadcrumb::before {
    content: none !important;
    display: none !important;
}

.breadcrumb a {
    color: var(--text-secondary);
    text-decoration: none;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: all var(--transition-fast);
}

.breadcrumb a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
}

.breadcrumb .separator {
    color: var(--neon-magenta);
    font-weight: 700;
    font-size: 0.75rem;
    margin: 0 2px;
}

.breadcrumb .current {
    color: #fff;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Focus Visible for Keyboard Accessibility */
*:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--neon-cyan);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(0, 240, 255, 0.15);
}

/* Prefers Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    .reveal-on-scroll {
        opacity: 1;
        transform: none;
    }
}

/* Empty State for Favorites */
.empty-state {
    grid-column: 1 / -1;
    padding: 60px 20px;
    text-align: center;
}

.empty-state-icon {
    width: 48px;
    height: 48px;
    fill: var(--text-muted);
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

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

/* --------------------------------------------------------------------------
   11. Responsive Adaptability & Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .hero-banner {
        padding: 40px;
    }
    
    .detail-grid {
        grid-template-columns: 1fr !important;
    }
    
    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
    
    .footer-brand {
        grid-column: span 2;
    }
}

@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .nav-container {
        flex-direction: column;
        gap: 15px;
    }
    
    .nav-menu {
        width: 100%;
        justify-content: center;
        gap: 15px;
        flex-wrap: wrap;
    }
    
    .hero-content h1 {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .filter-bar {
        flex-direction: column;
        align-items: stretch;
    }
    
    .category-tabs {
        justify-content: center;
    }
    
    .search-box {
        width: 100%;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .footer-brand {
        grid-column: span 1;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .menu-toggle {
        display: flex;
    }
    
    .nav-menu {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 5px;
        padding-top: 10px;
        border-top: 1px solid var(--border-dark);
    }
    
    .nav-menu.open {
        display: flex;
    }
    
    .nav-link {
        padding: 10px 0;
    }
    
    .cyber-toast {
        left: 50%;
        right: auto;
        transform: translateX(-50%) translateY(100px);
        max-width: 90vw;
        text-align: center;
    }
    
    .cyber-toast.show {
        transform: translateX(-50%) translateY(0);
    }
    
    .scroll-top-btn {
        bottom: 20px;
        right: 20px;
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 1.6rem;
    }
    
    .hero-banner {
        padding: 25px;
    }
    
    .category-tab {
        padding: 6px 12px;
        font-size: 0.65rem;
    }
    
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .section-title {
        font-size: 1.1rem;
    }
    
    .console-header {
        flex-direction: column;
        gap: 10px;
        padding: 10px 15px;
    }
    
    .console-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }
}

/* Live Search Dropdown Styles */
.live-search-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 320px;
    max-height: 400px;
    background: rgba(14, 15, 22, 0.98);
    border: 1px solid var(--neon-cyan);
    box-shadow: var(--shadow-neon-cyan);
    border-radius: 8px;
    overflow-y: auto;
    z-index: 1000;
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
}

.live-search-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: background var(--transition-fast);
    text-align: left;
}

.live-search-item:hover {
    background: rgba(0, 240, 255, 0.1);
}

.live-search-item:last-child {
    border-bottom: none;
}

.live-search-thumb {
    width: 40px;
    height: 40px;
    border-radius: 4px;
    object-fit: cover;
    background: #000;
    border: 1px solid var(--border-dark);
}

.live-search-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.live-search-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.live-search-meta {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.live-search-no-results {
    padding: 20px;
    text-align: center;
    color: var(--neon-magenta);
    font-size: 0.85rem;
    font-weight: 700;
}

/* Game Card Redesign */
.play-hover-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: rgba(10, 10, 14, 0.9);
    border: 2px solid var(--neon-cyan);
    border-radius: 4px;
    padding: 10px 20px;
    color: var(--neon-cyan);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-fast);
    z-index: 4;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.4);
    text-decoration: none !important;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    white-space: nowrap;
}

.play-hover-btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.play-hover-btn span {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--neon-cyan);
    line-height: 1;
}

.game-card:hover .play-hover-btn {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1);
}

.play-hover-btn:hover {
    background: var(--neon-cyan);
    color: #000;
    box-shadow: 0 0 20px var(--neon-cyan);
    transform: translate(-50%, -50%) scale(1.05);
}

.play-hover-btn:hover span {
    color: #000;
}

.game-card-title a {
    color: #fff;
    text-decoration: none;
    transition: color var(--transition-fast);
}

.game-card-title a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
}

.game-card-category {
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-family: var(--font-mono);
    margin-top: 2px;
    margin-bottom: 8px;
    display: inline-block;
    letter-spacing: 0.05em;
}

.game-card-category.cyan { color: var(--neon-cyan); }
.game-card-category.magenta { color: var(--neon-magenta); }
.game-card-category.yellow { color: var(--neon-yellow); }
.game-card-category.gold { color: var(--neon-gold); }

/* Play Cover Placeholder styling */
.play-cover-placeholder {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
    z-index: 10;
}

.play-cover-placeholder .cover-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    filter: blur(10px) brightness(0.4);
    transform: scale(1.1);
    transition: transform var(--transition-smooth), filter var(--transition-smooth);
}

.play-cover-placeholder:hover .cover-bg {
    transform: scale(1.15);
    filter: blur(6px) brightness(0.5);
}

.play-cover-placeholder .cover-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(10, 10, 14, 0.9) 0%, rgba(255, 0, 85, 0.15) 100%);
    z-index: 1;
}

.play-cover-placeholder .play-trigger-content {
    position: relative;
    z-index: 3;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.play-now-action-btn {
    padding: 15px 40px !important;
    font-size: 1.1rem !important;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.4);
    animation: neonPulse 2s infinite alternate;
}

@keyframes neonPulse {
    0% {
        box-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
    }
    100% {
        box-shadow: 0 0 30px rgba(0, 240, 255, 0.7);
    }
}

.play-warning-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    font-family: var(--font-mono);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.play-cover-placeholder .cover-clear-img {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    z-index: 2;
    transition: transform var(--transition-smooth);
}

.play-cover-placeholder:hover .cover-clear-img {
    transform: scale(1.03);
}

/* Footer Social & Partners Styles */
.social-link-item {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--text-secondary);
    font-size: 0.9rem;
    transition: var(--transition-fast);
    padding: 2px 0;
}

.social-link-item:hover {
    color: var(--neon-cyan);
    padding-left: 5px;
}

.social-col-icon {
    width: 18px;
    height: 18px;
    fill: currentColor;
    transition: transform var(--transition-fast);
}

.social-link-item:hover .social-col-icon {
    transform: scale(1.1);
    filter: drop-shadow(0 0 3px var(--neon-cyan));
}

.footer-partners {
    border-top: 1px solid var(--border-dark);
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}

.partners-title {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.partners-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.partner-item {
    font-size: 0.85rem;
    color: var(--text-secondary);
    transition: var(--transition-fast);
    font-weight: 500;
}

.partner-item:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px rgba(0, 240, 255, 0.5);
}

.partner-separator {
    color: var(--border-magenta);
    font-weight: 300;
}

/* Footer Bottom Navigation Menu (Placed directly above Copyright) */
.footer-bottom-nav-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 24px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-bottom-nav-menu li {
    margin: 0;
    padding: 0;
}

.footer-bottom-nav-menu li a {
    color: var(--text-secondary);
    font-size: 0.85rem;
    text-decoration: none;
    transition: var(--transition-fast);
    font-family: var(--font-main);
}

.footer-bottom-nav-menu li a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.4);
}


