/* frontend/css/kosakata.css */

/* Kartu Belajar */
.vocab-card {
    background-color: white;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative; /* Untuk positioning badge */
}
.vocab-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
}
.card-lang-id {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e3a8a; /* slate-800 */
}
.card-lang-en {
    font-size: 1.25rem;
    font-weight: 500;
    color: #1d4ed8; /* blue-700 */
}
.card-phonetic {
    font-size: 1rem;
    font-style: italic;
    color: #64748b; /* slate-500 */
    margin-bottom: 1rem;
}
.card-speak-btn {
    background: none;
    border: none;
    cursor: pointer;
    align-self: center;
    color: #3b82f6; /* blue-500 */
    transition: color 0.2s;
}
.card-speak-btn:hover {
    color: #1d4ed8; /* blue-700 */
}
.mastery-badge {
    position: absolute;
    top: -10px;
    right: -10px;
    background-color: #f59e0b; /* amber-500 */
    color: white;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: bold;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}


/* Area Kuis */
.quiz-container {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    max-width: 600px;
    margin: 0 auto;
}
.question-text {
    font-size: 2rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 2rem;
}
.answer-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}
.answer-btn {
    padding: 1rem;
    border: 2px solid #d1d5db; /* gray-300 */
    border-radius: 8px;
    background-color: white;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}
.answer-btn:hover:not(:disabled) {
    border-color: #3b82f6;
    background-color: #eff6ff;
}
.answer-btn.correct {
    background-color: #10b981; /* green-500 */
    color: white;
    border-color: #059669; /* green-600 */
}
.answer-btn.incorrect {
    background-color: #ef4444; /* red-500 */
    color: white;
    border-color: #dc2626; /* red-600 */
}
.answer-btn:disabled {
    cursor: not-allowed;
}

.phonetic-display {
    margin-top: 1.5rem;
    font-style: italic;
    color: #475569; /* slate-600 */
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Modal khusus kosakata agar tidak bentrok */
#kosakata-scoreModal {
    background-color: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1050; /* Pastikan di atas modal lain */
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}
#kosakata-scoreModal:not(.hidden) {
    opacity: 1;
    pointer-events: auto;
}
#kosakata-scoreModal .modal-content {
    background-color: white;
    padding: 2rem;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
#kosakata-scoreModal:not(.hidden) .modal-content {
    transform: scale(1);
}
.quiz-progress-text {
    color: #64748b; /* Warna abu-abu (slate-500) agar tidak terlalu mencolok */
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem; /* Memberi jarak ke pertanyaan di bawahnya */
    text-align: center; /* Memastikan teks di tengah */
}
