/* ============================================
   STYLES POUR PAGES DE JEUX
   (Zoratharion & Echoes of Zoratharion)
   ============================================ */

/* ============================================
   CONTAINER PRINCIPAL
   ============================================ */

.game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* ============================================
   EN-TÊTE - TITRE ET BOUTON STEAM
   ============================================ */

.game-title-section {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 30px;
    align-items: center;
    margin-bottom: 30px;
    padding: 30px 30px;
    background: #2d2d2d;
    border-radius: 12px;
    border: 3px solid #000000;
}

body.light-mode .game-title-section {
    background: #f5f5f5;
    border: 3px solid #000000;
}

.game-title-section .title-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.game-title-section h1 {
    font-size: 48px;
    margin: 0;
    text-align: left;
}

.game-title-section .subtitle {
    font-size: 9px;
    color: #aaa;
    margin: 0;
    text-align: left;
}

body.light-mode .game-title-section .subtitle {
    color: #666;
}

/* Boutons Steam */
.steam-btn {
    display: inline-block;
    color: white;
    padding: 18px 40px;
    font-size: 18px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 12px;
    transition: all 0.3s;
}

/* Bouton Steam ZORATHARION (bleu) */
.steam-btn.zoratharion {
    background: linear-gradient(135deg, #00d4ff, #0099cc);
}

.steam-btn.zoratharion:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 212, 255, 0.4);
}

/* Bouton Steam ECHOES (violet) */
.steam-btn.echoes {
    background: linear-gradient(135deg, #9d4edd, #7209b7);
}

.steam-btn.echoes:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(157, 78, 221, 0.4);
}

/* Bouton désactivé */
.steam-btn.disabled {
    background: linear-gradient(135deg, #555, #444);
    cursor: not-allowed;
    opacity: 0.6;
}

.steam-btn.disabled:hover {
    transform: none;
    box-shadow: none;
}

/* ============================================
   SECTION À PROPOS
   ============================================ */

.about-section {
    margin-bottom: 50px;
    text-align: left;
}

.about-section h2 {
    font-size: 28px;
    margin-bottom: 20px;
}

.about-section p {
    font-size: 1em;
    line-height: 1.6;
    color: #ddd;
    margin-bottom: 15px;
}

body.light-mode .about-section p {
    color: #444;
}

/* ============================================
   LAYOUT DEUX COLONNES
   (Gauche: Gameplay + Features | Droite: Carousel)
   ============================================ */

.game-content-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.left-column {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.right-column {
    display: flex;
    flex-direction: column;
}

/* Sections dans les colonnes */
.game-section {
    background: #2d2d2d;
    padding: 25px;
    border-radius: 12px;
}

body.light-mode .game-section {
    background: #f5f5f5;
}

.game-section h2 {
    font-size: 24px;
    margin-bottom: 15px;
}

.game-section p {
    font-size: 1em;
    line-height: 1.7;
    color: #ddd;
    margin-bottom: 12px;
}

body.light-mode .game-section p {
    color: #444;
}

/* ============================================
   LISTE DES CARACTÉRISTIQUES
   ============================================ */

.features-list {
    list-style: none;
    padding: 0;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px solid #3d3d3d;
    font-size: 1em;
    color: #ddd;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.light-mode .features-list li {
    border-bottom: 1px solid #e0e0e0;
    color: #444;
}

.features-list li:last-child {
    border-bottom: none;
}

/* Icônes de validation par jeu */
.features-list.zoratharion li::before {
    content: "✓";
    color: #00d4ff;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

.features-list.echoes li::before {
    content: "✓";
    color: #9d4edd;
    font-weight: bold;
    font-size: 16px;
    flex-shrink: 0;
}

/* ============================================
   CAROUSEL D'IMAGES
   ============================================ */

.carousel-section {
    height: 100%;
}

.carousel-section h2 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.carousel-container {
    position: relative;
    background: #2d2d2d;
    padding: 30px;
    border-radius: 12px;
    overflow: hidden;
    height: calc(100% - 60px);
    display: flex;
    align-items: center;
    justify-content: center;
}

body.light-mode .carousel-container {
    background: #f5f5f5;
}

.carousel-wrapper {
    position: relative;
    width: 100%;
    max-width: 600px;
}

.carousel-images {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-image.active {
    opacity: 1;
}

.carousel-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Boutons de navigation */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    transition: all 0.3s;
    z-index: 10;
}

.carousel-nav:hover {
    background: rgba(0, 212, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev {
    left: 10px;
}

.carousel-nav.next {
    right: 10px;
}

/* Indicateurs (dots) */
.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #555;
    cursor: pointer;
    transition: all 0.3s;
    border: none;
    padding: 0;
}

body.light-mode .carousel-dot {
    background: #ccc;
}

.carousel-dot.active {
    background: #00d4ff;
    transform: scale(1.3);
}

.carousel-dot:hover {
    background: #00d4ff;
}

.carousel-placeholder {
    color: #aaa;
    font-size: 16px;
}

body.light-mode .carousel-placeholder {
    color: #666;
}

/* ============================================
   NAVIGATION ENTRE JEUX (FLÈCHES LATÉRALES)
   ============================================ */

.game-nav-arrows {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-nav-arrows.left {
    left: 20px;
}

.game-nav-arrows.right {
    right: 20px;
}

.nav-arrow {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    background: none;
    border: none;
}

.nav-arrow img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all 0.3s;
}

.nav-arrow:hover img {
    transform: scale(1.1);
}

.nav-arrow.disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

/* ============================================
   RESPONSIVE POUR PAGES DE JEUX
   ============================================ */

/* Tablettes (968px et moins) */
@media (max-width: 968px) {
    .game-content-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .carousel-images {
        height: 350px;
    }
}

/* Mobiles (768px et moins) */
@media (max-width: 768px) {
    .game-title-section {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .game-title-section h1 {
        font-size: 36px;
        text-align: center;
    }

    .game-title-section .subtitle {
        font-size: 12px;
        text-align: center;
        margin-bottom: 20px;
    }

    .game-nav-arrows {
        display: none;
    }

    .carousel-images {
        height: 300px;
    }

    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 18px;
    }

    .game-section h2 {
        font-size: 20px;
    }
}
