/* =============================================
   PAGE-SPECIFIC STYLES (moved from inline)
   ============================================= */

/* Archive page search */
.search-container {
    max-width: 600px;
    margin: 0 auto 4rem;
    position: relative;
}

#game-search {
    width: 100%;
    padding: 1rem 1.5rem;
    background: rgba(var(--white-rgb), 0.05);
    border: 1px solid rgba(var(--white-rgb), 0.1);
    border-radius: var(--radius-md);
    color: var(--white);
    font-size: 1.1rem;
    outline: none;
    transition: border-color 0.3s ease;
}

#game-search:focus {
    border-color: var(--accent);
}

/* Hero background with gradient overlay */
.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: -1;
}

/* Featured cards backgrounds */
.featured-card-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    filter: grayscale(60%) brightness(0.5) contrast(1.1);
    transition: filter 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    image-rendering: -webkit-optimize-contrast;
    transform: scale(1);
}

.featured-card:hover .featured-card-bg {
    filter: grayscale(0%) brightness(0.95) contrast(1.05);
    transform: scale(1.08);
}

/* =============================================
   GAME PAGE STYLES - Redesigned
   ============================================= */

/* Hero Section - Larger and more immersive */
.game-detail-hero {
    height: 85vh;
    min-height: 600px;
    position: relative;
    display: flex;
    align-items: flex-end;
    padding: 0 5% 6rem;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    overflow: hidden;
}

.game-detail-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(var(--bg-main-rgb), 0.2) 0%,
        rgba(var(--bg-main-rgb), 0.5) 50%,
        rgba(var(--bg-main-rgb), 0.9) 80%,
        var(--bg-main) 100%
    );
    z-index: 1;
}

.hero-content-inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.game-page-subtitle {
    font-size: 1.2rem;
    color: var(--accent);
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    display: inline-block;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.game-page-title {
    font-size: clamp(3.5rem, 9vw, 6rem);
    margin-bottom: 1.5rem;
    letter-spacing: 6px;
    line-height: 1;
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8);
}

/* Quick Stats Bar */
.game-quick-stats {
    display: flex;
    gap: 3rem;
    padding: 2.5rem 5%;
    background: rgba(var(--bg-card), 0.6);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(var(--white-rgb), 0.05);
    flex-wrap: wrap;
}

.quick-stat {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.quick-stat-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 2px;
}

.quick-stat-value {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--white);
}

/* Genre Tags */
.genre-tags {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.genre-tag {
    padding: 0.5rem 1.2rem;
    background: rgba(var(--white-rgb), 0.05);
    border: 1px solid rgba(var(--white-rgb), 0.1);
    border-radius: 20px;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-main);
    transition: all 0.3s ease;
}

.genre-tag:hover {
    background: rgba(var(--accent), 0.1);
    border-color: var(--accent);
    color: var(--accent);
}

/* Main Content Grid */
.game-info-grid {
    display: grid;
    grid-template-columns: 1.8fr 1fr;
    gap: 4rem;
    padding: 5rem 5%;
    max-width: 1600px;
    margin: 0 auto;
}

.info-block {
    animation: fadeIn 0.6s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.info-block h2 {
    font-size: 1.8rem;
    margin-bottom: 2rem;
    border-left: 5px solid var(--accent);
    padding-left: 1.5rem;
    letter-spacing: 3px;
    color: var(--white);
}

.info-text {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.9;
    margin-bottom: 3rem;
}

/* Features List */
.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: rgba(var(--white-rgb), 0.02);
    border-radius: 8px;
    border: 1px solid rgba(var(--white-rgb), 0.05);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.feature-item:hover {
    background: rgba(var(--white-rgb), 0.05);
    border-color: var(--accent);
    transform: translateX(5px);
}

.feature-dot {
    width: 10px;
    height: 10px;
    background: var(--accent);
    border-radius: 50%;
    flex-shrink: 0;
    box-shadow: 0 0 10px var(--accent);
}

/* Review Box */
.review-box {
    margin-bottom: 3rem;
    background: var(--bg-card);
    padding: 2.5rem;
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease;
}

.review-box:hover {
    transform: translateY(-5px);
}

/* Meta List */
.meta-list {
    background: var(--bg-card);
    padding: 2.5rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(var(--white-rgb), 0.08);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.meta-item {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(var(--white-rgb), 0.05);
}

.meta-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.meta-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-bottom: 0.75rem;
    display: block;
}

.meta-value {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--white);
}

/* System Requirements */
.system-req {
    background: rgba(var(--white-rgb), 0.02);
    padding: 2rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(var(--white-rgb), 0.05);
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.gallery-thumb {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid rgba(var(--white-rgb), 0.1);
    transition: all 0.4s var(--ease-smooth);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.gallery-thumb:hover {
    transform: scale(1.05) translateY(-5px);
    border-color: var(--accent);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

/* Lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.lightbox.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background: rgba(var(--white-rgb), 0.1);
    border: 1px solid rgba(var(--white-rgb), 0.2);
    border-radius: 50%;
    color: var(--white);
    font-size: 2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.lightbox-close:hover {
    background: var(--accent);
    border-color: var(--accent);
    transform: rotate(90deg);
}

/* Responsive Design */
@media (max-width: 1200px) {
    .game-info-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }

    .game-quick-stats {
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    .game-detail-hero {
        height: 70vh;
        padding: 0 5% 4rem;
    }

    .game-page-title {
        font-size: clamp(2.5rem, 8vw, 4rem);
    }

    .game-quick-stats {
        gap: 1.5rem;
        padding: 2rem 5%;
    }

    .features-list {
        grid-template-columns: 1fr;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* =============================================
   ARTICLE PAGE STYLES (moved from inline <style>)
   ============================================= */

.article-hero {
    height: 60vh;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    align-items: flex-end;
    position: relative;
    view-transition-name: active-news-hero;
}

.article-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, var(--bg-main) 10%, transparent 80%);
}

.article-hero-content {
    position: relative;
    z-index: 2;
    padding: 0 5% 4rem;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
}

.article-date {
    font-size: 1rem;
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1rem;
    display: inline-block;
}

.article-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    margin-bottom: 1rem;
    text-shadow: 0 5px 20px rgba(0, 0, 0, 0.8);
    line-height: 1.1;
}

.article-body {
    max-width: 800px;
    margin: 4rem auto 10rem;
    padding: 0 5%;
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-main);
}

.article-body p {
    margin-bottom: 2rem;
}

.article-body h3 {
    margin: 3rem 0 1.5rem;
    font-size: 1.8rem;
    color: var(--white);
}
