/* Stress page styles aligned with home/sleep aesthetic */

/* Hero */
.stress-hero {
    min-height: calc(100vh - 70px);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 6rem 1.5rem 5rem;
    position: relative;
    overflow: hidden;
    color: white;
    background:
        linear-gradient(180deg, rgba(36, 55, 99, 0.78), rgba(15, 23, 42, 0.7)),
        url('https://images.unsplash.com/photo-1469474968028-56623f02e42e?w=1600') center/cover no-repeat fixed;
}

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

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

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

.stress-hero-subtitle {
    font-size: clamp(1rem, 2.5vw, 1.2rem);
    opacity: 0.9;
    margin-bottom: 2rem;
    line-height: 1.6;
}

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

.stress-level-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    padding: 0.75rem 1.25rem;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.25s ease;
    font-weight: 600;
    min-width: 52px;
}

.stress-level-btn:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.18);
    border-color: rgba(255,255,255,0.3);
}

.stress-level-btn.active {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.45);
    box-shadow: 0 6px 16px rgba(0,0,0,0.18);
}

.stress-level-description {
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 14px;
    padding: 1.5rem;
    max-width: 720px;
    margin: 0 auto;
    backdrop-filter: blur(10px);
}

.level-title {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.level-body {
    margin: 0;
    opacity: 0.9;
    line-height: 1.6;
}

/* Instant Relief */
.instant-relief {
    padding: 5rem 1.5rem;
    background: #0f172a;
    color: white;
    text-align: center;
}

.instant-relief-container {
    max-width: 960px;
    margin: 0 auto;
}

.instant-relief h2 {
    font-size: clamp(1.8rem, 4vw, 2.3rem);
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.relief-subtitle {
    opacity: 0.82;
    margin-bottom: 2rem;
}

.relief-surface {
    position: relative;
    margin: 0 auto;
    width: min(900px, 90vw);
    height: 360px;
    border-radius: 18px;
    background: radial-gradient(circle at center, rgba(255,255,255,0.07), rgba(15,23,42,0.9));
    box-shadow: 0 18px 36px rgba(0,0,0,0.35);
    overflow: hidden;
    transition: background 0.15s ease;
}

.relief-surface::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at var(--x, 50%) var(--y, 50%), rgba(102,126,234,0.32), transparent 35%);
    mix-blend-mode: screen;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

/* Stress Categories */
.stress-categories {
    padding: 6rem 1.5rem;
    background: #f8fafc;
}

.stress-categories-container {
    max-width: 1100px;
    margin: 0 auto;
    text-align: center;
}

.stress-categories h2 {
    font-size: clamp(1.9rem, 4vw, 2.4rem);
    margin-bottom: 0.5rem;
    color: #1a202c;
    font-weight: 600;
}

.categories-intro {
    color: #4a5568;
    margin-bottom: 2.5rem;
    line-height: 1.7;
}

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

.category-card {
    background: white;
    border-radius: 16px;
    padding: 1.75rem;
    box-shadow: 0 8px 20px rgba(0,0,0,0.08);
    text-align: left;
    border: 1px solid #e2e8f0;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

.category-card h3 {
    margin: 0 0 0.75rem;
    font-size: 1.25rem;
    color: #2d3748;
}

.category-card ul {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #4a5568;
    line-height: 1.6;
}

.category-card li {
    margin-bottom: 0.65rem;
}

/* Ending Tip */
.stress-ending {
    padding: 4.5rem 1.5rem;
    text-align: center;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    color: #2d3748;
}

.stress-ending-container {
    max-width: 700px;
    margin: 0 auto;
}

.stress-ending h2 {
    font-size: clamp(1.6rem, 3.5vw, 2rem);
    margin-bottom: 1rem;
    font-weight: 600;
}

.stress-ending p {
    font-size: 1.05rem;
    color: #4a5568;
    line-height: 1.7;
}

/* Responsive adjustments */
@media (max-width: 900px) {
    .background-btn {
        padding: 0.65rem 1.1rem;
    }
}

@media (max-width: 768px) {
    .stress-hero {
        padding: 5rem 1.25rem 4rem;
    }
    .stress-level-description {
        padding: 1.25rem;
    }
    .relief-surface {
        height: 280px;
    }
    .categories-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .stress-hero h1 {
        font-size: 2rem;
    }
    .stress-hero-subtitle {
        font-size: 1rem;
    }
    .stress-levels {
        gap: 0.5rem;
    }
    .stress-level-btn {
        padding: 0.65rem 1rem;
    }
    .relief-surface {
        height: 240px;
    }
}
