/* ============================================
   CALCULATOR STYLES
   Matching Parallax Design System
   ============================================ */

/* Calculator Container */
.calculator-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-xl);
    min-height: calc(100vh - 120px);
}

/* Back Button */
.back-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: rgba(102, 102, 255, 0.08);
    border: 1px solid rgba(102, 102, 255, 0.15);
    border-radius: 12px;
    color: #6666FF;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    margin-bottom: var(--space-xl);
}

.back-button svg {
    width: 20px;
    height: 20px;
    transition: transform 0.3s ease;
}

.back-button:hover {
    background: rgba(102, 102, 255, 0.12);
    border-color: rgba(102, 102, 255, 0.25);
    transform: translateX(-2px);
}

.back-button:hover svg {
    transform: translateX(-3px);
}

[data-theme="dark"] .back-button {
    background: rgba(102, 102, 255, 0.12);
    border-color: rgba(102, 102, 255, 0.2);
    color: #8888FF;
}

[data-theme="dark"] .back-button:hover {
    background: rgba(102, 102, 255, 0.18);
    border-color: rgba(102, 102, 255, 0.3);
}

.calculator-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.calculator-title {
    font-size: var(--font-heading-1) !important; /* Match section-title: 32px → 28px → 24px → 22px */
    font-weight: 900 !important; /* Match section-title */
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
    line-height: var(--line-height-heading) !important; /* Match section-title */
    letter-spacing: var(--letter-spacing-tight) !important; /* Match section-title */
}

.calculator-subtitle {
    font-size: var(--font-body-base);
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: var(--line-height-normal);
}

/* Progress Bar */
.progress-bar {
    height: 8px;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-full);
    overflow: hidden;
    margin-bottom: var(--space-lg);
    box-shadow: var(--shadow-sm);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.progress {
    height: 100%;
    background: var(--gradient-primary);
    transition: width var(--transition-slow);
    border-radius: var(--radius-full);
}

/* Question Counter */
.question-counter {
    text-align: center;
    color: var(--color-text-muted);
    font-size: var(--font-base);
    margin-bottom: var(--space-lg);
    font-weight: var(--weight-medium);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Glass Card */
.glass-card {
    background: var(--glass-bg);
    backdrop-filter: blur(var(--glass-blur));
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.glass-card:hover {
    box-shadow: var(--shadow-lg);
}

/* Question Section */
.question-section {
    margin-bottom: var(--space-2xl);
}

.results-section {
    display: none;
}

.question-title {
    font-size: var(--font-heading-5);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-xl);
    color: var(--color-text-primary);
    line-height: var(--line-height-normal);
}

/* Options */
.options {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
    margin-bottom: var(--space-xl);
}

.option {
    padding: var(--space-lg);
    border: 2px solid var(--glass-border);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
    background: transparent;
    font-size: var(--font-body-base);
    color: var(--color-text-primary);
    font-weight: var(--weight-medium);
    position: relative;
    overflow: hidden;
}

.option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: var(--gradient-soft);
    transition: width var(--transition-base);
    z-index: -1;
}

.option:hover {
    border-color: var(--color-primary);
    transform: translateX(4px);
}

.option:hover::before {
    width: 100%;
}

.option.selected {
    border-color: var(--color-primary);
    background: var(--gradient-soft);
    box-shadow: 0 0 0 1px var(--color-primary);
}

.option.selected::after {
    content: '✓';
    position: absolute;
    right: var(--space-lg);
    top: 50%;
    transform: translateY(-50%);
    color: var(--color-primary);
    font-weight: var(--weight-bold);
    font-size: var(--font-lg);
}

/* Buttons */
.btn-primary,
.btn-secondary {
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    font-size: var(--font-base);
    font-weight: var(--weight-semibold);
    transition: all var(--transition-base);
    display: block;
    margin: var(--space-xl) auto 0;
    min-width: 160px;
    max-width: 280px;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
    box-shadow: var(--shadow-md);
}

.btn-primary:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg), var(--shadow-glow);
}

.btn-primary:disabled {
    background: var(--color-bg-tertiary);
    color: var(--color-text-muted);
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-secondary {
    background: transparent;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
}

.btn-secondary:hover {
    background: var(--color-primary);
    color: white;
    transform: translateY(-2px);
}

/* Results */
.results-title {
    font-size: var(--font-2xl);
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-2xl);
    text-align: center;
}

.country-card {
    background: var(--color-bg-secondary);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    margin-bottom: var(--space-lg);
    transition: all var(--transition-base);
}

