/* =====================================================
   HONESTLY, E — Health Journey Panel (Elif Wellness Companion)
   Elif's right-column shell — replaces timeline when Elif is
   the active companion. Mirrors Cookbook (Ember) / Quilt (Ezra)
   / Inquiry (Elias) pattern.

   Two things live here per Desta's design:
   - "Request a Memoir" CTA at the top (existing request flow)
   - Chronicle of past conversations with Elif (the health
     journey itself — accreting as you talk to her)

   Naming discipline: surface name is "Health Journey." Memoir
   artifacts are named just "Memoir" — never "Death Memoir,"
   "Recovery Memoir," etc. (see js/health-memoirs.js for the
   principle).

   Per companion-surface-awareness principle: piece 1 of 4 (UI).
   Brand accent: --elif-color #6E9994 (teal). Pairs with the
   Istanbul backdrop already in shells.css.
   ===================================================== */

.health-journey-panel {
    display: none;
    width: var(--timeline-width, 280px);
    flex-shrink: 0;
    background: var(--bg-card);
    border-left: 1px solid var(--border-light);
    flex-direction: column;
    height: calc(100vh - var(--header-height));
    position: sticky;
    top: var(--header-height);
    overflow: hidden;
}

.elif-active .health-journey-panel {
    display: flex;
}

.elif-active .timeline-sidebar {
    display: none;
}

.elif-active .timeline-fab {
    display: none !important;
}

/* -----------------------------------------------------
   Header
   ----------------------------------------------------- */
.health-journey-panel-header {
    padding: 1.25rem 1.25rem 1rem;
    border-bottom: 1px solid var(--border-light);
}

.health-journey-panel-title {
    font-family: var(--font-serif);
    font-size: 1.15rem;
    color: var(--text-primary);
    margin: 0 0 0.2rem;
}

.health-journey-panel-sub {
    font-size: 0.78rem;
    color: var(--text-muted);
    font-style: italic;
}

/* -----------------------------------------------------
   Request a Memoir — prominent CTA
   ----------------------------------------------------- */
.health-journey-panel-cta {
    padding: 0.9rem 0.85rem;
    border-bottom: 1px solid var(--border-light);
    flex-shrink: 0;
}

.health-journey-panel-cta-btn {
    width: 100%;
    background: var(--elif-color, #6E9994);
    color: white;
    border: none;
    padding: 0.7rem 1rem;
    font-family: var(--font-serif);
    font-size: 0.9rem;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition-fast);
    letter-spacing: 0.2px;
}

.health-journey-panel-cta-btn:hover {
    background: #557A75;
}

.health-journey-panel-cta-sub {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 0.4rem;
    text-align: center;
    font-style: italic;
    line-height: 1.4;
}

/* -----------------------------------------------------
   Section heading
   ----------------------------------------------------- */
.health-journey-panel-section {
    padding: 0.85rem 0.85rem 0.5rem;
    flex-shrink: 0;
}

.health-journey-panel-section-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1.2px;
    color: var(--text-muted);
    font-family: var(--font-sans);
}

/* -----------------------------------------------------
   Scroll area + chronicle list
   ----------------------------------------------------- */
.health-journey-panel-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 0 0.85rem 0.85rem;
}

.health-journey-panel-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--text-muted);
}

.health-journey-panel-empty-icon {
    font-size: 1.6rem;
    opacity: 0.4;
    margin-bottom: 0.5rem;
}

.health-journey-panel-empty-title {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    color: var(--text-primary);
    margin-bottom: 0.3rem;
}

.health-journey-panel-empty-text {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--text-muted);
}

/* Chronicle entry — past conversations with Elif */
.health-journey-panel-entry {
    padding: 0.65rem 0.75rem;
    border-radius: var(--radius-md);
    border: 1px solid transparent;
    margin-bottom: 0.45rem;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-left: 3px solid var(--elif-color, #6E9994);
}

.health-journey-panel-entry:hover {
    background: var(--bg-hover);
    border-color: var(--border-light);
    border-left-color: var(--elif-color, #6E9994);
}

.health-journey-panel-entry-date {
    font-size: 0.7rem;
    color: var(--elif-color, #6E9994);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--font-sans);
    margin-bottom: 0.25rem;
}

.health-journey-panel-entry-title {
    font-family: var(--font-serif);
    font-size: 0.92rem;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 0.25rem;
}

.health-journey-panel-entry-preview {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.4;
    font-style: italic;
}

/* -----------------------------------------------------
   Responsive — collapse panel on mobile
   ----------------------------------------------------- */
@media (max-width: 1024px) {
    .elif-active .health-journey-panel {
        display: none;
    }
    .elif-active .timeline-sidebar {
        display: flex;
    }
}
