/* Vietnamese Practice Page Styles */

.notice-box {
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
    padding: 15px;
    margin: 20px auto;
    max-width: 800px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.notice-box.hidden {
    display: none;
}

.notice-box i {
    font-size: 24px;
    color: #ff6b00;
}

.tips-box {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    color: white;
    box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
}

.tips-box h3 {
    margin: 0 0 15px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3em;
}

.tips-box ul {
    margin: 0;
    padding-left: 25px;
    line-height: 1.9;
}

.tips-box li {
    margin-bottom: 10px;
}

.tips-box li:last-child {
    margin-bottom: 0;
}

.tips-box strong {
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.practice-section {
    padding: 60px 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: calc(100vh - 200px);
}

.practice-controls {
    background: white;
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.control-group {
    margin-bottom: 25px;
}

.control-group:last-child {
    margin-bottom: 0;
}

.control-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 12px;
    color: #333;
    font-size: 16px;
}

.btn-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.level-select-btn,
.mode-select-btn {
    padding: 12px 24px;
    border: 2px solid #ddd;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 14px;
}

.level-select-btn:hover,
.mode-select-btn:hover {
    border-color: #ff6b00;
    transform: translateY(-2px);
}

.level-select-btn.active,
.mode-select-btn.active {
    background: #ff6b00;
    color: white;
    border-color: #ff6b00;
}

.voice-select {
    width: 100%;
    padding: 12px 16px;
    border: 2px solid #ddd;
    border-radius: 8px;
    background: white;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.voice-select:hover {
    border-color: #ff6b00;
}

.voice-select:focus {
    outline: none;
    border-color: #ff6b00;
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.practice-card {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 30px;
}

.word-display {
    margin-bottom: 40px;
}

.vietnamese-text {
    font-size: 48px;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 15px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.word-meaning {
    font-size: 24px;
    color: #7f8c8d;
    margin-bottom: 10px;
}

.pronunciation {
    font-size: 18px;
    color: #95a5a6;
    font-style: italic;
}

.audio-controls {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.btn-primary,
.btn-record,
.btn-secondary {
    padding: 15px 30px;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.btn-record {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.btn-record:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(245, 87, 108, 0.4);
}

.btn-record.recording {
    animation: pulse 1.5s infinite;
}

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

.btn-secondary {
    background: linear-gradient(135deg, #a8edea 0%, #fed6e3 100%);
    color: #333;
}

.btn-secondary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(168, 237, 234, 0.4);
}

.recognition-result {
    background: #f0f9ff;
    border: 2px solid #0ea5e9;
    border-radius: 12px;
    padding: 20px;
    margin-top: 20px;
}

.recognition-result.hidden {
    display: none;
}

.result-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 15px;
    font-weight: 600;
    color: #0369a1;
}

.result-header i {
    font-size: 24px;
}

.recognized-text {
    font-size: 28px;
    font-weight: 700;
    color: #0c4a6e;
    margin-bottom: 15px;
}

.match-indicator {
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-block;
}

.match-indicator.correct {
    background: #d1fae5;
    color: #065f46;
}

.match-indicator.incorrect {
    background: #fee2e2;
    color: #991b1b;
}

.match-indicator.partial {
    background: #fef3c7;
    color: #92400e;
}

.progress-container {
    margin-top: 30px;
}

.progress-bar {
    width: 100%;
    height: 12px;
    background: #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 10px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #10b981 0%, #059669 100%);
    transition: width 0.5s ease;
}

.progress-text {
    text-align: center;
    font-weight: 600;
    color: #6b7280;
}

.score-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.score-item {
    background: white;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    gap: 20px;
}

.score-item i {
    font-size: 36px;
    color: #ff6b00;
}

.score-label {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 5px;
}

.score-value {
    font-size: 28px;
    font-weight: 700;
    color: #2c3e50;
}

.tips-section {
    background: white;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.tips-section h3 {
    text-align: center;
    margin-bottom: 30px;
    font-size: 24px;
    color: #2c3e50;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.tip-card {
    border: 2px solid #f3f4f6;
    border-radius: 10px;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
}

.tip-card:hover {
    border-color: #ff6b00;
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.2);
}

.tip-card i {
    font-size: 36px;
    color: #ff6b00;
    margin-bottom: 15px;
}

.tip-card h4 {
    margin-bottom: 10px;
    color: #2c3e50;
}

.tip-card p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
}

/* Responsive Design */
@media (max-width: 768px) {
    .vietnamese-text {
        font-size: 36px;
    }
    
    .word-meaning {
        font-size: 20px;
    }
    
    .audio-controls {
        flex-direction: column;
    }
    
    .btn-primary,
    .btn-record,
    .btn-secondary {
        width: 100%;
        justify-content: center;
    }
    
    .practice-card {
        padding: 25px;
    }
    
    .score-card {
        grid-template-columns: 1fr;
    }
}
