/* =====================================================
   AI RANK TEST STYLES - LoveSwitch
   AI 외모 진단 페이지 전용 스타일
   ===================================================== */

/* Hero Section */
.ai-rank-hero {
    padding: 140px 0 80px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ai-rank-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, rgba(244, 63, 94, 0.15) 0%, transparent 70%);
    pointer-events: none;
}

.ai-rank-hero .container {
    position: relative;
    z-index: 1;
}

.ai-rank-hero .hero-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;
}

.ai-rank-hero .hero-badge i {
    width: 16px;
    height: 16px;
}

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

.ai-rank-hero .hero-description {
    font-size: 1.125rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 48px;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 60px;
}

.hero-stats .stat-item {
    text-align: center;
}

.hero-stats .stat-value {
    display: block;
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.hero-stats .stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* =====================================================
   LOGIN REQUIRED SECTION
   ===================================================== */
.login-required-section {
    padding: 40px 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;
}

/* =====================================================
   UPLOAD SECTION
   ===================================================== */
.upload-section {
    padding: 0 0 80px;
}

.upload-container {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 24px;
    margin-bottom: 32px;
}

/* Upload Area */
.upload-area {
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    border: 2px dashed var(--glass-border);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.upload-area.dragover {
    border-color: var(--primary-color);
    background: rgba(244, 63, 94, 0.05);
}

.upload-content {
    text-align: center;
}

.upload-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 24px;
}

.upload-icon i {
    width: 40px;
    height: 40px;
    color: white;
}

.upload-content h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 8px;
}

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

.upload-content .btn {
    margin-bottom: 16px;
}

.upload-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* Upload Preview */
.upload-preview {
    position: absolute;
    inset: 0;
    background: var(--bg-primary);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.upload-preview img {
    max-width: 100%;
    max-height: 320px;
    border-radius: 12px;
    object-fit: contain;
    margin-bottom: 20px;
}

.change-image-btn {
    position: absolute;
    bottom: 20px;
    right: 20px;
}

/* Guidelines */
.upload-guidelines {
    padding: 24px;
}

.upload-guidelines h4 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 20px;
}

.upload-guidelines h4 i {
    width: 18px;
    height: 18px;
    color: var(--primary-color);
}

.guidelines-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.guideline-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.02);
}

.guideline-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.guideline-icon i {
    width: 16px;
    height: 16px;
}

.guideline-item.good .guideline-icon {
    background: rgba(16, 185, 129, 0.2);
}

.guideline-item.good .guideline-icon i {
    color: #10b981;
}

.guideline-item.bad .guideline-icon {
    background: rgba(239, 68, 68, 0.2);
}

.guideline-item.bad .guideline-icon i {
    color: #ef4444;
}

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

/* Analyze Action */
.analyze-action {
    text-align: center;
}

.analyze-action .btn-lg {
    padding: 16px 48px;
    font-size: 1.0625rem;
}

.analyze-hint {
    font-size: 0.8125rem;
    color: var(--text-muted);
    margin-top: 12px;
}

/* =====================================================
   ANALYZING SECTION
   ===================================================== */
.analyzing-section {
    padding: 60px 0 80px;
}

.analyzing-card {
    max-width: 500px;
    margin: 0 auto;
    padding: 48px 40px;
    text-align: center;
}

.analyzing-animation {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 32px;
    border-radius: 16px;
    overflow: hidden;
}

.analyzing-animation img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: scanLine 2s ease-in-out infinite;
}

@keyframes scanLine {
    0%, 100% {
        top: 0;
        opacity: 1;
    }
    50% {
        top: calc(100% - 4px);
        opacity: 1;
    }
}

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

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

/* Progress Bar */
.progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    overflow: hidden;
    margin-bottom: 32px;
}

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

/* Analyzing Steps */
.analyzing-steps {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.analyzing-steps .step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    opacity: 0.4;
    transition: all 0.3s ease;
}

.analyzing-steps .step.active {
    opacity: 1;
}

.analyzing-steps .step.completed {
    opacity: 1;
}

.analyzing-steps .step.completed i {
    color: #10b981;
}

.analyzing-steps .step i {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
}

