/* ════════════════════════════════════════════════════════════════
   zodipedia.css — landing page (the interactive wheel)
   Loaded via {% block extra_head %} in templates/zodipedia/landing.html.
   Stars + .page wrapper + nav/footer come from base.html / cosmic.css.
   Page-header classes are namespaced .zp-* to avoid clashing with the
   shared .eyebrow. Wheel internals keep the names the wheel JS targets.
   ════════════════════════════════════════════════════════════════ */

/* ── Header ─────────────────────────────────────────────────────── */
.zp-head { text-align: center; max-width: 680px; margin: 0 auto 2rem; }
.zp-eyebrow {
  font-family: 'Space Grotesk', sans-serif;
  font-size: .7rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
  display: inline-flex; align-items: center; gap: .55rem; margin-bottom: 1rem;
}
.zp-eyebrow::before { content: '✦'; font-size: .85em; }
.zp-title {
  font-family: 'Noto Serif', Georgia, serif; font-weight: 300; font-style: italic;
  font-size: clamp(3.2rem, 7.6vw, 5.4rem); line-height: 1; letter-spacing: -.01em;
  color: #fff; margin-bottom: 1.1rem;
}
.zp-title em {
  font-style: italic;
  background: linear-gradient(115deg, #f3f0ff 0%, #cabeff 30%, #8063ff 64%, #c9a84c 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.zp-lede {
  font-family: 'Noto Serif', serif; font-style: italic; font-weight: 300;
  font-size: 1.1rem; line-height: 1.7; color: var(--muted);
  max-width: 58ch; margin: 0 auto; text-wrap: pretty;
}

/* ── Wheel ──────────────────────────────────────────────────────── */
.wheel-wrap { position: relative; width: min(660px, 96vw); aspect-ratio: 1; margin: 0 auto; }
.wheel-glow {
  position: absolute; inset: -6%; border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, var(--glow, rgba(128,99,255,.35)) 0%, transparent 60%);
  filter: blur(28px); transition: background .55s ease; z-index: 0; pointer-events: none;
}
.wheel-svg { position: relative; z-index: 1; width: 100%; height: 100%; display: block; overflow: visible; }
@keyframes spin { to { transform: rotate(360deg); } }

/* spoke connecting hub to active column */
.spoke {
  stroke: var(--spoke, rgba(201,168,76,.5)); stroke-width: 1.4;
  opacity: 0; stroke-dasharray: 2 5; transition: opacity .4s ease, stroke .4s ease;
}
.spoke.on { opacity: .6; }

/* generic interactive item */
.item { cursor: pointer; outline: none; }
.item .glyph, .item .rom, .item .pg { pointer-events: none; }

