/* 새로운 삶 퀴즈 커스텀 스타일 */

/* 폰트 */
body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* 애니메이션 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

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

.question-container {
    animation: fadeIn 0.3s ease-out;
}

/* 결과 카드 애니메이션 */
#resultArea {
    animation: slideUp 0.4s ease-out;
}

/* 정답/오답 스타일 */
.result-correct {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border: 2px solid #10b981;
}

.result-incorrect {
    background: linear-gradient(135deg, #fee2e2 0%, #fecaca 100%);
    border: 2px solid #ef4444;
}

/* 입력 필드 포커스 효과 */
input:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* 버튼 호버 효과 */
button, a {
    transition: all 0.2s ease;
}

button:active, a:active {
    transform: scale(0.98);
}

/* 체크 아이콘 */
.check-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
}

.check-icon.correct {
    background-color: #10b981;
    color: white;
}

.check-icon.incorrect {
    background-color: #ef4444;
    color: white;
}

/* 부분 채점 결과 */
.detail-item {
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 8px;
}

.detail-item.correct {
    background-color: #d1fae5;
}

.detail-item.incorrect {
    background-color: #fee2e2;
}

/* 스크롤바 스타일 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 반응형 조정 */
@media (max-width: 640px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1rem;
    }
}

/* 다크 모드 대비 (추후 확장용) */
@media (prefers-color-scheme: dark) {
    /* 현재는 라이트 모드만 지원 */
}
