/* =============================================================================
   Urania · sala/eu/styles.css — "Meus astrólogos" (consulente), mobile-first.
   Mesma estética da casa Cachola Tech do /sala: EB Garamond (serif) + Inter (UI)
   + JetBrains Mono (dados). Fontes self-host em /fonts (sem CDN). Cream/ink/gold.
   O que é próprio desta tela: o painel-herói do mapa, os cartões de astrólogo com
   switches de consentimento, e a timeline com "raias" coloridas por praticante.
   ============================================================================= */

@font-face {
  font-family: "EB Garamond"; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url("/fonts/eb-garamond-latin.woff2") format("woff2");
}
@font-face {
  font-family: "EB Garamond"; font-style: italic; font-weight: 400 700;
  font-display: swap; src: url("/fonts/eb-garamond-italic-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url("/fonts/inter-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Inter"; font-style: normal; font-weight: 400 700;
  font-display: swap; src: url("/fonts/inter-latin-ext.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono"; font-style: normal; font-weight: 400 600;
  font-display: swap; src: url("/fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
  --cream: #FBF8F1;
  --cream-2: #F4EFE3;
  --ink: #1F2B3D;
  --ink-soft: #38414f;
  --line: #D8D2C4;
  --line-2: #E6E0D2;
  --gold: #9A7B1E;
  --gold-soft: #C9A84B;
  --faint: #6B665A;
  --ok: #2f6f4f;
  --err: #9a3024;
  --white: #ffffff;
  --shadow: 0 8px 30px rgba(31, 43, 61, .08);
  --radius: 14px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(1100px 540px at 50% -10%, rgba(201,168,75,.10), transparent 60%),
    var(--cream);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100dvh;
}
.hidden { display: none !important; }
.mono { font-family: "JetBrains Mono", ui-monospace, monospace; }
.serif { font-family: "EB Garamond", Georgia, serif; }

/* ── Header ─────────────────────────────────────────────────────────────────── */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 16px;
  background: rgba(251, 248, 241, .92);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand .sym { width: 28px; height: 28px; }
.brand .wm { font-weight: 700; letter-spacing: .2px; font-size: 18px; }
.beta {
  display: inline-block; margin-left: 7px; padding: 1px 7px; font-size: 10px;
  letter-spacing: .8px; text-transform: uppercase; border: 1px solid var(--gold-soft);
  border-radius: 999px; color: var(--gold); vertical-align: middle; font-weight: 600;
}
.head-right { display: flex; align-items: center; gap: 8px; }
.lang-pick {
  font-family: inherit; font-size: 13px; color: var(--ink);
  background: var(--white); border: 1px solid var(--line); border-radius: 9px;
  padding: 6px 8px;
}

main { max-width: 820px; margin: 0 auto; padding: 18px 16px 40px; }
section { margin-bottom: 8px; }

/* ── Cards ─────────────────────────────────────────────────────────────────── */
.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 18px; margin: 0 0 16px;
  box-shadow: var(--shadow);
}
h1 { font-family: "EB Garamond", Georgia, serif; font-size: 28px; margin: 4px 0 2px; font-weight: 700; }
h2 { font-size: 18px; margin: 0 0 4px; font-family: "EB Garamond", Georgia, serif; font-weight: 700; }
h3 { font-size: 14px; margin: 0 0 8px; color: var(--ink-soft); }
.sub { color: var(--faint); font-size: 14px; margin: 2px 0 14px; }
.muted { color: var(--faint); }
.tiny { font-size: 12px; }
.section-head { margin: 26px 2px 12px; }
.section-head h1 { font-size: 23px; }
.section-head .sub { margin: 2px 0 0; }

/* ── Forms ─────────────────────────────────────────────────────────────────── */
label { display: block; font-size: 13px; color: var(--ink-soft); margin: 12px 0 5px; font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=date],
input[type=time], select {
  width: 100%; padding: 11px 12px; border: 1px solid var(--line);
  border-radius: 10px; background: var(--cream); color: var(--ink);
  font: inherit; font-size: 15px;
}
input:focus, select:focus { outline: 2px solid var(--gold-soft); border-color: transparent; }
.row { display: flex; gap: 10px; }
.row > * { flex: 1; }
fieldset { border: 1px dashed var(--line); border-radius: 12px; padding: 10px 14px 16px; margin: 14px 0 4px; }
legend { font-size: 12.5px; color: var(--faint); padding: 0 6px; font-weight: 600; }

/* combobox de cidade (reusa o padrão do /sala) */
.combo { position: relative; }
.results {
  list-style: none; margin: 6px 0 0; padding: 0; position: absolute; z-index: 30;
  left: 0; right: 0; background: var(--white); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: var(--shadow); max-height: 240px; overflow: auto;
}
.results li { padding: 10px 12px; cursor: pointer; font-size: 14px; border-bottom: 1px solid var(--line-2); }
.results li:last-child { border-bottom: 0; }
.results li:hover { background: var(--cream-2); }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 16px; border: 1px solid var(--line); border-radius: 11px;
  background: var(--white); color: var(--ink); font: inherit; font-weight: 600;
  font-size: 15px; cursor: pointer; width: 100%;
}
.btn:hover { border-color: var(--gold-soft); }
.btn.primary { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.btn.primary:hover { background: #16202e; }
.btn.ghost { background: transparent; }
.btn.danger { color: var(--err); border-color: #e3c3bd; }
.btn.danger:hover { background: #fbeeec; border-color: var(--err); }
.btn:disabled { opacity: .55; cursor: default; }
.btn.sm { width: auto; padding: 8px 12px; font-size: 13px; }
.btn-row { display: flex; gap: 10px; margin-top: 14px; }
.btn-row .btn { flex: 1; }
.linkbtn { background: none; border: 0; color: var(--gold); font: inherit; font-weight: 600; cursor: pointer; padding: 8px 2px; text-decoration: underline; }

/* ── Login/cadastro ─────────────────────────────────────────────────────────── */
.auth-wrap { min-height: 100dvh; display: grid; place-items: center; padding: 20px; }
.auth-card { width: min(440px, 94vw); }

/* ── Hero: a pessoa + o mapa natal dela ─────────────────────────────────────── */
/* DESTINO, não portal: o herói é uma chegada ("sua vida astrológica"). Regra
   dourada no topo, sobrancelha que nomeia o lugar, linha de boas-vindas serifada
   em itálico, e o mapa natal como peça central com um halo dourado suave.
   Tudo no sistema claro da casa — coerente com os cartões abaixo. */
.hero-card {
  border-top: 3px solid var(--gold-soft);
  background: linear-gradient(180deg, #FFFDF8, var(--white));
}
.hero { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: center; }
.hero .who .eyebrow {
  margin: 0 0 6px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); font-weight: 700;
}
.hero .who h1 { margin: 0 0 2px; font-size: 32px; line-height: 1.06; }
.hero .who .welcome {
  margin: 2px 0 10px; font-style: italic; font-size: 16px; color: var(--faint);
}
.hero .who h2 { font-size: 18px; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px; font-size: 12.5px; color: var(--ink-soft); margin-top: 8px; }
.hero .facts span {
  background: var(--cream-2); border: 1px solid var(--line-2);
  border-radius: 999px; padding: 3px 11px;
}
.hero .facts b { color: var(--ink); }
.hero .wheel-mount { position: relative; display: grid; place-items: center; }
.hero .wheel-mount::before {
  content: ""; position: absolute; inset: -4%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201,168,75,.14), transparent 72%); z-index: 0;
}
.hero .wheel-mount svg { position: relative; z-index: 1; max-width: 100%; height: auto; }
@media (min-width: 640px) {
  .hero { grid-template-columns: 1fr minmax(260px, 360px); }
  .hero .who { order: 0; } .hero .wheel-mount { order: 1; }
}

/* ── Astrólogos ─────────────────────────────────────────────────────────────── */
.astro-list { display: grid; gap: 14px; }
.astro-card {
  border: 1px solid var(--line); border-radius: 14px; background: var(--white);
  box-shadow: var(--shadow); overflow: hidden;
  border-left: 4px solid var(--prac, var(--gold-soft));
}
.astro-card .ac-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 15px 16px 8px; }
.astro-card .ac-name { font-family: "EB Garamond", Georgia, serif; font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.astro-card .ac-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--prac, var(--gold-soft)); flex: none; }
.astro-card .ac-meta { color: var(--faint); font-size: 12.5px; margin-top: 3px; }
.astro-card .ac-count { text-align: right; flex: none; }
.astro-card .ac-count .n { font-family: "JetBrains Mono", monospace; font-size: 22px; font-weight: 600; color: var(--ink); line-height: 1; }
.astro-card .ac-count .l { font-size: 11px; color: var(--faint); text-transform: uppercase; letter-spacing: .5px; }
.astro-card .ac-toggles { border-top: 1px solid var(--line-2); padding: 6px 16px 4px; }
.astro-card .ac-foot { padding: 4px 16px 14px; }

/* switch de consentimento */
.toggle { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.toggle + .toggle { border-top: 1px dashed var(--line-2); }
.toggle .tx { flex: 1; min-width: 0; }
.toggle .tx .t { font-weight: 600; font-size: 14px; }
.toggle .tx .h { font-size: 12px; color: var(--faint); margin-top: 1px; }
.switch { position: relative; flex: none; width: 46px; height: 27px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch .slider {
  position: absolute; inset: 0; border-radius: 999px; background: var(--cream-2);
  border: 1px solid var(--line); transition: background .18s, border-color .18s;
}
.switch .slider::before {
  content: ""; position: absolute; width: 21px; height: 21px; left: 2px; top: 2px;
  border-radius: 50%; background: var(--white); box-shadow: 0 1px 3px rgba(31,43,61,.25);
  transition: transform .18s;
}
.switch input:checked + .slider { background: var(--ok); border-color: var(--ok); }
.switch input:checked + .slider::before { transform: translateX(19px); }
.switch input:focus-visible + .slider { outline: 2px solid var(--gold-soft); outline-offset: 2px; }
.switch input:disabled + .slider { opacity: .5; }

/* ── Timeline cross-praticante (raias coloridas) ────────────────────────────── */
.timeline { display: grid; gap: 12px; }
.tl-item {
  border: 1px solid var(--line); border-radius: 12px; background: var(--white);
  padding: 13px 15px; border-left: 4px solid var(--prac, var(--gold-soft));
}
.tl-item .tl-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.tl-item .tl-kind { font-weight: 700; font-family: "EB Garamond", Georgia, serif; font-size: 16px; }
.tl-item .tl-by { font-size: 12.5px; color: var(--faint); display: inline-flex; align-items: center; gap: 6px; }
.tl-item .tl-by .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--prac, var(--gold-soft)); }
.tl-item .tl-ts { font-size: 12px; color: var(--faint); }
.tl-item .tl-body { margin-top: 8px; font-size: 14px; }
.tl-item .wheel-mount { display: grid; place-items: center; margin-top: 10px; }
.tl-item .wheel-mount svg { max-width: 100%; height: auto; }
.kv { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--ink-soft); }
.kv b { color: var(--ink); }
.pill {
  display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px;
  font-weight: 600; background: var(--cream-2); color: var(--ink-soft); border: 1px solid var(--line);
}

