/* Health Hub Styles - Fixed Version */
.health-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    line-height: 1.6;
    color: #1f2937;
}

/* Reset theme conflicts */
.health-container * {
    box-sizing: border-box;
}

.health-container h1,
.health-container h2,
.health-container h3 {
    font-weight: 600;
    line-height: 1.3;
    margin-bottom: 1rem;
}

.health-container p {
    margin-bottom: 1rem;
}

/* Breadcrumbs */
.breadcrumbs {
    padding: 20px 0;
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0;
}

.breadcrumbs a {
    color: #3b82f6;
    text-decoration: none;
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.separator {
    margin: 0 8px;
    color: #d1d5db;
}

/* Hero Section */
.health-hero {
    text-align: center;
    padding: 60px 0;
    background: linear-gradient(135deg, #fef7ff 0%, #f0f9ff 100%);
    border-radius: 16px;
    margin: 20px 0 40px 0;
}

.health-hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, #7c3aed 0%, #3b82f6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.health-hero p {
    font-size: 1.2rem;
    color: #6b7280;
    max-width: 600px;
    margin: 0 auto 2rem auto;
}

.health-stats {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    margin-top: 2rem;
}

.stat {
    text-align: center;
    min-width: 120px;
}

.stat-number {
    display: block;
    font-size: 2.5rem;
    font-weight: 700;
    color: #7c3aed;
    line-height: 1;
}

.stat-icon {
    display: block;
    font-size: 2.5rem;
    line-height: 1;
    margin-bottom: 0.5rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Quick Calculator */
.quick-calculator {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 40px;
    margin: 40px 0;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.quick-calculator h2 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    color: #1f2937;
}

.bmi-widget {
    max-width: 400px;
    margin: 0 auto;
}

.input-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 1.5rem;
}

.input-group {
    display: flex;
    flex-direction: column;
}

.input-group label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #374151;
}

.input-group input {
    padding: 12px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.input-group input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-primary {
    width: 100%;
    padding: 14px 20px;
    background: #3b82f6;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background: #2563eb;
}

.bmi-result {
    margin-top: 2rem;
    padding: 20px;
    background: #f8fafc;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.bmi-value {
    text-align: center;
    margin-bottom: 1rem;
}

.bmi-value strong {
    font-size: 2.5rem;
    font-weight: 700;
}

.bmi-value span {
    font-size: 1rem;
    margin-left: 0.5rem;
    color: #6b7280;
}

.bmi-category {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.bmi-description {
    text-align: center;
    color: #6b7280;
    font-style: italic;
}

.bmi-error {
    color: #dc2626;
    text-align: center;
    font-weight: 600;
}

/* Features Section */
.features-section {
    margin: 60px 0;
}

.features-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.feature-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
    color: #1f2937;
}

.feature-card p {
    color: #6b7280;
    line-height: 1.6;
}

/* Health Tools Grid */
.health-tools {
    margin: 60px 0;
}

.health-tools h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
}

.health-tool-card {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.health-tool-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #3b82f6;
    transform: scaleY(0);
    transition: transform 0.3s ease;
}

.health-tool-card:hover::before {
    transform: scaleY(1);
}

.health-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.tool-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.health-tool-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.health-tool-card h3 a {
    color: #1f2937;
    text-decoration: none;
}

.health-tool-card h3 a:hover {
    color: #3b82f6;
}

.health-tool-card p {
    color: #6b7280;
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.tool-link {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.tool-link:hover {
    color: #2563eb;
}

/* FAQ Section */
.faq-section {
    margin: 60px 0;
}

.faq-section h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 3rem;
}

.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    background: #f8fafc;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background-color 0.3s ease;
}

.faq-question:hover {
    background: #f1f5f9;
}

.faq-question h3 {
    font-size: 1.1rem;
    margin: 0;
    color: #1f2937;
}

.faq-toggle {
    font-size: 1.2rem;
    font-weight: bold;
    color: #3b82f6;
    transition: transform 0.3s ease;
}

.faq-item.active .faq-toggle {
    transform: rotate(45deg);
}

.faq-answer {
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 20px;
    max-height: 500px;
}

.faq-answer p {
    margin-bottom: 1rem;
}

.faq-answer ul {
    padding-left: 20px;
    margin: 1rem 0;
}

.faq-answer li {
    margin-bottom: 0.5rem;
    color: #6b7280;
}

/* Health Disclaimer */
.health-disclaimer {
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 12px;
    padding: 30px;
    margin: 60px 0;
}

.disclaimer-content h3 {
    color: #dc2626;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.disclaimer-content p {
    color: #7f1d1d;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .health-container {
        padding: 0 15px;
    }
    
    .health-hero h1 {
        font-size: 2.2rem;
    }
    
    .health-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .input-row {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .features-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }
    
    .quick-calculator {
        padding: 25px;
    }
    
    .health-hero {
        padding: 40px 20px;
    }
}

@media (max-width: 480px) {
    .health-hero h1 {
        font-size: 1.8rem;
    }
    
    .health-tool-card,
    .feature-card {
        padding: 20px;
    }
    
    .faq-question {
        padding: 15px;
    }
    
    .faq-item.active .faq-answer {
        padding: 15px;
    }
}