/* Quiz Practice CSS - 練習界面樣式 */

/* Quiz area display */
#quiz-area {
    display: none;
}

#quiz-area.active {
    display: block;
}

/* Quiz header */
.quiz-header {
    text-align: center;
    margin-bottom: 2rem;
}

/* Progress bar */
.progress-bar {
    width: 100%;
    height: 10px;
    background: var(--bg-tertiary);
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 2rem;
}

.progress-fill {
    height: 100%;
    background: var(--accent-primary);
    transition: width 0.3s ease;
}

/* Quiz statistics */
.quiz-stats {
    display: flex;
    justify-content: space-around;
    margin: 2rem 0;
    padding: 1rem;
    background: var(--bg-secondary);
    border-radius: 8px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 2rem;
    font-weight: bold;
    color: var(--accent-primary);
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

/* Quiz container */
.quiz-container {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

/* Kana display */
.kana-display {
    font-size: 8rem;
    font-weight: bold;
    color: var(--accent-primary);
    margin: 2rem 0;
}

/* Answer input */
.answer-input {
    width: 100%;
    padding: 1rem;
    font-size: 1.5rem;
    text-align: center;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 1rem;
    background: var(--bg-primary);
    color: var(--text-primary);
}

.answer-input:focus {
    outline: none;
    border-color: var(--accent-primary);
}

/* Quiz buttons */
.quiz-btn {
    padding: 1rem 3rem;
    font-size: 1.2rem;
    background: var(--accent-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.quiz-btn:hover {
    background: var(--accent-secondary);
    transform: translateY(-2px);
}

.quiz-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Result display */
.result {
    margin-top: 1rem;
    padding: 1rem;
    border-radius: 8px;
    font-size: 1.1rem;
}

.result.correct {
    background: #d4edda;
    color: #155724;
}

.result.incorrect {
    background: #f8d7da;
    color: #721c24;
}

/* Quiz actions */
.quiz-actions {
    margin-top: 2rem;
    text-align: center;
}

.back-btn {
    padding: 0.5rem 1.5rem;
    background: #6c757d;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-btn:hover {
    background: #5a6268;
}

/* Hidden class */
.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 768px) {
    .kana-display {
        font-size: 5rem;
    }
    
    .quiz-stats {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .stat-number {
        font-size: 1.5rem;
    }
}

