/* ============================================================
   Vedic Astrology Channel — shared theme
   A warm, traditional palette (deep maroon, temple gold, cream)
   meant to read as respectful and rooted in the subject matter,
   not a generic app skin.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Yatra+One&family=Noto+Sans+Devanagari:wght@400;600&family=Mukta:wght@400;500;600;700&display=swap');

:root {
  --maroon-deep: #4a1414;
  --maroon: #7a1f1f;
  --maroon-soft: #9c3b3b;
  --gold: #b8860b;
  --gold-light: #d4af37;
  --gold-pale: #e9d8a6;
  --saffron: #c76b1f;
  --cream: #fdf6ea;
  --cream-2: #f7ecd3;
  --paper: #fffdf8;
  --ink: #3a2415;
  --ink-soft: #6b5842;
  --shadow: 0 2px 10px rgba(122, 31, 31, 0.08);
}

* { box-sizing: border-box; }

body {
  font-family: 'Mukta', -apple-system, Segoe UI, sans-serif;
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-2) 100%);
  color: var(--ink);
  max-width: 900px;
  margin: 0 auto;
  padding: 0 20px 48px;
  line-height: 1.5;
  font-size: 17px;
}

body.narrow { max-width: 460px; }
body.medium { max-width: 680px; }
body.wide { max-width: 1180px; }

h1, h2, h3 { font-family: 'Yatra One', 'Mukta', sans-serif; color: var(--maroon); font-weight: 400; }
h1 { font-size: 28px; letter-spacing: 0.3px; }
h2 { font-size: 21px; margin-top: 34px; border-bottom: 1px solid var(--gold-pale); padding-bottom: 6px; }

a { color: var(--maroon); }

/* --- top nav bar --- */
.nav {
  text-align: right;
  font-size: 17px;
  padding: 10px 0 4px;
  color: var(--ink-soft);
}
.nav a { color: var(--maroon); text-decoration: none; margin-left: 14px; font-weight: 600; }
.nav a:hover { text-decoration: underline; }
.nav span { color: var(--ink-soft); }

/* --- Ganesha header block --- */
.ganesha-header {
  text-align: center;
  padding: 18px 10px 20px;
  margin-bottom: 6px;
}
.ganesha-header img.ganesha-art {
  width: 168px; height: 168px; display: block; margin: 0 auto 10px;
  border-radius: 50%; box-shadow: 0 3px 14px rgba(122,31,31,0.18);
}
.ganesha-header .brand-title {
  font-family: 'Yatra One', sans-serif;
  font-size: 30px;
  color: var(--maroon);
  margin: 0;
}
.ganesha-header .brand-tagline {
  color: var(--ink-soft);
  font-size: 17px;
  margin: 2px 0 14px;
}
.shloka-block {
  display: inline-block;
  border-top: 1px solid var(--gold-pale);
  border-bottom: 1px solid var(--gold-pale);
  padding: 10px 22px;
  max-width: 520px;
}
.shloka-sanskrit {
  font-family: 'Noto Sans Devanagari', serif;
  font-size: 20px;
  color: var(--maroon-deep);
  font-weight: 600;
  line-height: 1.7;
}
.shloka-translit {
  font-size: 16.5px;
  color: var(--saffron);
  font-style: italic;
  margin-top: 4px;
}
.shloka-meaning {
  font-size: 15.5px;
  color: var(--ink-soft);
  margin-top: 5px;
}

/* --- decorative divider (simple gold rule with a center diamond) --- */
.divider { display: flex; align-items: center; margin: 22px 0; }
.divider::before, .divider::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold) 50%, transparent);
}
.divider .dot { width: 7px; height: 7px; background: var(--gold-light); transform: rotate(45deg); margin: 0 10px; }

