/* ================================================= */
/* 🎮 HASTRAL GAMES - CSS */
/* ================================================= */

/* Container des jeux */
.games-container {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.games-header {
    text-align: center;
    margin-bottom: 40px;
}

.games-header h2 {
    font-size: 42px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 10px;
    font-weight: bold;
}

.games-header p {
    color: var(--text);
    opacity: 0.7;
    font-size: 16px;
}

/* Grille de jeux */
.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
}

/* Carte de jeu */
.game-card {
    background: var(--panel);
    border: 2px solid rgba(102, 126, 234, 0.3);
    border-radius: 20px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.game-card:hover {
    transform: translateY(-10px);
    border-color: rgba(102, 126, 234, 0.8);
    box-shadow: 0 20px 50px rgba(102, 126, 234, 0.4);
}

/* Preview du jeu */
.game-preview {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #0a0e27 0%, #1a1a2e 50%, #16213e 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.game-preview-static {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 80px;
    transition: opacity 0.3s;
}

.game-card:hover .game-preview-static {
    opacity: 0;
}

/* Vidéo de preview */
.game-preview-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s;
}

.game-card:hover .game-preview-video {
    opacity: 1;
}

/* Badge NEW */
.game-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: linear-gradient(135deg, #ff4757, #e84142);
    color: white;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 5px 15px rgba(255, 71, 87, 0.4);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

/* Infos du jeu */
.game-info {
    padding: 20px;
}

.game-title {
    font-size: 24px;
    font-weight: bold;
    color: var(--text);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.game-title-icon {
    font-size: 28px;
}

.game-description {
    color: var(--text);
    opacity: 0.7;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

/* Tags */
.game-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 15px;
}

.game-tag {
    background: rgba(102, 126, 234, 0.2);
    color: var(--accent);
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    border: 1px solid rgba(102, 126, 234, 0.3);
}

/* Stats du jeu */
.game-stats {
    display: flex;
    justify-content: space-between;
    padding-top: 15px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.game-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.game-stat-label {
    font-size: 11px;
    color: var(--text);
    opacity: 0.6;
}

.game-stat-value {
    font-size: 16px;
    font-weight: bold;
    color: var(--accent);
}

/* Bouton Play */
.game-play-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    transition: all 0.3s;
    opacity: 0;
    transform: scale(0.8);
}

.game-card:hover .game-play-btn {
    opacity: 1;
    transform: scale(1);
}

.game-play-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(102, 126, 234, 0.6);
}

/* Section "Plus de jeux bientôt" */
.coming-soon {
    text-align: center;
    padding: 60px 20px;
    background: var(--panel);
    border-radius: 20px;
    border: 2px dashed rgba(102, 126, 234, 0.3);
}

.coming-soon-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.coming-soon h3 {
    font-size: 28px;
    color: var(--text);
    margin-bottom: 10px;
}

.coming-soon p {
    color: var(--text);
    opacity: 0.6;
    font-size: 16px;
}

/* Responsive */
@media (max-width: 768px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
    
    .games-header h2 {
        font-size: 32px;
    }
    
    .game-preview {
        height: 180px;
    }
}

/* Responsive Mobile Amélioré */
@media (max-width: 480px) {
    .games-container {
        margin: 20px auto;
        padding: 0 15px;
    }
    
    .games-header {
        margin-bottom: 25px;
    }
    
    .games-header h2 {
        font-size: 28px;
    }
    
    .games-header p {
        font-size: 14px;
    }
    
    .games-grid {
        gap: 20px;
        grid-template-columns: 1fr;
    }
    
    .game-card {
        border-radius: 15px;
    }
    
    .game-preview {
        height: 160px;
    }
    
    .game-preview-static {
        font-size: 60px;
    }
    
    .game-info {
        padding: 15px;
    }
    
    .game-title {
        font-size: 20px;
    }
    
    .game-title-icon {
        font-size: 24px;
    }
    
    .game-description {
        font-size: 13px;
    }
    
    .game-badge {
        top: 10px;
        right: 10px;
        font-size: 10px;
        padding: 5px 10px;
    }
    
    .game-play-btn {
        width: 45px;
        height: 45px;
        font-size: 18px;
        bottom: 15px;
        right: 15px;
    }
    
    .game-stats {
        padding-top: 12px;
    }
    
    .game-stat-label {
        font-size: 10px;
    }
    
    .game-stat-value {
        font-size: 14px;
    }
    
    .coming-soon {
        padding: 40px 15px;
    }
    
    .coming-soon-icon {
        font-size: 60px;
    }
    
    .coming-soon h3 {
        font-size: 22px;
    }
    
    .coming-soon p {
        font-size: 14px;
    }
}