.country-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.country-name {
    font-size: var(--font-xl);
    font-weight: var(--weight-bold);
    color: var(--color-text-primary);
    margin-bottom: var(--space-md);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.match-score {
    display: inline-flex;
    align-items: center;
    background: var(--gradient-primary);
    color: white;
    padding: var(--space-xs) var(--space-md);
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    font-weight: var(--weight-semibold);
    margin-bottom: var(--space-md);
}

.country-detail {
    margin-bottom: var(--space-sm);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: var(--space-sm) 0;
    border-bottom: 1px solid var(--glass-border);
}

.country-detail:last-of-type {
    border-bottom: none;
}

.detail-label {
    font-weight: var(--weight-medium);
    color: var(--color-text-secondary);
    font-size: var(--font-body-base);
}

.detail-value {
    font-weight: var(--weight-semibold);
    color: var(--color-text-primary);
    font-size: var(--font-body-base);
}

/* Badges */
.eu-badge,
.non-eu-badge {
    display: inline-flex;
    align-items: center;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: var(--font-xs);
    font-weight: var(--weight-semibold);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.eu-badge {
    background: linear-gradient(135deg, #0052a1 0%, #003d7a 100%);
    color: white;
}

.non-eu-badge {
    background: linear-gradient(135deg, #27ae60 0%, #229954 100%);
    color: white;
}

/* Pros and Cons */
.pros-cons {
    margin-top: var(--space-lg);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--glass-border);
}

.pros,
.cons {
    margin-bottom: var(--space-sm);
    font-size: var(--font-body-base);
    line-height: var(--line-height-relaxed);
}

.pros strong {
    color: #27ae60;
    font-weight: var(--weight-semibold);
}

.cons strong {
    color: #e74c3c;
    font-weight: var(--weight-semibold);
}

/* EU Info Box */
.eu-info {
    background: var(--gradient-soft);
    border: 1px solid var(--color-primary);
    border-left: 4px solid var(--color-primary);
    padding: var(--space-lg);
    border-radius: var(--radius-md);
    margin-top: var(--space-lg);
    font-size: var(--font-body-base);
    line-height: var(--line-height-relaxed);
}

.eu-info strong {
    color: var(--color-primary);
    display: block;
    margin-bottom: var(--space-xs);
}

/* Calculator Button Active State */
.calculator-btn.active {
    background: var(--color-primary) !important;
    color: white !important;
    border-color: var(--color-primary) !important;
}

/* Search Button Link */
.search-btn {
    text-decoration: none;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .calculator-container {
        padding: var(--space-xl) var(--space-md);
    }
    
    .back-button {
        padding: 8px 16px;
        font-size: 14px;
        gap: 6px;
    }
    
    .back-button svg {
        width: 18px;
        height: 18px;
    }
    
    .calculator-subtitle {
        font-size: var(--font-base);
    }
    
    .glass-card {
        padding: var(--space-xl);
    }
    
    .question-title {
        font-size: var(--font-lg);
    }
    
    .option {
        padding: var(--space-md);
    }
    
    .country-name {
        font-size: var(--font-lg);
        flex-direction: column;
        align-items: flex-start;
    }
    
    .country-detail {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-xs);
    }
    
    .btn-primary,
    .btn-secondary {
        width: 100%;
        min-width: auto;
        max-width: 100%;
        padding: var(--space-md) var(--space-lg);
    }
}

/* Dark Mode Adjustments */
[data-theme="dark"] .country-card {
    background: rgba(26, 26, 46, 0.5);
}

[data-theme="dark"] .option {
    background: transparent;
}

[data-theme="dark"] .option:hover,
[data-theme="dark"] .option.selected {
    background: rgba(104, 110, 238, 0.1);
}

/* Question Options Styles */
.options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 24px;
}

.option-label {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: rgba(102, 102, 255, 0.05);
    border: 2px solid rgba(102, 102, 255, 0.1);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    font-weight: 500;
    color: #151419;
}

.option-label:hover {
    background: rgba(102, 102, 255, 0.08);
    border-color: rgba(102, 102, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 102, 255, 0.15);
}

.option-label input[type="radio"] {
    width: 20px;
    height: 20px;
    accent-color: #6666FF;
    cursor: pointer;
}

.option-label input[type="radio"]:checked + span {
    font-weight: 600;
    color: #6666FF;
}

.option-label:has(input[type="radio"]:checked) {
    background: rgba(102, 102, 255, 0.12);
    border-color: #6666FF;
    box-shadow: 0 0 0 3px rgba(102, 102, 255, 0.1);
}

/* Dark theme adjustments */
[data-theme="dark"] .option-label {
    background: rgba(102, 102, 255, 0.08);
    border-color: rgba(102, 102, 255, 0.15);
    color: #EAEAEA;
}

[data-theme="dark"] .option-label:hover {
    background: rgba(102, 102, 255, 0.12);
    border-color: rgba(102, 102, 255, 0.4);
}

[data-theme="dark"] .option-label:has(input[type="radio"]:checked) {
    background: rgba(102, 102, 255, 0.15);
    border-color: #8888FF;
}

/* Question text styling */
#currentQuestion h2 {
    font-size: 24px;
    font-weight: 600;
    color: #151419;
    margin-bottom: 8px;
    line-height: 1.3;
}

