/* Stairway Mattress Delivery Calculator Specific Styles */

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

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

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

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

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

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

.verdict-card:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-2px);
}

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

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

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

.verdict-card.impossible {
    border-color: #7c2d12;
    background: linear-gradient(135deg, #fef7ed, #fed7aa);
}

.verdict-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;
}

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

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

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

.verdict-card.impossible .verdict-icon {
    background: linear-gradient(135deg, #7c2d12, #92400e);
}

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

.verdict-status {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
}

.verdict-card.feasible .verdict-status {
    color: #059669;
}

.verdict-card.challenging .verdict-status {
    color: #d97706;
}

.verdict-card.difficult .verdict-status {
    color: #dc2626;
}

.verdict-card.impossible .verdict-status {
    color: #7c2d12;
}

.verdict-confidence {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 12px;
}

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

/* Path Analysis */
.path-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);
}

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

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

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

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

.path-item.tight {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fefbf3, #fef3c7);
}

.path-item.fail {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fef2f2, #fee2e2);
}

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

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

.path-status {
    font-size: 14px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 8px;
    color: white;
}

.path-item.pass .path-status {
    background: linear-gradient(135deg, #10b981, #059669);
}

.path-item.tight .path-status {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.path-item.fail .path-status {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.path-measurements {
    margin: 16px 0;
}

.measurement-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
}

.measurement-label {
    color: #64748b;
}

.measurement-value {
    font-weight: 600;
    color: #1e293b;
}

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

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

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

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

.path-item.pass .clearance-fill {
    background: linear-gradient(135deg, #10b981, #059669);
}

.path-item.tight .clearance-fill {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.path-item.fail .clearance-fill {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

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

/* Delivery Challenges */
.delivery-challenges {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid #f59e0b;
}

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

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

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

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

.challenge-info {
    flex: 1;
}

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

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

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

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

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

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

.severity-level.medium {
    background: #dbeafe;
    color: #1d4ed8;
}

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

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

.challenge-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;
}

/* Delivery Recommendations */
.delivery-recommendations {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-radius: 12px;
    padding: 24px;
    margin: 24px 0;
    border: 1px solid #93c5fd;
}

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

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

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

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

.recommendation-info {
    flex: 1;
}

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

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

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

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

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

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

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

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

.recommendation-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;
}

/* Delivery Path Visualization */
.delivery-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: 120px;
    margin: 20px 0;
    padding: 0 20px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 8px;
}

.path-segment {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
    max-width: 80px;
}

.segment-visual {
    width: 60px;
    background: linear-gradient(135deg, #3b82f6, #1d4ed8);
    border-radius: 4px;
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    font-weight: 600;
}

.segment-visual.pass {
    background: linear-gradient(135deg, #10b981, #059669);
}

.segment-visual.tight {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.segment-visual.fail {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

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

.segment-clearance {
    font-size: 9px;
    color: #64748b;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .delivery-verdict {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    
    .path-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .challenges-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .recommendations-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .visualization-chart {
        height: 100px;
        padding: 0 10px;
    }
    
    .path-segment {
        max-width: 60px;
    }
    
    .segment-visual {
        width: 45px;
        font-size: 10px;
    }
    
    .delivery-feasibility {
        padding: 20px;
    }
    
    .path-analysis {
        padding: 20px;
    }
    
    .delivery-challenges {
        padding: 20px;
    }
    
    .delivery-recommendations {
        padding: 20px;
    }
    
    .verdict-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .verdict-status {
        font-size: 18px;
    }
    
    .challenge-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .challenge-severity {
        text-align: left;
    }
    
    .recommendation-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .recommendation-priority {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .delivery-verdict {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .verdict-card {
        padding: 16px;
    }
    
    .verdict-status {
        font-size: 16px;
    }
    
    .verdict-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
    
    .delivery-feasibility {
        padding: 16px;
    }
    
    .path-analysis {
        padding: 16px;
    }
    
    .delivery-challenges {
        padding: 16px;
    }
    
    .delivery-recommendations {
        padding: 16px;
    }
    
    .path-item {
        padding: 16px;
    }
    
    .challenge-item {
        padding: 16px;
    }
    
    .recommendation-item {
        padding: 16px;
    }
    
    .visualization-chart {
        height: 80px;
        padding: 0 5px;
    }
    
    .path-segment {
        max-width: 45px;
        gap: 4px;
    }
    
    .segment-visual {
        width: 35px;
        font-size: 8px;
    }
    
    .recommendation-benefits {
        flex-direction: column;
        gap: 6px;
    }
    
    .clearance-bar {
        margin: 0 8px;
    }
}
