/* =========================================================================
   Features added in stage 8: catalog filters, plans, journal, dashboard,
   share pictures, cookie banner, blog, light theme.
   ========================================================================= */

.center-line { text-align: center; margin-top: 24px; }
.inline-form { display: inline; margin: 0; }
.tag { display: inline-block; font-size: 12px; color: var(--gold); opacity: .85; margin-right: 6px; }
.status { display: inline-block; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; padding: 3px 9px; border-radius: 20px; border: 1px solid var(--line); color: var(--text-soft); }
.status-ok { border-color: var(--gold-line); color: var(--gold); }
.big-symbol { font-size: 44px; color: var(--gold); margin-bottom: 8px; }
.field-inline { display: inline-flex; align-items: center; gap: 10px; margin: 0; }
.field-inline input { min-width: 0; }
select, input[type=date], input[type=search] {
  background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; font: inherit; font-size: 14px;
}
select option { background: var(--bg-raise); color: var(--text); }

/* ---------- Chips and filters ---------- */
.filters, .journal-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; margin-bottom: 26px; }
.journal-filters { justify-content: flex-start; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-block; border: 1px solid var(--line-gold); border-radius: 30px; padding: 7px 16px;
  font-size: 13px; color: var(--text-soft); background: transparent; cursor: pointer; font-family: inherit; text-decoration: none;
}
.chip:hover { text-decoration: none; border-color: var(--gold-line); color: var(--gold); }
.chip[aria-current="true"] { background: rgba(230, 197, 141, .12); border-color: var(--gold-line); color: var(--gold); }
.sort-select { display: inline-flex; align-items: center; gap: 8px; }
.date-field { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-soft); }
.suggestions { margin: 6px 0 22px; }
.suggestions .chips { margin-top: 8px; }
.grid-tiles { align-items: stretch; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.tile-premium { border-color: var(--gold-line); box-shadow: 0 0 40px rgba(230, 197, 141, .08); }

/* ---------- Plans ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; margin: 10px 0 18px; }
.plan { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: var(--surface); }
.plan-featured { border-color: var(--gold-line); }
.plan-note { font-family: var(--font-body); font-size: 12px; letter-spacing: 1px; color: var(--ink); background: var(--gold); border-radius: 20px; padding: 3px 10px; vertical-align: middle; }
.plan-price { font-size: 15px; color: var(--text-soft); }
.plan-price strong { font-family: var(--font-display); font-size: 34px; color: var(--text); font-weight: 500; }
.plan-form { margin-top: 14px; }
.beta-note { font-size: 13px; color: var(--text-muted); border-left: 2px solid var(--gold-line); padding-left: 12px; margin: 14px 0 30px; }

/* ---------- Paywall extras ---------- */
.promo-form { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 18px; }
.paywall-total { border-top: 1px solid var(--line); padding-top: 10px; font-size: 16px; }

/* ---------- Result page extras ---------- */
.result-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: center; margin: 30px 0; }
.fav-btn { background: none; border: 0; color: var(--gold); cursor: pointer; font-size: 18px; padding: 0 4px; line-height: 1; opacity: .7; }
.fav-btn:hover, .fav-btn.is-saved { opacity: 1; }
.reflect-box, .offer-box, .success-box, .welcome-box {
  border: 1px solid var(--line-gold); border-radius: var(--radius); padding: 26px; margin: 26px 0; background: var(--surface);
}
.result-personal { border-left: 2px solid var(--gold-line); padding-left: 18px; }
.mood-field { margin: 18px 0; }
.mood-slider { width: 100%; accent-color: var(--gold); }
.mood-scale { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-muted); }
.mood-current { color: var(--gold); font-weight: 600; }
.share-modal canvas.share-preview { width: 100%; max-width: 360px; height: auto; display: block; margin: 12px auto; border-radius: 12px; border: 1px solid var(--line); }
.soft-save { border: 1px dashed var(--line-gold); border-radius: 14px; padding: 16px; margin: 20px 0; }
.soft-save-text { margin: 0 0 10px; }

