/* sparing-specific.css - Sparesammenligning kalkulator styling */

/* Info tooltip styling */
.info-tooltip {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: white;
    border-radius: 50%;
    font-size: 12px;
    font-weight: 700;
    cursor: help;
    margin-left: 8px;
    vertical-align: middle;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.info-tooltip:hover {
    transform: scale(1.15);
    box-shadow: 0 4px 12px rgba(8, 145, 178, 0.4);
}

.info-tooltip::before {
    content: "i";
}

.info-tooltip .tooltip-text {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 280px;
    background: #1f2937;
    color: #f3f4f6;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.5;
    text-align: left;
    z-index: 1000;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
    transition: all 0.3s ease;
}

.info-tooltip .tooltip-text::after {
    content: "";
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 8px;
    border-style: solid;
    border-color: #1f2937 transparent transparent transparent;
}

.info-tooltip:hover .tooltip-text {
    visibility: visible;
    opacity: 1;
}

.tooltip-text strong {
    color: #22d3ee;
}

@media (max-width: 768px) {
    .info-tooltip .tooltip-text {
        width: 220px;
        left: auto;
        right: -10px;
        transform: none;
    }
    
    .info-tooltip .tooltip-text::after {
        left: auto;
        right: 15px;
        transform: none;
    }
}

.label-with-tooltip {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
}

.label-with-tooltip label {
    margin-bottom: 0;
}

/* Main theme - Teal/Cyan gradient */
body {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 25%, #06b6d4 75%, #22d3ee 100%);
}

.calculator-card {
    border: 2px solid rgba(8, 145, 178, 0.3);
}

/* Calculator icon */
.calculator-icon {
    font-size: 3em;
    text-align: center;
    margin-bottom: 15px;
}

/* Results styling */
.results {
    background: linear-gradient(135deg, #ecfeff 0%, #cffafe 100%);
    border-left: 5px solid #0891b2;
}

/* Verdict display */
.result-verdict {
    text-align: center;
    padding: 30px 20px;
    border-radius: 15px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
}

.result-verdict.verdict-high {
    background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
    border: 2px solid #10b981;
}

.result-verdict.verdict-average {
    background: linear-gradient(135deg, #ecfeff 0%, #a5f3fc 100%);
    border: 2px solid #0891b2;
}

.result-verdict.verdict-below {
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #f59e0b;
}

.result-verdict.verdict-low {
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border: 2px solid #ef4444;
}

.verdict-icon {
    font-size: 3em;
    margin-bottom: 10px;
}

.verdict-text {
    font-size: 1.6em;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 8px;
}

.verdict-subtext {
    font-size: 1.1em;
    color: #4b5563;
}

/* Comparison cards */
.comparison-display {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 25px;
}

.comparison-card {
    background: rgba(255, 255, 255, 0.9);
    padding: 20px 15px;
    border-radius: 12px;
    text-align: center;
    border-left: 4px solid #0891b2;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.comparison-label {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.comparison-value {
    font-size: 1.4em;
    font-weight: 700;
    color: #0e7490;
}

.comparison-sub {
    font-size: 11px;
    color: #9ca3af;
    margin-top: 5px;
}

@media (max-width: 768px) {
    .comparison-display {
        grid-template-columns: 1fr;
    }
    
    .comparison-card {
        padding: 15px;
    }
}

/* Percentile display */
.percentile-display {
    background: rgba(255, 255, 255, 0.9);
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.percentile-label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 15px;
    font-size: 14px;
    text-align: center;
}

.percentile-bar {
    height: 30px;
    background: linear-gradient(90deg, #fecaca 0%, #fef3c7 25%, #d1fae5 50%, #a5f3fc 75%, #6ee7b7 100%);
    border-radius: 15px;
    position: relative;
    overflow: visible;
    margin: 20px 0;
}

.percentile-fill {
    height: 100%;
    background: rgba(8, 145, 178, 0.3);
    border-radius: 15px 0 0 15px;
    transition: width 0.8s ease;
}

.percentile-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(8, 145, 178, 0.5);
    transition: left 0.8s ease;
    border: 3px solid white;
}

.percentile-value {
    color: white;
    font-weight: 700;
    font-size: 12px;
}

.percentile-labels {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #9ca3af;
    padding: 0 5px;
}

.percentile-explanation {
    text-align: center;
    font-size: 14px;
    color: #4b5563;
    margin-top: 15px;
    font-style: italic;
}

/* Checkbox styling */
.checkbox-container {
    margin-bottom: 20px;
}

.checkbox-group {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: rgba(8, 145, 178, 0.05);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-bottom: 10px;
}

.checkbox-group:hover {
    background: rgba(8, 145, 178, 0.1);
}

.checkbox-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    accent-color: #0891b2;
    cursor: pointer;
}

.checkbox-group label {
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 500;
}

.pension-input {
    padding-left: 15px;
    border-left: 3px solid rgba(8, 145, 178, 0.3);
    margin-left: 10px;
}

/* Breakdown styling */
.breakdown {
    background: rgba(8, 145, 178, 0.05);
    border: 1px solid rgba(8, 145, 178, 0.1);
    border-radius: 15px;
    padding: 20px;
    margin-top: 20px;
}

.breakdown h3 {
    color: #0e7490;
    margin-bottom: 15px;
    font-size: 1.1em;
    border-bottom: 2px solid rgba(8, 145, 178, 0.2);
    padding-bottom: 10px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid rgba(8, 145, 178, 0.08);
}

.breakdown-item:last-child {
    border-bottom: none;
}

.breakdown-label {
    color: #374151;
    font-weight: 500;
}

.breakdown-value {
    font-weight: 700;
    color: #0e7490;
}

.breakdown-value.positive {
    color: #059669;
}

.breakdown-value.negative {
    color: #dc2626;
}

/* Tip box */
.tip-box {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
    color: white;
    padding: 25px;
    border-radius: 15px;
    margin-top: 25px;
}

.tip-box h4 {
    font-size: 1.2em;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.tip-box h4::before {
    content: "💡";
}

.tip-box p {
    line-height: 1.7;
    opacity: 0.95;
}

/* Button styling */
.calculate-btn {
    background: linear-gradient(135deg, #0891b2 0%, #0e7490 100%);
}

.calculate-btn:hover {
    box-shadow: 0 15px 30px rgba(8, 145, 178, 0.4);
}

input[type="number"]:focus, select:focus {
    border-color: #0891b2;
    box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

/* Info note */
.info-note {
    background: rgba(8, 145, 178, 0.1);
    border: 1px solid rgba(8, 145, 178, 0.2);
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    font-size: 13px;
    color: #4b5563;
}

.info-note strong {
    color: #0e7490;
}

/* Loader */
.loader {
    text-align: center;
    padding: 30px;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(8, 145, 178, 0.2);
    border-top-color: #0891b2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loader p {
    color: #6b7280;
    font-size: 14px;
}

/* SEO Content Section */
.seo-content {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid rgba(8, 145, 178, 0.1);
}

.seo-content h2 {
    color: #0e7490;
    font-size: 1.5em;
    margin-bottom: 25px;
    text-align: left;
}

.seo-content article {
    margin-bottom: 25px;
}

.seo-content h3 {
    color: #374151;
    font-size: 1.15em;
    margin-bottom: 12px;
}

.seo-content p {
    color: #4b5563;
    line-height: 1.7;
    margin-bottom: 12px;
}

.seo-content ul {
    color: #4b5563;
    line-height: 1.7;
    margin-left: 20px;
    margin-bottom: 12px;
}

.seo-content li {
    margin-bottom: 8px;
}

.seo-content strong {
    color: #374151;
}

/* Footer */
.calculator-footer {
    text-align: center;
    padding: 25px 20px;
    color: rgba(255, 255, 255, 0.8);
    font-size: 14px;
}

.footer-nav {
    margin-top: 15px;
}

.footer-nav a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s ease;
}

.footer-nav a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .verdict-text {
        font-size: 1.3em;
    }
    
    .verdict-subtext {
        font-size: 0.95em;
    }
    
    .comparison-value {
        font-size: 1.2em;
    }
    
    .percentile-marker {
        width: 40px;
        height: 40px;
    }
    
    .percentile-value {
        font-size: 11px;
    }
    
    .tip-box {
        padding: 20px;
    }
}