/* ============================================================
   CARD READING — redesigned reading panel
   ============================================================ */

.reading-hero-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 22px 20px 20px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    text-align: center;
}

.reading-hero-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 14px;
}

.reading-hero-sym {
    font-size: 18px;
    line-height: 1;
}

.reading-hero-guide {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.reading-hero-msg {
    font-size: 17px;
    line-height: 1.7;
    color: var(--text-primary);
    font-style: italic;
    margin: 0;
    font-weight: 500;
}

.reading-dims-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 6px 16px;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    flex-direction: column;
}

.reading-dim-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
}

.reading-dim-row:last-child {
    border-bottom: none;
}

.reading-dim-row .reading-dim-icon {
    flex-shrink: 0;
    margin-top: 1px;
}

.reading-dim-row .reading-dim-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
}

.reading-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reading-save-btn {
    width: 100%;
    padding: 14px;
    border-radius: var(--radius-md);
    border: none;
    font-size: 15px;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s;
    box-shadow: var(--shadow-sm);
}

.reading-save-btn:active { opacity: 0.8; }

/* Saved reading remove button */
.saved-remove-btn {
    flex-shrink: 0;
    align-self: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: rgba(150, 110, 130, 0.10);
    color: var(--text-dim);
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, color 0.15s;
    font-family: inherit;
}
.saved-remove-btn:active {
    background: rgba(232, 32, 32, 0.12);
    color: var(--red);
}

/* ============================================================
   innerbloom UI kit — supplemental styles
   Extends the production app.css for the redesigned home hub
   (Tools / Meditation / Events / Consultation) and the two new
   surfaces (Meditation audio, Events). Everything reuses the
   existing tokens & rainbow palette from app.css.
   ============================================================ */

/* app.css re-declares :root with the old lavender neutrals — re-assert the
   pastel BRAND neutrals here (kit.css loads last). The vivid --rb-* / --gold
   feature vars from app.css are intentionally left untouched for Rainbow Number. */
:root {
    --bg-deep:        #fffdf9;
    --bg-mid:         #fbf4f0;
    --bg-card:        rgba(255, 255, 255, 0.78);
    --bg-card-hover:  rgba(255, 255, 255, 0.96);
    --text-primary:   #34243a;
    --text-secondary: #8a6e84;
    --text-dim:       #b9a8b4;
    --border:         rgba(150, 110, 130, 0.16);
    --border-bright:  rgba(150, 110, 130, 0.32);
    --shadow-sm: 0 2px 12px rgba(150, 110, 130, 0.10);
    --shadow-md: 0 4px 28px rgba(150, 110, 130, 0.14);
    --shadow-lg: 0 10px 48px rgba(150, 110, 130, 0.20);
}

/* Fullscreen app shell */
html, body { height: 100%; overflow: hidden; }

#root {
    position: fixed;
    inset: 0;
    overflow: hidden;
}

.ib-app {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background: var(--bg-deep);
    background-image:
        radial-gradient(ellipse 82% 46% at 16%  0%,  rgba(253,214,196,0.50) 0%, transparent 60%),
        radial-gradient(ellipse 70% 42% at 90%  3%,  rgba(253,196,197,0.44) 0%, transparent 60%),
        radial-gradient(ellipse 78% 52% at 100% 84%, rgba(169,204,226,0.40) 0%, transparent 60%),
        radial-gradient(ellipse 72% 52% at  0% 97%, rgba(224,202,213,0.36) 0%, transparent 60%);
}

/* Phone mock shell (stands in for a device viewport) */
.ib-phone {
    width: 390px;
    height: 844px;
    margin: 0 auto;
    position: relative;
    border-radius: 44px;
    background: var(--bg-deep);
    background-image:
        radial-gradient(ellipse 82% 46% at 16%  0%,  rgba(253,214,196,0.50) 0%, transparent 60%),
        radial-gradient(ellipse 70% 42% at 90%  3%,  rgba(253,196,197,0.44) 0%, transparent 60%),
        radial-gradient(ellipse 78% 52% at 100% 84%, rgba(169,204,226,0.40) 0%, transparent 60%),
        radial-gradient(ellipse 72% 52% at  0% 97%, rgba(224,202,213,0.36) 0%, transparent 60%);
    box-shadow: 0 24px 80px rgba(150,110,130,0.26), 0 2px 0 rgba(255,255,255,0.6) inset;
    overflow: hidden;
    border: 1px solid rgba(150,110,130,0.12);
}
.ib-screen {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}
.ib-screen::-webkit-scrollbar { width: 0; }

/* iOS status bar */
.ib-statusbar {
    height: 44px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 26px 0 30px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-primary);
}
.ib-statusbar .dots { display: flex; align-items: center; gap: 6px; }
.ib-statusbar svg { display: block; }

/* Home logo (real inner bloom mark) */
.home-logo { width: 150px; height: 150px; object-fit: contain; display: block; margin: 0 auto; mix-blend-mode: multiply; }
.home-hero { padding-top: 30px; }