/* ── LGPD ──────────────────────────────────────────────────────────────────── */
.lgpd-card { background: linear-gradient(180deg, var(--white), var(--cream-2)); }
.lgpd-row { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .lgpd-row { grid-template-columns: 1fr 1fr; } }
.lgpd-row .lg { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--white); }
.lgpd-row .lg .h { font-size: 12px; color: var(--faint); margin: 4px 0 10px; }

/* ── Mensagens / toast ──────────────────────────────────────────────────────── */
.msg { margin-top: 12px; font-size: 13.5px; min-height: 18px; }
.msg.ok { color: var(--ok); }
.msg.bad { color: var(--err); }
.note { font-size: 12.5px; color: var(--faint); margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 10px; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%);
  background: var(--ink); color: var(--cream); padding: 11px 18px; border-radius: 999px;
  font-size: 14px; box-shadow: var(--shadow); z-index: 50; opacity: 0;
  transition: opacity .2s, transform .2s; pointer-events: none; max-width: 90vw;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(-4px); }
.toast.bad { background: var(--err); }
.foot { text-align: center; color: var(--faint); font-size: 12px; padding: 22px 0 8px; }

/* ── Seu mapa de hoje (trânsito do dia) ───────────────────────────────────── */
.today-list { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 4px; }
.today-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--white); border-left: 4px solid var(--aspect, var(--gold-soft));
  font-size: 14.5px; color: var(--ink-soft);
}
.today-item b { color: var(--ink); }
.today-item .ti-glyph { font-size: 19px; color: var(--aspect, var(--gold)); flex: none; width: 22px; text-align: center; }
.today-item .ti-text { flex: 1; line-height: 1.4; }
.today-item .ti-asp { color: var(--aspect, var(--gold)); font-weight: 600; }
.today-item .ti-orb { color: var(--faint); font-size: 12.5px; flex: none; }
/* cores por classe de aspecto (mesma família do natal-wheel) */
.today-item.cls-harmonious { --aspect: #2F7D5B; }
.today-item.cls-dynamic    { --aspect: #B23A48; }
.today-item.cls-neutral    { --aspect: #7A6FB0; }
.today-item.cls-minor      { --aspect: #B08A2E; }

/* ── Revolução solar (opt-in de e-mail) ──────────────────────────────────── */
.solar-card { border-left: 4px solid var(--gold-soft); }
.solar-card h2 { font-size: 17px; margin: 0 0 2px; color: var(--ink); }
.solar-card .toggle { border-top: 1px dashed var(--line-2); margin-top: 10px; }
.solar-card .note { margin-top: 10px; }

/* page-load stagger */
@media (prefers-reduced-motion: no-preference) {
  #appView:not(.hidden) > main > section { animation: rise .5s ease both; }
  #appView:not(.hidden) > main > section:nth-child(2) { animation-delay: .06s; }
  #appView:not(.hidden) > main > section:nth-child(3) { animation-delay: .12s; }
  #appView:not(.hidden) > main > section:nth-child(4) { animation-delay: .18s; }
  @keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
}
