/* Mattress Budget Calculator Specific Styles */

/* Budget Breakdown Visualization */
.budget-breakdown {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    border: 1px solid #e2e8f0;
}

.budget-chart {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 120px;
    margin: 16px 0;
    position: relative;
}

.budget-gauge {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: conic-gradient(
        #ef4444 0deg 90deg,
        #f59e0b 90deg 180deg,
        #10b981 180deg 270deg,
        #3b82f6 270deg 360deg
    );
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.budget-gauge::before {
    content: '';
    width: 80px;
    height: 80px;
    background: white;
    border-radius: 50%;
    position: absolute;
}

.budget-value {
    position: relative;
    z-index: 2;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    text-align: center;
}

.budget-legend {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    color: #64748b;
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 2px;
}

.legend-color.minimum {
    background: #ef4444;
}

.legend-color.conservative {
    background: #f59e0b;
}

.legend-color.optimal {
    background: #10b981;
}

.legend-color.premium {
    background: #3b82f6;
}

/* Budget Tiers */
.budget-tiers {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.tier-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tier-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.tier-card.conservative::before {
    background: linear-gradient(90deg, #f59e0b, #fbbf24);
}

.tier-card.moderate::before {
    background: linear-gradient(90deg, #10b981, #34d399);
}

.tier-card.premium::before {
    background: linear-gradient(90deg, #3b82f6, #60a5fa);
}

.tier-card.luxury::before {
    background: linear-gradient(90deg, #8b5cf6, #a78bfa);
}

.tier-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.tier-card h4 {
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}

.tier-card.conservative h4 i {
    color: #f59e0b;
}

.tier-card.moderate h4 i {
    color: #10b981;
}

.tier-card.premium h4 i {
    color: #3b82f6;
}

.tier-card.luxury h4 i {
    color: #8b5cf6;
}

.tier-range {
    font-size: 16px;
    font-weight: 600;
    color: #2563eb;
    margin-bottom: 12px;
    padding: 8px 16px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 8px;
    text-align: center;
}

.tier-card p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
}

.tier-features {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 8px;
    padding: 16px;
    margin-top: 16px;
}

.tier-features strong {
    color: #1e293b;
    font-weight: 600;
    display: block;
    margin-bottom: 8px;
}

.tier-features ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.tier-features ul li {
    padding: 4px 0;
    color: #475569;
    position: relative;
    padding-left: 20px;
    font-size: 14px;
}

.tier-features ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #10b981;
    font-weight: bold;
}

/* Financial Factors */
.financial-factors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.factor-section {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    transition: all 0.3s ease;
}

.factor-section:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

.factor-section h4 {
    color: #1e293b;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
}

.factor-section p {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 16px;
}

.factor-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.factor-section ul li {
    padding: 6px 0;
    color: #475569;
    position: relative;
    padding-left: 20px;
    font-size: 14px;
}

.factor-section ul li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #2563eb;
    font-weight: bold;
}

.factor-section strong {
    color: #1e293b;
    font-weight: 600;
}

/* Financial Analysis Grid */
.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.analysis-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
    text-align: center;
}

.analysis-card:hover {
    border-color: #2563eb;
    box-shadow: 0 8px 25px rgba(37, 99, 235, 0.15);
    transform: translateY(-2px);
}

.analysis-card.excellent {
    border-color: #10b981;
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
}

.analysis-card.good {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.analysis-card.caution {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fefbf3, #fef3c7);
}

.analysis-card.warning {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

.analysis-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: white;
}

.analysis-card.excellent .analysis-icon {
    background: linear-gradient(135deg, #10b981, #059669);
}

.analysis-card.good .analysis-icon {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.analysis-card.caution .analysis-icon {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.analysis-card.warning .analysis-icon {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.analysis-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.analysis-value {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.analysis-card.excellent .analysis-value {
    color: #10b981;
}

.analysis-card.good .analysis-value {
    color: #3b82f6;
}

.analysis-card.caution .analysis-value {
    color: #f59e0b;
}

.analysis-card.warning .analysis-value {
    color: #ef4444;
}

.analysis-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
}

/* Budget Recommendations */
.recommendations-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 20px;
}

.recommendation-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 12px;
    border: 1px solid #93c5fd;
}

.recommendation-item.warning {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-color: #f59e0b;
}

.recommendation-item.tip {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
    border-color: #10b981;
}

.recommendation-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    flex-shrink: 0;
}

.recommendation-item .recommendation-icon {
    background: #2563eb;
}

.recommendation-item.warning .recommendation-icon {
    background: #f59e0b;
}

.recommendation-item.tip .recommendation-icon {
    background: #10b981;
}

.recommendation-content {
    flex: 1;
}

.recommendation-title {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
}

.recommendation-description {
    font-size: 14px;
    color: #475569;
    line-height: 1.5;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .budget-tiers {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .financial-factors {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .analysis-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .tier-card {
        padding: 20px;
    }
    
    .factor-section {
        padding: 20px;
    }
    
    .recommendation-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .budget-gauge {
        width: 100px;
        height: 100px;
    }
    
    .budget-gauge::before {
        width: 70px;
        height: 70px;
    }
    
    .budget-value {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .budget-breakdown {
        padding: 16px;
    }
    
    .budget-gauge {
        width: 80px;
        height: 80px;
    }
    
    .budget-gauge::before {
        width: 60px;
        height: 60px;
    }
    
    .budget-value {
        font-size: 12px;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .analysis-card {
        padding: 16px;
    }
    
    .analysis-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .tier-card h4 {
        font-size: 16px;
    }
    
    .tier-range {
        font-size: 14px;
    }
}
