/* MBTI 테스트 페이지 스타일 */
.mbti-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px 20px 80px;
    min-height: 100vh;
    padding-bottom: calc(50px + 20px); /* 스크롤버튼 + 띠배너1번 + 띠배너여백 + 고정배너 + 여백 */
}

.mbti-header {
    text-align: center;
    margin-bottom: 30px;
}

.mbti-title {
    font-size: 42px;
    font-weight: 700;
    color: #2D2D2D;
    margin-bottom: 12px;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8), 0 0 10px rgba(255, 182, 193, 0.5);
}

.mbti-subtitle {
    font-size: 18px;
    color: #5A5A5A;
    font-weight: 500;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* 진행 상태 */
.progress-section {
    margin-bottom: 30px;
    animation: fadeInDown 0.6s ease;
}

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

.progress-fill {
    height: 100%;
    background: white;
    border-radius: 10px;
    transition: width 0.3s ease;
    width: 0%;
}

.progress-text {
    text-align: center;
    color: white;
    font-size: 16px;
    font-weight: 500;
}

/* 질문 영역 */
.question-section {
    animation: fadeInUp 0.6s ease;
}

.question-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    box-shadow: var(--shadow-lg);
}

.question-text {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.answers {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.answer-btn {
    padding: 20px 24px;
    background: #fafafa;
    border: 2px solid #f0f0f0;
    border-radius: var(--radius-md);
    font-size: 16px;
    font-weight: 500;
    color: var(--text-dark);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-align: left;
    font-family: 'Pretendard', sans-serif;
    line-height: 1.6;
}

.answer-btn:hover {
    transform: translateX(8px);
    border-color: var(--primary-pink);
    background: var(--gradient-2);
    box-shadow: var(--shadow-sm);
}

.answer-btn:active {
    transform: translateX(4px);
}

/* 결과 영역 */
.result-section {
    animation: fadeInUp 0.6s ease;
}

.result-section.hidden {
    display: none;
}

.result-card {
    background: white;
    border-radius: var(--radius-xl);
    padding: 40px 30px;
    box-shadow: var(--shadow-lg);
}

.result-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.result-icon {
    font-size: 64px;
    margin-bottom: 16px;
    animation: float 3s ease-in-out infinite;
}

.result-type {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.result-subtitle {
    font-size: 16px;
    color: var(--text-light);
}

.type-description {
    text-align: center;
    margin: 30px 0;
    padding: 24px;
    background: var(--gradient-2);
    border-radius: var(--radius-lg);
}

.type-name {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.type-desc {
    font-size: 16px;
    color: var(--text-medium);
    line-height: 1.8;
}

.type-details {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 30px 0;
}

.detail-item {
    padding: 20px;
    background: #fafafa;
    border-radius: var(--radius-md);
    border-left: 4px solid var(--primary-pink);
    transition: all 0.3s ease;
}

.detail-item:hover {
    background: #f5f5f5;
    transform: translateX(4px);
}

.detail-label {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.detail-content {
    font-size: 15px;
    color: var(--text-medium);
    line-height: 1.8;
}

/* 공유 섹션 */
.share-section {
    text-align: center;
    margin: 30px 0;
    padding: 24px;
    background: linear-gradient(135deg, #fff5f5 0%, #ffeef0 100%);
    border-radius: var(--radius-lg);
}

.share-text {
    font-size: 16px;
    color: var(--text-medium);
    margin-bottom: 16px;
    font-weight: 500;
}

.share-btn {
    padding: 14px 28px;
    background: var(--gradient-1);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-sm);
    font-family: 'Pretendard', sans-serif;
}

.share-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.share-btn:active {
    transform: translateY(0);
}

/* 다시하기 버튼 */
.retry-btn {
    width: 100%;
    padding: 16px 32px;
    background: var(--gradient-1);
    border: none;
    border-radius: var(--radius-md);
    color: white;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--shadow-md);
    margin-top: 20px;
    font-family: 'Pretendard', sans-serif;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.retry-btn:active {
    transform: translateY(0);
}

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

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

/* 반응형 */
@media (max-width: 768px) {
    .mbti-container {
        padding: 20px 16px 70px;
    }
    
    .mbti-title {
        font-size: 32px;
    }
    
    .question-card,
    .result-card {
        padding: 30px 20px;
    }
    
    .question-text {
        font-size: 20px;
        min-height: 60px;
    }
    
    .answer-btn {
        padding: 18px 20px;
        font-size: 15px;
    }
    
    .result-type {
        font-size: 28px;
    }
    
    .type-name {
        font-size: 24px;
    }
}
