/* Mattress Thickness Selector Specific Styles */

/* Thickness Visualization */
.thickness-visualization {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.thickness-display {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    height: 120px;
    margin: 16px 0;
    gap: 8px;
}

.thickness-bar {
    width: 60px;
    background: linear-gradient(180deg, #2563eb, #1d4ed8);
    border-radius: 4px 4px 0 0;
    position: relative;
    transition: all 0.5s ease;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 12px;
    padding-bottom: 8px;
}

.thickness-bar.recommended {
    background: linear-gradient(180deg, #10b981, #059669);
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.3);
}

.thickness-bar::before {
    content: attr(data-thickness);
    position: absolute;
    bottom: -25px;
    left: 50%;
    transform: translateX(-50%);
    color: #374151;
    font-size: 11px;
    font-weight: 500;
}

.thickness-reading {
    font-size: 16px;
    font-weight: 600;
    color: #1e293b;
    margin-top: 12px;
}

/* Thickness Categories */
.thickness-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

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

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

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

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

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

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

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

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

.category-card.thin h4 i {
    color: #f59e0b;
}

.category-card.standard h4 i {
    color: #10b981;
}

.category-card.thick h4 i {
    color: #3b82f6;
}

.category-card.extra-thick h4 i {
    color: #8b5cf6;
}

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

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

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

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

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

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

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

/* Influence Factors */
.influence-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;
}

/* Thickness Options Grid */
.options-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

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

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

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

.option-card.recommended::before {
    content: '✓ Recommended';
    display: block;
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 12px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.option-thickness {
    font-size: 24px;
    font-weight: 700;
    color: #2563eb;
    margin-bottom: 8px;
}

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

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

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

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

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

.recommendation-content {
    flex: 1;
}

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

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

/* Thickness Guide Sidebar */
.thickness-guide {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.thickness-guide .guide-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
}

.thickness-guide .guide-item:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
}

.thickness-guide .guide-item strong {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.thickness-guide .guide-item span {
    font-size: 13px;
    color: #2563eb;
    font-weight: 500;
}

.thickness-guide .guide-item small {
    font-size: 12px;
    color: #64748b;
}

/* Factors List */
.factors-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.factor-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    background: #f8fafc;
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    font-size: 14px;
    color: #374151;
    transition: all 0.2s ease;
}

.factor-item:hover {
    background: #eff6ff;
    border-color: #2563eb;
}

.factor-item i {
    color: #2563eb;
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .thickness-categories {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .influence-factors {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .options-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    
    .category-card {
        padding: 20px;
    }
    
    .factor-section {
        padding: 20px;
    }
    
    .recommendation-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .thickness-display {
        height: 100px;
        gap: 6px;
    }
    
    .thickness-bar {
        width: 50px;
    }
}

@media (max-width: 480px) {
    .thickness-visualization {
        padding: 16px;
    }
    
    .thickness-display {
        height: 80px;
        gap: 4px;
    }
    
    .thickness-bar {
        width: 40px;
        font-size: 10px;
    }
    
    .options-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .option-card {
        padding: 16px;
    }
    
    .category-card h4 {
        font-size: 18px;
    }
    
    .thickness-range {
        font-size: 16px;
    }
}