/* --- compact brand bar (auth/profile pages) --- */
.brand-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 14px 0 10px; border-bottom: 1px solid var(--gold-pale); margin-bottom: 18px;
}
.brand-bar-img { width: 38px; height: 38px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.brand-bar .name { font-family: 'Yatra One', sans-serif; color: var(--maroon); font-size: 19px; }

/* --- foreword (landing page intent statement) --- */
.foreword {
  background: var(--paper);
  border: 1px solid var(--gold-pale);
  border-left: 4px solid var(--gold);
  border-radius: 10px;
  padding: 18px 22px;
  margin: 18px 0 24px;
  box-shadow: var(--shadow);
}
.foreword h2 { font-size: 22px; border-bottom: none; margin-top: 0; }
.foreword p { font-size: 18px; line-height: 1.65; color: var(--ink); margin: 8px 0; }
.foreword p:last-child { margin-bottom: 0; }

/* --- city live-search suggestions --- */
.city-suggestions {
  list-style: none; margin: 2px 0 0; padding: 0;
  position: absolute; left: 0; right: 0; z-index: 20;
  background: var(--paper); border: 1px solid var(--gold-pale); border-radius: 0 0 8px 8px;
  box-shadow: 0 6px 16px rgba(122,31,31,0.15);
  max-height: 220px; overflow-y: auto;
}
.city-suggestions li {
  padding: 8px 12px; font-size: 17px; cursor: pointer; border-bottom: 1px solid var(--cream-2);
}
.city-suggestions li:last-child { border-bottom: none; }
.city-suggestions li:hover { background: var(--cream-2); }

/* --- panels / cards --- */
.card, fieldset {
  background: var(--paper);
  border: 1px solid var(--gold-pale);
  border-radius: 10px;
  margin-bottom: 16px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
}
legend { font-weight: 600; padding: 0 8px; color: var(--maroon); font-family: 'Mukta', sans-serif; }

label { display: block; margin-top: 10px; font-size: 17px; color: var(--ink); }
input[type=text], input[type=date], input[type=time], input[type=number],
input[type=email], input[type=password], select {
  width: 100%; padding: 8px 10px; margin-top: 4px; box-sizing: border-box;
  border: 1px solid #dcc9a3; border-radius: 6px; font-size: 17px;
  font-family: 'Mukta', sans-serif; background: var(--cream);
  color: var(--ink);
}
input:focus, select:focus { outline: none; border-color: var(--gold); background: var(--paper); }

.radio-row label { display: inline-block; margin-right: 16px; font-weight: normal; }
.radio-row input { width: auto; margin-right: 4px; }

.hint { color: var(--ink-soft); font-size: 16px; margin-top: 4px; }

button, .btn {
  background: linear-gradient(180deg, var(--maroon-soft), var(--maroon));
  color: var(--cream);
  border: none;
  padding: 10px 22px;
  border-radius: 7px;
  font-size: 18px;
  font-family: 'Mukta', sans-serif;
  font-weight: 600;
  cursor: pointer;
  margin-top: 8px;
  box-shadow: 0 2px 6px rgba(122,31,31,0.25);
}
button:hover, .btn:hover { background: linear-gradient(180deg, var(--maroon), var(--maroon-deep)); }

.error {
  background: #fbeaea; border: 1px solid #d98d8d; color: #8a2c2c;
  padding: 10px 14px; border-radius: 8px; margin-bottom: 16px; font-size: 17px;
}

/* --- meta / charts --- */
.meta { color: var(--ink-soft); font-size: 17px; margin-bottom: 20px; }
.charts { display: flex; gap: 24px; flex-wrap: wrap; }
.charts svg { width: 540px; height: 540px; border-radius: 10px; }
.charts > div > .meta { text-align: center; }

/* --- clickable planets + Drishti (aspect) lines --- */
.planet-node { cursor: pointer; }
.planet-node:hover { fill: var(--saffron) !important; }
.aspect-line { pointer-events: none; }
.chart-hint { font-size: 16px; color: var(--ink-soft); font-style: italic; margin: 4px 0 10px; }

/* --- sidebar dashboard (result page) --- */
.dashboard { display: flex; gap: 26px; align-items: flex-start; margin-top: 10px; }
.chart-sidebar {
  flex: 0 0 210px;
  position: sticky; top: 14px;
  display: flex; flex-direction: column; gap: 2px;
  background: var(--paper); border: 1px solid var(--gold-pale); border-radius: 10px;
  padding: 10px; box-shadow: var(--shadow); max-height: calc(100vh - 28px); overflow-y: auto;
}
.side-link {
  display: block; padding: 7px 10px; border-radius: 6px; font-size: 17px;
  color: var(--ink); text-decoration: none; font-weight: 600;
}
.side-link:hover { background: var(--cream-2); }
.side-link.active { background: var(--maroon); color: var(--cream); }
.side-link.side-sub { font-weight: 400; font-size: 16px; padding-left: 20px; }
.side-link.side-sub.active { background: var(--maroon-soft); }
.side-group-label {
  font-size: 15px; text-transform: uppercase; letter-spacing: 0.4px;
  color: var(--ink-soft); margin: 10px 0 2px 10px; font-weight: 700;
}
.chart-main { flex: 1 1 auto; min-width: 0; }
.panel { display: none; }
.panel.active { display: block; }

@media (max-width: 820px) {
  .dashboard { flex-direction: column; }
  .chart-sidebar { position: static; flex-direction: row; flex-wrap: wrap; max-height: none; width: 100%; }
}

/* --- tables --- */
table { border-collapse: collapse; width: 100%; margin-top: 8px; font-size: 17px; background: var(--paper); }
th, td { border: 1px solid var(--gold-pale); padding: 6px 9px; text-align: left; }
th { background: var(--maroon); color: var(--cream); font-weight: 600; }
tr:nth-child(even) td { background: var(--cream); }
tr.yes { background: #f0f7ee; }
.yes-badge { color: #1a7a3a; font-weight: 600; }
.no-badge { color: var(--ink-soft); }
.running { background: var(--gold-pale); font-weight: 600; }
.source { color: var(--ink-soft); font-size: 15px; }

/* --- muted "checked but not present" yoga list: readable, not highlighted --- */
.muted-heading { color: var(--ink-soft); font-weight: 400; border-bottom-color: transparent; margin-top: 26px; }
.muted-table { background: transparent; }
.muted-table th { background: transparent; color: var(--ink-soft); border-color: var(--cream-2); font-weight: 600; }
.muted-table td { color: var(--ink-soft); border-color: var(--cream-2); background: transparent; }
.muted-table tr:nth-child(even) td { background: transparent; }
.muted-table .source { color: var(--ink-soft); opacity: 0.8; }

/* --- house-significance legend panel (Lagna / Bhava Chalit / KP charts) --- */
.house-legend {
  flex: 1 1 220px;
  max-width: 280px;
  align-self: flex-start;
  background: var(--paper);
  border: 1px solid var(--gold-pale);
  border-radius: 8px;
  padding: 10px 14px;
}
.house-legend-title {
  font-family: 'Yatra One', sans-serif;
  color: var(--maroon);
  font-size: 15px;
  margin-bottom: 4px;
}
.house-legend-note {
  color: var(--ink-soft);
  font-size: 12px;
  font-style: italic;
  margin: 0 0 8px;
  line-height: 1.4;
}
.house-legend-list { list-style: none; margin: 0; padding: 0; }
.house-legend-list li {
  color: var(--ink-soft);
  font-size: 12.5px;
  line-height: 1.55;
  margin-bottom: 3px;
}
.house-legend-num { color: var(--saffron); font-weight: 700; }
.house-legend-name { color: var(--ink-soft); font-style: italic; }

.back { display: inline-block; margin-top: 24px; color: var(--maroon); text-decoration: none; font-weight: 600; }

/* --- save-a-chart box --- */
.save-box {
  background: var(--cream-2); border: 1px solid var(--gold-pale); border-radius: 8px;
  padding: 10px 14px; margin: 12px 0 20px; font-size: 17px;
}
.save-box input[type=text] { padding: 5px 8px; border: 1px solid #dcc9a3; border-radius: 5px; font-size: 17px; margin-right: 8px; width: auto; }
.save-box button { padding: 6px 16px; font-size: 17px; margin-top: 0; }

/* --- profiles list --- */
a.view { color: var(--maroon); text-decoration: none; font-weight: 700; }
button.delete { background: none; border: none; color: #a33; cursor: pointer; font-size: 17px; padding: 0; box-shadow: none; margin: 0; }
.empty { color: var(--ink-soft); margin-top: 24px; }
.new-btn { display: inline-block; margin-top: 16px; }

/* --- footer --- */
.site-footer {
  text-align: center; margin-top: 44px; padding-top: 18px;
  border-top: 1px solid var(--gold-pale); color: var(--ink-soft); font-size: 15.5px;
}

.legal-line {
  text-align: center; margin-top: 10px; color: var(--ink-soft);
  font-size: 12.5px; opacity: 0.75;
}
