/* ===================================================
   DON'T SAY GAME STUDIO - Games Page Styles
   CA-239: Games Sub-Page
   =================================================== */

/* --- PAGE HEADER --- */
.games-page-header {
    padding: 60px 48px 20px;
}

.games-page-header .section-title-block h1 {
    font-family: var(--font-heading);
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 3px;
    margin-bottom: 8px;
}

/* --- GAME DETAIL SECTION --- */
.game-detail {
    padding: 40px 48px 60px;
    margin: 0 auto 32px;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    background: var(--bg-card);
}

.game-detail:last-of-type {
    margin-bottom: 0;
}

.game-detail-header {
    display: grid;
    grid-template-columns: 1fr 1.6fr;
    gap: 48px;
    align-items: center;
    margin-bottom: 32px;
}

.game-detail-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.game-detail-info .card-ribbon {
    position: static;
    display: inline-block;
    width: fit-content;
}

.game-detail-info h2 {
    font-family: var(--font-heading);
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--white);
    letter-spacing: 2px;
}

.game-description {
    font-family: var(--font-body);
    color: var(--gray);
    font-size: 0.95rem;
    font-weight: 300;
    line-height: 1.7;
    max-width: 500px;
}

.game-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 8px;
}

.game-detail-art {
    border-radius: var(--radius);
    overflow: hidden;
    border: 1px solid var(--border-subtle);
    width: 50%;
    justify-self: center;
}

.game-detail-art img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.4s;
}

.game-detail-art:hover img {
    transform: scale(1.02);
}

/* --- MEDIA SECTIONS (Trailer & Screenshots) --- */
.game-media-section {
    margin-bottom: 40px;
}

.game-media-section h3 {
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    color: var(--orange);
    letter-spacing: 1.5px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

/* --- TRAILER --- */
.trailer-container {
    max-width: 800px;
}

.trailer-container iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
}

.trailer-container video {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
    background: #000;
}

.trailer-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-family: var(--font-body);
    font-size: 1rem;
}

/* --- SCREENSHOTS --- */
.screenshots-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.screenshots-grid img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    transition: transform 0.3s, border-color 0.3s;
    cursor: pointer;
}

.screenshots-grid img:hover {
    transform: scale(1.03);
    border-color: var(--orange);
}

.screenshot-placeholder {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 10px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray);
    font-family: var(--font-body);
    font-size: 0.8rem;
}

/* --- RESPONSIVE --- */
@media (max-width: 1024px) {
    .game-detail-header {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .screenshots-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .games-page-header {
        padding: 40px 24px 16px;
    }

    .game-detail {
        padding: 32px 24px 48px;
    }

    .game-detail-info h2 {
        font-size: 1.4rem;
    }

    .screenshots-grid {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .game-meta {
        flex-direction: column;
        align-items: flex-start;
    }
}
