/* ===== VIEWS - STYLES SPÉCIFIQUES AUX VUES ===== */

/* ===== VUE MENU PRINCIPAL ===== */

.menu-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    padding: var(--spacing-xl) 0;
}

.welcome-section {
    margin-bottom: var(--spacing-xxl);
}

.welcome-section h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--primary-shadow);
    margin-bottom: var(--spacing-md);
}

.welcome-section p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Statistiques rapides */
.quick-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-xxl);
}

/* Actions du menu */
.menu-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
    margin-bottom: var(--spacing-xl);
}

/* ===== VUE JEU ===== */

/* Responsive géré dans responsive.css */

.game-area {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: var(--spacing-xl);
    gap: var(--spacing-xl);
}

/* Bouton Passer - Version mobile sous la catégorie */
.mobile-next-word {
    text-align: center;
    margin: 2px 0 var(--spacing-xs) 0;
    padding: 0;
}

.mobile-next-word .btn {
    font-size: 0.85rem;
    padding: 0.5rem 0.8rem;
    min-width: 100px;
    opacity: 0.9;
}

/* Bouton Passer - Version desktop en bas */
.desktop-next-word {
    text-align: center;
    margin: var(--spacing-lg) 0;
}

.desktop-next-word .btn {
    font-size: 1.1rem;
    padding: 0.8rem 1.5rem;
    min-width: 160px;
}

.next-word-section .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(243, 156, 18, 0.4);
}

.top-section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xl);
    width: 100%;
}

/* Interface stats du jeu */
.game-header {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-xl);
    width: 100%;
    margin-bottom: var(--spacing-md);
}

.game-stats {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-md);
    width: 100%;
    margin-bottom: var(--spacing-md);
}

.stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    padding: 0.8rem;
    border: 1px solid var(--border-light);
}

.stat-item .stat-label {
    font-size: 0.8rem;
    color: var(--text-secondary);
    margin-bottom: 0.3rem;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.stat-item .stat-value {
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-primary);
}

.wrong-letters-stat .stat-value {
    min-height: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-info {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}


/* ===== VUE STATISTIQUES ===== */

.stats-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--spacing-xl) 0;
}

.stats-content h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--primary-shadow);
    margin-bottom: var(--spacing-xxl);
}

/* Vue d'ensemble statistiques */
.stats-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-xxl);
}

/* Section achievements */
.achievements-section {
    margin-bottom: var(--spacing-xxl);
}

.achievements-section h3 {
    font-size: 2rem;
    color: var(--primary-color);
    text-align: center;
    margin-bottom: var(--spacing-xl);
}

.achievements-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

/* Actions statistiques */
.stats-actions {
    text-align: center;
}

.stats-actions .btn {
    margin: 0 var(--spacing-md);
}

/* ===== VUE CHANGELOG ===== */

.changelog-content {
    max-width: 1000px;
    margin: 0 auto;
    padding: var(--spacing-xl) 0;
}

.changelog-content h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--primary-shadow);
    margin-bottom: var(--spacing-xl);
}

.changelog-intro {
    text-align: center;
    margin-bottom: var(--spacing-xxl);
}

.changelog-intro p {
    font-size: 1.2rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Timeline des changements */
.changelog-timeline {
    margin-bottom: var(--spacing-xxl);
}

.changelog-day {
    margin-bottom: var(--spacing-xxl);
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-primary);
}

.day-header {
    margin-bottom: var(--spacing-xl);
    padding-bottom: var(--spacing-md);
    border-bottom: 2px solid var(--border-primary);
}

.day-date {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--primary-color);
    text-shadow: 0 0 10px var(--primary-shadow);
}

/* Liste des changements */
.changelog-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.changelog-list li {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-md);
    color: var(--text-secondary);
    padding-left: 0;
}

.changelog-list li strong {
    color: var(--text-primary);
}

/* Actions du changelog */
.changelog-actions {
    text-align: center;
}

.changelog-actions .btn {
    margin: 0 var(--spacing-md);
}

/* ===== VUE PARAMÈTRES ===== */

/* Paramètres de niveaux de difficulté */
.level-settings-section {
    margin-bottom: var(--spacing-xl);
}

.level-controls-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-md);
    margin: var(--spacing-lg) 0;
}

.level-control-card {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    padding: var(--spacing-lg);
    border: 1px solid var(--border-primary);
    position: relative;
    transition: all var(--transition-normal);
}

.level-control-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.level-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-sm);
}

.level-header h4 {
    margin: 0;
    font-size: 1.2rem;
    color: var(--text-primary);
}

.level-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin: 0;
    line-height: 1.4;
}

.level-indicator {
    position: absolute;
    top: var(--spacing-sm);
    right: var(--spacing-sm);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    opacity: 0.8;
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg-tertiary);
    transition: var(--transition-normal);
    border-radius: 24px;
    border: 1px solid var(--border-primary);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
    background: var(--text-secondary);
    transition: var(--transition-normal);
    border-radius: 50%;
}

