/* ============================================================
   layout.css — structural layout only
   NEVER put colors, fonts, or decorative styles here.
   Swap theme.css to completely restyle the site.
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; }
body { min-height: 100vh; display: flex; flex-direction: column; }

img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
a { text-decoration: none; }

/* ── Site Header ──────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 100; }
.site-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem;
}
.site-nav { display: flex; gap: 1.5rem; }

/* ── Main Content ─────────────────────────────────────────── */
.main-content { flex: 1; }

/* ── Hero ─────────────────────────────────────────────────── */
.hero-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 4rem 1.5rem;
  text-align: center;
}

.hero-count { margin: 0.5rem 0 1.5rem; font-size: 1rem; opacity: 0.75; }
.hero-count #chart-count { font-weight: 700; }

/* ── Section containers ───────────────────────────────────── */
.section-featured,
.section-recent,
.section-browse,
.section-signs { padding: 2.5rem 0; }

.section-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ── Person Grid (card list) ──────────────────────────────── */
.person-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.person-card { display: flex; flex-direction: column; }
.person-card-link { display: flex; flex-direction: column; flex: 1; }
.person-card-photo-wrap { aspect-ratio: 3/4; overflow: hidden; }
.person-card-photo { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.person-card-body { padding: 0.75rem; flex: 1; display: flex; flex-direction: column; gap: 0.25rem; }

/* ── Category / Sign listing ──────────────────────────────── */
.category-list,
.sign-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* ── Listing pages (category, sign) ──────────────────────── */
.listing-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 1rem;
}
.listing-header + .person-grid {
  max-width: 1200px;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}

/* ── Search page ──────────────────────────────────────────── */
.search-header { max-width: 800px; margin: 0 auto; padding: 2.5rem 1.5rem 1rem; }
.search-controls { max-width: 800px; margin: 0 auto; padding: 0 1.5rem 1.5rem; }
.search-input { width: 100%; padding: 0.75rem 1rem; font-size: 1.1rem; }
.search-filters { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; align-items: flex-start; }
.filter-group { display: flex; flex-direction: column; gap: 0.25rem; }
.filter-group-categories { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }
.search-summary { max-width: 800px; margin: 0 auto; padding: 0 1.5rem 0.5rem; }
#searchResults { max-width: 1200px; margin: 0 auto 2.5rem; padding: 0 1.5rem; }

/* ── Person article ───────────────────────────────────────── */
.person-article { max-width: 1000px; margin: 0 auto; padding: 2rem 1.5rem 3rem; }

.person-header {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 2rem;
  margin-bottom: 2rem;
}
@media (max-width: 600px) {
  .person-header { grid-template-columns: 1fr; }
}

.person-photo-wrap { width: 200px; aspect-ratio: 3/4; overflow: hidden; border-radius: 4px; }
.person-photo { width: 100%; height: 100%; object-fit: cover; object-position: top; }

.person-intro { display: flex; flex-direction: column; gap: 0.75rem; }
.person-dates { display: flex; flex-direction: column; gap: 0.25rem; }
.person-categories { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ── Chart Summary (Big Three) ────────────────────────────── */
.chart-summary { margin-bottom: 2rem; }
.chart-summary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
}
.chart-summary-item { display: flex; flex-direction: column; gap: 0.25rem; min-width: 120px; }
.chart-aspects { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.75rem; }

/* ── Birth Data ───────────────────────────────────────────── */
.birth-data { margin-bottom: 2rem; }
.birth-data-list {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.4rem 1.5rem;
  margin-top: 0.75rem;
}

/* ── Audio Report ─────────────────────────────────────────── */
.audio-report { margin-bottom: 2rem; }
.audio-report-player { width: 100%; margin-top: 0.75rem; }

/* ── Full Report ──────────────────────────────────────────── */
.full-report { margin-bottom: 2rem; }
.report-body { margin-top: 1rem; }

/* ── Related ──────────────────────────────────────────────── */
.person-related {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 2rem;
}
@media (max-width: 600px) {
  .person-related { grid-template-columns: 1fr; }
}
.related-list { display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.5rem; }

/* ── Site Footer ──────────────────────────────────────────── */
.site-footer { margin-top: auto; }
.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-nav { display: flex; gap: 1rem; }

/* ── Promo Banner ─────────────────────────────────────────── */
.promo-banner {
  max-width: 1000px;
  margin: 1rem auto 3rem;
  padding: 3rem 2rem;
  text-align: center;
}
.promo-banner-link { display: inline-block; margin-top: 1rem; }

