/* ============================================================
   EMOTIONAL WEATHER — Storm Chooser Page
   /weather/css/emotional-weather.css
   ============================================================ */

/* ── Hero Image Banner ── */
.ew-hero-image {
    position: relative;
    width: 100%; height: 0;
    padding-bottom: 20%;
    overflow: hidden;
    background: var(--hum-dark, #1a1a2e);
}
.ew-hero-image__wrap {
    position: absolute;
    inset: 0; width: 100%; height: 100%;
}
.ew-hero-image__wrap img {
    display: block;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center center;
}
.ew-hero-image__overlay {
    position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg,
        rgba(20, 20, 35, 0.35) 0%,
        rgba(20, 20, 35, 0.08) 40%,
        rgba(20, 20, 35, 0.05) 60%,
        rgba(20, 20, 35, 0.25) 100%
    );
}
.ew-hero-image__content {
    position: absolute; inset: 0;
    display: flex; flex-direction: column;
    align-items: center; justify-content: center;
    text-align: center; z-index: 2;
    padding: 1rem 2rem;
}
.ew-hero-image__eyebrow {
    font-family: var(--font-body);
    font-size: 0.7rem; font-weight: 600;
    letter-spacing: 0.18em; text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
    margin: 0 0 0.4rem;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
    opacity: 0; animation: heroFadeUp 0.8s ease 0.2s forwards;
}
.ew-hero-image__title {
    font-family: var(--font-heading);
    font-size: clamp(1.6rem, 4.5vw, 3.2rem);
    font-weight: 700; color: #ffffff;
    margin: 0; line-height: 1.15;
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6), 0 1px 4px rgba(0, 0, 0, 0.4);
    opacity: 0; animation: heroFadeUp 0.8s ease 0.4s forwards;
}
.ew-hero-image__subtitle {
    font-family: var(--font-heading);
    font-size: clamp(0.85rem, 2.2vw, 1.25rem);
    font-weight: 400; font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin: 0.3rem 0 0;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.5);
    opacity: 0; animation: heroFadeUp 0.8s ease 0.6s forwards;
}
@keyframes heroFadeUp {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Coming-soon card dimming ── */
.ew-card--coming-soon {
    opacity: 0.5;
    cursor: default;
}
.ew-card--coming-soon:hover {
    transform: none;
    background: var(--glass-light);
    border-color: rgba(255, 255, 255, 0.06);
}
.ew-card--coming-soon::before { display: none; }
.ew-card--coming-soon .ew-card__cta {
    color: var(--text-muted);
    font-style: italic;
}

/* ── Instructions ── */
.ew-instructions {
    text-align: center;
    padding: 36px 0 40px;
    max-width: 640px;
    margin: 0 auto;
    animation: fadeDown 0.8s ease;
}
.ew-instructions p {
    font-size: 15px; line-height: 1.8;
    color: var(--text-soft); margin-bottom: 16px;
}
.ew-instructions p:last-child { margin-bottom: 0; }
.ew-instructions strong { color: var(--hum-gold); }
.ew-instructions a {
    color: var(--hum-gold);
    text-decoration: underline;
    text-decoration-color: rgba(255, 214, 89, 0.3);
    text-underline-offset: 3px;
    font-weight: 600;
    transition: text-decoration-color 0.3s ease;
}
.ew-instructions a:hover { text-decoration-color: var(--hum-gold); }

/* ── Storm Cards Grid ── */
.ew-storms { padding: 20px 0 48px; }
.ew-storms .section-header { margin-bottom: 28px; }

.ew-card-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.ew-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    padding: 28px 16px 24px;
    border-radius: 16px;
    background: var(--glass-light);
    border: 1px solid rgba(255, 255, 255, 0.06);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s ease;
}
.ew-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 3px;
    background: var(--card-accent, var(--hum-teal));
    opacity: 0;
    transition: opacity 0.4s ease;
}
.ew-card:hover {
    background: var(--glass-medium);
    border-color: rgba(255, 255, 255, 0.10);
    transform: translateY(-4px);
}
.ew-card:hover::before { opacity: 1; }

