/* =============================================================================
    GAME PAGE STYLES (game-page.js)
    ============================================================================= */

.gp-page {
    width: 100%;
    max-width: 100%;
}

/* =============================================================================
    HERO SECTION
    ============================================================================= */

.gp-hero {
    position: relative;
    min-height: 300px;
    background: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border-subtle);
    overflow: hidden;
    margin-bottom: var(--space-12);
    display: flex;
    align-items: center;
    justify-content: center;
}

.gp-hero__header {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3;
    z-index: 0;
}

.gp-hero__content {
    position: relative;
    z-index: 1;
    text-align: center;
    padding: var(--space-12) var(--space-6);
}

.gp-hero__title {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
    font-family: var(--font-display);
    color: var(--color-text-primary);
    margin-bottom: var(--space-3);
    line-height: var(--leading-tight);
}


/* =============================================================================
    LAYOUT CONTAINER
    ============================================================================= */

.gp-layout {
    max-width: var(--container-lg);
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.gp-body {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: var(--space-8);
    align-items: start;
    padding: var(--space-8) 0 var(--space-16);
}

.gp-main {
    min-width: 0;
}

/* =============================================================================
    SIDEBAR
    ============================================================================= */

.gp-sidebar {
    position: sticky;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border-default) transparent;
}

.gp-sidebar__section {
    background: var(--color-white-subtle);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    margin-bottom: var(--space-4);
}

.gp-sidebar__section--presskit {
    background: var(--color-bg-overlay);
}

.gp-sidebar__title {
    font-family: var(--font-display);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--space-3);
}

.gp-sidebar__tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.gp-sidebar__tags--limited {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.gp-sidebar__tags--hidden {
    display: none;
}

.gp-sidebar__more-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: transparent;
    color: var(--color-text-link);
    border: none;
    border-radius: 0;
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    cursor: pointer;
    transition: color var(--transition-base);
}

.gp-sidebar__more-btn:hover {
    color: var(--color-text-link-hover);
}

.gp-sidebar__row {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-3) 0;
    border-bottom: 1px solid var(--color-border-subtle);
}

.gp-sidebar__row:last-child {
    border-bottom: none;
}

.gp-sidebar__label {
    font-size: var(--text-xs);
    color: var(--color-text-muted);
    font-weight: var(--font-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.gp-sidebar__value {
    font-size: var(--text-xs);
    color: var(--color-text-primary);
    word-break: break-word;
}

.gp-sidebar__value a {
    color: var(--color-text-link);
    transition: color var(--transition-base);
    text-decoration: none;
}

.gp-sidebar__value a:hover {
    color: var(--color-text-link-hover);
}

.gp-sidebar__languages {
    word-break: break-word;
    font-size: var(--text-xs);
}

/* =============================================================================
    PRESSKIT BUTTONS
    ============================================================================= */

.gp-presskit-btns {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.gp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-2) var(--space-4);
    background: var(--color-gold-400);
    color: var(--color-bg-base);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--text-xs);
    font-weight: var(--font-semibold);
    font-family: var(--font-display);
    cursor: pointer;
    transition: all var(--transition-base);
    width: 100%;
}

.gp-btn:hover {
    background: var(--color-gold-300);
    transform: translateY(-1px);
    box-shadow: var(--shadow-btn-hover);
}

.gp-btn:active {
    transform: translateY(0);
}

/* =============================================================================
    CAROUSEL
    ============================================================================= */

.gp-carousel {
    margin-bottom: var(--space-8);
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--color-border-subtle);
}

.gp-carousel__main {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: var(--color-bg-card);
    overflow: hidden;
}

.gp-carousel__main a,
.gp-carousel__main img,
.gp-carousel__main video,
.gp-carousel__main iframe {
    width: 100%;
    height: 100%;
    display: block;
}

.gp-carousel__main img,
.gp-carousel__main video {
    object-fit: cover;
}

.gp-carousel__main a img {
    object-fit: cover;
}

.gp-carousel__main iframe {
    border: none;
}

.gp-carousel__thumbs {
    display: flex;
    gap: var(--space-1);
    overflow-x: auto;
    padding: var(--space-2);
    background: var(--color-bg-card);
    scrollbar-width: thin;
    scrollbar-color: var(--color-border-default) transparent;
    scroll-behavior: smooth;
}

.gp-carousel__thumbs:hover {
    scroll-behavior: smooth;
}

.gp-carousel__thumb {
    flex-shrink: 0;
    width: 100px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border-radius: var(--radius-sm);
    border: 2px solid transparent;
    padding: 0;
    cursor: pointer;
    transition: border-color var(--transition-base), opacity var(--transition-base);
    background: none;
    opacity: 0.6;
    position: relative;
}

.gp-carousel__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

.gp-carousel__thumb:hover,
.gp-carousel__thumb--active {
    border-color: var(--color-gold-400);
    opacity: 1;
}

.gp-carousel__thumb-play {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,0.7);
    pointer-events: none;
}

.gp-carousel__thumb-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}

