/*
 * prototype/seo.css
 *
 * Standalone stylesheet for the public SEO surface (server/src/routes/
 * seo-pages.js -- /zodiac, /zodiac/:sign, and their 404). These are
 * server-rendered standalone pages, not the SPA, so they don't load
 * style.css or any app JS -- kept deliberately small and fast (one extra
 * request, no webfonts, no CDN, nothing that touches the network).
 *
 * Palette values below are copied from style.css's :root custom properties
 * (night/gold/ink/element tokens) so these pages match the app's celestial
 * dark-navy-and-gold aesthetic exactly. Copied rather than shared/@import'd
 * on purpose -- this file has no other dependency on style.css's much larger
 * rule set, and the handful of hex values here rarely change. If style.css's
 * :root palette is ever retuned, update the matching values here too.
 */

* { box-sizing: border-box; }

:root {
  --night-950: #0a0b1a;
  --night-900: #10122a;
  --night-800: #171a3a;
  --night-700: #20244a;
  --ink: #eef0fb;
  --ink-dim: #b9beda;
  --ink-muted: #8d92b8;
  --ink-strong: #0a0b1a;
  --gold: #d8b464;
  --gold-bright: #f0cf8a;
  --gold-dim: #9c8452;
  --fire: #c9622a;
  --earth: #5c7a4d;
  --air: #c9a227;
  --water: #3d6b8a;
  --serif: Georgia, Cambria, "Times New Roman", Times, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --radius: 10px;
  color-scheme: dark;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--night-950);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}

.seo-header {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--night-700);
}

.seo-breadcrumb {
  font-size: 0.9rem;
  color: var(--ink-muted);
}

.seo-breadcrumb a {
  color: var(--gold);
  text-decoration: none;
}

.seo-breadcrumb a:hover {
  text-decoration: underline;
}

.seo-main {
  max-width: 760px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
}

.seo-main h1 {
  font-family: var(--serif);
  color: var(--gold-bright);
  font-size: 2.25rem;
  margin: 0.25rem 0 0.5rem;
}

.seo-main h2 {
  font-family: var(--serif);
  color: var(--gold);
  font-size: 1.35rem;
  margin: 2rem 0 0.5rem;
}

.seo-main p {
  color: var(--ink-dim);
  font-size: 1.05rem;
}

.seo-intro {
  font-size: 1.1rem;
}

.sign-glyph {
  font-size: 3.5rem;
  line-height: 1;
  color: var(--gold-bright);
  text-shadow: 0 0 24px rgba(240, 207, 138, 0.35);
}

.sign-tagline {
  color: var(--ink-muted);
  font-size: 1rem;
  margin-top: 0;
}

.cta-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background: linear-gradient(135deg, var(--night-800), var(--night-700));
  border: 1px solid var(--gold-dim);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}

.cta-banner p {
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.1rem;
  margin: 0;
  flex: 1 1 320px;
}

.cta-button {
  display: inline-block;
  background: var(--gold);
  color: var(--ink-strong);
  font-weight: 700;
  text-decoration: none;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius);
  white-space: nowrap;
}

.cta-button:hover {
  background: var(--gold-bright);
}

.sign-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0;
}

.sign-card {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  background: var(--night-900);
  border: 1px solid var(--night-700);
  border-radius: var(--radius);
  padding: 1rem;
  text-decoration: none;
  color: var(--ink);
}

.sign-card:hover {
  border-color: var(--gold-dim);
}

.sign-card-glyph {
  font-size: 1.75rem;
  color: var(--gold-bright);
}

.sign-card-name {
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gold);
}

.sign-card-meta {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.sign-card-essence {
  font-size: 0.9rem;
  color: var(--ink-dim);
}

.related-signs {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--night-700);
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.related-signs h2 {
  width: 100%;
  margin-top: 0;
}

.related-link {
  color: var(--gold);
  text-decoration: none;
  border: 1px solid var(--night-700);
  border-radius: var(--radius);
  padding: 0.4rem 0.8rem;
  font-size: 0.95rem;
}

.related-link:hover {
  border-color: var(--gold-dim);
  text-decoration: underline;
}

.seo-404 h1 {
  font-family: var(--serif);
  color: var(--gold-bright);
}

.seo-404 a {
  color: var(--gold);
}

.seo-footer {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.5rem;
  color: var(--ink-muted);
  font-size: 0.85rem;
  text-align: center;
}

.seo-footer a {
  color: var(--gold-dim);
}

/*
 * Slice 2 additions (routes/horoscope-pages.js's daily /horoscope,
 * /horoscope/:sign pages) -- same shared stylesheet, same palette above,
 * no new custom properties needed.
 */

.seo-dateline {
  color: var(--gold);
  font-family: var(--serif);
  font-size: 1rem;
  letter-spacing: 0.02em;
  margin: 0 0 1rem;
}

.seo-daily-headline {
  font-family: var(--serif);
  color: var(--ink);
  font-size: 1.15rem;
  font-weight: normal;
  font-style: italic;
  border-left: 3px solid var(--gold-dim);
  padding-left: 0.9rem;
  margin: 0 0 1.5rem;
}

.seo-daily-reading p {
  margin: 0 0 1.1rem;
}

.seo-daily-opener {
  color: var(--gold-bright);
  font-family: var(--serif);
  font-size: 1.1rem;
}

.seo-daily-closer {
  color: var(--ink-muted);
  font-style: italic;
  border-top: 1px solid var(--night-700);
  padding-top: 1rem;
  margin-top: 1.5rem !important;
}

.seo-cross-link {
  font-size: 0.95rem;
}

.seo-cross-link a {
  color: var(--gold);
}

@media (max-width: 600px) {
  .seo-main h1 { font-size: 1.75rem; }
  .cta-banner { flex-direction: column; align-items: stretch; text-align: center; }
}
