/* Styles pour la fiche jeu */
.game-info-card {
    background: #fff;
    border: 1px solid #e1e5e9;
    border-radius: 12px;
    padding: 25px;
    margin: 30px 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.game-info-header {
    display: flex;
    gap: 25px;
    margin-bottom: 25px;
    align-items: center; /* Change de flex-start à center pour centrer verticalement */
}

.game-cover {
    width: 240px;
    height: 340px;  /* Ratio approximatif d'une couverture de jeu */
    flex-shrink: 0;
    display: flex; /* Ajoute flex pour centrer l'image dans son conteneur */
    align-items: center; /* Centre l'image verticalement */
    justify-content: center; /* Centre l'image horizontalement */
}

.game-cover-image {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: all 0.3s ease;
    object-fit: cover;
}

.game-cover-image:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 35px rgba(0,0,0,0.2);
}

.game-main-info {
    flex: 1;
}

.game-title {
    font-size: 2em;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #1a1a1a;
    line-height: 1.2;
}

.game-main-info p {
    margin: 8px 0;
    line-height: 1.4;
}

.game-main-info strong {
    color: #34495e;
}

.game-summary {
    margin: 25px 0;
    padding: 20px;
    background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);  /* Orange clair */
    border-radius: 10px;
    border-left: 4px solid #E5A907;  /* Orange */
}

.game-summary h4 {
    margin: 0 0 15px 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
}

.game-summary p {
    line-height: 1.6;
    margin: 0;
    color: #4a4a4a;
}

.game-genres {
    margin: 15px 0;
}

.genre-tag, .dev-tag, .pub-tag {
    display: inline-block;
    color: #E5A907;
    text-decoration: none;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 600;
    margin: 3px 6px 3px 0;
    transition: all 0.3s ease;
    background: transparent;  
}

.genre-tag:hover, .dev-tag:hover, .pub-tag:hover {
    background: #E5A907;
    color: white;
    text-decoration: none;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 169, 7, 0.3);
}

.game-platforms-dates {
    margin: 20px 0;
}

.platforms-list {
    list-style: none;
    padding: 0;
    margin: 10px 0 0 0;
}

.platform-item {
    background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);  /* Orange clair */
    padding: 12px 18px;
    margin: 8px 0;
    border-left: 4px solid #E5A907;  /* Orange */
    border-radius: 0 8px 8px 0;
    font-weight: 500;
    color: #2d3748;
}

.game-gallery h4 {
    margin: 20px 0 10px 0;
    color: #2c3e50;
}

.game-media h4,
.game-videos h4 {
    margin: 25px 0 15px 0;
    color: #2c3e50;
    font-size: 1.2em;
    font-weight: 600;
}

.game-media h4:after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, #E5A907 0%, #d4970a 100%);  /* Orange */
    border-radius: 2px;
}

/* Screenshots - Assurer la cliquabilité */
.game-screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin: 20px 0;
}

.screenshot-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    transition: transform 0.3s ease;
}

.screenshot-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
}

.screenshot-link {
    display: block;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    z-index: 10;
}

.screenshot-link:hover {
    text-decoration: none;
}

.game-screenshot {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.screenshot-link:hover .game-screenshot {
    transform: scale(1.05);
}

/* Indicateur de zoom */
.screenshot-link::before {
    content: '🔍';
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 5px 8px;
    border-radius: 50%;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 20;
}

.screenshot-link:hover::before {
    opacity: 1;
}

.game-videos-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 15px;
}

.video-item {
    text-align: center;
}

.video-title {
    margin: 10px 0 0 0;
    font-weight: 500;
    color: #4a4a4a;
    font-size: 0.9em;
}

