/**
 * Job Comparison - Ultra Premium Redesign
 * 10/10 Vogue-inspired full-screen experience
 */

/* Full Screen Modal - Luxe Design */
.sffc-comparison-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    display: none;
    font-family: 'Playfair Display', serif;
}

.sffc-comparison-modal.open {
    display: block;
    animation: luxeReveal 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

@keyframes luxeReveal {
    from {
        opacity: 0;
        transform: scale(1.02);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Premium Overlay */
.comparison-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(248, 244, 237, 0.98) 0%, 
        rgba(255, 251, 245, 0.98) 50%,
        rgba(248, 244, 237, 0.98) 100%);
    backdrop-filter: blur(30px);
}

/* Main Container - Full Screen Elegance */
.comparison-container {
    position: relative;
    width: 100%;
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg,
        #F8F4ED 0%,
        #FFFFFF 20%,
        #FAFAF8 80%,
        #F8F4ED 100%);
    overflow: hidden;
}

/* Luxe Header Bar */
.comparison-header {
    position: relative;
    padding: 48px 80px;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(248, 244, 237, 0.5) 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.1);
    z-index: 10;
}

.comparison-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 1px;
    background: linear-gradient(90deg,
        transparent 0%,
        #D4AF37 50%,
        transparent 100%);
}

.comparison-header h2 {
    font-size: 42px;
    font-weight: 300;
    font-style: italic;
    color: #1A3028;
    margin: 0 0 8px 0;
    letter-spacing: 2px;
    text-align: center;
}

.comparison-subtitle {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 3px;
    color: #999;
    text-transform: uppercase;
}

/* Close Button - Minimal Luxury */
.comparison-close {
    position: absolute;
    top: 48px;
    right: 48px;
    width: 56px;
    height: 56px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(26, 48, 40, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 300;
    color: #1A3028;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
}

.comparison-close:hover {
    background: #1A3028;
    color: #F8F4ED;
    transform: rotate(180deg) scale(1.1);
    border-color: #1A3028;
}

/* Job Selector - Premium Cards */
.comparison-selector {
    padding: 32px 80px;
    background: linear-gradient(90deg,
        rgba(26, 48, 40, 0.02) 0%,
        transparent 50%,
        rgba(212, 175, 55, 0.02) 100%);
    border-bottom: 1px solid rgba(212, 175, 55, 0.08);
}

.selector-instructions {
    text-align: center;
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 2px;
    color: #666;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.job-selector-grid {
    display: flex;
    gap: 24px;
    justify-content: center;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

/* Premium Job Selector Cards */
.job-selector-item {
    position: relative;
    min-width: 320px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(248, 244, 237, 0.9) 100%);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 16px;
    padding: 24px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    overflow: hidden;
}

.job-selector-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #D4AF37 0%, #F4CF57 100%);
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

.job-selector-item:hover {
    transform: translateY(-8px);
    box-shadow: 
        0 20px 40px rgba(26, 48, 40, 0.1),
        0 10px 20px rgba(212, 175, 55, 0.08);
    border-color: #D4AF37;
}

.job-selector-item:hover::before {
    transform: scaleX(1);
}

.job-selector-item input[type="checkbox"] {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 28px;
    height: 28px;
    accent-color: #D4AF37;
    cursor: pointer;
}

.job-selector-item input[type="checkbox"]:checked {
    background: #D4AF37;
}

.job-selector-content {
    padding-right: 40px;
}

.job-selector-content .job-title {
    font-size: 18px;
    font-weight: 500;
    color: #1A3028;
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.job-selector-content .job-company {
    font-family: 'Inter', sans-serif;
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
    letter-spacing: 0.5px;
}

.job-selector-content .job-match {
    display: inline-block;
    padding: 6px 16px;
    background: linear-gradient(135deg, #D4AF37 0%, #F4CF57 100%);
    border-radius: 20px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #1A3028;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Main Comparison Content - Magazine Layout */
.comparison-content {
    flex: 1;
    overflow-y: auto;
    overflow-x: hidden;
    padding: 60px 80px;
    scroll-behavior: smooth;
}

.comparison-content::-webkit-scrollbar {
    width: 10px;
}

.comparison-content::-webkit-scrollbar-track {
    background: rgba(26, 48, 40, 0.02);
}

.comparison-content::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, #D4AF37 0%, #B8941F 100%);
    border-radius: 5px;
}

/* Magazine-Style Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 48px;
    max-width: 1400px;
    margin: 0 auto;
}

/* Premium Job Comparison Cards */
.comparison-column {
    background: linear-gradient(180deg,
        #FFFFFF 0%,
        rgba(248, 244, 237, 0.5) 100%);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 
        0 20px 60px rgba(26, 48, 40, 0.08),
        0 10px 30px rgba(26, 48, 40, 0.05);
    transition: all 0.4s ease;
}

.comparison-column:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 30px 80px rgba(26, 48, 40, 0.12),
        0 15px 40px rgba(26, 48, 40, 0.08);
}

/* Job Header - Editorial Style */
.comparison-job-header {
    padding: 40px;
    background: linear-gradient(135deg,
        #1A3028 0%,
        #2A4038 50%,
        #1A3028 100%);
    color: #F8F4ED;
    position: relative;
    overflow: hidden;
}

.comparison-job-header::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.1) 0%, transparent 70%);
    animation: shimmerPulse 8s ease infinite;
}