/* New entry-icon accents — soft pastel logo tones (rainbow stays in Rainbow Number) */
.entry-icon-tools {
    background: linear-gradient(135deg, var(--tint-coral), var(--tint-peach));
    border: 1px solid rgba(236,151,152,0.30);
    color: #e2867f;
}
.entry-icon-meditation {
    background: linear-gradient(135deg, var(--tint-soft-blue), rgba(224,202,213,0.20));
    border: 1px solid rgba(127,168,216,0.32);
    color: #6f9bcf;
}
.entry-icon-event {
    background: linear-gradient(135deg, var(--tint-peach), var(--tint-coral));
    border: 1px solid rgba(253,192,130,0.40);
    color: #ee9a5b;
}
.entry-icon-consult {
    background: linear-gradient(135deg, var(--tint-coral), var(--tint-soft-blue));
    border: 1px solid rgba(236,151,152,0.30);
    color: #e58fa6;
}
.entry-icon svg { width: 26px; height: 26px; }

/* Section eyebrow used on hub sub-screens */
.ib-eyebrow {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: var(--text-secondary);
    opacity: 0.85;
    padding: 4px var(--space-md) 0;
}

/* ── Meditation: audio list ── */
.med-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    padding: 0 var(--space-md);
}
.med-item {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 14px var(--space-md);
    cursor: pointer;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: var(--shadow-sm);
    transition: transform 0.15s, border-color 0.15s, background 0.15s;
    width: 100%;
    text-align: left;
    -webkit-tap-highlight-color: transparent;
}
.med-item:active { transform: scale(0.985); background: var(--bg-card-hover); border-color: var(--border-bright); }
.med-item.is-playing { border-color: rgba(40,168,64,0.4); box-shadow: 0 0 16px rgba(40,168,64,0.12); }
.med-play {
    width: 46px; height: 46px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #28a840, #1898d8);
    box-shadow: 0 3px 12px rgba(40,168,64,0.3);
}
.med-play svg { width: 18px; height: 18px; margin-left: 2px; }
.med-item.is-playing .med-play { background: linear-gradient(135deg, #1898d8, #1868c8); }
.med-item.is-playing .med-play svg { margin-left: 0; }
.med-body { flex: 1; min-width: 0; }
.med-title { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.med-meta { font-size: 12px; color: var(--text-dim); margin-top: 2px; font-variant-numeric: tabular-nums; }
.med-dur { font-size: 12px; font-weight: 600; color: var(--text-secondary); font-variant-numeric: tabular-nums; flex-shrink: 0; }

/* Mini player bar */
.med-player {
    margin: var(--space-md);
    background: var(--bg-card);
    border: 1px solid var(--border-bright);
    border-radius: var(--radius-lg);
    padding: var(--space-md);
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.med-player-top { display: flex; align-items: center; gap: var(--space-md); }
.med-player-title { flex: 1; min-width: 0; }
.med-player-title .t { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.med-player-title .s { font-size: 12px; color: var(--text-secondary); margin-top: 1px; }
.med-track { height: 5px; border-radius: 3px; background: rgba(120,40,160,0.12); margin-top: var(--space-md); overflow: hidden; }
.med-track-fill { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #28a840, #1898d8); }
.med-times { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-dim); margin-top: 6px; font-variant-numeric: tabular-nums; }

/* ── Events ── */
.event-list { display: flex; flex-direction: column; gap: var(--space-md); padding: 0 var(--space-md); }
.event-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.event-banner { height: 5px; }
.event-card-body { padding: var(--space-md) var(--space-lg) var(--space-lg); display: flex; gap: var(--space-md); }
.event-date {
    flex-shrink: 0; width: 54px; text-align: center;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.55); border: 1px solid var(--border); border-radius: var(--radius-md);
    padding: 8px 0;
}
.event-date .mon { font-size: 10px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }
.event-date .day { font-size: 24px; font-weight: 900; color: var(--text-primary); line-height: 1; margin-top: 2px; font-variant-numeric: tabular-nums; }
.event-info { flex: 1; min-width: 0; }
.event-name { font-size: 16px; font-weight: 800; color: var(--text-primary); line-height: 1.25; }
.event-where { font-size: 12px; color: var(--text-secondary); margin-top: 5px; display: flex; align-items: center; gap: 6px; }
.event-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.event-tag {
    font-size: 10px; font-weight: 700; letter-spacing: 0.02em;
    padding: 2px 8px; border-radius: var(--radius-pill);
    background: rgba(120,40,160,0.10); color: var(--purple); border: 1px solid rgba(120,40,160,0.18);
}

/* ── Consultation screen ── */
.consult-hero { padding: var(--space-lg) var(--space-lg) var(--space-md); text-align: center; }
.consult-hero h2 { font-size: 24px; font-weight: 800; color: var(--text-primary); margin-bottom: 8px; }
.consult-hero p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; max-width: 300px; margin: 0 auto; }
.consult-list { padding: 0 var(--space-lg); display: flex; flex-direction: column; gap: var(--space-sm); }
.consult-feature { display: flex; align-items: flex-start; gap: var(--space-md); background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 14px var(--space-md); box-shadow: var(--shadow-sm); }
.consult-feature .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; }
.consult-feature .ft { font-size: 14px; font-weight: 700; color: var(--text-primary); }
.consult-feature .fb { font-size: 12px; color: var(--text-secondary); margin-top: 2px; line-height: 1.45; }

/* Tools hub: tool cards reuse home-entry */
.tools-grid { display: flex; flex-direction: column; gap: var(--space-md); padding: 0 var(--space-md); }

/* Generic vertical rhythm helper for screens */
.ib-stack { display: flex; flex-direction: column; gap: var(--space-md); padding-bottom: var(--space-xl); }

/* App chrome: warm the bilingual toggle's active state to brand coral */
.lang-btn.active { color: var(--accent-coral); }
.back-btn { color: var(--accent-coral); }
