/* Mattress Thickness & Bed Frame Compatibility Calculator Specific Styles */

/* Compatibility Display */
.compatibility-display {
    background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    border: 2px solid #10b981;
}

.compatibility-header {
    text-align: center;
    margin-bottom: 20px;
}

.compatibility-title {
    font-size: 20px;
    font-weight: 600;
    color: #059669;
    margin-bottom: 8px;
}

.compatibility-subtitle {
    font-size: 14px;
    color: #064e3b;
}

.thickness-recommendation {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 20px 0;
}

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

.thickness-card:hover {
    border-color: #10b981;
    box-shadow: 0 8px 25px rgba(16, 185, 129, 0.15);
    transform: translateY(-2px);
}

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

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

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

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

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

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

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

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

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

.thickness-label {
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.thickness-value {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 4px;
}

.thickness-card.optimal .thickness-value {
    color: #059669;
}

.thickness-card.acceptable .thickness-value {
    color: #1d4ed8;
}

.thickness-card.warning .thickness-value {
    color: #d97706;
}

.thickness-card.incompatible .thickness-value {
    color: #dc2626;
}

.thickness-description {
    font-size: 12px;
    color: #64748b;
    line-height: 1.4;
}

/* Height Analysis */
.height-analysis {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.analysis-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.analysis-item {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
    padding: 20px;
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

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

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

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

.analysis-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.analysis-type {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

.analysis-height {
    font-size: 18px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 8px;
    color: white;
}

.analysis-item.current .analysis-height {
    background: linear-gradient(135deg, #10b981, #059669);
}

.analysis-item.recommended .analysis-height {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.analysis-details {
    margin: 16px 0;
}

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

.analysis-factors {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.factor-tag {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    background: #e2e8f0;
    color: #475569;
    border-radius: 12px;
}

.height-gauge {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.gauge-label {
    font-size: 14px;
    color: #64748b;
}

.gauge-bar {
    flex: 1;
    height: 8px;
    background: #e2e8f0;
    border-radius: 4px;
    margin: 0 12px;
    overflow: hidden;
}

.gauge-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.analysis-item.current .gauge-fill {
    background: linear-gradient(135deg, #10b981, #059669);
}

.analysis-item.recommended .gauge-fill {
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
}

.gauge-value {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

/* Compatibility Warnings */
.compatibility-warnings {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid #f59e0b;
}

.warnings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.warning-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #fbbf24;
    transition: all 0.3s ease;
}

.warning-item:hover {
    border-color: #f59e0b;
    box-shadow: 0 8px 25px rgba(245, 158, 11, 0.15);
    transform: translateY(-2px);
}

.warning-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.warning-info {
    flex: 1;
}

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

.warning-category {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
    display: inline-block;
    background: #fef3c7;
    color: #d97706;
}

.warning-severity {
    text-align: right;
}

.severity-level {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
}

.severity-level.high {
    background: #fee2e2;
    color: #dc2626;
}

.severity-level.medium {
    background: #fef3c7;
    color: #d97706;
}

.severity-level.low {
    background: #dcfce7;
    color: #059669;
}

.warning-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 16px 0;
}

.warning-solutions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.solution-tag {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    background: #e2e8f0;
    color: #475569;
    border-radius: 12px;
}

.warning-impact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.impact-label {
    font-size: 14px;
    color: #64748b;
}

.impact-value {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

/* Optimization Tips */
.optimization-tips {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid #93c5fd;
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 16px;
}

.tip-item {
    background: white;
    border-radius: 8px;
    padding: 20px;
    border: 1px solid #bfdbfe;
    transition: all 0.3s ease;
}

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

.tip-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.tip-info {
    flex: 1;
}

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

.tip-category {
    font-size: 12px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
    display: inline-block;
    background: #dbeafe;
    color: #1d4ed8;
}

.tip-priority {
    text-align: right;
}

.priority-level {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 8px;
    border-radius: 8px;
}

.priority-level.high {
    background: #fee2e2;
    color: #dc2626;
}

.priority-level.medium {
    background: #fef3c7;
    color: #d97706;
}

.priority-level.low {
    background: #dcfce7;
    color: #059669;
}

.tip-description {
    font-size: 14px;
    color: #64748b;
    line-height: 1.5;
    margin: 16px 0;
}

.tip-benefits {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 16px 0;
}

.benefit-tag {
    font-size: 12px;
    font-weight: 500;
    padding: 4px 8px;
    background: #e2e8f0;
    color: #475569;
    border-radius: 12px;
}

.tip-impact {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #e2e8f0;
}

.impact-label {
    font-size: 14px;
    color: #64748b;
}

.impact-value {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
}

/* Height Visualization */
.height-visualization {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.visualization-chart {
    display: flex;
    justify-content: space-between;
    align-items: end;
    height: 150px;
    margin: 20px 0;
    padding: 0 20px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 8px;
}

.chart-bed {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 120px;
}

.bed-visual {
    width: 80px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px 4px 0 0;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.frame-part {
    background: #64748b;
    border-radius: 0 0 4px 4px;
}

.mattress-part {
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 4px 4px 0 0;
}

.bed-label {
    font-size: 12px;
    font-weight: 600;
    color: #64748b;
    text-align: center;
}

.bed-height {
    font-size: 10px;
    color: #64748b;
    position: absolute;
    top: -20px;
    left: 50%;
    transform: translateX(-50%);
    white-space: nowrap;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .thickness-recommendation {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .analysis-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .warnings-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .tips-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .visualization-chart {
        height: 120px;
        padding: 0 10px;
    }
    
    .chart-bed {
        max-width: 80px;
    }
    
    .bed-visual {
        width: 60px;
    }
    
    .compatibility-display {
        padding: 20px;
    }
    
    .height-analysis {
        padding: 20px;
    }
    
    .compatibility-warnings {
        padding: 20px;
    }
    
    .optimization-tips {
        padding: 20px;
    }
    
    .thickness-value {
        font-size: 20px;
    }
    
    .warning-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .warning-severity {
        text-align: left;
    }
    
    .tip-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .tip-priority {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .thickness-recommendation {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .thickness-card {
        padding: 16px;
    }
    
    .thickness-value {
        font-size: 18px;
    }
    
    .thickness-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .compatibility-display {
        padding: 16px;
    }
    
    .height-analysis {
        padding: 16px;
    }
    
    .compatibility-warnings {
        padding: 16px;
    }
    
    .optimization-tips {
        padding: 16px;
    }
    
    .analysis-item {
        padding: 16px;
    }
    
    .warning-item {
        padding: 16px;
    }
    
    .tip-item {
        padding: 16px;
    }
    
    .visualization-chart {
        height: 100px;
        padding: 0 5px;
    }
    
    .chart-bed {
        max-width: 60px;
        gap: 4px;
    }
    
    .bed-visual {
        width: 45px;
    }
    
    .warning-solutions {
        flex-direction: column;
        gap: 6px;
    }
    
    .tip-benefits {
        flex-direction: column;
        gap: 6px;
    }
    
    .analysis-factors {
        flex-direction: column;
        gap: 6px;
    }
    
    .gauge-bar {
        margin: 0 8px;
    }
}
