/* ===== THE CONSCIOUS HIPPIE — BIRTH CHART CALCULATOR ===== */
:root {
  --bg:        #1e0f1c;
  --bg2:       #2a1a27;
  --bg3:       #362833;
  --purple:    #362833;
  --mauve:     #875663;
  --sage:      #465c36;
  --gold:      #d4af6e;
  --gold-light:#e8c98a;
  --white:     #ffffff;
  --text:      #e8dde6;
  --muted:     #a898a4;
  --border:    rgba(212,175,110,0.18);
  --radius:    12px;
  --shadow:    0 4px 32px rgba(0,0,0,0.4);
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
}

/* SCROLLBAR */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--mauve); border-radius: 3px; }

/* ===== HEADER ===== */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(30,15,28,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-icon { width: 36px; height: 36px; }
.logo-text {
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--gold);
  letter-spacing: 0.03em;
}
.header-nav { display: flex; align-items: center; gap: 28px; }
.header-nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.04em;
  transition: color 0.2s;
}
.header-nav a:hover { color: var(--gold); }
.btn-nav {
  background: var(--mauve) !important;
  color: var(--white) !important;
  padding: 8px 20px;
  border-radius: 6px;
  font-size: 12px !important;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 90px 40px 70px;
  text-align: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 0%, rgba(135,86,99,0.25) 0%, transparent 65%),
              radial-gradient(ellipse at 80% 80%, rgba(70,92,54,0.15) 0%, transparent 60%),
              var(--bg);
}
.hero-stars {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.star {
  position: absolute;
  background: var(--gold);
  border-radius: 50%;
  opacity: 0;
  animation: twinkle var(--dur, 3s) var(--delay, 0s) infinite ease-in-out;
}
@keyframes twinkle {
  0%, 100% { opacity: 0; transform: scale(0.5); }
  50% { opacity: var(--op, 0.6); transform: scale(1); }
}
.hero-content { position: relative; z-index: 1; }
.eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 600;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 20px;
}
.hero h1 em { color: var(--gold); font-style: italic; }
.hero-sub {
  max-width: 580px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 16px;
}

/* ===== CALCULATOR ===== */
.calculator-section { padding: 60px 20px 80px; }
.container { max-width: 860px; margin: 0 auto; }

.form-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 48px;
  margin-bottom: 48px;
  box-shadow: var(--shadow);
}
.form-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  color: var(--white);
  margin-bottom: 10px;
}
.form-note {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 32px;
  line-height: 1.6;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 20px;
  position: relative;
}
.form-group.full { grid-column: 1 / -1; margin-bottom: 20px; }
label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}
.req { color: var(--mauve); }
input[type="date"],
input[type="time"],
input[type="text"],
select {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--white);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  padding: 12px 16px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
}
input:focus, select:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(212,175,110,0.15);
}
input::placeholder { color: var(--muted); }
.readonly-field { opacity: 0.6; cursor: not-allowed; }
.hint { font-size: 11px; color: var(--muted); margin-top: 2px; }
select option { background: var(--bg3); }

/* SUGGESTIONS */
.suggestions-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 8px 8px;
  z-index: 50;
  max-height: 200px;
  overflow-y: auto;
}
.suggestion-item {
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
  color: var(--text);
  transition: background 0.15s;
}
.suggestion-item:hover { background: rgba(212,175,110,0.12); color: var(--gold); }

