/* --- Game Hero Section --- */
.game-hero {
    position: relative;
    height: 60vh;
    min-height: 400px;
    display: flex;
    align-items: flex-end;
    padding-bottom: 40px;
    overflow: hidden;
    margin-bottom: 60px;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0));
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 50%, rgba(0,0,0,0));
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-color) 10%, transparent 100%);
    z-index: 2;
}

.game-hero .hero-content {
    position: relative;
    z-index: 3;
}

.release-date {
    display: inline-block;
    background: var(--accent);
    color: white;
    padding: 5px 15px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.game-hero h1 {
    font-size: 4rem;
    line-height: 1;
    margin-bottom: 10px;
    text-shadow: 0 4px 10px rgba(0,0,0,0.5);
}

.tags {
    display: flex;
    gap: 10px;
}

    .tags .tag {
        background: rgba(0,0,0,0.6);
        border: 1px solid rgba(255,255,255,0.2);
        padding: 5px 10px;
        border-radius: 4px;
        font-size: 0.8rem;
        color: #ccc;
    }

/* --- Layout Grid (Main + Sidebar) --- */
.game-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* 2 parts content, 1 part sidebar */
    gap: 60px;
    margin-bottom: 80px;
}

/* --- Main Content Styling --- */
.game-description h2, .game-gallery h2, .game-features h2, .game-videos h2 {
    font-size: 1.8rem;
    margin-bottom: 20px;
    border-left: 4px solid var(--primary);
    padding-left: 15px;
}

.game-description p {
    margin-bottom: 15px;
    color: var(--text-muted);
    font-size: 1.1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    margin-bottom: 40px;
}

    .gallery-grid img {
        width: 100%;        
        height: auto;       
        display: block;    
        border-radius: 8px;
        cursor: pointer;
        transition: var(--transition);
    }

        .gallery-grid img:hover {
            transform: scale(1.02);
            opacity: 0.9;
        }

.features-list {
    list-style: none;
}

    .features-list li {
        background: var(--bg-alt);
        padding: 15px;
        margin-bottom: 10px;
        border-radius: 8px;
        border-left: 3px solid transparent;
        transition: var(--transition);
    }

        .features-list li:hover {
            border-left-color: var(--accent);
            transform: translateX(5px);
        }

/* --- Sidebar Styling --- */


/* --- Sidebar Styling (FIXED VERSION) --- */
.buy-card {
    background: var(--bg-alt);
    padding: 30px;
    border-radius: var(--radius);
    text-align: center;
    border: 1px solid var(--border);
    position: sticky;
    top: 100px;
 
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: 75vh;  
    overflow-y: auto;  
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--bg-alt);
}

    .buy-card::-webkit-scrollbar {
        width: 6px;
    }

    .buy-card::-webkit-scrollbar-thumb {
        background-color: var(--primary);
        border-radius: 10px;
    }

        .buy-card::-webkit-scrollbar-thumb:hover {
            background-color: var(--primary);
        }

 
.box-art {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;  
    border-radius: 8px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
    flex-shrink: 0;  
}

.price-tag {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 0;  
}

.btn-buy {
    background: var(--gradient);
    margin: 0; 
}

.btn-secondary {
    background: transparent;
    border: 2px solid var(--border);
    color: var(--text-muted);
    margin: 0;  
}

    .btn-secondary:hover {
        border-color: white;
        color: white;
    }

.platform-icons {
    border-top: 1px solid var(--border);
    padding-top: 20px;
    display: flex;
    justify-content: center;
    gap: 15px;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0;  
}

.specs-card {
    background: rgba(0, 0, 0, 0.2);  
    padding: 20px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    margin: 0;  
    text-align: left;  
}

    .specs-card h4 {
        color: var(--accent);
        margin-bottom: 15px;
        font-size: 0.9rem;
        text-transform: uppercase;
        text-align: center;  
    }

    .specs-card ul {
        list-style: none;
        font-size: 0.85rem;
        color: var(--text-muted);
    }

    .specs-card li {
        margin-bottom: 8px;
        display: flex;
        justify-content: space-between;
        border-bottom: 1px dashed rgba(255,255,255,0.1);
        padding-bottom: 4px;
    }

        .specs-card li:last-child {
            border-bottom: none;
        }



/* --- Game Press Kit Section --- */
.game-press-kit {
    background: linear-gradient(145deg, #161d2b 0%, #0f131a 100%);
    padding: 60px 0;
    margin-top: 60px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.press-wrapper {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 50px;
    align-items: center;
}

/* Info Side */
.press-info h2 {
    font-size: 2rem;
    margin-bottom: 15px;
    color: white;
}

.press-info p {
    color: var(--text-muted);
    margin-bottom: 25px;
    max-width: 500px;
}

.platform-avail {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

.plat-tag {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 50px;
    font-size: 0.9rem;
    color: #e2e8f0;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.plat-tag:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: white;
}

/* Actions Side */
.press-actions h3 {
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-muted);
    margin-bottom: 15px;
}

.store-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.store-link {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    background: #232b3a;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

/* Specific Store Accents */
.store-link:hover { transform: translateY(-2px); color: white; }
.store-link.steam:hover { background: #1b2838; border: 1px solid #66c0f4; }
.store-link.xbox:hover { background: #107C10; }
.store-link.playstation:hover { background: #00439c; }

.divider {
    height: 1px;
    background: var(--border);
    margin: 20px 0;
}

/* --- Game Videos Internal Section --- */
.video-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
     margin-bottom: 40px;
}

.game-videos .btn {
    min-width: 180px;  
    
}

/* Responsive */
@media (max-width: 768px) {
    .press-wrapper {
        grid-template-columns: 1fr;
    }
    .store-grid {
        grid-template-columns: 1fr; /* Stack store buttons on mobile */
    }
}




/* --- Responsive --- */
@media (max-width: 900px) {
    .game-layout {
        grid-template-columns: 1fr; /* Stack sidebar under content */
    }

    .game-hero h1 {
        font-size: 2.5rem;
    }

    .buy-card {
        position: static; /* Remove sticky on mobile */
        display: flex;
        flex-direction: column;
        align-items: center;
    }
}