.ew-card__icon {
    font-size: 48px;
    margin-bottom: 12px;
    display: block;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}
.ew-card:hover .ew-card__icon { transform: scale(1.12); }

.ew-card__icon-img {
    width: 52px; height: 52px;
    margin-bottom: 12px;
    display: block;
    filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.3));
    transition: transform 0.3s ease;
}
.ew-card:hover .ew-card__icon-img { transform: scale(1.12); }

.ew-card__weather {
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--card-accent, var(--hum-teal));
    margin-bottom: 4px;
}

.ew-card__emotion {
    font-family: var(--font-heading);
    font-size: 22px;
    font-weight: 700;
    color: var(--text-light);
    margin-bottom: 10px;
}

.ew-card__desc {
    font-size: 13px;
    line-height: 1.65;
    color: var(--text-muted);
    flex-grow: 1;
}

.ew-card__cta {
    font-size: 12px;
    font-weight: 600;
    color: var(--card-accent, var(--hum-teal));
    margin-top: 14px;
    transition: color 0.3s ease;
}
.ew-card:hover .ew-card__cta { color: var(--hum-gold); }

/* Card accent colors */
.ew-card--anger   { --card-accent: #e85d4a; }
.ew-card--sadness { --card-accent: #5b8fc7; }
.ew-card--fear    { --card-accent: #8ba8b8; }
.ew-card--disgust { --card-accent: #c4884a; }
.ew-card--grief   { --card-accent: #8b7bb8; }
.ew-card--shame   { --card-accent: #9a6b8a; }

/* ── Four Questions Accordion ── */
.four-questions { padding: 32px 0 0; }

.four-questions__card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 16px;
    padding: 28px 28px 12px;
    backdrop-filter: blur(8px);
}

.four-questions__header {
    text-align: center;
    margin-bottom: 20px;
}
.four-questions__eyebrow {
    font-size: 10px;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    color: rgba(255, 214, 89, 0.6);
    font-weight: 600;
    margin-bottom: 6px;
}
.four-questions__title {
    font-family: var(--font-heading);
    font-size: 24px;
    font-weight: 700;
    color: white;
    margin-bottom: 6px;
}
.four-questions__intro {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.45);
    line-height: 1.6;
    max-width: 440px;
    margin: 0 auto;
}

/* Accordion items */
.fq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.fq-item:last-of-type { border-bottom: none; }

.fq-item__trigger {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 4px;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    color: inherit;
    font-family: inherit;
}

.fq-item__num {
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 15px;
    color: var(--hum-gold);
    flex-shrink: 0;
    width: 32px;
}

.fq-item__question {
    font-family: var(--font-heading);
    font-size: 17px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.85);
    flex: 1;
    transition: color 0.3s;
}
.fq-item.open .fq-item__question { color: #ffffff; }

.fq-item__chevron {
    color: rgba(255, 255, 255, 0.3);
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                color 0.3s;
}
.fq-item.open .fq-item__chevron {
    transform: rotate(180deg);
    color: var(--hum-gold);
}

/* Accordion body — collapse/expand */
.fq-item__body {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.35s ease;
}
.fq-item.open .fq-item__body {
    max-height: 300px;
    opacity: 1;
}

.fq-item__content {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 10px;
    padding: 18px 22px;
    margin-left: 46px;
    margin-bottom: 18px;
    border-left: 3px solid rgba(255, 214, 89, 0.25);
}
.fq-item__content p {
    font-size: 14.5px;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.65);
    font-style: italic;
    margin: 0;
}
.fq-item__content em {
    color: rgba(255, 255, 255, 0.85);
    font-style: italic;
}

.four-questions__note {
    text-align: center;
    padding: 16px 0 8px;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.35);
    font-style: italic;
}

/* ── Why Weather ── */
.ew-about { padding: 40px 0 48px; }
.ew-about__body { max-width: 640px; margin: 0 auto; }
.ew-about__body p {
    font-size: 15px; line-height: 1.85;
    color: var(--text-soft); margin-bottom: 20px;
}
.ew-about__body p:last-child { margin-bottom: 0; }
.ew-about__body em { color: var(--hum-teal); font-style: italic; }

/* ── CTA Section ── */
.ew-cta { padding: 40px 0 56px; }
.ew-cta__card {
    background: linear-gradient(135deg, rgba(40, 179, 189, 0.08), rgba(197, 70, 133, 0.06));
    border: 1px solid rgba(40, 179, 189, 0.20);
    border-radius: 20px;
    padding: 44px 36px;
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}
.ew-cta__heading {
    font-family: var(--font-heading);
    font-size: clamp(22px, 4vw, 30px);
    font-weight: 700;
    color: var(--hum-teal);
    margin-bottom: 16px;
}
.ew-cta__body {
    font-size: 15px; line-height: 1.75;
    color: var(--text-soft);
    max-width: 500px; margin: 0 auto 24px;
}
.ew-cta__buttons {
    display: flex; gap: 12px;
    justify-content: center; flex-wrap: wrap;
}
.ew-cta__note {
    font-size: 14px; font-style: italic;
    color: var(--text-muted); margin-top: 20px;
}

/* ── Stressful Thought Entry ── */
.thought-entry {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    margin-top: 20px;
}
.thought-entry h3 {
    font-family: var(--font-heading);
    font-size: 22px; color: white;
    margin-bottom: 8px;
}
.thought-entry p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 14px; margin-bottom: 20px;
    line-height: 1.6;
}
.thought-input {
    width: 100%;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 14px 18px;
    color: var(--text-light);
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 16px;
    outline: none;
    text-align: center;
    transition: border-color 0.3s;
}
.thought-input::placeholder { color: rgba(255, 255, 255, 0.25); }
.thought-input:focus { border-color: var(--hum-teal); }

/* ── Responsive ── */
@media (max-width: 767px) {
    .ew-hero-image { padding-bottom: 25%; }
    .ew-hero-image__title { font-size: 1.5rem; }
    .ew-hero-image__subtitle { font-size: 0.8rem; }
    .ew-hero-image__eyebrow { font-size: 0.6rem; }
    .ew-card-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
    .ew-card { padding: 22px 14px 20px; }
    .ew-card__emotion { font-size: 20px; }
    .ew-cta__card { padding: 32px 24px; }
    .ew-cta__buttons { flex-direction: column; align-items: center; }
    .ew-cta__buttons .cta-btn,
    .ew-cta__buttons .cta-btn-outline { width: 100%; max-width: 280px; text-align: center; }
    .four-questions__card { padding: 22px 20px 10px; }
    .four-questions__title { font-size: 21px; }
    .fq-item__question { font-size: 15px; }
    .fq-item__content { margin-left: 36px; padding: 14px 18px; }
}
@media (max-width: 480px) {
    .ew-hero-image { padding-bottom: 30%; }
    .ew-hero-image__title { font-size: 1.3rem; }
    .ew-card-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .ew-card__icon { font-size: 40px; }
    .ew-card__icon-img { width: 44px; height: 44px; }
    .ew-card__emotion { font-size: 18px; }
    .ew-card__desc { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    .ew-hero-image__eyebrow,
    .ew-hero-image__title,
    .ew-hero-image__subtitle { opacity: 1; animation: none; }
}
/* ═══════ BACK NAVIGATION BUBBLE ═══════ */
.back-nav {
    text-align: center;
    padding: 14px 0 6px;
    position: relative;
    z-index: 2;
}
.back-nav .back-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.05);
    color: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    font-size: 12px;
    font-family: 'Open Sans', sans-serif;
    transition: all 0.2s ease;
}
.back-nav .back-link:hover {
    border-color: rgba(255, 255, 255, 0.3);
    color: rgba(255, 255, 255, 0.8);
    background: rgba(255, 255, 255, 0.08);
}
.back-nav .back-link svg {
    width: 13px;
    height: 13px;
    flex-shrink: 0;
}