/* =====================================================
   MBTI TEST STYLES - LoveSwitch
   연애 MBTI 테스트 페이지 전용 스타일
   ===================================================== */

/* =====================================================
   LOGIN REQUIRED SECTION
   ===================================================== */
.login-required-section {
    min-height: 60vh;
    display: flex;
    align-items: center;
    padding: 140px 0 80px;
}

.login-required-card {
    max-width: 500px;
    margin: 0 auto;
    padding: 60px 40px;
    text-align: center;
}

.lock-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(244, 63, 94, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.lock-icon i {
    width: 36px;
    height: 36px;
    color: var(--primary-color);
}

.login-required-card h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.login-required-card > p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 32px;
}

.login-buttons {
    display: flex;
    gap: 12px;
    justify-content: center;
}

.login-buttons .btn {
    min-width: 140px;
}

/* =====================================================
   INTRO SECTION
   ===================================================== */
.mbti-intro {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.mbti-intro::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1000px;
    height: 1000px;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.mbti-intro .container {
    position: relative;
    z-index: 1;
}

.intro-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: 30px;
    color: var(--primary-color);
    font-size: 0.875rem;
    font-weight: 500;
    margin-bottom: 24px;
}

.intro-badge i {
    width: 16px;
    height: 16px;
}

.mbti-intro h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 20px;
    line-height: 1.2;
}

.intro-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 40px;
}

