/* Color Palette based on 'TATLER-VIETNAM' */
:root {
    --color-1: rgba(242, 214, 133, 1); /* Main Yellow */
    --color-2: rgba(242, 172, 87, 1);  /* Orange */
    --color-3: rgba(165, 111, 64, 1);  /* Brown Light */
    --color-4: rgba(140, 83, 50, 1);   /* Brown Dark */
    --color-5: rgba(89, 1, 1, 1);      /* Deep Red */
}

/* Tailwind Customization Override */
.text-primary {
    color: var(--color-4);
}

.bg-primary {
    background-color: var(--color-2);
}

/* Fonts */
body {
    font-family: 'Noto Sans KR', 'Noto Sans SC', sans-serif;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate3d(0, 20px, 0);
    }
    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

/* Toast Notification Style */
.toast {
    background-color: var(--color-5);
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    font-size: 0.9rem;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast.show {
    opacity: 1;
    transform: translateY(0);
}

/* --- 기존 style.css 내용 유지 --- */
/* (상단 :root, body, .toast 등 기존 코드는 그대로 둡니다) */

/* ... 기존 코드 ... */

/* --- Quiz Page Specific Styles (추가) --- */

/* Header Buttons */
.btn-header {
    font-size: 0.875rem;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.2s;
    color: var(--color-4);
    background-color: rgba(255, 255, 255, 0.8);
    border: 1px solid var(--color-2);
}
.btn-header:hover {
    background-color: var(--color-1);
}

/* Progress Bar */
.progress-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 2rem;
}
.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #E5E7EB; /* Gray-200 */
    transition: background-color 0.3s ease;
}
.progress-dot.active {
    background-color: var(--color-2); /* Orange */
    transform: scale(1.2);
}

/* Quiz Card Animation */
.quiz-card {
    min-height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* Answer Buttons */
.btn-answer {
    width: 100%;
    padding: 1.25rem;
    margin-bottom: 1rem;
    border: 2px solid #E5E7EB;
    border-radius: 1rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: #374151;
    background-color: white;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer; /* 명시적 포인터 */
}
.btn-answer:hover {
    border-color: var(--color-2);
    background-color: #FFFBEB; /* Yellow-50 */
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}
.btn-answer:active {
    transform: translateY(0);
}

/* Feedback States */
.btn-answer.correct {
    background-color: #D1FAE5 !important; /* Green-100 */
    border-color: #10B981 !important;      /* Green-500 */
    color: #065F46 !important;
    /* 정답 버튼은 계속 상호작용 가능 (원한다면) */
}

/* [수정] 오답 선택 시 스타일 및 호버 제거 */
.btn-answer.wrong {
    animation: shake 0.4s ease-in-out;
    
    /* 핵심: 마우스 이벤트 비활성화 -> 호버 효과 즉시 사라짐 */
    pointer-events: none;
    cursor: default;
    /* 호버로 인해 변경되었던 위치나 그림자를 조용히 원상복구 */
    transform: none !important;
    box-shadow: none !important;
    
    /* (선택사항) 오답임을 은은하게 표시하고 싶다면 투명도 조절, 원치 않으면 삭제하세요 */
    opacity: 0.6;
}

/* Shake Animation */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

/* Result Modal Overlay */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}
.modal-overlay.show {
    opacity: 1;
    pointer-events: auto;
}