/* ===== Result Cards - Premium Style ===== */

/* Comparison Grid */
.comparison-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin: 1.5rem auto;
    max-width: 1400px;
}

@media (max-width: 1200px) {
    .comparison-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .comparison-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* Result Card - Premium */
.result-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 1rem;
    padding: 1.5rem;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 0 1px rgba(0, 0, 0, 0.1);
}

.result-card:hover {
    border-color: #144bb8;
    box-shadow: 0 8px 24px rgba(20, 75, 184, 0.12);
    transform: translateY(-2px);
}

/* Card Title */
.result-card-title {
    font-size: 1.125rem;
    font-weight: 800;
    margin-bottom: 1rem;
    color: #111318;
    text-align: center;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e5e7eb;
}

/* Main Value Box - Premium */
.result-main-value {
    background: linear-gradient(135deg, #144bb8 0%, #1a5cd4 100%);
    padding: 1.25rem 1rem;
    border-radius: 0.75rem;
    margin-bottom: 1rem;
    text-align: center;
    box-shadow: 0 4px 12px rgba(20, 75, 184, 0.25);
}

.result-main-value .result-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 0.375rem;
}

.result-main-value .result-value {
    color: white;
    font-size: 1.375rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

@media (min-width: 900px) {
    .result-main-value .result-value {
        font-size: 1.5rem;
    }
}

.result-main-value .result-rate {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.8125rem;
    margin-top: 0.375rem;
    font-weight: 500;
}

/* Breakdown - Premium */
.result-breakdown {
    background: #f8f9fa;
    border: 1px solid #e5e7eb;
    padding: 1rem;
    border-radius: 0.625rem;
    margin-bottom: 0.75rem;
    flex-grow: 1;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.8125rem;
    gap: 0.5rem;
}

.breakdown-row:not(:last-child) {
    border-bottom: 1px solid #e5e7eb;
}

.breakdown-row.highlight {
    background: rgba(20, 75, 184, 0.06);
    padding: 0.5rem 0.625rem;
    margin: 0.25rem -0.5rem;
    border-radius: 0.375rem;
    font-weight: 700;
    border-bottom: none;
}

.breakdown-label {
    color: #636f88;
    white-space: nowrap;
}

.breakdown-value {
    color: #111318;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}

@media (max-width: 400px) {
    .breakdown-value {
        white-space: normal;
        word-break: break-word;
        font-size: 0.75rem;
    }
}

/* Rate Explanation */
.breakdown-explanation {
    background: rgba(20, 75, 184, 0.06);
    color: #144bb8;
    padding: 0.5rem 0.75rem;
    margin: 0.5rem 0;
    border-radius: 0.375rem;
    font-size: 0.75rem;
    line-height: 1.5;
    border-left: 3px solid #144bb8;
}

/* Result Note */
.result-note {
    background: #f1f5f9;
    color: #475569;
    padding: 0.625rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    text-align: center;
    border: 1px solid #e2e8f0;
    margin-top: auto;
}

/* Profit Colors */
.profit-positive {
    color: #10b981;
}

.profit-negative {
    color: #ef4444;
}