[data-theme="dark"] #currentQuestion h2 {
    color: #EAEAEA;
}
/* Results Cards Styles */
.result-card {
    padding: 20px 24px;
    background: rgba(102, 102, 255, 0.05);
    border: 1px solid rgba(102, 102, 255, 0.15);
    border-radius: 16px;
    margin-bottom: 16px;
    transition: all 0.3s ease;
}

.result-card:hover {
    background: rgba(102, 102, 255, 0.08);
    border-color: rgba(102, 102, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(102, 102, 255, 0.15);
}

.result-card h3 {
    font-size: 20px;
    font-weight: 600;
    color: #151419;
    margin-bottom: 8px;
}

.result-card p {
    font-size: 16px;
    color: #64646B;
    margin-bottom: 12px;
}
.match-score {
    display: inline-block;
    padding: 6px 12px;
    background: #6666FF;
    color: white;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

/* Dark theme for results */
[data-theme="dark"] .result-card {
    background: rgba(102, 102, 255, 0.08);
    border-color: rgba(102, 102, 255, 0.2);
}

[data-theme="dark"] .result-card:hover {
    background: rgba(102, 102, 255, 0.12);
    border-color: rgba(102, 102, 255, 0.35);
}

[data-theme="dark"] .result-card h3 {
    color: #EAEAEA;
}

[data-theme="dark"] .result-card p {
    color: #A8A8AD;
}

/* ============================================
   RESULTS SECTION STYLES (COMPLETE)
   ============================================ */

/* Result Header */
.result-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.result-header .country-name {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 22px;
    font-weight: 700;
    color: #151419;
}

[data-theme="dark"] .result-header .country-name {
    color: #EAEAEA;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge.eu {
    background: #3498db;
    color: white;
}

.badge.schengen {
    background: #9b59b6;
    color: white;
}

.badge.non-eu {
    background: #e67e22;
    color: white;
}

.badge.candidate {
    background: #f39c12;
    color: white;
}

.program-badge {
    display: inline-block;
    background: #27ae60;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* Result Details Grid */
.result-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(102, 102, 255, 0.15);
}

[data-theme="dark"] .result-details {
    border-bottom-color: rgba(102, 102, 255, 0.2);
}

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

.detail-item .detail-label {
    font-size: 13px;
    font-weight: 600;
    color: #64646B;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

[data-theme="dark"] .detail-item .detail-label {
    color: #A8A8AD;
}

.detail-item .detail-value {
    font-size: 15px;
    font-weight: 600;
    color: #151419;
    line-height: 1.4;
}

[data-theme="dark"] .detail-item .detail-value {
    color: #EAEAEA;
}

.detail-item.detail-condition {
    grid-column: 1 / -1;
}

/* Pros Section */
.pros-section {
    background: rgba(46, 204, 113, 0.08);
    border-left: 4px solid #27ae60;
    padding: 16px 20px;
    border-radius: 8px;
    margin-bottom: 16px;
}

[data-theme="dark"] .pros-section {
    background: rgba(46, 204, 113, 0.12);
}

.pros-section strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #27ae60;
    margin-bottom: 12px;
}

.pros-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 8px;
}

.pros-section li {
    font-size: 14px;
    color: #151419;
    padding-left: 20px;
    position: relative;
    line-height: 1.5;
}

[data-theme="dark"] .pros-section li {
    color: #EAEAEA;
}

.pros-section li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #27ae60;
    font-weight: 700;
}

/* Consultation Button */
.consultation-btn {
    width: 100%;
    padding: 14px 24px;
    background: linear-gradient(135deg, #6666FF, #4541F1);
    color: white;
    border: none;
    border-radius: 10px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 8px;
}

.consultation-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 102, 255, 0.4);
}

/* No Match Card */
.no-match {
    text-align: center;
    padding: 40px 24px;
}

.no-match h3 {
    font-size: 22px;
    font-weight: 700;
    color: #151419;
    margin-bottom: 16px;
}

[data-theme="dark"] .no-match h3 {
    color: #EAEAEA;
}

.no-match p {
    font-size: 16px;
    color: #64646B;
    line-height: 1.6;
    margin-bottom: 24px;
}

[data-theme="dark"] .no-match p {
    color: #A8A8AD;
}

/* Mobile Responsive for Results */
@media (max-width: 768px) {
    .result-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .result-header .country-name {
        font-size: 18px;
        flex-direction: column;
        align-items: flex-start;
    }
    
    .result-details {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .pros-section ul {
        grid-template-columns: 1fr;
    }
    
    .consultation-btn {
        padding: 12px 20px;
        font-size: 14px;
    }
}
