/**
 * File: /sisme-games-editor/assets/css/frontend/hero-section.css
 * Hero Section
 */

/* ========================================
   🎮 HERO SECTION - CONTAINER PRINCIPAL
======================================== */

.sisme-game-hero {
    /* STRUCTURE SOLIDE */
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 40px;
    box-sizing: border-box;
    
    /* Styles visuels conservés */
    background: linear-gradient(135deg, #1e1e1e 0%, #2a2a2a 100%);
    border-radius: 12px;
    color: #c7d5e0;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.4),
        0 8px 24px rgba(0, 0, 0, 0.2);
    animation: heroFadeIn 0.8s ease-out;
}

@keyframes heroFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   🎮 HERO SECTION - SECTIONS DESCRIPTIVES
======================================== */

.sisme-game-sections {
    margin-top: 30px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.sisme-game-sections h2 {
    color: #ffffff;
    font-size: 1.5rem;
    margin: 0 0 25px 0;
    text-align: center;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.sisme-game-section {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.sisme-game-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.sisme-game-section h3 {
    color: #66c0f4;
    font-size: 1.25rem;
    margin: 0 0 15px 0;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.sisme-game-section p {
    line-height: 1.6;
    margin-bottom: 12px;
    color: #c7d5e0;
    font-size: 0.95rem;
}

.sisme-game-section-image {
    margin: 20px 0;
    text-align: center;
}

.sisme-section-image {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .sisme-game-sections {
        margin-top: 20px;
        padding: 20px;
    }
    
    .sisme-game-sections h2 {
        font-size: 1.25rem;
    }
    
    .sisme-game-section h3 {
        font-size: 1.1rem;
    }
    
    .sisme-game-section p {
        font-size: 0.9rem;
    }
}

/* ========================================
   📺 GALERIE MÉDIA - COLONNE GAUCHE
======================================== */

.sisme-game-media {
    /* STRUCTURE SOLIDE */
    flex: 2;
    min-width: 300px;
    margin-right: 40px;
    position: relative;
}

/* Zone d'affichage principal */
.sisme-main-media-display {
    /* STRUCTURE SOLIDE */
    width: 100%;
    height: 0;
    padding-bottom: 56.25%; /* Ratio 16:9 */
    position: relative;
    overflow: hidden;
    
    /* Styles visuels conservés */
    border-radius: 8px;
    background: #000;
    border: 2px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
}

.sisme-main-media-display:hover {
    border-color: rgba(102, 192, 244, 0.3);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.sisme-main-media-display iframe,
.sisme-main-media-display img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease;
}

.sisme-main-media-display:hover img {
    transform: scale(1.02);
}

.sisme-main-media-display img.sisme-fading {
    opacity: 0;
}

.sisme-main-media-display img.sisme-appearing {
    animation: imageAppear 0.4s ease-out forwards;
}

@keyframes imageAppear {
    from {
        opacity: 0;
        transform: scale(1.03);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.sisme-main-media-display iframe {
    width: 100%;
    height: 100%;
    border: none;
    transition: opacity 0.3s ease-in-out, transform 0.3s ease;
}

.sisme-main-media-display iframe.sisme-fading {
    opacity: 0;
}

.sisme-main-media-display iframe.sisme-appearing {
    animation: mediaAppear 0.4s ease-out forwards;
}

@keyframes mediaAppear {
    from {
        opacity: 0;
        transform: scale(1.03);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ========================================
   🖼️ GALERIE DE NAVIGATION
======================================== */

.sisme-media-gallery {
    /* STRUCTURE SOLIDE */
    display: flex;
    gap: 10px;
    margin-top: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
    width: 100%;
    
    /* Scrollbar conservée */
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.sisme-media-gallery::-webkit-scrollbar {
    height: 6px;
}

.sisme-media-gallery::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sisme-media-gallery::-webkit-scrollbar-thumb {
    background: rgba(102, 192, 244, 0.4);
    border-radius: 3px;
}

.sisme-media-gallery::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 192, 244, 0.6);
}

/* Miniatures */
.sisme-media-thumb {
    /* STRUCTURE SOLIDE */
    flex-shrink: 0;
    width: 120px;
    height: 68px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    
    /* Styles visuels conservés */
    border-radius: 6px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.sisme-media-thumb:hover {
    border-color: #66c0f4;
    box-shadow: 0 6px 16px rgba(102, 192, 244, 0.3);
}

.sisme-media-thumb.active {
    border-color: #66c0f4;
    box-shadow: 
        0 0 16px rgba(102, 192, 244, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.3);
}

.sisme-media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.sisme-media-thumb:hover img {
    transform: scale(1.1);
}

/* Indicateur trailer conservé */
.sisme-media-thumb.trailer::after {
    content: "▶";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
    pointer-events: none;
    border: 2px solid rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(4px);
}

.sisme-media-thumb.trailer:hover::after {
    background: rgba(102, 192, 244, 0.9);
    border-color: #66c0f4;
    transform: translate(-50%, -50%) scale(1.1);
}

/* ========================================
   📋 INFORMATIONS JEU - COLONNE DROITE
======================================== */

.sisme-game-meta-container {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    padding: 25px;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    position: sticky;
    top: 20px;
    z-index: 10;
    overflow-y: auto;
}

.sisme-game-meta-container::-webkit-scrollbar {
    width: 6px;
}

.sisme-game-meta-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.sisme-game-meta-container::-webkit-scrollbar-thumb {
    background: rgba(102, 192, 244, 0.4);
    border-radius: 3px;
}

.sisme-game-info {
    flex: 1;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.sisme-game-modes {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sisme-game-title {
    /* STRUCTURE SOLIDE */
    margin: 0 0 20px 0;
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.2;
    
    /* Styles visuels conservés */
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.sisme-game-description {
    margin-bottom: 30px;
    font-size: 1rem;
    line-height: 1.6;
    color: #c7d5e0;
}

.sisme-game-meta {
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    flex-direction: column;
}

.sisme-meta-row {
    display: flex;
    align-items: flex-start;
    margin-bottom: 15px;
    gap: 10px;
    flex-direction: column;
}

.sisme-meta-row:last-child {
    margin-bottom: 0;
}

.sisme-meta-label {
    font-weight: bold;
    min-width: 100px;
    color: #66c0f4;
}

.sisme-game-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sisme-mode-tag, .sisme-tag {
    padding: 6px 12px;
    font-size: 0.85rem;
    cursor: pointer;
    border-radius: 20px;
    transition: all 0.3s ease;
    text-transform: capitalize;
    font-weight: 500;
    border: 1px solid
}

.sisme-developer-info {
    display: flex;
    flex-direction: column;
}

.sisme-tag {
    background: rgba(102, 192, 244, 0.2);
    color: #66c0f4;
    border: 1px solid rgba(102, 192, 244, 0.3);
}

.sisme-mode-tag {
    border: 1px solid rgba(212, 163, 115, 0.3);
    background: rgba(212, 163, 115, 0.2);
    color: #d4a373;
    
}

.sisme-tag:hover {
    background: rgba(102, 192, 244, 0.3);
    transform: translateY(-1px);
}

.sisme-mode-tag:hover {
    background: rgba(212, 163, 115, 0.3);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(212, 163, 115, 0.2);
}

.sisme-platforms {
    display: flex;
    gap: 12px;
    align-items: center;
}

.sisme-dev-publish-div {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.sisme-publisher-info {
    display: flex;
    flex-direction: column;
}

/* ========================================
   💰 SECTION PRIX ET BOUTIQUES
======================================== */

.sisme-store-links {
    display: flex;
    gap: 12px;
    justify-content: space-between;
    width: 100%;
}

.sisme-store-icon {
    flex: 1;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    
    /* Fond blanc subtil pour la transparence */
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    
    /* Ombres et transitions */
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.1),
        0 2px 6px rgba(0, 0, 0, 0.05);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Position relative pour les effets */
    position: relative;
    overflow: hidden;
}

/* État normal - cliquable */
.sisme-store-icon:not(.sisme-store-icon--disabled)::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        transparent 100%);
    transition: left 0.5s ease;
}

.sisme-store-icon:not(.sisme-store-icon--disabled):hover::before {
    left: 100%;
}

.sisme-store-icon:not(.sisme-store-icon--disabled):hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.15),
        0 4px 12px rgba(0, 0, 0, 0.1);
    border-color: rgba(102, 192, 244, 0.4);
}

/* État désactivé - grisé */
.sisme-store-icon--disabled {
    background: rgba(200, 200, 200, 0.3);
    border-color: rgba(150, 150, 150, 0.2);
    cursor: not-allowed;
    opacity: 0.6;
}

.sisme-store-icon--disabled img {
    filter: grayscale(100%) brightness(0.8);
}

/* Images communes */
.sisme-store-icon img {
    width: 85%;
    height: 85%;
    object-fit: contain;
    transition: transform 0.3s ease, filter 0.3s ease;
    z-index: 1;
    position: relative;
}

.sisme-store-icon:not(.sisme-store-icon--disabled):hover img {
    transform: scale(1.1);
}

/* Responsive pour mobile */
@media (max-width: 768px) {
    .sisme-store-links {
        gap: 8px;
    }
    
    .sisme-store-icon {
        border-radius: 8px;
    }
    
    .sisme-store-icon img {
        width: 80%;
        height: 80%;
    }
}


/* ========================================
   📱 RESPONSIVE DESIGN - STRUCTURE SOLIDE
======================================== */

@media (max-width: 768px) {
    .sisme-game-hero {
        flex-direction: column;
        padding: 30px 20px;
    }
    
    .sisme-game-media {
        width: -webkit-fill-available;
        margin-right: 0;
        margin-bottom: 30px;
    }
    
    .sisme-game-title {
        font-size: 2rem;
    }
    
    .sisme-store-links {
        flex-direction: row;
        flex-wrap: wrap;
    }
    
    .sisme-store-btn {
        flex: 1;
        min-width: 140px;
        padding: 12px 16px;
        font-size: 0.85rem;
    }
    
    .sisme-media-gallery {
        justify-content: center;
        gap: 8px;
    }
    
    .sisme-media-thumb {
        width: 100px;
        height: 56px;
    }
}

@media (max-width: 480px) {
    .sisme-game-hero {
        padding: 20px 15px;
    }
    
    .sisme-game-title {
        font-size: 1.75rem;
    }
    
    .sisme-game-meta,
    .sisme-price-section {
        padding: 15px;
    }
    
    .sisme-store-links {
        flex-direction: column;
    }
    
    .sisme-store-btn {
        min-width: auto;
    }
    
    .sisme-media-thumb {
        width: 80px;
        height: 45px;
    }
    
    .sisme-meta-row {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .sisme-meta-label {
        min-width: auto;
    }
}