/* BUTTON */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--mauve);
  color: var(--white);
  border: none;
  border-radius: 8px;
  padding: 15px 36px;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
  width: 100%;
  margin-top: 8px;
}
.btn-primary:hover { background: #9d6475; transform: translateY(-1px); }
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hidden { display: none !important; }

/* ===== RESULTS ===== */
.results-section { animation: fadeUp 0.6s ease; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  color: var(--white);
  margin-bottom: 6px;
}

/* WHEEL */
.chart-wheel-wrapper {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  margin-bottom: 32px;
  text-align: center;
  box-shadow: var(--shadow);
}
.wheel-container {
  display: flex;
  justify-content: center;
  margin: 24px 0;
}
#chartWheel { max-width: 100%; height: auto; }
.chart-identity {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 20px;
}
.identity-pill {
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 20px;
  font-size: 13px;
  color: var(--text);
}
.identity-pill strong { color: var(--gold); }

/* DATA CARDS */
.data-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  margin-bottom: 24px;
  box-shadow: var(--shadow);
}
.card-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--white);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-icon { font-size: 18px; }
.table-wrapper { overflow-x: auto; }
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.data-table th {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid rgba(212,175,110,0.07);
  color: var(--text);
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(212,175,110,0.04); }
.retro-badge {
  display: inline-block;
  background: rgba(135,86,99,0.3);
  color: var(--mauve);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid rgba(135,86,99,0.4);
}
.aspect-harmonious { color: #7db87d; }
.aspect-tense      { color: #c97070; }
.aspect-neutral    { color: var(--muted); }

/* CTA */
.reading-cta {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 56px 48px;
  text-align: center;
  margin-bottom: 48px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cta-glow {
  position: absolute;
  top: -60px; left: 50%;
  transform: translateX(-50%);
  width: 400px; height: 200px;
  background: radial-gradient(ellipse, rgba(135,86,99,0.3), transparent 70%);
  pointer-events: none;
}
.reading-cta h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 32px;
  color: var(--white);
  margin: 12px 0;
}
.reading-cta p {
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 28px;
}
.reading-cta .btn-primary { width: auto; display: inline-flex; }

/* ===== EPHEMERIS ===== */
.ephemeris-section {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}
.ephemeris-subtitle {
  color: var(--muted);
  margin-bottom: 28px;
  font-size: 14px;
}
.ephem-date {
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

/* ===== FOOTER ===== */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 40px;
  text-align: center;
  color: var(--muted);
  font-size: 13px;
}
.site-footer a { color: var(--gold); text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .site-header { padding: 14px 20px; }
  .header-nav a:not(.btn-nav) { display: none; }
  .hero { padding: 60px 20px 50px; }
  .form-card { padding: 28px 22px; }
  .form-row { grid-template-columns: 1fr; }
  .reading-cta { padding: 40px 24px; }
  .ephemeris-section { padding: 28px 20px; }
  .data-card { padding: 24px 20px; }
  .chart-wheel-wrapper { padding: 24px 16px; }
}

/* ── CHART ACTION BUTTONS ───────────────────────────────────────────────────── */
.chart-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin: 20px 0 8px;
}

.btn-action {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: transparent;
  border: 1px solid rgba(212, 175, 110, 0.45);
  color: #d4af6e;
  border-radius: 6px;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.03em;
}

.btn-action:hover {
  background: rgba(212, 175, 110, 0.12);
  border-color: #d4af6e;
  box-shadow: 0 0 12px rgba(212, 175, 110, 0.2);
}

.btn-action svg {
  flex-shrink: 0;
}

/* ── CARD ICON TEXT ─────────────────────────────────────────────────────────── */
.card-icon {
  color: #d4af6e;
  font-style: normal;
  margin-right: 6px;
}

/* ── BOTTOM BOOKING CTA ─────────────────────────────────────────────────────── */
#bookingCta {
  margin: 0;
  padding: 80px 40px;
  text-align: center;
  background: linear-gradient(180deg, #1a0c18 0%, #0e0610 100%);
  border-top: 1px solid rgba(212, 175, 110, 0.2);
  position: relative;
  overflow: hidden;
}

#bookingCta::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(ellipse, rgba(135, 86, 99, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

#bookingCta .eyebrow {
  color: #d4af6e;
  font-size: 11px;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
}

#bookingCta h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(28px, 4vw, 42px);
  color: #f5eef0;
  margin-bottom: 16px;
  font-weight: 400;
}

#bookingCta p {
  color: #b0a0aa;
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.7;
  font-size: 15px;
}

/* ── PRINT STYLES ───────────────────────────────────────────────────────────── */
@media print {
  .site-header, .hero, .calculator-section .form-card,
  .chart-actions, #bookingCta, .site-footer,
  .ephemeris-section { display: none !important; }
  body { background: white !important; }
  .data-card { break-inside: avoid; }
  .data-table th, .data-table td { color: #333 !important; border-color: #ccc !important; }
  .chart-wheel-wrapper { page-break-after: always; }
}

/* ── REPORT NAME INPUT ──────────────────────────────────────────────────────── */
.report-name-row {
  margin: 16px 0 8px;
  display: flex;
  justify-content: center;
}

.report-name-input {
  width: 100%;
  max-width: 400px;
  padding: 10px 16px;
  background: rgba(54, 40, 51, 0.4);
  border: 1px solid rgba(212, 175, 110, 0.3);
  border-radius: 6px;
  color: #f5eef0;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  text-align: center;
}

.report-name-input::placeholder { color: #7a6a74; }
.report-name-input:focus {
  outline: none;
  border-color: #d4af6e;
  background: rgba(54, 40, 51, 0.7);
}

/* ── REPORT DOWNLOAD BUTTON — featured ──────────────────────────────────────── */
.btn-report {
  background: linear-gradient(135deg, #362833 0%, #875663 100%);
  border-color: #d4af6e !important;
  color: #d4af6e !important;
  font-weight: 600;
  padding: 12px 28px !important;
  font-size: 14px !important;
  box-shadow: 0 4px 20px rgba(212, 175, 110, 0.2);
}

.btn-report:hover {
  background: linear-gradient(135deg, #4a3245 0%, #9a6673 100%) !important;
  box-shadow: 0 6px 28px rgba(212, 175, 110, 0.35) !important;
  transform: translateY(-1px);
}