.game-additional-info {
    margin: 30px 0;
    padding: 25px;
    background: linear-gradient(135deg, #fff8e1 0%, #ffe0b2 100%);  /* Orange clair */
    border-radius: 12px;
    border-left: 5px solid #E5A907;  /* Orange */
}

.game-additional-info p {
    margin: 10px 0;
    line-height: 1.5;
    color: #4a4a4a;
}

.game-additional-info strong {
    color: #2c3e50;
    font-weight: 600;
}

.rating-score {
    display: inline-block;
    background: linear-gradient(135deg, #48bb78 0%, #38a169 100%);  /* Garder vert pour les notes */
    color: white;
    padding: 4px 12px;
    border-radius: 15px;
    font-weight: 600;
    font-size: 0.95em;
}

.game-websites {
    margin: 15px 0;
}

.game-website-link {
    display: inline-block;
    background: #007cba;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    text-decoration: none;
    margin: 3px 6px 3px 0;
    font-size: 0.9em;
    transition: background 0.2s ease;
}

.game-website-link:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 768px) {
    .game-info-header {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }
    
    .game-cover-image {
        max-width: 250px;  /* Augmenté de 180px à 250px */
    }
    
    .game-title {
        font-size: 1.8em;
    }
    
    .game-screenshots {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    
    .game-screenshot {
        height: 120px;
    }
    
    .game-videos-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .game-info-card {
        padding: 20px 15px;
        margin: 20px 0;
    }
    
    .game-screenshots {
        grid-template-columns: 1fr;
    }
    
    .game-screenshot {
        height: 200px;
    }
}

.game-related-link-section {
    margin: 30px 0 0 0;
    text-align: center;
}

.related-articles-link {
    display: inline-flex;
    align-items: center;
    gap: 15px;
    padding: 15px 25px;
    background: linear-gradient(135deg, #E5A907 0%, #d4970a 100%);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    font-weight: 600;
    font-size: 1.05em;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(229, 169, 7, 0.3);
    border: 2px solid transparent;
}

.related-articles-link:hover {
    background: white;
    color: #E5A907;
    border-color: #E5A907;
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(229, 169, 7, 0.4);
    text-decoration: none;
}

.related-icon {
    font-size: 1.3em;
}

.related-text {
    flex: 1;
    text-align: center;
}

.related-text small {
    display: block;
    font-size: 0.85em;
    font-weight: 400;
    opacity: 0.9;
    margin-top: 2px;
}

.related-articles-link:hover .related-text small {
    opacity: 0.7;
}

.related-arrow {
    font-size: 1.2em;
    transition: transform 0.3s ease;
}

.related-articles-link:hover .related-arrow {
    transform: translateX(5px);
}

/* Responsive */
@media (max-width: 768px) {
    .related-articles-link {
        padding: 12px 20px;
        font-size: 1em;
        gap: 12px;
    }
    
    .related-icon {
        font-size: 1.2em;
    }
    
    .related-arrow {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .related-articles-link {
        padding: 10px 15px;
        font-size: 0.95em;
        gap: 10px;
        flex-direction: column;
        text-align: center;
    }
    
    .related-arrow {
        transform: rotate(90deg);
    }
    
    .related-articles-link:hover .related-arrow {
        transform: rotate(90deg) translateX(5px);
    }
}

.original-text {
    margin-top: 15px;
    padding: 10px;
    background: rgba(229, 169, 7, 0.1);
    border-radius: 6px;
    border-left: 3px solid #E5A907;
}

.original-text summary {
    cursor: pointer;
    font-size: 0.9em;
    color: #E5A907;
    font-weight: 600;
    margin-bottom: 10px;
}

.original-text p {
    margin: 10px 0 0 0;
    font-style: italic;
    color: #666;
    font-size: 0.95em;
}

/* Lightbox Modal */
.gnp-lightbox-modal {
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.9);
    backdrop-filter: blur(5px);
    display: none;
}

.gnp-lightbox-content {
    position: relative;
    margin: auto;
    padding: 20px;
    width: 90%;
    max-width: 1200px;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.gnp-lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10000;
    user-select: none;
}

.gnp-lightbox-close:hover,
.gnp-lightbox-close:focus {
    color: #E5A907;
    text-decoration: none;
}

#gnp-lightbox-image {
    max-width: 100%;
    max-height: 80%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
}

.gnp-lightbox-caption {
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 16px;
    margin-top: 10px;
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .gnp-lightbox-content {
        padding: 10px;
    }
    
    .gnp-lightbox-close {
        top: 10px;
        right: 20px;
        font-size: 30px;
    }
    
    #gnp-lightbox-image {
        max-height: 70%;
    }
}

