/* Mental Health page styles aligned with home/sleep aesthetic */

/* Hero */
.mh-hero {
    min-height: calc(70vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 5rem 1.5rem;
    position: relative;
    overflow: hidden;
    color: white;
    background:
        linear-gradient(180deg, rgba(99, 102, 241, 0.78), rgba(56, 189, 248, 0.75));
}

.mh-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 30% 40%, rgba(255,255,255,0.12), transparent 60%);
    pointer-events: none;
}

.mh-hero-container {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 1rem;
}

.mh-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3rem);
    font-weight: 700;
    margin-bottom: 1rem;
}

.mh-hero-subtitle {
    font-size: clamp(1.05rem, 2.4vw, 1.4rem);
    opacity: 0.9;
    line-height: 1.6;
    max-width: 620px;
    margin: 0 auto;
}

/* Shared layout */
.mh-section-container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

h2 {
    color: #1a202c;
    font-weight: 600;
}

/* Self-check */
.mh-self-check {
    padding: 5rem 0;
    background: #ffffff;
    text-align: center;
}

.mh-self-check h2 {
    font-size: clamp(1.9rem, 4vw, 2.4rem);
    margin-bottom: 0.5rem;
}

.mh-intro {
    color: #4a5568;
    margin-bottom: 2rem;
}

.mood-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.mood-chip {
    background: #edf2f7;
    border: 1px solid #e2e8f0;
    color: #2d3748;
    padding: 0.8rem 1.4rem;
    border-radius: 999px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
}

.mood-chip:hover {
    border-color: #cbd5e0;
    transform: translateY(-2px);
}

.mood-chip.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.25);
}

.mood-description {
    max-width: 720px;
    margin: 0 auto;
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.75rem;
    text-align: left;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.04);
}

.mood-title {
    margin: 0 0 0.5rem;
    color: #2d3748;
}

.mood-body {
    margin: 0;
    color: #4a5568;
    line-height: 1.7;
}

/* Themes */
.mh-themes {
    padding: 5rem 0;
    background: #f8fafc;
}

.themes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.5rem;
}

.theme-card {
    background: white;
    border-radius: 14px;
    padding: 1.5rem;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.theme-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 26px rgba(0,0,0,0.1);
}

.theme-card h3 {
    margin: 0 0 0.5rem;
    color: #2d3748;
}

.theme-card p {
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
}

/* Exercises */
.mh-exercises {
    padding: 5rem 0;
    background: white;
}

.exercises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.exercise-card {
    background: linear-gradient(135deg, rgba(102,126,234,0.08), rgba(118,75,162,0.08));
    border-radius: 16px;
    padding: 1.75rem;
    border: 1px solid rgba(102,126,234,0.15);
    box-shadow: 0 10px 24px rgba(0,0,0,0.08);
}

.exercise-card h3 {
    margin: 0 0 0.75rem;
    color: #2d3748;
}

.exercise-card p {
    margin: 0;
    color: #4a5568;
    line-height: 1.7;
}

/* Resources (blog) */
.mh-resources {
    padding: 5rem 0 5.5rem;
    background: #f8fafc;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.4rem;
    margin-top: 2rem;
}

.blog-card {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 1.5rem;
    box-shadow: 0 8px 18px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.blog-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
    border-color: rgba(102,126,234,0.25);
}

.blog-card h3 {
    margin: 0;
    color: #2d3748;
}

.blog-card p {
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
}

.blog-card a {
    color: #667eea;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, transform 0.2s ease;
}

.blog-card a:hover {
    color: #764ba2;
    transform: translateX(2px);
}

/* Responsive */
@media (max-width: 768px) {
    .mh-hero {
        padding: 4.5rem 1.25rem;
    }
    .mood-description {
        text-align: left;
    }
}

@media (max-width: 480px) {
    .mh-hero h1 {
        font-size: 2rem;
    }
    .mh-hero-subtitle {
        font-size: 1rem;
    }
    .mood-chip {
        padding: 0.7rem 1rem;
    }
}
