/* ========================================
   PAGE JEU - Design moderne
   Cohérent avec articles et dossiers
======================================== */

/* Liens d'achat stores */
.game-store-links {
    background: #1A1A1A;
    border-radius: 12px;
    padding: 2rem;
    margin: 3rem 0;
    border: 1px solid #333;
}

.store-links-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #FFD700;
    margin: 0 0 1.5rem 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.store-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.5rem;
    background: #2A2A2A;
    border: 1px solid #444;
    border-radius: 8px;
    text-decoration: none;
    color: #ffffff;
    transition: all 0.3s ease;
    font-weight: 600;
}

.store-link:hover {
    background: #3A3A3A;
    border-color: #E30613;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(227, 6, 19, 0.3);
}

.store-icon {
    font-size: 1.5rem;
}

.store-name {
    font-size: 0.95rem;
}

/* Store specific colors */
.store-link.steam { border-left: 4px solid #1B2838; }
.store-link.steam:hover { border-left-color: #66C0F4; }
.store-link.eshop { border-left: 4px solid #E60012; }
.store-link.eshop:hover { border-left-color: #FF6B00; }
.store-link.xbox { border-left: 4px solid #107C10; }
.store-link.xbox:hover { border-left-color: #9BF00B; }
.store-link.psn { border-left: 4px solid #003087; }
.store-link.psn:hover { border-left-color: #0070F3; }
.store-link.gog { border-left: 4px solid #86328A; }
.store-link.gog:hover { border-left-color: #B955D1; }
.store-link.epic { border-left: 4px solid #313131; }
.store-link.epic:hover { border-left-color: #FFFFFF; }
.store-link.meta { border-left: 4px solid #1C1E24; }
.store-link.meta:hover { border-left-color: #00D4FF; }

/* Section contenu lié */
.related-content {
    margin-top: 3rem;
}

.section-title {
    font-size: 1.75rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 2rem 0;
    text-transform: uppercase;
    letter-spacing: 1px;
    text-align: center;
}

/* Onglets */
.content-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border-bottom: 2px solid #333;
    overflow-x: auto;
}

.content-tabs::-webkit-scrollbar {
    height: 6px;
}

.content-tabs::-webkit-scrollbar-track {
    background: #1A1A1A;
}

.content-tabs::-webkit-scrollbar-thumb {
    background: #E30613;
    border-radius: 3px;
}

.tab-button {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 1rem 2rem;
    color: #999;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-button:hover {
    color: #ffffff;
    background: rgba(227, 6, 19, 0.1);
}

.tab-button.active {
    color: #FFD700;
    border-bottom-color: #FFD700;
}

/* Contenu des onglets */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* Gallery grid pour screenshots */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    cursor: pointer;
    aspect-ratio: 16/9;
    background: #1A1A1A;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-item-overlay {
    opacity: 1;
}

.gallery-item-overlay svg {
    width: 48px;
    height: 48px;
    color: #ffffff;
}

/* Video grid */
.video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
    gap: 2rem;
}

.video-item {
    background: #1A1A1A;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #333;
}

.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    background: #000;
}

.video-container video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.video-title {
    padding: 1rem;
    margin: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #ffffff;
}

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

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

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

.lightbox-close svg {
    width: 32px;
    height: 32px;
}

/* Responsive */
@media (max-width: 768px) {
    .store-links-grid {
        grid-template-columns: 1fr;
    }
    
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    
    .video-grid {
        grid-template-columns: 1fr;
    }
    
    .content-tabs {
        gap: 0.5rem;
    }
    
    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.85rem;
    }
}
