/* style.css */
:root {
    --bg-color: #1a1a2e;     /* 짙은 남색 배경 */
    --card-color: #16213e;   /* 카드 배경색 */
    --primary-color: #0f3460; /* 포인트 색상 (진한 파랑) */
    --accent-color: #e94560;  /* 강조 색상 (분홍/빨강) */
    --text-color: #ffffff;    /* 기본 텍스트 */
    --sub-text: #c0c0c0;      /* 보조 텍스트 */
}

* {
    margin: 0; padding: 0; box-sizing: border-box;
    font-family: 'Noto Sans KR', sans-serif;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    display: flex; justify-content: center; align-items: center;
    min-height: 100vh; padding: 20px;
}

.container {
    width: 100%; max-width: 600px;
    background-color: var(--card-color);
    padding: 40px; border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
    position: relative; overflow: hidden;
}

.text-center { text-align: center; }
.highlight { color: var(--accent-color); }
.hidden-section { display: none; }
.active-section { display: block; animation: fadeIn 0.5s ease-in-out; }
.hidden-q { display: none; }
.active-q { display: block; animation: slideInRight 0.4s ease-in-out; }

/* Typography & Elements */
h1 { font-size: 2.5rem; margin-bottom: 20px; word-break: keep-all;}
.sub-title { color: var(--sub-text); margin-bottom: 30px; line-height: 1.6; }
.intro-image { font-size: 5rem; margin: 30px 0; }

/* Buttons */
.btn-primary {
    background-color: var(--accent-color); color: white;
    border: none; padding: 15px 40px; font-size: 1.2rem; font-weight: bold;
    border-radius: 50px; cursor: pointer; transition: transform 0.2s, background-color 0.2s;
}
.btn-primary:hover { transform: scale(1.05); background-color: #ff5e7e; }

/* Progress Bar */
.progress-container {
    width: 100%; height: 10px; background-color: var(--primary-color);
    border-radius: 10px; margin-bottom: 20px; overflow: hidden;
}
.progress-bar {
    height: 100%; width: 0%; background-color: var(--accent-color);
    transition: width 0.3s ease;
}
.question-count { text-align: right; color: var(--sub-text); margin-bottom: 20px; }

/* Question & Options */
.question-text { font-size: 1.5rem; margin-bottom: 30px; line-height: 1.4; word-break: keep-all; }
.options-container { display: flex; flex-direction: column; gap: 15px; }
.option-card {
    background-color: var(--primary-color);
    padding: 20px; border-radius: 15px; cursor: pointer;
    border: 2px solid transparent; transition: all 0.3s ease;
    display: flex; align-items: center;
}
.option-card:hover { border-color: var(--accent-color); transform: translateY(-3px); }
.option-input { display: none; /* 라디오 버튼 숨김 */ }
.option-text { font-size: 1.1rem; flex-grow: 1; }

/* Result Page Styles */
.result-type { font-size: 4rem; color: var(--accent-color); margin: 20px 0; letter-spacing: 5px; }
.result-title { font-size: 2rem; margin-bottom: 20px; }
.result-desc { color: var(--sub-text); line-height: 1.8; margin-bottom: 30px; word-break: keep-all; }
.result-tag { color: var(--accent-color); font-weight: bold; margin-bottom: 30px; display: block; }
.btn-secondary {
    background-color: transparent; border: 2px solid var(--sub-text);
    color: var(--sub-text); padding: 12px 30px; border-radius: 50px;
    text-decoration: none; font-weight: bold; transition: all 0.3s; display: inline-block; margin-top: 10px;
}
.btn-secondary:hover { border-color: var(--text-color); color: var(--text-color); }

/* Animations */
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes slideInRight {
    from { opacity: 0; transform: translateX(50px); }
    to { opacity: 1; transform: translateX(0); }
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .container { padding: 30px 20px; }
    h1 { font-size: 2rem; }
    .question-text { font-size: 1.3rem; }
    .option-text { font-size: 1rem; }
}