/* 기본 스타일 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
    overflow-x: hidden;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 페이지 전환 */
.page {
    display: none;
    animation: fadeIn 0.5s ease-in-out;
}

.page.active {
    display: block;
}

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

/* 시작 페이지 */
.hero-section {
    text-align: center;
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.main-title {
    font-size: 3rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 20px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.subtitle {
    font-size: 1.5rem;
    font-weight: 400;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.description {
    margin-bottom: 40px;
}

.description p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #5a6c7d;
    margin-bottom: 10px;
}

/* 버튼 스타일 */
.primary-btn {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border: none;
    padding: 18px 40px;
    font-size: 1.2rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.3);
}

.primary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(102, 126, 234, 0.4);
}

.secondary-btn {
    background: transparent;
    color: #667eea;
    border: 2px solid #667eea;
    padding: 16px 35px;
    font-size: 1.1rem;
    font-weight: 500;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-right: 15px;
}

.secondary-btn:hover {
    background: #667eea;
    color: white;
    transform: translateY(-2px);
}

/* 질문 페이지 */
.progress-container {
    margin-bottom: 40px;
    text-align: center;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 15px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #667eea, #764ba2);
    border-radius: 4px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    color: white;
    font-size: 1.1rem;
    font-weight: 500;
}

.question-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 50px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    text-align: center;
}

.question-text {
    font-size: 1.8rem;
    font-weight: 500;
    color: #2c3e50;
    margin-bottom: 40px;
    line-height: 1.4;
}

.options-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.option-btn {
    background: rgba(255, 255, 255, 0.8);
    border: 2px solid #e0e6ed;
    padding: 20px 30px;
    font-size: 1.1rem;
    font-weight: 400;
    border-radius: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2c3e50;
}

.option-btn:hover {
    background: #667eea;
    color: white;
    border-color: #667eea;
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(102, 126, 234, 0.2);
}

/* 결과 페이지 */
.result-container {
    background: rgba(255, 255, 255, 0.95);
    padding: 60px 40px;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    text-align: center;
}

.result-title {
    font-size: 1.8rem;
    font-weight: 400;
    color: #7f8c8d;
    margin-bottom: 30px;
}

.mbti-type {
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 20px;
    letter-spacing: 0.1em;
}

.type-name {
    font-size: 2rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 30px;
}

.type-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #5a6c7d;
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.result-actions {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    .hero-section,
    .question-container,
    .result-container {
        padding: 40px 25px;
    }
    
    .main-title {
        font-size: 2.2rem;
    }
    
    .subtitle {
        font-size: 1.2rem;
    }
    
    .question-text {
        font-size: 1.4rem;
    }
    
    .mbti-type {
        font-size: 3rem;
    }
    
    .type-name {
        font-size: 1.6rem;
    }
    
    .result-actions {
        flex-direction: column;
    }
    
    .secondary-btn {
        margin-right: 0;
        margin-bottom: 15px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 1.8rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
    
    .question-text {
        font-size: 1.2rem;
    }
    
    .option-btn {
        padding: 15px 20px;
        font-size: 1rem;
    }
    
    .mbti-type {
        font-size: 2.5rem;
    }
}



/* 확장된 결과 페이지 스타일 */
.detailed-description {
    margin: 20px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.main-description {
    font-size: 1.1em;
    line-height: 1.8;
    color: #2c3e50;
    margin: 0;
}

.strengths-weaknesses {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.strengths, .weaknesses {
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.strengths {
    background: rgba(46, 204, 113, 0.1);
}

.weaknesses {
    background: rgba(231, 76, 60, 0.1);
}

.strengths h4, .weaknesses h4 {
    margin: 0 0 15px 0;
    font-size: 1.2em;
    color: #2c3e50;
}

.trait-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.trait-item {
    padding: 8px 12px;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    transition: all 0.3s ease;
}

.trait-item.strength {
    background: rgba(46, 204, 113, 0.2);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

.trait-item.weakness {
    background: rgba(231, 76, 60, 0.2);
    color: #e74c3c;
    border: 1px solid rgba(231, 76, 60, 0.3);
}

.compatibility-section {
    margin: 30px 0;
}

.compatible-types, .conflict-types {
    margin: 25px 0;
    padding: 20px;
    border-radius: 15px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.compatible-types {
    background: rgba(52, 152, 219, 0.1);
}

.conflict-types {
    background: rgba(155, 89, 182, 0.1);
}

.compatible-types h4, .conflict-types h4 {
    margin: 0 0 20px 0;
    font-size: 1.2em;
    color: #2c3e50;
}

.compatibility-item {
    margin: 15px 0;
    padding: 15px;
    border-radius: 10px;
    transition: all 0.3s ease;
}

.compatibility-item.compatible {
    background: rgba(52, 152, 219, 0.1);
    border-left: 4px solid #3498db;
}

.compatibility-item.conflict {
    background: rgba(155, 89, 182, 0.1);
    border-left: 4px solid #9b59b6;
}

.comp-type {
    font-weight: bold;
    font-size: 1.1em;
    color: #2c3e50;
    margin-bottom: 8px;
}

.comp-reason {
    font-size: 0.95em;
    line-height: 1.6;
    color: #34495e;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .strengths-weaknesses {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .trait-item {
        font-size: 0.85em;
        padding: 6px 10px;
    }
    
    .main-description {
        font-size: 1em;
    }
    
    .detailed-description,
    .strengths,
    .weaknesses,
    .compatible-types,
    .conflict-types {
        padding: 15px;
    }
}

/* 호버 효과 */
.trait-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.compatibility-item:hover {
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.detailed-description,
.strengths-weaknesses,
.compatibility-section {
    animation: fadeInUp 0.6s ease-out;
}

.strengths-weaknesses {
    animation-delay: 0.2s;
}

.compatibility-section {
    animation-delay: 0.4s;
}