/* ---------- Dashboard & journal ---------- */
.dash-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 26px; }
.dash-grid .field-label { letter-spacing: 2px; }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 30px; }
.dash-grid .info-box p { margin: 4px 0; }
.tips { padding-left: 20px; }
.tips .tip { margin-bottom: 8px; }
.tips .tip strong { display: block; color: var(--gold); font-weight: 500; }
.nudges { list-style: none; padding: 0; margin: 0 0 30px; display: grid; gap: 12px; }
.nudge { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--surface); }
.nudge p { margin: 0 0 6px; }
.record-list.compact li { padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 1px solid var(--line-gold); }
.timeline-item { position: relative; padding: 0 0 18px 22px; }
.timeline-item::before { content: ""; position: absolute; left: -5px; top: 18px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.timeline-card { display: flex; flex-direction: column; gap: 3px; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; color: var(--text); background: var(--surface); }
.timeline-card:hover { text-decoration: none; border-color: var(--gold-line); }
.timeline-date { font-size: 12px; letter-spacing: 2px; text-transform: uppercase; color: var(--text-muted); }
.timeline-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.mood-dot { width: 12px; height: 12px; border-radius: 50%; background: hsl(calc(var(--mood) * 1.2), 55%, 55%); display: inline-block; }
.mini-cards { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.mini-cards li { display: flex; flex-direction: column; align-items: center; gap: 4px; width: 110px; text-align: center; }
.mini-card { width: 100px; aspect-ratio: 1 / 1.72; display: block; position: relative; border-radius: 8px; overflow: hidden; }
.mini-card .card-face { position: absolute; inset: 0; }
.resonance { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 22px 0; }
.resonance .field-label { margin: 0 8px 0 0; }
.danger-zone { margin-top: 30px; text-align: right; }
.quote-list { padding-left: 18px; color: var(--text-soft); }
.quote-cards { list-style: none; padding: 0; display: grid; gap: 16px; }
.quote-card { border: 1px solid var(--line); border-radius: 14px; padding: 18px 22px; background: var(--surface); }
.quote-card blockquote { margin: 0 0 6px; font-family: var(--font-display); font-size: 22px; font-style: italic; }
.settings-form .check { margin: 10px 0; }

/* ---------- Reviews ---------- */
.reviews { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 10px 0; }
.review-card { margin: 0; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--surface); }
.review-card blockquote { margin: 8px 0 12px; color: var(--text); font-size: 15px; }
.review-card figcaption { font-size: 13px; color: var(--text-muted); }
.stars { color: var(--gold); letter-spacing: 2px; margin: 0; }
.stars-input { border: 0; padding: 0; display: inline-flex; flex-direction: row-reverse; gap: 4px; }
.stars-input input { position: absolute; opacity: 0; }
.stars-input label { font-size: 30px; color: var(--line-gold); cursor: pointer; }
.stars-input input:checked ~ label, .stars-input label:hover, .stars-input label:hover ~ label { color: var(--gold); }

/* ---------- Blog ---------- */
.article-grid { margin-top: 10px; }
.article-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); padding: 0 0 18px; }
.article-card img { width: 100%; height: 200px; object-fit: cover; object-position: top; }
.article-card > :not(a):not(img) { padding: 0 20px; }
.article-card .eyebrow { margin-top: 16px; }
.article-image { max-height: 360px; margin: 0 auto 24px; border-radius: 12px; }
.pagination { display: flex; gap: 18px; align-items: center; justify-content: center; margin: 26px 0; }

/* ---------- Decks ---------- */
.deck-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 22px; }
.deck-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; background: var(--surface); }
.deck-preview { display: flex; gap: 8px; margin-bottom: 14px; min-height: 120px; }
.deck-preview img { width: 23%; border-radius: 6px; border: 1px solid var(--line); }

/* ---------- Contact form ---------- */
.contact-grid { align-items: start; gap: 20px; }
.contact-form textarea, .gift-form textarea { width: 100%; }

