/* 초록색 포인트 컬러 기반 CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
    background: #ffffff;
    min-height: 100vh;
    color: #2d3748;
    line-height: 1.6;
}

.container {
    max-width: 480px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #ffffff;
    box-shadow: 0 0 30px rgba(0,0,0,0.05);
}

/* 페이지 전환 */
.page {
    display: none;
}

.page.active {
    display: block;
}

/* 헤더 */
.header {
    text-align: center;
    margin-bottom: 40px;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: #059669;
}

/* 랜딩 페이지 */
.hero-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    color: #2d3748;
}

.hero-title {
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 20px;
    color: #1a202c;
}

.highlight {
    background: linear-gradient(90deg, #059669, #10b981);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-description {
    font-size: 16px;
    color: #4a5568;
    margin-bottom: 40px;
}

.feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 50px;
}

.feature-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    color: #4a5568;
}

.feature-icon {
    font-size: 20px;
}

.start-button {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 18px;
    font-weight: 600;
    padding: 18px 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto;
    min-width: 200px;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.start-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
    background: linear-gradient(135deg, #047857, #059669);
}

.button-arrow {
    transition: transform 0.3s ease;
}

.start-button:hover .button-arrow {
    transform: translateX(4px);
}

/* 진행률 표시 */
.progress-section {
    margin-bottom: 40px;
}

.progress-bar {
    width: 100%;
    height: 4px;
    background: #e2e8f0;
    border-radius: 2px;
    overflow: hidden;
    margin-bottom: 12px;
}

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

.progress-text {
    text-align: center;
    color: #4a5568;
    font-size: 14px;
    font-weight: 500;
}

/* 질문 페이지 */
.question-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: #2d3748;
}

.question-category {
    font-size: 14px;
    color: #059669;
    margin-bottom: 8px;
    text-align: center;
    font-weight: 600;
}

.question-title {
    font-size: 24px;
    font-weight: 600;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.4;
    color: #1a202c;
}

.question-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* 리커트 척도 옵션 */
.likert-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.likert-option {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: #4a5568;
    font-weight: 500;
}

.likert-option:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.likert-option.selected {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    border-color: #059669;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

/* 강제선택 옵션 */
.forced-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.forced-option {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    color: #4a5568;
}

.forced-option:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.forced-option.selected {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    border-color: #059669;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.forced-option-label {
    font-weight: 600;
    margin-bottom: 4px;
}

.forced-option-text {
    opacity: 0.8;
    font-size: 14px;
}

.forced-option.selected .forced-option-text {
    opacity: 1;
}

/* SJT 옵션 */
.sjt-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sjt-option {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    color: #4a5568;
}

.sjt-option:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.sjt-option.selected {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    border-color: #059669;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.sjt-option-label {
    font-weight: 600;
    margin-bottom: 4px;
}

/* 행동 질문 옵션 */
.behavior-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.behavior-option {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: #4a5568;
    font-weight: 500;
}

.behavior-option:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.behavior-option.selected {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    border-color: #059669;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

/* 객관식 옵션 */
.objective-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.objective-option {
    background: #f7fafc;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    color: #4a5568;
    font-weight: 500;
}

.objective-option:hover {
    background: #edf2f7;
    border-color: #cbd5e0;
    transform: translateY(-1px);
}

.objective-option.selected {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    border-color: #059669;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

/* 네비게이션 버튼 */
.navigation-buttons {
    display: flex;
    justify-content: space-between;
    margin-top: 40px;
}

.nav-button {
    background: #e2e8f0;
    color: #4a5568;
    border: none;
    border-radius: 12px;
    padding: 12px 24px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
}

.nav-button:hover:not(:disabled) {
    background: #cbd5e0;
    transform: translateY(-1px);
}

.nav-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.next-button {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.next-button:hover:not(:disabled) {
    background: linear-gradient(135deg, #047857, #059669);
    box-shadow: 0 6px 20px rgba(5, 150, 105, 0.4);
}

/* 결과 페이지 */
.result-content {
    color: #2d3748;
    text-align: center;
}

.result-title {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: #1a202c;
}

.result-type {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 30px 20px;
    margin-bottom: 30px;
}

.type-badge {
    display: inline-block;
    background: linear-gradient(90deg, #059669, #10b981);
    color: white;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 16px;
}

.type-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 12px;
    color: #1a202c;
}

.type-description {
    font-size: 16px;
    color: #4a5568;
    line-height: 1.5;
}

.radar-chart-section {
    margin-bottom: 30px;
}

.position-map-section {
    margin-bottom: 30px;
}

.chart-container,
.position-map {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    width: 100%;
    max-width: none;
}

.chart-container {
    text-align: center;
}

.position-map {
    text-align: center;
}

.chart-container canvas,
.position-map canvas {
    max-width: 100%;
    height: auto;
}

.chart-container h3,
.position-map h3 {
    font-size: 16px;
    margin-bottom: 16px;
    color: #1a202c;
}

.detailed-scores {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.score-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #e2e8f0;
}

.score-item:last-child {
    border-bottom: none;
}

.score-label {
    font-weight: 500;
    color: #4a5568;
}

.score-value {
    font-weight: 600;
    color: #059669;
}

.score-explanation {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.score-explanation h3 {
    margin-bottom: 16px;
    text-align: center;
    color: #1a202c;
}

.explanation-item {
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.explanation-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.explanation-title {
    font-weight: 600;
    color: #059669;
    margin-bottom: 8px;
    font-size: 14px;
}

.explanation-text {
    color: #4a5568;
    line-height: 1.5;
    font-size: 14px;
}

.index-explanation {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.index-explanation h3 {
    margin-bottom: 16px;
    text-align: center;
    color: #1a202c;
}

.action-plan {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 30px;
    text-align: left;
}

.action-plan h3 {
    margin-bottom: 16px;
    text-align: center;
    color: #1a202c;
}

.action-item {
    background: #edf2f7;
    border-radius: 8px;
    padding: 12px;
    margin-bottom: 8px;
    color: #4a5568;
}

.restart-button {
    background: linear-gradient(135deg, #059669, #10b981);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    padding: 16px 32px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
}

.restart-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
    background: linear-gradient(135deg, #047857, #059669);
}

/* 결과 안내문 및 컨설팅 CTA */
.result-disclaimer {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    margin: 20px 0 30px;
    color: #4a5568;
    font-size: 14px;
    text-align: left;
}

.consulting-cta {
    margin: 24px 0 40px;
    color: #4a5568;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}

.consulting-text {
    margin: 0 0 16px;
}

.cta-button {
    display: inline-block;
    margin-top: 0;
    background: linear-gradient(135deg, #059669, #10b981);
    color: #ffffff;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 12px;
    font-weight: 600;
    font-size: 16px;
    box-shadow: 0 4px 15px rgba(5, 150, 105, 0.3);
    transition: all 0.3s ease;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(5, 150, 105, 0.4);
    background: linear-gradient(135deg, #047857, #059669);
}

/* 반응형 */
@media (max-width: 480px) {
    .container {
        padding: 16px;
    }
    
    .hero-title {
        font-size: 28px;
    }
    
    .question-title {
        font-size: 20px;
    }
    
    .chart-container,
    .position-map {
        max-width: 100%;
    }
}

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

.page.active {
    animation: fadeIn 0.5s ease;
}

/* 신뢰도 경고 */
.reliability-warning {
    background: #fef3e6;
    border: 1px solid #f6ad55;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 20px;
    color: #c05621;
    text-align: center;
    font-size: 14px;
}

.reliability-badge {
    background: #f6ad55;
    color: #744210;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: 8px;
}