.toggle-switch input:checked + .toggle-slider {
    background: var(--toggle-color, var(--primary-color));
    border-color: var(--toggle-color, var(--primary-color));
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(26px);
    background: white;
}

.level-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-lg);
    border-top: 1px solid var(--border-primary);
}

.level-summary {
    font-size: 0.9rem;
    padding: var(--spacing-xs) var(--spacing-sm);
    border-radius: var(--radius-sm);
    transition: all var(--transition-fast);
}

.level-summary.all-levels {
    background: rgba(46, 213, 115, 0.2);
    color: var(--success-color);
    border: 1px solid rgba(46, 213, 115, 0.3);
}

.level-summary.some-levels {
    background: rgba(243, 156, 18, 0.2);
    color: var(--primary-color);
    border: 1px solid rgba(243, 156, 18, 0.3);
}

.level-summary.no-levels {
    background: rgba(231, 76, 60, 0.2);
    color: var(--error-color);
    border: 1px solid rgba(231, 76, 60, 0.3);
    animation: pulse 2s infinite;
}

.settings-content {
    max-width: 900px;
    margin: 0 auto;
    padding: var(--spacing-lg);
}

.settings-content h2 {
    text-align: center;
    font-size: 2.5rem;
    color: var(--primary-color);
    text-shadow: 0 0 20px var(--primary-shadow);
    margin-bottom: var(--spacing-xl);
}

.settings-section {
    margin-bottom: var(--spacing-xxl);
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: var(--spacing-xl);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-primary);
}

.settings-section h3 {
    font-size: 1.8rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

/* Grid des paramètres de difficulté */
.settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
    max-width: 800px;
    margin: 0 auto;
}

.setting-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: var(--radius-md);
    padding: var(--spacing-lg);
    border: 1px solid var(--border-secondary);
    transition: all 0.3s ease;
}

.setting-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(243, 156, 18, 0.2);
}

.setting-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.setting-header h4 {
    color: var(--text-primary);
    font-size: 1.2rem;
    margin: 0;
}

.setting-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 30px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #333;
    border-radius: 30px;
    transition: 0.3s;
    border: 2px solid var(--border-secondary);
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 22px;
    width: 22px;
    left: 2px;
    bottom: 2px;
    background-color: var(--text-secondary);
    border-radius: 50%;
    transition: 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(30px);
    background-color: white;
}

/* Contrôles des catégories */
.categories-controls {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.btn-small {
    padding: 0.4rem 0.8rem;
    font-size: 0.85rem;
}

/* Grille des catégories dans les paramètres */
.settings-section .categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    min-height: 200px;
    max-height: 400px;
    height: auto;
    overflow-y: auto;
    padding: 0.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    background: rgba(0, 0, 0, 0.1);
}

.settings-section .category-item {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    cursor: pointer;
    margin-bottom: 0.25rem;
}

.settings-section .category-item:hover {
    border-color: var(--primary-color);
    background: rgba(243, 156, 18, 0.1);
}

.settings-section .category-item.selected {
    border-color: var(--primary-color);
    background: rgba(243, 156, 18, 0.2);
}

.settings-section .category-checkbox {
    margin-right: 0.5rem;
    cursor: pointer;
}

.settings-section .category-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.settings-section .category-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.settings-section .category-name {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 500;
    color: var(--text-primary);
}

.settings-section .category-count {
    font-size: 0.8rem;
    color: var(--text-secondary);
    opacity: 0.8;
    margin-left: auto;
    transition: all 0.3s ease;
}

.settings-section .category-levels {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 0.2rem;
}

.settings-section .level-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    padding: 0.1rem 0.4rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.settings-section .level-badge:hover {
    transform: scale(1.05);
    background: rgba(255, 255, 255, 0.1);
}

.settings-section .level-easy {
    color: #2ed573;
    border-color: rgba(46, 213, 115, 0.3);
}

.settings-section .level-medium {
    color: #f39c12;
    border-color: rgba(243, 156, 18, 0.3);
}

.settings-section .level-hard {
    color: #e74c3c;
    border-color: rgba(231, 76, 60, 0.3);
}

.settings-section .level-badge.level-disabled {
    opacity: 0.4;
    filter: grayscale(100%);
    border-color: rgba(255, 255, 255, 0.05);
    background: rgba(128, 128, 128, 0.05);
    cursor: not-allowed;
}

.settings-section .level-badge.level-disabled:hover {
    transform: none;
    background: rgba(128, 128, 128, 0.05);
}

/* Note: .category-name est maintenant défini avec des styles spécifiques selon le contexte:
   - Dans modal.css pour les modals de sélection de catégorie  
   - Dans .settings-section .category-name ci-dessus pour les paramètres */

/* Note: .category-count est maintenant défini avec des styles spécifiques selon le contexte :
   - Dans modal.css pour les modals 
   - Dans .settings-section .category-count ci-dessus pour les paramètres */

/* Actions des paramètres */
.settings-actions {
    text-align: center;
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    flex-wrap: wrap;
    margin-top: var(--spacing-xl);
}