.intro-features {
    display: flex;
    justify-content: center;
    gap: 48px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-icon i {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.feature-item span {
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.mbti-intro .btn-lg {
    padding: 18px 48px;
    font-size: 1.0625rem;
    margin-bottom: 60px;
}

/* Intro Types Preview */
.intro-types {
    max-width: 500px;
    margin: 0 auto;
}

.intro-types h3 {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    margin-bottom: 16px;
}

.type-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.type-badge {
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* =====================================================
   TEST SECTION
   ===================================================== */
.mbti-test {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
}

.mbti-test .container {
    max-width: 700px;
}

/* Progress */
.test-progress {
    margin-bottom: 40px;
}

.progress-info {
    text-align: center;
    margin-bottom: 12px;
}

.current-question {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.total-questions {
    font-size: 1rem;
    color: var(--text-muted);
}

.test-progress .progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.test-progress .progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    transition: width 0.5s ease;
}

/* Question Card */
.question-card {
    padding: 48px 40px;
    text-align: center;
    margin-bottom: 32px;
}

.question-number {
    display: inline-block;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 20px;
    font-size: 0.875rem;
    font-weight: 600;
    color: white;
    margin-bottom: 24px;
}

.question-text {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.5;
    margin-bottom: 40px;
}

/* Answer Options */
.answer-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.answer-btn {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px 24px;
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid var(--glass-border);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.answer-btn:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(244, 63, 94, 0.5);
}

.answer-btn.selected {
    background: rgba(244, 63, 94, 0.1);
    border-color: var(--primary-color);
}

.answer-label {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-secondary);
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.answer-btn.selected .answer-label {
    background: var(--primary-color);
    color: white;
}

.answer-text {
    font-size: 1rem;
    color: var(--text-primary);
    line-height: 1.5;
}

/* Test Navigation */
.test-navigation {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.test-navigation .btn {
    min-width: 100px;
}

.test-navigation .btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.question-dots {
    display: flex;
    gap: 8px;
}

.question-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    cursor: pointer;
}

.question-dot.answered {
    background: var(--primary-color);
}

.question-dot.current {
    background: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.3);
}

/* =====================================================
   ANALYZING SECTION
   ===================================================== */
.mbti-analyzing {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 0 80px;
}

.mbti-analyzing .analyzing-card {
    max-width: 400px;
    margin: 0 auto;
    padding: 60px 40px;
    text-align: center;
}

.analyzing-icon {
    position: relative;
    width: 100px;
    height: 100px;
    margin: 0 auto 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.analyzing-icon > i {
    width: 48px;
    height: 48px;
    color: var(--primary-color);
    position: relative;
    z-index: 2;
}

.pulse-ring {
    position: absolute;
    width: 100%;
    height: 100%;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    animation: pulse 2s ease-out infinite;
}

.pulse-ring.delay {
    animation-delay: 1s;
}

@keyframes pulse {
    0% {
        transform: scale(0.8);
        opacity: 1;
    }
    100% {
        transform: scale(1.5);
        opacity: 0;
    }
}

.mbti-analyzing h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.mbti-analyzing p {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* Loading Dots */
.loading-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
}

.loading-dots span {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--primary-color);
    animation: loadingDot 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes loadingDot {
    0%, 80%, 100% {
        transform: scale(0.6);
        opacity: 0.5;
    }
    40% {
        transform: scale(1);
        opacity: 1;
    }
}

/* =====================================================
   RESULT SECTION
   ===================================================== */
.mbti-result {
    padding: 120px 0 80px;
}

/* Result Header */
.result-header {
    text-align: center;
    margin-bottom: 48px;
}

.result-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: 20px;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.result-type {
    margin-bottom: 24px;
}

.type-code {
    display: inline-block;
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 8px;
}

.type-name {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.type-summary {
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.0625rem;
    color: var(--text-secondary);
    line-height: 1.8;
}

/* Result Grid */
.result-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 40px;
}

.result-card {
    padding: 28px;
}

.result-card h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.result-card h3 i {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

/* Trait List */
.trait-list,
.caution-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.trait-list li,
.caution-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

.trait-list li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
}

.caution-list li::before {
    content: '!';
    position: absolute;
    left: 0;
    width: 16px;
    height: 16px;
    background: rgba(251, 191, 36, 0.2);
    border-radius: 50%;
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fbbf24;
}

/* Strength Tags */
.strength-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.strength-tags .tag {
    padding: 8px 16px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.3);
    border-radius: 20px;
    font-size: 0.8125rem;
    color: #10b981;
}

/* Style Meters */
.style-meters {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.meter-item {
    display: grid;
    grid-template-columns: 80px 1fr 40px;
    align-items: center;
    gap: 12px;
}

.meter-label {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

.meter-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.meter-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    border-radius: 4px;
    transition: width 1s ease;
}

.meter-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: right;
}

/* Match Card */
.match-card {
    grid-column: span 2;
}

.match-type,
.avoid-type {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.match-code,
.avoid-code {
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
}

.match-code {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
}

.avoid-code {
    background: rgba(107, 114, 128, 0.3);
    color: var(--text-secondary);
}

.match-name,
.avoid-name {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.match-description,
.avoid-description {
    font-size: 0.9375rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 20px;
}

.compatibility {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 20px;
    border-top: 1px solid var(--glass-border);
}

.compat-label {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.compat-score {
    display: flex;
    align-items: baseline;
}

.compat-value {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1;
}

.compat-percent {
    font-size: 1.25rem;
    color: var(--primary-color);
}

/* Famous Section */
.famous-section {
    padding: 32px;
    margin-bottom: 40px;
}

.famous-section h3 {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.famous-section h3 i {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.famous-list {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.famous-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.famous-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
}

.famous-avatar i {
    width: 28px;
    height: 28px;
    color: white;
}

.famous-item span {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* Result Actions */
.result-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-bottom: 48px;
}

/* Other Types */
.other-types {
    padding: 32px;
}

.other-types h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 24px;
}

.types-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.type-preview {
    padding: 20px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--glass-border);
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.type-preview:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(244, 63, 94, 0.5);
    transform: translateY(-2px);
}

.type-preview-code {
    font-family: 'Playfair Display', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.type-preview-name {
    font-size: 0.8125rem;
    color: var(--text-secondary);
}

/* =====================================================
   CTA SECTION
   ===================================================== */
.cta-section {
    padding: 0 0 100px;
}

.cta-content {
    max-width: 600px;
    margin: 0 auto;
    padding: 48px;
    text-align: center;
}

.cta-content h2 {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 12px;
}

.cta-content p {
    font-size: 1rem;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 992px) {
    .result-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .match-card {
        grid-column: span 2;
    }
    
    .types-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .login-required-section {
        padding: 120px 0 60px;
    }
    
    .login-required-card {
        padding: 40px 24px;
    }
    
    .login-buttons {
        flex-direction: column;
    }
    
    .login-buttons .btn {
        width: 100%;
    }
    
    .mbti-intro {
        padding: 120px 0 60px;
    }
    
    .mbti-intro h1 {
        font-size: 2.5rem;
    }
    
    .intro-description {
        font-size: 1rem;
    }
    
    .intro-description br {
        display: none;
    }
    
    .intro-features {
        flex-direction: column;
        gap: 16px;
    }
    
    .question-card {
        padding: 32px 24px;
    }
    
    .question-text {
        font-size: 1.25rem;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .match-card {
        grid-column: span 1;
    }
    
    .type-code {
        font-size: 3rem;
    }
    
    .type-name {
        font-size: 1.5rem;
    }
    
    .famous-list {
        flex-wrap: wrap;
        gap: 24px;
    }
    
    .result-actions {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .result-actions .btn {
        width: 100%;
    }
    
    .types-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .mbti-intro h1 {
        font-size: 2rem;
    }
    
    .question-dots {
        display: none;
    }
    
    .meter-item {
        grid-template-columns: 70px 1fr 36px;
        gap: 8px;
    }
    
    .cta-content {
        padding: 32px 20px;
    }
}