@keyframes shimmerPulse {
    0%, 100% { transform: rotate(0deg); }
    50% { transform: rotate(180deg); }
}

.comparison-job-header h3 {
    font-size: 28px;
    font-weight: 400;
    font-style: italic;
    margin: 0 0 12px 0;
    letter-spacing: 1px;
    position: relative;
    z-index: 1;
}

.comparison-job-header p {
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 1px;
    opacity: 0.9;
    margin: 0 0 24px 0;
    position: relative;
    z-index: 1;
}

/* Premium Match Score Display */
.match-score-bar {
    position: relative;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(212, 175, 55, 0.2);
}

.match-fill {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg,
        #D4AF37 0%,
        #F4CF57 50%,
        #D4AF37 100%);
    background-size: 200% 100%;
    animation: goldShimmer 3s linear infinite;
    border-radius: 24px;
}

@keyframes goldShimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.match-text {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #F8F4ED;
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(26, 48, 40, 0.2);
}

/* Metrics Section - Elegant Grid */
.comparison-metrics {
    padding: 32px;
    background: linear-gradient(180deg,
        rgba(255, 255, 255, 0.8) 0%,
        transparent 100%);
}

.metric-row {
    display: grid;
    grid-template-columns: 1fr 2fr;
    padding: 20px 0;
    border-bottom: 1px solid rgba(26, 48, 40, 0.05);
    transition: all 0.3s ease;
}

.metric-row:hover {
    background: rgba(212, 175, 55, 0.03);
    padding-left: 12px;
}

.metric-row:last-child {
    border-bottom: none;
}

.metric-label {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 1.5px;
    color: #999;
    text-transform: uppercase;
}

.metric-value {
    font-size: 15px;
    font-weight: 500;
    color: #1A3028;
    letter-spacing: 0.5px;
}

/* Highlights Section - Magazine Style */
.comparison-highlights {
    padding: 32px;
    background: linear-gradient(135deg,
        rgba(212, 175, 55, 0.02) 0%,
        transparent 100%);
}

.comparison-highlights h4 {
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    color: #D4AF37;
    text-transform: uppercase;
    margin: 0 0 24px 0;
    text-align: center;
}

.comparison-highlights ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comparison-highlights li {
    position: relative;
    padding: 16px 0 16px 36px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    line-height: 1.8;
    color: #333;
    border-bottom: 1px solid rgba(26, 48, 40, 0.05);
}

.comparison-highlights li:last-child {
    border-bottom: none;
}

.comparison-highlights li::before {
    content: '◈';
    position: absolute;
    left: 0;
    color: #D4AF37;
    font-size: 16px;
}

