/* Allergy Mattress Calculator Specific Styles */

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

.allergy-meter {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 80px;
    margin: 16px 0;
    position: relative;
}

.meter-container {
    width: 200px;
    height: 20px;
    background: linear-gradient(90deg, #10b981, #f59e0b, #ef4444);
    border-radius: 10px;
    position: relative;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

.meter-indicator {
    position: absolute;
    top: -5px;
    width: 6px;
    height: 30px;
    background: #1e293b;
    border-radius: 3px;
    transition: left 0.5s ease;
}

.meter-indicator::before {
    content: '';
    position: absolute;
    top: -8px;
    left: -4px;
    width: 0;
    height: 0;
    border-left: 7px solid transparent;
    border-right: 7px solid transparent;
    border-top: 8px solid #1e293b;
}

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

/* Allergen Types */
.allergen-types {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

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

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

.allergen-card.dust-mites::before {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

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

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

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

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

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

.allergen-card.dust-mites h4 i {
    color: #ef4444;
}

.allergen-card.latex h4 i {
    color: #f59e0b;
}

.allergen-card.chemicals h4 i {
    color: #8b5cf6;
}

.allergen-card.mold h4 i {
    color: #10b981;
}

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

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

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

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

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

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

/* Material Options */
.material-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

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

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

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

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

.material-option.moderate {
    border-color: #f59e0b;
    background: linear-gradient(135deg, #fefbf3, #fef3c7);
}

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

.material-option .rating {
    color: #fbbf24;
    font-size: 16px;
    margin-bottom: 12px;
}

.material-option p {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
}

/* Certification Importance */
.certification-importance {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    margin: 24px 0;
}

.certification-importance li {
    margin-bottom: 16px;
    padding-left: 8px;
    line-height: 1.6;
    color: #374151;
}

.certification-importance li:last-child {
    margin-bottom: 0;
}

.certification-importance strong {
    color: #1e293b;
    font-weight: 600;
}

/* Certification Guide */
.certification-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
    margin-top: 16px;
}

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

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

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

.certification-card.required::before {
    content: '✓ Required';
    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;
}

.cert-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
    color: white;
    font-size: 24px;
}

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

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

/* Prevention Tips */
.prevention-tips .tips-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 16px;
}

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

.prevention-tips .tip-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;
}

.prevention-tips .tip-content {
    flex: 1;
}

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

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

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

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

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

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

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

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

/* Certification Badges */
.certification-badges {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.cert-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
    transition: all 0.2s ease;
    text-align: center;
}

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

.cert-badge i {
    color: #2563eb;
    font-size: 20px;
}

.cert-badge span {
    font-size: 12px;
    font-weight: 500;
    color: #374151;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .allergen-types {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .material-options {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .certification-list {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .allergen-card {
        padding: 20px;
    }
    
    .material-option {
        padding: 16px;
    }
    
    .prevention-tips .tip-item {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
    
    .certification-importance {
        padding: 20px;
    }
    
    .certification-badges {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .allergy-visualization {
        padding: 16px;
    }
    
    .meter-container {
        width: 150px;
        height: 16px;
    }
    
    .cert-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }
    
    .allergen-card h4 {
        font-size: 18px;
    }
    
    .certification-card {
        padding: 16px;
    }
}
