/* Temperature Sleep Calculator Specific Styles */

/* Temperature Profiles */
.temperature-profiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

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

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

.profile-card.hot::before {
    background: linear-gradient(90deg, #ef4444, #f87171);
}

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

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

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

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

.profile-card.hot h4 i {
    color: #ef4444;
}

.profile-card.neutral h4 i {
    color: #10b981;
}

.profile-card.cold h4 i {
    color: #3b82f6;
}

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

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

.profile-card ul li {
    padding: 8px 0;
    color: #475569;
    position: relative;
    padding-left: 20px;
}

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

/* Cooling Technologies */
.cooling-technologies {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin: 24px 0;
}

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

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

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

.tech-item h4::before {
    content: '❄️';
    font-size: 18px;
}

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

/* Temperature Factors */
.temperature-factors {
    background: #f8fafc;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    margin: 24px 0;
}

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

.temperature-factors li:last-child {
    margin-bottom: 0;
}

.temperature-factors strong {
    color: #1e293b;
    font-weight: 600;
}

/* Temperature Guide Sidebar */
.temperature-guide {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

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

.temp-level:hover {
    border-color: #2563eb;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.1);
    transform: translateY(-1px);
}

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

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

/* Temperature Visualization */
.temperature-visualization {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 12px;
    padding: 20px;
    margin: 16px 0;
    border: 1px solid #0ea5e9;
    text-align: center;
}

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

.gauge-container {
    width: 120px;
    height: 60px;
    border: 3px solid #e2e8f0;
    border-bottom: none;
    border-radius: 120px 120px 0 0;
    position: relative;
    overflow: hidden;
}

.gauge-fill {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background: linear-gradient(90deg, #3b82f6, #ef4444);
    border-radius: 0 0 120px 120px;
    transition: all 0.5s ease;
}

.gauge-needle {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 2px;
    height: 50px;
    background: #1e293b;
    transform-origin: bottom;
    transform: translateX(-50%) rotate(0deg);
    transition: transform 0.5s ease;
}

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

/* Enhanced Form Styles */
.form-section h3 {
    color: #1e293b;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e2e8f0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.form-section h3::before {
    content: '🌡️';
    font-size: 22px;
}

/* Checkbox Group Enhancements */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 14px;
    color: #374151;
}

.checkbox-item:hover {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
    border-color: #2563eb;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: #2563eb;
    cursor: pointer;
}

.checkbox-item input[type="checkbox"]:checked + span {
    color: #2563eb;
    font-weight: 500;
}

/* Results Enhancements */
.results-section {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    border-radius: 16px;
    padding: 32px;
    margin-top: 32px;
    border: 1px solid #0ea5e9;
    box-shadow: 0 8px 32px rgba(14, 165, 233, 0.1);
}

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

.cooling-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

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

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

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

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

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

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

/* Mobile Responsive */
@media (max-width: 768px) {
    .temperature-profiles {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .cooling-technologies {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .cooling-recommendations {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .profile-card {
        padding: 20px;
    }
    
    .tech-item {
        padding: 16px;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .temperature-factors {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .profile-card h4 {
        font-size: 18px;
    }
    
    .tech-item h4 {
        font-size: 14px;
    }
    
    .temp-gauge {
        height: 60px;
    }
    
    .gauge-container {
        width: 100px;
        height: 50px;
    }
    
    .cooling-card {
        padding: 16px;
    }
    
    .cooling-icon {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }
}
