/* ──────────────────────────────────────────────────────────────────
 * /css/best-days.css — Best Days finder (2026-08-18)
 * The illuminated month calendar + day-band colors. Everything else
 * (form, ast-rows, sat-* cards, altar) is inherited from the shared
 * saturn-return / retro-eclipse / asteroids dress.
 * ────────────────────────────────────────────────────────────────── */

/* ── The month calendar card — vellum, like the sat timeline card ── */
.bd-cal-card {
  background: linear-gradient(175deg, #FDF5E3, #F0DFC8);
  border: 1px solid #B89150;
  border-radius: 12px;
  box-shadow: inset 0 0 0 4px rgba(184, 145, 80, 0.12), inset 0 0 40px rgba(184, 145, 80, 0.10);
  padding: 1.8rem 1.6rem 1.5rem;
  margin: 1.6rem 0 2.4rem;
}
.bd-cal-title {
  font-family: 'Cinzel', serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #6B1F2C;
  text-align: center;
}
.bd-cal-sub {
  font-family: 'EB Garamond', serif;
  font-style: italic;
  font-weight: 600;
  font-size: 1.32rem;
  color: #6B1F2C;
  text-align: center;
  line-height: 1.2;
  margin: 0.2rem 0 1.1rem;
}
.bd-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.bd-cal-dow {
  font-family: 'Cinzel', serif;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #6B1F2C;
  text-align: center;
  padding-bottom: 3px;
}
.bd-cal-cell {
  position: relative;
  border-radius: 8px;
  border: 1px solid rgba(184, 145, 80, 0.45);
  min-height: 58px;
  padding: 5px 4px 3px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}
.bd-cal-blank { border: none; background: transparent; min-height: 0; }
.bd-cal-num {
  font-family: 'Cinzel', serif;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  color: #2D1F38;
}
.bd-cal-score {
  font-family: 'EB Garamond', serif;
  font-size: 1.02rem;
  font-weight: 600;
  line-height: 1;
  color: #5A4632;
}
/* Score bands — parchment-warm ladder from heavy wine to lit gold */
.bd-band-golden { background: linear-gradient(170deg, #F3DCA6, #E2BC6C); border-color: #8E6E3A; }
.bd-band-bright { background: linear-gradient(170deg, #F8EBC8, #EDD9A4); }
.bd-band-plain  { background: rgba(253, 245, 227, 0.55); }
.bd-band-heavy  { background: linear-gradient(170deg, #E7CFC4, #D9AFA3); border-color: #9C4453; }
.bd-band-heavy .bd-cal-score { color: #6B1F2C; }
/* Top-3 crowning */
.bd-cal-cell.bd-top { box-shadow: 0 0 0 2px #6B1F2C, 0 2px 8px rgba(107, 31, 44, 0.35); }
.bd-cal-star {
  position: absolute;
  top: -7px;
  right: -5px;
  font-size: 0.85rem;
  color: #6B1F2C;
  text-shadow: 0 0 4px #FDF5E3;
}
.bd-cal-moon {
  position: absolute;
  top: 3px;
  right: 5px;
  font-size: 0.5rem;
  color: #8E6E3A;
}
.bd-cal-cell.bd-caution .bd-cal-num { color: #6B1F2C; }
.bd-cal-cell.bd-past { opacity: 0.38; }
/* Legend */
.bd-cal-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1.3rem;
  margin-top: 1.1rem;
}
.bd-leg {
  font-family: 'EB Garamond', serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #5A4632;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.bd-leg-swatch {
  display: inline-block;
  width: 15px;
  height: 15px;
  border-radius: 4px;
  border: 1px solid rgba(184, 145, 80, 0.6);
}

/* Factor lines inside top-3 / caution rows */
.bd-fact-line { font-style: normal; }
.bd-fact-heavy { color: #6B1F2C; }

/* ── The election card — the question, standing apart from the form ── */
.bd-elect-card {
  max-width: 720px;   /* matches .form-frame below */
  margin: 1.6rem auto 2rem;
  padding: 2.1rem 2.4rem 2.4rem;
  background: linear-gradient(175deg, #FDF5E3, #F0DFC8);
  border: 1px solid #6B1F2C;
  border-radius: 12px;
  box-shadow: 0 0 0 4px rgba(184, 145, 80, 0.18), 0 4px 18px rgba(107, 31, 44, 0.14);
  position: relative;
}
.bd-elect-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6B1F2C;
  text-align: center;
  margin-bottom: 1.3rem;
}
.bd-elect-row { display: flex; gap: 1.2rem; flex-wrap: wrap; }
.bd-elect-row > div { flex: 1 1 260px; }
.bd-elect-label {
  display: block;
  font-family: 'Cinzel', serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #6B1F2C;
  margin-bottom: 0.5rem;
}
.bd-elect-card .form-select {
  font-weight: 600;
  font-size: 1.18rem;
  padding-top: 0.85rem;
  padding-bottom: 0.85rem;
}

/* ── Lore-art motion ── */
/* The chosen day breathes and its star sparks (art 1) */
.bd-lore-glowcell { animation: bdLorePulse 2.6s ease-in-out infinite; }
.bd-lore-spark    { animation: bdLoreSpark 2.2s ease-in-out infinite; }
/* The day's sun turns its rays; its light pulses toward YOUR wheel (art 2) */
.bd-lore2-rays { transform-origin: 50px 20px; animation: bdLoreRays 34s linear infinite; }
.bd-lore2-beam { animation: bdLorePulse 2.6s ease-in-out infinite; }
.bd-lore2-star { animation: bdLoreSpark 2.2s ease-in-out infinite; }
/* Each wheel's planets walk their own orbit — different clocks, same sky */
.bd-lore2-orbit-l { transform-origin: 33px 60px; animation: bdLoreRays 22s linear infinite; }
.bd-lore2-orbit-r { transform-origin: 67px 60px; animation: bdLoreRays 30s linear infinite reverse; }
@keyframes bdLorePulse { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
@keyframes bdLoreSpark { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
@keyframes bdLoreRays  { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) {
  .bd-lore-glowcell, .bd-lore-spark, .bd-lore2-rays, .bd-lore2-beam, .bd-lore2-star,
  .bd-lore2-orbit-l, .bd-lore2-orbit-r { animation: none !important; }
}

@media (max-width: 560px) {
  .bd-cal-card { padding: 1.2rem 0.7rem 1.1rem; }
  .bd-cal-grid { gap: 3px; }
  .bd-cal-cell { min-height: 48px; border-radius: 6px; }
  .bd-cal-num { font-size: 0.84rem; }
  .bd-cal-score { font-size: 0.82rem; }
  .bd-cal-dow { font-size: 0.76rem; }
}
