/* Zeitline v2 — mockup-aligned screen styles */

.nav-section-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 1.25rem 1rem 0.35rem;
    margin-top: 0.25rem;
}

.nav-section-label:first-child {
    margin-top: 0;
    padding-top: 0.5rem;
}

.v2-page-header {
    margin-bottom: 2rem;
}

.v2-page-header h1 {
    font-size: clamp(1.75rem, 4vw, 2.5rem);
    margin-bottom: 0.35rem;
}

.v2-page-header .v2-tagline {
    color: var(--text-secondary);
    font-size: 1.05rem;
    max-width: 560px;
}

.v2-hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.25rem;
    margin-bottom: 2.5rem;
}

.v2-hub-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-height: 140px;
}

.v2-hub-card:hover {
    border-color: rgba(201, 255, 87, 0.35);
    transform: translateY(-3px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.v2-hub-card .hub-icon {
    font-size: 1.75rem;
}

.v2-hub-card h3 {
    font-family: 'DM Sans', sans-serif;
    font-size: 1.05rem;
    font-weight: 600;
}

.v2-hub-card p {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.45;
    flex: 1;
}

.v2-hub-card .hub-arrow {
    font-size: 0.8rem;
    color: var(--accent-primary);
    font-weight: 600;
}

.v2-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.v2-card h2 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
}

.v2-stat-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.v2-stat {
    background: var(--bg-elevated);
    border-radius: 14px;
    padding: 1rem 1.25rem;
    text-align: center;
}

.v2-stat .num {
    font-family: var(--font-serif, 'Instrument Serif', Georgia, serif);
    font-size: 1.75rem;
    color: var(--accent-primary, #c9ff57);
}

.v2-stat .lbl {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.25rem;
}

/* Capture hub */
.capture-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.capture-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    padding: 1.15rem 0.75rem;
    text-decoration: none;
    color: var(--text-primary);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.25s;
    cursor: pointer;
}

.capture-chip:hover {
    transform: translateY(-2px);
    border-color: var(--border-hover, rgba(255, 255, 255, 0.12));
}

.capture-chip span:last-child {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.capture-chip span {
    font-size: 0.8rem;
    font-weight: 500;
    text-align: center;
}

.capture-mic {
    width: 100px;
    height: 100px;
    margin: 2rem auto;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    color: var(--bg-deep);
    border: none;
    font-size: 2.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 60px var(--glow-primary);
}

/* Memory search */
.memory-search-box {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.memory-search-box input {
    flex: 1;
    padding: 1rem 1.25rem;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 100px;
    color: var(--text-primary);
    font-size: 1rem;
}

.memory-search-box input:focus {
    outline: none;
    border-color: var(--accent-primary, #0a84ff);
}

.memory-suggestions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.memory-suggestion {
    padding: 0.5rem 1rem;
    border-radius: 100px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s;
}

.memory-suggestion:hover {
    border-color: var(--accent-primary);
    color: var(--text-primary);
}

.memory-answer {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 20px;
    padding: 1.5rem;
    line-height: 1.65;
    white-space: pre-wrap;
}

.memory-answer.loading {
    color: var(--text-muted);
    font-style: italic;
}

.memory-citations {
    margin-top: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Day replay */
.day-replay-layout {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
}

@media (max-width: 900px) {
    .day-replay-layout {
        grid-template-columns: 1fr;
    }
}

.replay-schedule {
    list-style: none;
}

.replay-schedule li {
    display: flex;
    gap: 1rem;
    padding: 0.85rem 0;
    border-bottom: 1px solid var(--border-subtle);
}

.replay-time {
    width: 72px;
    flex-shrink: 0;
    font-size: 0.8rem;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.replay-event-title {
    font-weight: 500;
}

.replay-event-meta {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.date-nav {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.date-nav input[type="date"] {
    padding: 0.6rem 1rem;
    background: var(--bg-input);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    color: var(--text-primary);
    font-family: inherit;
}

/* Future canvas */
.what-if-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1rem;
}

.what-if-chip {
    padding: 0.5rem 1rem;
    border-radius: 100px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-elevated);
    font-size: 0.85rem;
    cursor: pointer;
}

.what-if-chip.active {
    border-color: var(--accent-primary);
    background: rgba(201, 255, 87, 0.1);
    color: var(--accent-primary);
}

.hlo-banner {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border-radius: 14px;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
}

.hlo-banner.off {
    background: rgba(255, 107, 107, 0.08);
    border: 1px solid rgba(255, 107, 107, 0.25);
}

.hlo-banner.on {
    background: rgba(87, 255, 212, 0.08);
    border: 1px solid rgba(87, 255, 212, 0.25);
}

/* Glasses companion */
.glasses-hero {
    text-align: center;
    padding: 3rem 2rem;
    background: linear-gradient(180deg, rgba(201, 255, 87, 0.06), transparent);
    border: 1px solid var(--border-subtle);
    border-radius: 24px;
    margin-bottom: 2rem;
}

.glasses-hero .glasses-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.library-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.library-tab {
    padding: 0.45rem 1rem;
    border-radius: 100px;
    border: 1px solid var(--border-subtle);
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.85rem;
    cursor: pointer;
}

.library-tab.active {
    background: var(--accent-primary);
    color: var(--bg-deep);
    border-color: var(--accent-primary);
}

.recent-list {
    list-style: none;
}

.recent-list li {
    padding: 1rem;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    margin-bottom: 0.5rem;
    cursor: pointer;
    transition: background 0.2s;
}

.recent-list li:hover {
    background: var(--bg-elevated);
}

/* ——— View shells (Time, Trajectory, Capture) ——— */
.zl-view-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 4px;
    padding: 4px;
    border-radius: var(--radius-pill);
}

.zl-view-tab {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius-pill);
    background: transparent;
    color: var(--text-secondary);
    font-family: var(--font-ui, 'DM Sans', sans-serif);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.zl-view-tab [data-lucide],
.zl-view-tab svg {
    width: 15px;
    height: 15px;
}

.zl-view-tab:hover {
    color: var(--text-primary);
    background: var(--bg-glass-strong);
}

.zl-view-tab.active {
    background: var(--accent-primary-dim);
    color: var(--accent-primary);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

html[data-theme="light"] .zl-view-tab.active,
html:not([data-theme]) .zl-view-tab.active {
    background: rgba(201, 255, 87, 0.4);
    color: #3d5212;
}

.zl-shell-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 1.25rem;
    margin-bottom: 1rem;
}

.zl-shell-header .zl-lede {
    max-width: 420px;
    margin-top: 0.35rem;
}

.zl-shell-note {
    font-size: 0.7rem;
    color: var(--text-muted);
    margin: 0 0 0.75rem;
}

.zl-shell-frame-wrap {
    padding: 0;
    overflow: hidden;
    min-height: calc(100vh - 220px);
}

.zl-shell-frame {
    display: block;
    width: 100%;
    min-height: calc(100vh - 220px);
    border: none;
    background: var(--bg-deep);
}

/* Home — page 1 Overview · page 2 Goals (mockups 7 & 8) */
.zl-home-pager {
    margin-bottom: 1.5rem;
}

.zl-home-panel[hidden] {
    display: none !important;
}

.zl-home-goals-intro {
    margin-bottom: 1.25rem;
}

.zl-home-goals-frame {
    min-height: calc(100vh - 280px);
}

/* Capture — Live + Library on one page (mockups 10 & 11) */
.zl-capture-section {
    margin-bottom: 2rem;
    scroll-margin-top: 1rem;
}

.zl-capture-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.zl-capture-embed {
    min-height: 420px;
}

/* Embedded child pages — no duplicate sidebar */
html.zl-embed .sidebar,
html.zl-embed .sidebar-footer,
html.zl-embed .mobile-nav,
html.zl-embed #mobile-nav-overlay {
    display: none !important;
}

html.zl-embed .dashboard {
    display: block;
    min-height: 100vh;
}

html.zl-embed .main-content {
    margin: 0;
    padding: 1rem 1.25rem 2rem;
    width: 100%;
    max-width: none;
    min-height: 100vh;
}

html.zl-embed .zl-atmosphere {
    display: none;
}