/* Houses (outer) */
.house .wedge {
  fill: var(--hfill); stroke: rgba(201,168,76,0.16); stroke-width: 1.1;
  transition: fill .35s ease, filter .35s ease, stroke .35s ease;
}
.house .rom {
  fill: rgba(201,168,76,0.74); font-family: 'Noto Serif', serif; font-weight: 400;
  font-size: 12px; letter-spacing: .3px; text-anchor: middle; dominant-baseline: central;
  transition: fill .35s ease;
}
.house:hover .wedge, .house.is-active .wedge {
  fill: rgba(201,168,76,0.24); stroke: rgba(201,168,76,0.6);
  filter: drop-shadow(0 0 14px rgba(201,168,76,0.55));
}
.house:hover .rom, .house.is-active .rom { fill: #fff; }

/* Signs (middle) */
.sign .wedge {
  fill: var(--fill); stroke: rgba(12,11,18,.5); stroke-width: 1.2;
  transition: fill .35s ease, filter .35s ease;
}
.sign .glyph {
  fill: var(--ink); font-family: 'Noto Serif', serif; font-size: 33px;
  text-anchor: middle; dominant-baseline: central; transition: fill .35s ease, font-size .25s ease;
}
.sign:hover .wedge, .sign.is-active .wedge { fill: var(--fillHi); filter: drop-shadow(0 0 16px var(--sglow)); }
.sign:hover .glyph, .sign.is-active .glyph { fill: #fff; font-size: 37px; }

/* Planets (inner) — glyphs only */
.planet .halo { fill: none; stroke: transparent; stroke-width: 1.2; transition: stroke .35s ease; }
.planet .pg {
  fill: rgba(202,190,255,0.85); font-family: 'Noto Serif', serif; font-size: 16px;
  text-anchor: middle; dominant-baseline: central;
  transition: fill .3s ease, font-size .25s ease, filter .3s ease;
}
.planet .hit { fill: transparent; }
.planet:hover .pg, .planet.is-active .pg {
  fill: #fff; font-size: 19px; filter: drop-shadow(0 0 10px rgba(178,155,255,1));
}
.planet:hover .halo, .planet.is-active .halo { stroke: rgba(178,155,255,.45); }

.item:focus-visible .wedge, .item:focus-visible .halo { stroke: #fff; stroke-width: 2; }

/* ── Center hub ─────────────────────────────────────────────────── */
.hub {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 38%; aspect-ratio: 1; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 5% 7%; z-index: 2; pointer-events: none;
}
.hub__kicker {
  font-family: 'Space Grotesk', sans-serif; font-size: .56rem; font-weight: 500;
  letter-spacing: .28em; text-transform: uppercase; color: var(--hubc, var(--primary));
  margin-bottom: .25rem;
}
.hub__glyph {
  font-family: 'Noto Serif', serif; font-size: 2.1rem; line-height: 1;
  color: var(--hubc, var(--primary)); text-shadow: 0 0 20px var(--glow, rgba(128,99,255,.4));
}
.hub__name {
  font-family: 'Noto Serif', serif; font-style: italic; font-weight: 400;
  font-size: 1.32rem; color: #fff; line-height: 1.05; margin-top: .12rem;
}
.hub__meta {
  font-family: 'DM Mono', monospace; font-size: .62rem; color: var(--muted);
  letter-spacing: .02em; margin-top: .4rem;
}
.hub__meta b { color: var(--hubc, var(--primary)); font-weight: 500; }
.hub__preview {
  font-family: 'Noto Serif', serif; font-style: italic; font-weight: 300;
  font-size: .78rem; line-height: 1.45; color: var(--muted);
  margin-top: .5rem; max-width: 23ch; text-wrap: pretty;
}
.hub__cta {
  pointer-events: auto; margin-top: .7rem;
  font-family: 'Space Grotesk', sans-serif; font-size: .58rem; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase; color: var(--text); text-decoration: none;
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .45rem .95rem; border-radius: var(--r-pill);
  background: linear-gradient(135deg, rgba(128,99,255,.20), rgba(201,168,76,.12));
  border: 1px solid rgba(202,190,255,.20);
  transition: border-color .25s, transform .2s;
}
.hub__cta:hover { border-color: var(--hubc, var(--primary)); transform: translateY(-1px); }
.hub__cta .arr { transition: transform .25s; }
.hub__cta:hover .arr { transform: translateX(3px); }
@media (max-width: 600px) {
  .hub__preview { display: none; }
  .hub__glyph { font-size: 1.8rem; }
  .hub__name { font-size: 1.1rem; }
  .hub__kicker { font-size: .5rem; }
}

/* ── Ring key ───────────────────────────────────────────────────── */
.ringkey { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin: 2rem auto .4rem; max-width: 760px; }
.rk {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .55rem 1.05rem; border-radius: 14px;
  background: rgba(202,190,255,.04); border: 1px solid var(--line);
}
.rk__dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.rk__dot.sign { background: conic-gradient(from 0deg, #ff6b5c, #e8a84c, #ecd34a, #8db87a, #4dd9e8, #6aa6ff, #b29bff, #d96ce0, #ff6b8c, #ff6b5c); }
.rk__dot.house { background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.rk__dot.planet { background: var(--primary); box-shadow: 0 0 8px var(--primary); }
.rk__t { font-family: 'Space Grotesk', sans-serif; font-size: .78rem; color: var(--text); font-weight: 500; }
.rk__s { color: var(--muted); font-weight: 400; font-family: 'Manrope', sans-serif; font-size: .74rem; }
.ring-hint {
  text-align: center; font-family: 'DM Mono', monospace; font-size: .66rem;
  letter-spacing: .04em; color: var(--muted-2); margin-top: .5rem;
}