/* ── Chart Wheel ──────────────────────────────────────────── */
.chart-wheel {
  display: flex;
  justify-content: center;
  margin: 2rem 0;
}
.chart-wheel-img {
  max-width: 100%;
  height: auto;
}
/* ============================================================
   theme.css — visual styling only
   Swap this file entirely to change the site's look.
   NEVER put layout/positioning here (that's layout.css).
   ============================================================ */

/* ── Fonts ────────────────────────────────────────────────── */
/* Google Fonts loaded via <link> in <head> for better render performance */

:root {
  --color-bg:          #0e0b18;
  --color-bg-surface:  #16122a;
  --color-bg-card:     #1e1936;
  --color-border:      #2d2850;
  --color-text:        #e8e4f0;
  --color-text-muted:  #9a94b8;
  --color-accent:      #c49a6c;
  --color-accent-hover:#e0bb8a;
  --color-tag-bg:      #2d2850;
  --color-tag-text:    #b8aed4;

  --font-heading: 'Playfair Display', Georgia, serif;
  --font-body:    'Inter', system-ui, sans-serif;
  --radius:       6px;
}

body {
  background-color: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.65;
}

a { color: var(--color-accent); }
a:hover { color: var(--color-accent-hover); }

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--color-text);
  line-height: 1.25;
}

/* ── Site Header ──────────────────────────────────────────── */
.site-header {
  background-color: var(--color-bg-surface);
  border-bottom: 1px solid var(--color-border);
}
.site-logo {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  color: var(--color-accent);
  letter-spacing: 0.01em;
}
.site-logo:hover { color: var(--color-accent-hover); }
.nav-link {
  font-size: 0.9rem;
  color: var(--color-text-muted);
}
.nav-link:hover { color: var(--color-text); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #1a1232 0%, #0e0b18 60%);
  border-bottom: 1px solid var(--color-border);
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--color-accent);
  margin-bottom: 0.5rem;
}
.hero-subtitle { font-size: 1.15rem; color: var(--color-text-muted); margin-bottom: 1.5rem; }
.hero-cta {
  display: inline-block;
  padding: 0.65rem 1.75rem;
  background-color: var(--color-accent);
  color: var(--color-bg);
  font-weight: 500;
  border-radius: var(--radius);
  transition: background-color 0.15s;
}
.hero-cta:hover { background-color: var(--color-accent-hover); color: var(--color-bg); }

/* ── Section headings ─────────────────────────────────────── */
.section-title { font-size: 1.5rem; color: var(--color-text); margin-bottom: 0.25rem; }
.section-featured { background-color: var(--color-bg-surface); }

/* ── Person Cards ─────────────────────────────────────────── */
.person-card {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform 0.15s;
}
.person-card:hover { border-color: var(--color-accent); transform: translateY(-2px); }
.person-card-link { color: inherit; }
.person-card-name { font-size: 1rem; margin-bottom: 0.1rem; }
.person-card-signs { font-size: 0.8rem; color: var(--color-accent); }
.person-card-bio { font-size: 0.8rem; color: var(--color-text-muted); }

/* ── Category / Sign tags ─────────────────────────────────── */
.category-list-link,
.sign-list-link {
  display: inline-block;
  padding: 0.35rem 0.9rem;
  background-color: var(--color-tag-bg);
  color: var(--color-tag-text);
  border-radius: 2rem;
  font-size: 0.85rem;
  transition: background-color 0.15s;
}
.category-list-link:hover,
.sign-list-link:hover {
  background-color: var(--color-accent);
  color: var(--color-bg);
}

/* ── Listing header ───────────────────────────────────────── */
.listing-title { font-size: 2rem; margin-bottom: 0.4rem; }
.listing-description { color: var(--color-text-muted); margin-bottom: 0.25rem; }
.listing-count { font-size: 0.85rem; color: var(--color-text-muted); }

/* ── Search page ──────────────────────────────────────────── */
.search-title { font-size: 2rem; margin-bottom: 1rem; }
.search-input {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  font-family: var(--font-body);
}
.search-input:focus { outline: none; border-color: var(--color-accent); }
.filter-label { font-size: 0.8rem; color: var(--color-text-muted); }
.filter-select {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  color: var(--color-text);
  padding: 0.4rem 0.75rem;
  font-family: var(--font-body);
  cursor: pointer;
}
.filter-checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  background-color: var(--color-tag-bg);
  color: var(--color-tag-text);
  border-radius: 2rem;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background-color 0.15s;
}
.filter-checkbox-label:hover,
.filter-checkbox-label.active { background-color: var(--color-accent); color: var(--color-bg); }
.search-summary { font-size: 0.85rem; color: var(--color-text-muted); }

