/* Shubh Muhurat + Live Horoscope — Vedic Vastu Living
   Design language matched to vedicvastuliving.com:
   white ground, Domine headings, Manrope body, #6a5112 gold buttons, cream accent bands. */

:root {
  --bg: #ffffff;
  --bg-meta: #f7f7f7;
  --bg-darker: #eaeaea;
  --cream: #faedcd;
  --cream-soft: #fdf7e9;

  --text: #000000;
  --text-70: rgba(0, 0, 0, 0.7);
  --muted: rgba(0, 0, 0, 0.55);
  --border: #dbdbdb;
  --border-soft: rgba(0, 0, 0, 0.08);

  --gold: #6a5112;
  --gold-hover: #4b3a0d;
  --gold-soft: #a9976a;
  --gold-wash: rgba(106, 81, 18, 0.07);

  --good: #2f7d55;
  --fair: #a9762b;
  --bad: #c0392b;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.5rem;
  --text-2xl: 1.9rem;
  --text-hero: clamp(2.1rem, 5vw, 2.9rem);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;
  --r-pill: 25px;

  --font-display: 'Domine', Georgia, serif;
  --font-body: 'Manrope', system-ui, -apple-system, sans-serif;
  --font-hi: 'Noto Serif Devanagari', 'Domine', serif;
  --maxw: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: 1.62;
  overflow-x: hidden;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 400; line-height: 1.2; margin: 0; }
.hi { font-family: var(--font-hi); font-weight: 400; color: var(--gold); }
b, strong { font-weight: 700; }
a { color: inherit; }
.glow { display: none; }

/* ---------- announcement + header ---------- */
.topbar {
  background: var(--gold); color: #fff;
  font-size: var(--text-sm); text-align: center; padding: 9px 16px;
}
.topbar a { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, 0.45); }
.topbar a:hover { border-color: #fff; }

.site-head {
  max-width: var(--maxw); margin: 0 auto; padding: 22px 24px 0;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  text-align: center;
}
.brand { display: inline-flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--text); }
.brand img.mark { width: 90px; height: 90px; object-fit: contain; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; }
.brand-text strong { font-size: var(--text-xs); letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500; color: var(--text-70); }
.brand-text em { font-family: var(--font-display); font-style: normal; font-size: var(--text-lg); color: var(--text); }