.analyzing-steps .step span {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

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

.result-header {
    text-align: center;
    margin-bottom: 48px;
}

.result-header h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.result-header p {
    font-size: 1rem;
    color: var(--text-secondary);
}

/* Result Grid */
.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 48px;
}

/* Main Score Card */
.result-main {
    grid-column: span 2;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 40px;
    padding: 40px;
}

.result-image {
    border-radius: 16px;
    overflow: hidden;
}

.result-image img {
    width: 100%;
    height: 300px;
    object-fit: cover;
}

.result-score-area {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.rank-badge {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 24px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    box-shadow: 0 10px 40px rgba(244, 63, 94, 0.4);
}

.score-display {
    margin-bottom: 16px;
}

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

.score-max {
    font-size: 1.5rem;
    color: var(--text-muted);
}

.score-description {
    font-size: 1.0625rem;
    color: var(--text-secondary);
}

/* Detail Scores */
.result-details {
    padding: 28px;
}

.result-details h3,
.result-charms h3,
.result-celebrity h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.detail-scores {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.detail-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.detail-value {
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
}

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

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

/* Charm Tags */
.result-charms {
    padding: 28px;
}

.charm-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.charm-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 16px;
    background: rgba(244, 63, 94, 0.1);
    border: 1px solid rgba(244, 63, 94, 0.3);
    border-radius: 20px;
    font-size: 0.875rem;
    color: var(--primary-color);
}

.charm-tag i {
    width: 14px;
    height: 14px;
}

/* Celebrity Match */
.result-celebrity {
    padding: 28px;
}

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

.celebrity-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
}

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

.celebrity-avatar i {
    width: 24px;
    height: 24px;
    color: white;
}

.celebrity-info {
    flex: 1;
}

.celebrity-name {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 2px;
}

.celebrity-match {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.celebrity-percent {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
}

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

/* Rank Guide */
.rank-guide {
    padding: 32px;
}

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

.rank-list {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
}

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

.rank-item .rank-badge {
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    margin-bottom: 0;
    box-shadow: none;
}

.rank-badge.rank-s {
    background: linear-gradient(135deg, #f43f5e, #ec4899);
}

.rank-badge.rank-a {
    background: linear-gradient(135deg, #f97316, #f59e0b);
}

.rank-badge.rank-b {
    background: linear-gradient(135deg, #10b981, #14b8a6);
}

.rank-badge.rank-c {
    background: linear-gradient(135deg, #3b82f6, #6366f1);
}

.rank-badge.rank-d {
    background: linear-gradient(135deg, #6b7280, #9ca3af);
}

.rank-info {
    display: flex;
    flex-direction: column;
}

.rank-range {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.rank-desc {
    font-size: 0.75rem;
    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) {
    .ai-rank-hero h1 {
        font-size: 2.5rem;
    }
    
    .upload-container {
        grid-template-columns: 1fr;
    }
    
    .result-main {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .result-image {
        max-width: 300px;
        margin: 0 auto;
    }
}

@media (max-width: 768px) {
    .ai-rank-hero {
        padding: 120px 0 60px;
    }
    
    .ai-rank-hero h1 {
        font-size: 2rem;
    }
    
    .ai-rank-hero .hero-description {
        font-size: 1rem;
    }
    
    .ai-rank-hero .hero-description br {
        display: none;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 24px;
    }
    
    .login-required-card {
        padding: 40px 24px;
    }
    
    .login-buttons {
        flex-direction: column;
    }
    
    .login-buttons .btn {
        width: 100%;
    }
    
    .upload-area {
        min-height: 300px;
    }
    
    .result-grid {
        grid-template-columns: 1fr;
    }
    
    .result-main {
        grid-column: span 1;
    }
    
    .result-actions {
        flex-direction: column;
        padding: 0 20px;
    }
    
    .result-actions .btn {
        width: 100%;
    }
    
    .rank-list {
        gap: 20px;
    }
    
    .analyzing-steps {
        gap: 16px;
    }
    
    .analyzing-steps .step span {
        display: none;
    }
}

@media (max-width: 480px) {
    .ai-rank-hero h1 {
        font-size: 1.75rem;
    }
    
    .rank-badge {
        width: 80px;
        height: 80px;
        font-size: 2.5rem;
    }
    
    .score-value {
        font-size: 3rem;
    }
    
    .cta-content {
        padding: 32px 20px;
    }
}