/* ── Person article ───────────────────────────────────────── */
.person-name { font-size: clamp(1.75rem, 4vw, 2.5rem); color: var(--color-accent); margin-bottom: 0.25rem; }
.person-birthdate { font-size: 0.95rem; color: var(--color-text-muted); }
.person-birthplace { font-size: 0.9rem; color: var(--color-text-muted); }
.person-bio { color: var(--color-text); font-size: 0.95rem; }
.category-link {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: var(--color-tag-bg);
  color: var(--color-tag-text);
  border-radius: 2rem;
  font-size: 0.8rem;
  transition: background-color 0.15s;
}
.category-link:hover { background-color: var(--color-accent); color: var(--color-bg); }

/* ── Chart Summary ────────────────────────────────────────── */
.chart-summary {
  background-color: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
}
.chart-summary-title { font-size: 1.1rem; color: var(--color-text-muted); margin-bottom: 0.5rem; }
.chart-summary-item {
  background-color: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
}
.chart-summary-label { font-size: 0.75rem; color: var(--color-text-muted); text-transform: uppercase; letter-spacing: 0.06em; }
.chart-summary-value { font-family: var(--font-heading); font-size: 1.1rem; color: var(--color-accent); }
.chart-summary-time-unknown .chart-summary-value { color: var(--color-text-muted); font-style: italic; font-size: 0.9rem; }
.chart-aspect {
  padding: 0.2rem 0.6rem;
  background-color: var(--color-tag-bg);
  color: var(--color-text-muted);
  border-radius: 2rem;
  font-size: 0.78rem;
}

/* ── Birth Data ───────────────────────────────────────────── */
.birth-data-title,
.full-report-title,
.audio-report-title,
.related-title,
.chart-summary-title { font-size: 1.25rem; margin-bottom: 0.5rem; }
.birth-data-label { color: var(--color-text-muted); font-size: 0.85rem; }
.birth-data-value { color: var(--color-text); font-size: 0.95rem; }
.birth-data-note { font-size: 0.8rem; color: var(--color-text-muted); font-style: italic; }

/* ── Related ──────────────────────────────────────────────── */
.person-related {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
}
.related-link { font-size: 0.9rem; color: var(--color-text-muted); }
.related-link:hover { color: var(--color-accent); }

/* ── Site Footer ──────────────────────────────────────────── */
.site-footer {
  background-color: var(--color-bg-surface);
  border-top: 1px solid var(--color-border);
}
.footer-copy { font-size: 0.8rem; color: var(--color-text-muted); }
.footer-link { font-size: 0.8rem; color: var(--color-text-muted); }
.footer-link:hover { color: var(--color-accent); }

/* ── Promo Banner ─────────────────────────────────────────── */
.promo-banner {
  background: linear-gradient(135deg, var(--color-bg-surface), var(--color-bg-card));
  border: 1px solid var(--color-border);
  border-radius: 0.75rem;
}
.promo-banner-text {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  color: var(--color-text-muted);
  margin: 0;
}
.promo-banner-link {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--color-accent);
  text-decoration: none;
}
.promo-banner-link:hover { color: var(--color-accent-hover); }
/* ============================================================
   report.css — styles for the injected API report HTML
   Targets classes produced by the astro-backend ReportAssembler:
   .report-header, .report-section, .section-*, .interpretation,
   .interpretation-title
   ============================================================ */

.report-body { font-size: 0.95rem; line-height: 1.75; }