.page-nav { display: flex; gap: 30px; justify-content: center; border-bottom: 1px solid var(--border); width: 100%; }
.page-nav a {
  text-decoration: none; color: var(--text); font-family: var(--font-display); font-size: var(--text-base);
  padding: 6px 2px 14px; border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.page-nav a:hover { color: var(--gold); }
.page-nav a.on { border-bottom-color: var(--gold); color: var(--gold); }

.head-right { display: flex; align-items: flex-end; justify-content: center; gap: 12px; flex-wrap: wrap; padding-top: 4px; }
.field { display: flex; flex-direction: column; gap: 5px; text-align: left; }
.field span { font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
select, input[type='date'] {
  appearance: none; background: #fff; color: #444;
  border: 1px solid rgba(68, 68, 68, 0.4); border-radius: var(--r-sm);
  padding: 10px 12px; font: 400 var(--text-sm)/1.2 var(--font-body); min-width: 152px;
}
select:focus-visible, input:focus-visible, button:focus-visible, a:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 2px;
}
.ghost {
  background: #fff; color: var(--text); border: 1px solid rgba(0, 0, 0, 0.4);
  border-radius: var(--r-pill); padding: 11px 20px; font: 400 var(--text-sm)/1.2 var(--font-display);
  cursor: pointer; transition: border-color 0.2s ease, background 0.2s ease;
}
.ghost:hover { border-color: var(--text); background: var(--bg-meta); }

main { max-width: var(--maxw); margin: 0 auto; padding: 30px 24px 64px; }

/* ---------- now panel ---------- */
.now { display: grid; grid-template-columns: 1.55fr 1fr; gap: 20px; margin: 0 0 46px; }
.now-card { background: var(--cream); border: 1px solid rgba(106, 81, 18, 0.16); border-radius: var(--r-lg); padding: 32px 34px; position: relative; overflow: hidden; }
.sun-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px 32px; }
.eyebrow { margin: 0 0 10px; font-size: var(--text-xs); letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.now-name { font-size: var(--text-hero); display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.now-name .hi { font-size: 0.5em; }
.now-meaning { margin: 12px 0 22px; max-width: 46ch; color: var(--text-70); }
.now-meta { display: flex; gap: 34px; flex-wrap: wrap; border-top: 1px solid rgba(106, 81, 18, 0.18); padding-top: 16px; }
.now-meta .lbl { display: block; font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.now-meta b { font-size: var(--text-lg); font-variant-numeric: tabular-nums; }
.verdict {
  position: absolute; top: 30px; right: 34px; padding: 6px 15px; border-radius: var(--r-pill);
  font-size: var(--text-xs); letter-spacing: 0.1em; text-transform: uppercase; font-weight: 700;
}
.verdict.good { background: rgba(47, 125, 85, 0.12); color: var(--good); border: 1px solid rgba(47, 125, 85, 0.4); }
.verdict.fair { background: rgba(169, 118, 43, 0.12); color: var(--fair); border: 1px solid rgba(169, 118, 43, 0.4); }
.verdict.bad { background: rgba(192, 57, 43, 0.1); color: var(--bad); border: 1px solid rgba(192, 57, 43, 0.35); }

.card-title { font-size: var(--text-xl); margin-bottom: 14px; }
.sun-list { list-style: none; margin: 0; padding: 0; }
.sun-list li { display: flex; justify-content: space-between; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border-soft); font-size: var(--text-sm); }
.sun-list li:last-child { border-bottom: 0; }
.sun-list span { color: var(--muted); }
.sun-list b { font-variant-numeric: tabular-nums; }
.place { margin: 14px 0 0; font-size: var(--text-xs); color: var(--muted); }

/* ---------- panels ---------- */
.panel { margin: 0 0 52px; }
.panel-head { max-width: 66ch; margin-bottom: 24px; }
.panel-head h2 { font-size: var(--text-2xl); }
.panel-head p { margin: 10px 0 0; color: var(--text-70); font-size: var(--text-sm); }

.chog-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.chog-col { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px 22px 10px; }
.col-head { font-size: var(--text-lg); display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.col-range { font-size: var(--text-xs); color: var(--muted); font-family: var(--font-body); font-variant-numeric: tabular-nums; }
.slots { list-style: none; margin: 14px 0 0; padding: 0; }
.slot {
  display: grid; grid-template-columns: 22px 1fr auto; align-items: center; gap: 12px;
  padding: 11px 12px; border-radius: 8px; border: 1px solid transparent;
  transition: background 0.18s ease;
}
.slot + .slot { margin-top: 2px; }
.slot:hover { background: var(--bg-meta); }
.slot .idx { font-size: var(--text-xs); color: var(--muted); font-variant-numeric: tabular-nums; }
.slot .nm { display: flex; align-items: baseline; gap: 8px; font-weight: 600; }
.slot .nm .hi { font-size: var(--text-sm); font-weight: 400; }
.slot .tm { font-size: var(--text-sm); color: var(--text-70); font-variant-numeric: tabular-nums; }
.slot.past { opacity: 0.45; }
.slot.live { background: var(--cream); border-color: rgba(106, 81, 18, 0.35); }
.slot.live .tm { color: var(--gold); font-weight: 600; }
.slot .bar { width: 4px; height: 26px; border-radius: 4px; grid-row: 1; justify-self: center; }
.slot.good-b .bar { background: var(--good); }
.slot.fair-b .bar { background: var(--fair); }
.slot.bad-b .bar { background: var(--bad); }

.legend { display: flex; gap: 22px; flex-wrap: wrap; list-style: none; padding: 0; margin: 16px 0 0; font-size: var(--text-xs); color: var(--muted); }
.legend li { display: flex; align-items: center; gap: 7px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot.good { background: var(--good); } .dot.fair { background: var(--fair); } .dot.bad { background: var(--bad); }

.kaal-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(232px, 1fr)); gap: 16px; }
.kaal {
  background: #fff; border: 1px solid var(--border);
  border-left: 3px solid var(--bad); border-radius: var(--r-md); padding: 20px 22px;
}
.kaal.is-good { border-left-color: var(--good); }
.kaal h3 { font-size: var(--text-base); display: flex; gap: 8px; align-items: baseline; }
.kaal time { display: block; margin: 8px 0 6px; font-size: var(--text-lg); font-variant-numeric: tabular-nums; color: var(--gold); font-weight: 700; }
.kaal p { margin: 0; font-size: var(--text-xs); color: var(--muted); }

/* ---------- signs + reading ---------- */
.reading-wrap { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; align-items: start; }
.reading, .remedy { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 30px; }
.reading-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.reading-head .eyebrow { margin: 0; font-size: var(--text-lg); letter-spacing: 0; text-transform: none; font-family: var(--font-display); color: var(--text); }
.read-date { margin: 3px 0 0; font-size: var(--text-xs); color: var(--muted); }
.tabs { display: flex; gap: 4px; background: var(--bg-meta); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 3px; }
.tabs button { background: transparent; border: 0; color: var(--text-70); border-radius: var(--r-pill); padding: 8px 16px; font: 400 var(--text-sm)/1 var(--font-display); cursor: pointer; }
.tabs button:hover { color: var(--gold); }
.tabs button.on { background: var(--gold); color: #fff; }
.reading-text { margin: 20px 0 0; font-size: var(--text-lg); line-height: 1.66; color: #1a1a1a; }
.reading-src { margin: 18px 0 0; font-size: var(--text-xs); color: var(--muted); }
.skeleton { display: block; height: 14px; border-radius: 7px; margin-bottom: 10px; background: linear-gradient(90deg, #f0f0f0, #e2e2e2, #f0f0f0); background-size: 220% 100%; animation: sk 1.4s ease-in-out infinite; }
.skeleton.short { width: 58%; }
@keyframes sk { 0% { background-position: 120% 0; } 100% { background-position: -120% 0; } }

.remedy-media { display: block; border-radius: var(--r-md); overflow: hidden; background: #fff; border: 1px solid var(--border-soft); margin: 12px 0 16px; aspect-ratio: 4 / 3; }
.remedy-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.remedy h3 { font-size: var(--text-lg); line-height: 1.4; }
.remedy-why { font-size: var(--text-sm); color: var(--text-70); margin: 8px 0 18px; }
.remedy-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.remedy-foot span { font-size: var(--text-lg); font-weight: 700; font-variant-numeric: tabular-nums; }
.cta {
  background: var(--gold); color: #fff; text-decoration: none; font-weight: 400; font-size: var(--text-sm);
  font-family: var(--font-display); padding: 12px 22px; border-radius: var(--r-pill);
  transition: background 0.2s ease;
}
.cta:hover { background: var(--gold-hover); }

/* ---------- horoscope page ---------- */
.picker { margin-top: 4px; }
.picker h1 { font-size: var(--text-2xl); }
.panel-head.row { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none; flex-wrap: wrap; }
.panel-head.row > div { max-width: 60ch; }

.sign-cards { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.sign-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  padding: 18px 10px 16px; cursor: pointer; color: var(--text); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  font: 400 var(--text-sm)/1.35 var(--font-display);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}
.sign-card .card-glyph { font-size: 1.7rem; color: var(--gold); font-variant-emoji: text; line-height: 1.1; }
.sign-card b { font-weight: 400; font-size: var(--text-base); }
.sign-card .hi { font-size: var(--text-sm); }
.sign-card small { font-size: 0.7rem; color: var(--muted); font-family: var(--font-body); }
.sign-card:hover { transform: translateY(-2px); border-color: var(--gold-soft); }
.sign-card.on { background: var(--cream); border-color: var(--gold); }

.sign-hero {
  display: grid; grid-template-columns: 148px 1fr; gap: 30px; align-items: center;
  background: var(--cream); border: 1px solid rgba(106, 81, 18, 0.16);
  border-radius: var(--r-lg); padding: 30px 34px; margin-bottom: 20px;
}
.hero-glyph {
  font-family: var(--font-display); font-variant-emoji: text; font-size: 5rem; line-height: 1;
  color: var(--gold); text-align: center;
  border: 1px solid rgba(106, 81, 18, 0.24); border-radius: var(--r-md); padding: 16px 0;
  background: rgba(255, 255, 255, 0.6);
}
.hero-name { font-size: clamp(1.9rem, 4vw, 2.6rem); display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.hero-name .hi { font-size: 0.55em; }
.hero-facts { list-style: none; margin: 18px 0 0; padding: 16px 0 0; border-top: 1px solid rgba(106, 81, 18, 0.18); display: flex; gap: 34px; flex-wrap: wrap; }
.hero-facts .lbl { display: block; font-size: var(--text-xs); letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.hero-facts b { font-size: var(--text-base); font-weight: 600; }

.all-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.all-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-md); padding: 22px 24px; }
.all-card header { display: flex; align-items: center; gap: 10px; }
.all-glyph { font-variant-emoji: text; font-size: 1.5rem; color: var(--gold); line-height: 1; }
.all-card h3 { font-size: var(--text-base); }
.all-card h3 small { font-family: var(--font-hi); color: var(--gold); font-size: var(--text-sm); margin-left: 4px; }
.all-text { margin: 12px 0 14px; font-size: var(--text-sm); color: var(--text-70); }
.all-link { font-size: var(--text-xs); color: var(--gold); text-decoration: none; letter-spacing: 0.08em; text-transform: uppercase; font-weight: 700; }
.all-link:hover { text-decoration: underline; }
#loadAll[disabled] { opacity: 0.5; cursor: default; }

.cross {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  background: var(--bg-meta); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 28px 32px;
}
.cross h2 { font-size: var(--text-xl); }
.cross p { margin: 8px 0 0; color: var(--text-70); font-size: var(--text-sm); max-width: 60ch; }

/* ---------- tagline band + footer ---------- */
.tagline {
  background: var(--cream-soft); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft);
  text-align: center; padding: 40px 24px; font-family: var(--font-display); font-style: italic;
  font-size: clamp(1.25rem, 2.6vw, 1.7rem); line-height: 1.5;
}
.tagline span { display: block; }

.site-foot {
  max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 56px;
  display: grid; grid-template-columns: 1.8fr 1fr; gap: 30px;
}
.site-foot strong { font-family: var(--font-display); font-weight: 400; font-size: var(--text-lg); letter-spacing: 0; text-transform: none; }
.site-foot p { margin: 10px 0 0; font-size: var(--text-xs); color: var(--muted); max-width: 72ch; }
.site-foot nav { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.site-foot nav a { font-size: var(--text-sm); color: var(--text); text-decoration: none; }
.site-foot nav a:hover { color: var(--gold); text-decoration: underline; }

/* ---------- responsive ---------- */
@media (max-width: 980px) {
  .sign-cards { grid-template-columns: repeat(4, 1fr); }
  .all-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .now, .chog-grid, .reading-wrap, .site-foot { grid-template-columns: 1fr; }
  .sign-hero { grid-template-columns: 96px 1fr; gap: 22px; padding: 26px; }
  .hero-glyph { font-size: 3.2rem; }
  .verdict { position: static; display: inline-block; margin-top: 18px; }
  .page-nav { gap: 20px; }
}
@media (max-width: 620px) {
  .site-head { padding: 18px 16px 0; }
  main { padding: 24px 16px 48px; }
  .site-foot { padding: 32px 16px 44px; }
  .now-card, .sun-card, .reading, .remedy { padding: 22px 20px; }
  .head-right { width: 100%; }
  .field { flex: 1 1 140px; }
  select, input[type='date'] { min-width: 0; width: 100%; }
  .ghost { flex: 1 1 100%; }
  .now-meta { gap: 20px; }
  .sign-cards { grid-template-columns: repeat(2, 1fr); }
  .all-grid { grid-template-columns: 1fr; }
  .page-nav { gap: 0; justify-content: space-around; width: 100%; }
  .page-nav a { flex: 1; text-align: center; font-size: var(--text-sm); }
  .sign-hero { grid-template-columns: 1fr; }
  .hero-glyph { width: 92px; font-size: 3rem; }
  .hero-facts { gap: 16px 26px; }
  .cross { padding: 24px 20px; }
  .brand img.mark { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ---------- Rashi Swami recommendations ---------- */
.reco .panel-head { max-width: 70ch; }
.reco-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.reco-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden; transition: border-color .18s ease, box-shadow .18s ease;
}
.reco-card:hover { border-color: var(--gold-soft); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06); }
.reco-card.lead { border-color: var(--gold-soft); background: var(--cream-soft); }
.reco-media { display: block; aspect-ratio: 1 / 1; background: #fff; border-bottom: 1px solid var(--border-soft); }
.reco-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.reco-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.reco-tag {
  align-self: flex-start; font-size: var(--text-xs); letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold); background: var(--gold-wash);
  border-radius: var(--r-pill); padding: 3px 10px;
}
.reco-card h3 { font-size: var(--text-base); line-height: 1.4; margin: 0; }
.reco-card h3 a { color: inherit; text-decoration: none; }
.reco-card h3 a:hover { color: var(--gold); text-decoration: underline; }
.reco-price {
  margin: auto 0 0; padding-top: 6px;
  font-size: var(--text-base); font-weight: 700; font-variant-numeric: tabular-nums;
}
.reco-price small { display: block; font-size: var(--text-xs); font-weight: 500; color: var(--muted); letter-spacing: 0.04em; }
.reco-note {
  margin-top: 22px; padding: 20px 24px;
  background: var(--cream); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
}
.reco-note p { margin: 0; max-width: 62ch; font-size: var(--text-sm); color: var(--text-70); }
.reco-note p b { color: var(--text); }

@media (max-width: 900px) {
  .reco-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .reco-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .reco-body { padding: 12px 13px 14px; }
  .reco-card h3 { font-size: var(--text-sm); }
  .reco-note { padding: 18px 18px; }
  .reco-note .cta { width: 100%; text-align: center; }
}