/* ---------- Footer & cookie banner ---------- */
.footer-tools { display: flex; flex-wrap: wrap; gap: 18px; justify-content: center; align-items: center; margin: 14px 0; }
.footer-lang { display: flex; gap: 12px; }
.footer-lang a { font-size: 13px; }
.footer-cookie, .theme-switch .link-button { font-size: 13px; color: var(--text-soft); }
.theme-switch { margin: 0; }
.cookie-banner {
  position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 80; max-width: 760px; margin: 0 auto;
  background: var(--bg-raise); border: 1px solid var(--line-gold); border-radius: 16px; padding: 18px 20px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .45); font-size: 14px;
}
.cookie-banner p { margin: 0 0 12px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.picker-tools { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 18px; margin: 14px 0 0; }
.deck-form { margin: 0; }
.sound-toggle { font-size: 13px; color: var(--text-soft); }
.hotlines-note { margin-top: 30px; }

@media (max-width: 640px) {
  .filters { flex-direction: column; align-items: stretch; }
  .journal-filters > * { flex: 1 1 100%; }
  .result-actions { flex-direction: column; }
}

/* =========================================================================
   Light theme (TZ 5.5.4)
   ========================================================================= */
html[data-theme="light"] {
  color-scheme: light;
  --bg: #f7f2e9;
  --bg-raise: #fffaf2;
  --surface: rgba(80, 55, 20, 0.035);
  --line: rgba(60, 40, 20, 0.12);
  --line-gold: rgba(150, 110, 50, 0.3);
  --text: #2a2033;
  --text-soft: #5a4d63;
  --text-muted: #7b6f84;
  --gold: #8a6326;
  --gold-deep: #b98d4a;
  --gold-line: #b48a4c;
  --ink: #1f1726;
}
html[data-theme="light"] body {
  background-image: radial-gradient(ellipse at 50% 0%, #f1e2c8 0%, transparent 50%),
                    radial-gradient(circle at 80% 70%, #efe6f4, transparent 45%);
}
html[data-theme="light"] .site-header { background: rgba(247, 242, 233, 0.88); }
html[data-theme="light"] .eyebrow { color: #9a7031; }
html[data-theme="light"] .btn { color: #fffaf2; }
html[data-theme="light"] .btn-secondary { color: var(--gold); }
html[data-theme="light"] .brand-sub { color: #7b6f84; }
html[data-theme="light"] .modal, html[data-theme="light"] dialog { background: var(--bg-raise); color: var(--text); }
html[data-theme="light"] .plan-note { color: #fffaf2; }
html[data-theme="light"] .site-nav a { color: #4a3d55; }
html[data-theme="light"] .site-nav a:hover,
html[data-theme="light"] .site-nav a[aria-current="page"] { color: var(--gold); }
html[data-theme="light"] .hero h1 em { color: #a0712e; }
html[data-theme="light"] .tile p,
html[data-theme="light"] .footer-links a { color: var(--text-soft); }
html[data-theme="light"] .symbol { color: #a87b36; }
html[data-theme="light"] .field input::placeholder,
html[data-theme="light"] .field textarea::placeholder { color: #9a8fa3; }
html[data-theme="light"] .error-text,
html[data-theme="light"] .field-error,
html[data-theme="light"] .danger-link { color: #b0432c; }
html[data-theme="light"] .danger-btn { border-color: #b0432c; color: #b0432c; }
@media (max-width: 860px) {
  html[data-theme="light"] .site-nav { background: #f7f2e9; }
}

/* Journal sections: Entries | Collection of resonance */
.journal-subnav { display: flex; justify-content: center; gap: 0; margin: 16px auto 0; width: fit-content; max-width: 100%; border: 1px solid var(--line-gold); border-radius: 40px; overflow: hidden; }
.journal-subnav a { padding: 8px 18px; font-size: 13px; color: var(--text-soft); white-space: nowrap; }
.journal-subnav a + a { border-left: 1px solid var(--line-gold); }
.journal-subnav a:hover { text-decoration: none; color: var(--gold); }
.journal-subnav a[aria-current="page"] { background: rgba(214, 178, 106, .14); color: var(--gold); font-weight: 600; }
.subnav-count { display: inline-block; min-width: 20px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: var(--gold); color: var(--ink); font-size: 11px; font-weight: 700; text-align: center; }
@media (max-width: 420px) { .journal-subnav a { padding: 8px 12px; font-size: 12px; } }