/* ── Report header (person name + astrologer byline) ─────── */
.report-header { margin-bottom: 1.5rem; padding-bottom: 1rem; border-bottom: 1px solid var(--color-border, #2d2850); }
.report-header h1 { font-family: var(--font-heading, Georgia, serif); font-size: 1.4rem; color: var(--color-text, #e8e4f0); }
.report-header .report-meta { font-size: 0.85rem; color: var(--color-text-muted, #9a94b8); margin-top: 0.25rem; }

/* ── Report sections ──────────────────────────────────────── */
.report-section { margin-bottom: 2rem; }
.report-section > h2 {
  font-family: var(--font-heading, Georgia, serif);
  font-size: 1.2rem;
  color: var(--color-accent, #c49a6c);
  border-bottom: 1px solid var(--color-border, #2d2850);
  padding-bottom: 0.4rem;
  margin-bottom: 1rem;
}

/* ── Individual interpretation blocks ────────────────────── */
.interpretation { margin-bottom: 1.25rem; }
.interpretation-title {
  font-family: var(--font-heading, Georgia, serif);
  font-size: 1rem;
  color: var(--color-text, #e8e4f0);
  margin-bottom: 0.4rem;
}

/* ── Prose within interpretations ────────────────────────── */
.interpretation p { margin-bottom: 0.75rem; color: var(--color-text, #e8e4f0); }
.interpretation p:last-child { margin-bottom: 0; }
.interpretation strong { color: var(--color-text, #e8e4f0); }
.interpretation em { color: var(--color-text-muted, #9a94b8); font-style: italic; }
.interpretation ul,
.interpretation ol { padding-left: 1.5rem; margin-bottom: 0.75rem; list-style: disc; }
.interpretation ul li,
.interpretation ol li { margin-bottom: 0.2rem; }
.interpretation .text-center { text-align: center; }
.interpretation blockquote {
  border-left: 3px solid var(--color-accent, #c49a6c);
  padding-left: 1rem;
  color: var(--color-text-muted, #9a94b8);
  font-style: italic;
  margin: 0.75rem 0;
}

/* ── Static pages (about, privacy, terms, contact) ──────── */
.static-page {
  max-width: 720px;
  margin: 2rem auto;
  padding: 0 1.5rem 3rem;
}
.static-page h1 {
  font-family: var(--font-heading, Georgia, serif);
  font-size: 2rem;
  color: var(--color-heading, #f0ecff);
  margin-bottom: 1.5rem;
}
.static-page h2 {
  font-family: var(--font-heading, Georgia, serif);
  font-size: 1.25rem;
  color: var(--color-heading, #f0ecff);
  margin: 2rem 0 0.5rem;
}
.static-page p {
  color: var(--color-text, #e8e4f0);
  line-height: 1.75;
  margin-bottom: 1rem;
}
.static-page a {
  color: var(--color-accent, #c49a6c);
  text-decoration: underline;
}
.static-page a:hover {
  color: var(--color-heading, #f0ecff);
}

/* ── Report a problem ────────────────────────────────────── */
.report-btn-wrap {
  display: flex;
  justify-content: center;
  padding: 2rem 1rem 3rem;
}
.report-btn {
  background: transparent;
  border: 1px solid var(--color-text-muted);
  color: var(--color-text-muted);
  border-radius: 8px;
  padding: 0.65rem 1.5rem;
  font-size: 0.9rem;
  cursor: pointer;
  font-family: inherit;
}
.report-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}
.report-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex; align-items: center; justify-content: center;
  z-index: 500;
  padding: 1rem;
}
.report-overlay[hidden] { display: none !important; }
.report-modal {
  background: var(--color-bg-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 2rem;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 24px 64px rgba(0,0,0,0.6);
}
.report-modal-title {
  font-family: var(--font-heading, Georgia, serif);
  font-size: 1.25rem;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}
.report-modal-sub {
  color: var(--color-text-muted);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
  line-height: 1.5;
}
.report-checks {
  border: none; padding: 0; margin: 0 0 1.25rem;
}
.report-checks-legend {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 0.75rem;
  padding: 0;
}
.report-check {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--color-text);
  font-size: 0.925rem;
  padding: 0.3rem 0;
  cursor: pointer;
}
.report-check input[type="checkbox"] {
  width: 1rem; height: 1rem;
  accent-color: var(--color-accent);
  cursor: pointer;
  flex-shrink: 0;
}
.report-notes {
  width: 100%;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  color: var(--color-text);
  font-size: 0.875rem;
  font-family: inherit;
  padding: 0.65rem 0.85rem;
  resize: vertical;
  margin-bottom: 1.25rem;
  box-sizing: border-box;
}
.report-notes::placeholder { color: var(--color-text-muted); }
.report-notes:focus { outline: 2px solid var(--color-accent); outline-offset: -1px; border-color: transparent; }
.report-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.report-submit {
  background: var(--color-accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.65rem 1.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.report-submit:hover { background: var(--color-accent-hover); }
.report-submit:disabled { opacity: 0.55; cursor: default; }
.report-cancel {
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  border-radius: 8px;
  padding: 0.65rem 1.25rem;
  font-size: 0.9rem;
  font-family: inherit;
  cursor: pointer;
}
.report-cancel:hover { color: var(--color-text); border-color: var(--color-text-muted); }
.report-status {
  margin-top: 1rem;
  font-size: 0.875rem;
  display: none;
}
.report-status.visible { display: block; }
.report-status-ok  { color: #3ecf8e; }
.report-status-err { color: #f24d4d; }
