/* Styles spécifiques au jeu du Pendu */
/* Les variables CSS et styles de base sont définis dans /assets/css/style.css */

.page-header {
    text-align: center;
    padding: 3rem 2rem;
    margin-bottom: 3rem;
    position: relative;
}

.back-link {
    position: absolute;
    left: 0;
    top: 3rem;
    color: #ffb641;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #FFF480;
    transform: translateX(-5px);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.page-header .subtitle {
    font-size: 1.1rem;
    color: #b1b1b1;
}

.user-stats {
    display: flex;
    gap: 1.5rem;
    justify-content: center;
    margin-top: 1rem;
    padding: 1rem;
    background: rgba(255, 182, 65, 0.1);
    border-radius: 8px;
    font-size: 0.9rem;
    color: #ffb641;
}

.user-stats span {
    font-weight: 600;
}

.game-content {
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    padding: 3rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.game-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: var(--space-lg);
    align-items: start;
}

.hangman-drawing {
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    padding: var(--space-md);
    display: flex;
    justify-content: center;
    align-items: center;
    border: 2px solid rgba(255, 182, 65, 0.2);
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.info-box {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.15) 0%, rgba(72, 187, 120, 0.05) 100%);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid rgba(72, 187, 120, 0.3);
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.hint-box {
    background: linear-gradient(135deg, rgba(255, 182, 65, 0.15) 0%, rgba(255, 182, 65, 0.05) 100%);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 182, 65, 0.3);
    color: #ffffff;
}

.hint-box .category {
    margin-top: 0.5rem;
    color: #b1b1b1;
    font-size: 0.9rem;
}

.word-display {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 0.3rem;
    padding: var(--space-md);
    background: rgba(0, 0, 0, 0.2);
    border-radius: var(--border-radius);
    color: var(--accent);
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stats {
    display: flex;
    justify-content: space-around;
    padding: var(--space-sm);
    background: rgba(255, 255, 255, 0.02);
    border-radius: var(--border-radius);
    font-weight: 600;
}

.errors {
    color: #f56565;
}

.remaining {
    color: #48bb78;
}

.guessed-letters {
    margin-top: 1rem;
}

.guessed-letters p {
    color: #b1b1b1;
    margin-bottom: 1rem;
}

.letters-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.letter {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.2rem;
}

.letter.correct {
    background: rgba(72, 187, 120, 0.2);
    border: 2px solid #48bb78;
    color: #48bb78;
}

.letter.wrong {
    background: rgba(245, 101, 101, 0.2);
    border: 2px solid #f56565;
    color: #f56565;
}

.guess-form {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.guess-form input {
    flex: 1;
    padding: 16px 24px;
    font-size: 1.5rem;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    text-transform: uppercase;
    outline: none;
    transition: all 0.3s ease;
}

.guess-form input:focus {
    border-color: #ffb641;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 0 3px rgba(255, 182, 65, 0.1);
}

.btn-submit {
    padding: 16px 32px;
    background: #ffb641;
    color: #1b1a1f;
    border: 2px solid #ffb641;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Figtree', sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 12px rgba(255, 182, 65, 0.3);
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 182, 65, 0.4);
}

.btn-submit:active {
    transform: translateY(0);
}

.game-over {
    text-align: center;
    padding: 3rem;
    border-radius: 12px;
    margin-top: 2rem;
    animation: slideIn 0.5s ease;
}

.game-over.victory {
    background: linear-gradient(135deg, rgba(72, 187, 120, 0.2) 0%, rgba(72, 187, 120, 0.1) 100%);
    border: 2px solid #48bb78;
}

.game-over.defeat {
    background: linear-gradient(135deg, rgba(245, 101, 101, 0.2) 0%, rgba(245, 101, 101, 0.1) 100%);
    border: 2px solid #f56565;
}

.game-over h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.game-over p {
    margin-bottom: 2rem;
    font-size: 1.2rem;
}

.btn-new-game,
.btn-new-game-small {
    padding: 16px 32px;
    background: #ffb641;
    color: #1b1a1f;
    border: 2px solid #ffb641;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Figtree', sans-serif;
    text-transform: uppercase;
    box-shadow: 0 4px 12px rgba(255, 182, 65, 0.3);
}

.btn-new-game-small {
    padding: 12px 24px;
    font-size: 0.9rem;
    background: transparent;
    color: #ffb641;
}

.btn-new-game:hover,
.btn-new-game-small:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 182, 65, 0.4);
}

.action-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
    justify-content: center;
}

.inline-form {
    display: inline;
}

.btn-hint {
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(255, 182, 65, 0.2) 0%, rgba(255, 182, 65, 0.1) 100%);
    color: #ffb641;
    border: 2px solid #ffb641;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Figtree', sans-serif;
    text-transform: uppercase;
}

.btn-hint:hover {
    background: #ffb641;
    color: #1b1a1f;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 182, 65, 0.4);
}

@keyframes slideIn {
    from {
        transform: translateY(-20px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .game-container {
        grid-template-columns: 1fr;
    }
    
    .hangman-drawing {
        margin: 0 auto;
    }
    
    .word-display {
        font-size: 2rem;
        letter-spacing: 0.2rem;
    }
    
    .guess-form {
        flex-direction: column;
    }
    
    .btn-submit {
        width: 100%;
    }
}

@media (max-width: 576px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .word-display {
        font-size: 1.5rem;
        letter-spacing: 0.15rem;
    }
    
    .stats {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}