/* =============================================================================
    BADGES
    ============================================================================= */

.gp-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-sm);
    font-weight: var(--font-medium);
    border: 1px solid;
}

.gp-badge--platform {
    background: var(--color-blue-surface);
    border-color: rgba(94, 196, 232, 0.3);
    color: var(--color-blue-200);
}

.gp-badge--genre {
    background: var(--color-genre-surface);
    border-color: rgba(149, 76, 232, 0.3);
    color: var(--color-text-primary);
}

.gp-badge--category {
    background: var(--color-success-surface);
    border-color: rgba(42, 107, 62, 0.3);
    color: var(--color-success-light);
}

/* =============================================================================
    SECTION TITLE
    ============================================================================= */

.gp-section-title {
    font-size: var(--text-2xl);
    font-weight: var(--font-bold);
    font-family: var(--font-display);
    color: var(--color-text-primary);
    margin-bottom: var(--space-6);
    padding-bottom: var(--space-4);
    border-bottom: 1px solid var(--color-border-subtle);
}

/* =============================================================================
    SHORT DESCRIPTION
    ============================================================================= */

.gp-short-desc {
    margin-bottom: var(--space-12);
    padding: var(--space-6);
    background: var(--color-bg-overlay);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
}

.gp-short-desc p {
    font-size: var(--text-base);
    color: var(--color-text-primary);
    line-height: var(--leading-relaxed);
    margin: 0;
}

/* Limiter les médias dans la description */
.gp-description img,
.gp-description video,
.gp-description iframe {
    max-width: 100%;
    height: auto;
}

/* =============================================================================
    DESCRIPTION CONTENT
    ============================================================================= */

.gp-description {
    margin-bottom: var(--space-12);
}

.gp-description p {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    margin-bottom: var(--space-4);
}

.gp-description h2,
.gp-description h3,
.gp-description h4 {
    font-family: var(--font-display);
    color: var(--color-text-primary);
    font-weight: var(--font-bold);
    margin: var(--space-6) 0 var(--space-3);
    line-height: var(--leading-tight);
}

.gp-description h2 {
    font-size: var(--text-xl);
}

.gp-description h3 {
    font-size: var(--text-lg);
}

.gp-description h4 {
    font-size: var(--text-base);
}

.gp-description ul,
.gp-description ol {
    margin: var(--space-4) 0 var(--space-4) var(--space-6);
}

.gp-description li {
    margin-bottom: var(--space-2);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
}

.gp-description hr {
    border: none;
    border-top: 1px solid var(--color-border-subtle);
    margin: var(--space-8) 0;
}

.gp-description figure {
    margin: var(--space-6) 0;
}

.gp-description figure img {
    width: 100%;
    height: auto;
}

/* =============================================================================
    ABOUT
    ============================================================================= */

.gp-about {
    margin-bottom: var(--space-12);
}

.gp-about__content {
    font-size: var(--text-base);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    padding: var(--space-6);
    background: var(--color-white-subtle);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
}

/* =============================================================================
    PC REQUIREMENTS
    ============================================================================= */

.gp-requirements {
    margin-bottom: var(--space-12);
}

.gp-req__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--space-6);
    margin-top: var(--space-4);
}

.gp-req__col h3 {
    font-size: var(--text-lg);
    font-family: var(--font-display);
    color: var(--color-text-primary);
    font-weight: var(--font-semibold);
    margin-bottom: var(--space-4);
}

.gp-req__text {
    font-size: var(--text-sm);
    color: var(--color-text-secondary);
    line-height: var(--leading-relaxed);
    background: var(--color-bg-overlay);
    padding: var(--space-4);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
}


/* =============================================================================
    WEBSITE
    ============================================================================= */

.gp-website {
    margin-bottom: var(--space-12);
    padding: var(--space-6);
    background: var(--color-bg-overlay);
    border: 1px solid var(--color-border-subtle);
    border-radius: var(--radius-lg);
    text-align: center;
}

/* =============================================================================
    LOADING STATE
    ============================================================================= */

.gp-loading {
    text-align: center;
    padding: var(--space-12);
    font-size: var(--text-base);
    color: var(--color-text-muted);
}

/* =============================================================================
    RESPONSIVE
    ============================================================================= */

@media (max-width: 768px) {
    .gp-hero {
        min-height: 200px;
    }

    .gp-hero__content {
        padding: var(--space-6) var(--space-4);
    }

    .gp-hero__title {
        font-size: var(--text-2xl);
    }

    .gp-lang-switch {
        padding: var(--space-2) var(--space-3);
        font-size: var(--text-xs);
    }

    .gp-body {
        grid-template-columns: 1fr;
    }

    .gp-sidebar {
        position: static;
        max-height: none;
        overflow-y: visible;
        order: -1;
    }

    .gp-carousel__thumb {
        width: 72px;
    }

    .gp-section-title {
        font-size: var(--text-xl);
    }

    .gp-req__grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .gp-hero__title {
        font-size: var(--text-xl);
    }

    .gp-carousel__thumb {
        width: 60px;
    }
}