/* Comparison Summary - Editorial Feature */
.comparison-summary {
    max-width: 1000px;
    margin: 60px auto 0;
    padding: 48px;
    background: linear-gradient(135deg,
        rgba(26, 48, 40, 0.03) 0%,
        transparent 50%,
        rgba(212, 175, 55, 0.03) 100%);
    border: 1px solid rgba(212, 175, 55, 0.15);
    border-radius: 24px;
    text-align: center;
}

.comparison-summary h3 {
    font-size: 32px;
    font-weight: 300;
    font-style: italic;
    color: #1A3028;
    margin: 0 0 24px 0;
    letter-spacing: 2px;
}

.comparison-summary p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    line-height: 2;
    color: #666;
    max-width: 800px;
    margin: 0 auto;
}

/* Premium Actions Footer */
.comparison-actions {
    padding: 48px 80px;
    background: linear-gradient(180deg,
        rgba(248, 244, 237, 0.5) 0%,
        rgba(255, 255, 255, 0.9) 100%);
    border-top: 1px solid rgba(212, 175, 55, 0.1);
    display: flex;
    justify-content: center;
    gap: 32px;
}

.comparison-actions button {
    padding: 20px 48px;
    background: linear-gradient(135deg,
        rgba(255, 255, 255, 0.9) 0%,
        rgba(248, 244, 237, 0.9) 100%);
    border: 2px solid #1A3028;
    border-radius: 32px;
    font-family: 'Inter', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: #1A3028;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    position: relative;
    overflow: hidden;
}

.comparison-actions button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(26, 48, 40, 0.05);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.comparison-actions button:hover::before {
    width: 300px;
    height: 300px;
}

.comparison-actions button:hover {
    background: #1A3028;
    color: #F8F4ED;
    transform: translateY(-4px) scale(1.05);
    box-shadow: 
        0 20px 40px rgba(26, 48, 40, 0.2),
        0 10px 20px rgba(26, 48, 40, 0.15);
}

/* AI Insights Button - Premium Gold */
.btn-ai-insights {
    background: linear-gradient(135deg, #D4AF37 0%, #F4CF57 100%) !important;
    border-color: #D4AF37 !important;
    color: #1A3028 !important;
}

.btn-ai-insights::before {
    background: rgba(255, 255, 255, 0.2) !important;
}

.btn-ai-insights:hover {
    box-shadow: 
        0 20px 40px rgba(212, 175, 55, 0.3),
        0 10px 20px rgba(212, 175, 55, 0.2) !important;
}

/* Empty State - Elegant */
.comparison-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
    text-align: center;
}

.comparison-empty p {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    color: #999;
    letter-spacing: 1px;
}

.comparison-empty::before {
    content: '◊ ◊ ◊';
    display: block;
    font-size: 48px;
    color: rgba(212, 175, 55, 0.2);
    margin-bottom: 32px;
    letter-spacing: 24px;
}

/* Loading State - Luxury */
.comparison-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 400px;
}

.comparison-loading .loading-spinner {
    width: 60px;
    height: 60px;
    border: 2px solid rgba(212, 175, 55, 0.1);
    border-top-color: #D4AF37;
    border-radius: 50%;
    animation: luxeSpin 1.5s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes luxeSpin {
    to { transform: rotate(360deg); }
}

.comparison-loading p {
    margin-top: 32px;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    color: #666;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Mobile Responsive */
@media (max-width: 1024px) {
    .comparison-header {
        padding: 32px 40px;
    }
    
    .comparison-header h2 {
        font-size: 32px;
    }
    
    .comparison-content {
        padding: 40px;
    }
    
    .comparison-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-actions {
        padding: 32px 40px;
        flex-direction: column;
    }
    
    .comparison-actions button {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .comparison-header {
        padding: 24px;
    }
    
    .comparison-header h2 {
        font-size: 24px;
    }
    
    .comparison-content {
        padding: 24px;
    }
    
    .job-selector-grid {
        flex-direction: column;
    }
    
    .job-selector-item {
        min-width: 100%;
    }
}