/* ===========================================================
   RASHIFAL & VASTU SHASTRA PAGE
   Crystal Aid — ज्योतिष एवं वास्तु
   =========================================================== */

/* ── Hero ─────────────────────────────────────────────────── */
.rashi-hero {
  background: linear-gradient(135deg, #1a1225 0%, #2d1b4e 50%, #1d1e23 100%);
  color: var(--bone-on-dark);
  padding: var(--space-8) 0 var(--space-7);
  border-bottom: 1px solid rgba(184,134,75,0.3);
  position: relative;
  overflow: hidden;
}
.rashi-hero::before {
  content: '✦ ☽ ✦ ☿ ✦ ♃ ✦ ♀ ✦ ☉ ✦ ♂ ✦ ♄ ✦ ☽ ✦';
  position: absolute;
  top: 0; left: 0; right: 0;
  font-size: 11px;
  letter-spacing: 0.2em;
  color: rgba(184,134,75,0.35);
  padding: var(--space-2) var(--space-4);
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
}
.rashi-hero .eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  border: 1px solid rgba(184,134,75,0.4);
  padding: 4px 12px;
  border-radius: 2px;
  margin-bottom: var(--space-4);
}
.rashi-hero h1 {
  font-size: clamp(26px, 4vw, 46px);
  color: var(--bone-on-dark);
  margin-bottom: var(--space-4);
  line-height: 1.2;
}
.rashi-hero p {
  color: rgba(246,241,231,0.75);
  font-size: 15.5px;
  max-width: 580px;
  line-height: 1.7;
}

/* ── Layout ───────────────────────────────────────────────── */
.rashi-section { padding: var(--space-8) 0; }

.rashi-layout {
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: var(--space-6);
  align-items: start;
}
@media (max-width: 900px) {
  .rashi-layout { grid-template-columns: 1fr; }
}

/* ── Form Card ────────────────────────────────────────────── */
.rashi-form-card {
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: sticky;
  top: 80px;
}
@media (max-width: 900px) {
  .rashi-form-card { position: static; }
}

.rashi-form-head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  background: linear-gradient(135deg, #1a1225, #2d1b4e);
  color: var(--bone-on-dark);
}
.rashi-form-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(184,134,75,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.rashi-form-icon svg {
  width: 24px;
  height: 24px;
  stroke: var(--gold);
}
.rashi-form-head h2 {
  font-size: 18px;
  color: var(--bone-on-dark);
  margin-bottom: 4px;
}
.rashi-form-head p {
  font-size: 12.5px;
  color: rgba(246,241,231,0.65);
  margin: 0;
}

.rashi-form { padding: var(--space-5); }

.rf-field {
  margin-bottom: var(--space-4);
}
.rf-field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}
.rf-field label span { color: var(--error); }
.rf-field input {
  width: 100%;
  background: var(--cream);
  border: 1px solid var(--line);
  color: var(--ink);
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-family: var(--font-body);
  box-sizing: border-box;
  transition: border-color 0.2s var(--ease-soft);
}
.rf-field input:focus {
  border-color: var(--gold);
  outline: none;
}
.rf-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3);
}

.rashi-submit-btn {
  width: 100%;
  background: linear-gradient(135deg, #B8864B, #96673A);
  color: var(--cream);
  border: none;
  padding: 14px var(--space-5);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-body);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  transition: opacity 0.2s;
  margin-top: var(--space-2);
}
.rashi-submit-btn:hover { opacity: 0.88; }
.rashi-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }
.rashi-submit-btn svg { width: 16px; height: 16px; }

.rashi-errors {
  margin: 0 var(--space-5) var(--space-3);
  background: #fdf0f0;
  border: 1px solid #e8c0c0;
  border-radius: var(--radius-sm);
  padding: var(--space-3) var(--space-4);
  font-size: 13.5px;
  color: var(--error);
}
.rashi-errors p { margin: 2px 0; }

/* ── Result Card ──────────────────────────────────────────── */
.rashi-result-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.rashi-result-head {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-5);
  background: linear-gradient(135deg, #1a1225, #2d1b4e);
  color: var(--bone-on-dark);
}
.rashi-symbol {
  font-size: 48px;
  line-height: 1;
  opacity: 0.9;
}
.rashi-name-hi {
  font-family: var(--font-display);
  font-size: 26px;
  color: var(--gold);
  line-height: 1.1;
}
.rashi-name-en {
  font-size: 14px;
  color: rgba(246,241,231,0.65);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.rashi-date-label {
  font-size: 12px;
  color: rgba(246,241,231,0.5);
  margin-top: 4px;
  font-family: var(--font-mono);
}

/* Loading */
.rashi-loading {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding: var(--space-6) var(--space-5);
  color: var(--ink-soft);
  font-size: 14px;
}
.rashi-loader {
  width: 32px;
  height: 32px;
  border: 3px solid var(--line);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: rashiSpin 0.9s linear infinite;
  flex-shrink: 0;
}
@keyframes rashiSpin { to { transform: rotate(360deg); } }

/* Tabs */
.rashi-tabs {
  display: flex;
  gap: 0;
  padding: var(--space-4) var(--space-5) 0;
  border-bottom: 1px solid var(--line);
}
.rashi-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: var(--space-2) var(--space-4);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink-faint);
  cursor: pointer;
  transition: all 0.2s;
  font-family: var(--font-body);
}
.rashi-tab.active {
  color: var(--gold-deep);
  border-bottom-color: var(--gold);
}

/* Content */
.rashi-content {
  padding: var(--space-5);
  line-height: 1.8;
  font-size: 15px;
  color: var(--ink);
}
.rashi-content h3 {
  font-size: 16px;
  font-family: var(--font-display);
  color: var(--ink);
  margin: var(--space-4) 0 var(--space-2);
  padding-bottom: var(--space-1);
  border-bottom: 1px solid var(--line-soft);
}
.rashi-content h3:first-child { margin-top: 0; }
.rashi-content p { margin: 0 0 var(--space-3); color: var(--ink-soft); }
.rashi-content .lucky-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: var(--space-3) 0;
}
.rashi-content .lucky-pill {
  background: var(--parchment);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 13px;
  font-family: var(--font-mono);
  color: var(--ink-soft);
}
.rashi-content .lucky-pill strong {
  color: var(--gold-deep);
  font-weight: 600;
}

/* Crystal tip */
.rashi-crystal-tip {
  margin: 0 var(--space-5) var(--space-5);
  border-radius: var(--radius-sm);
  border: 1px solid var(--gold-pale);
  background: linear-gradient(135deg, rgba(184,134,75,0.08), rgba(184,134,75,0.03));
}
.rashi-crystal-tip-inner {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-4);
  align-items: flex-start;
}
.rashi-crystal-tip svg {
  width: 22px;
  height: 22px;
  stroke: var(--gold-deep);
  flex-shrink: 0;
  margin-top: 2px;
}
.rashi-crystal-tip strong {
  display: block;
  font-size: 12.5px;
  color: var(--gold-deep);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.rashi-crystal-tip p {
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0;
  line-height: 1.6;
}

/* ── Vastu Section ────────────────────────────────────────── */
.vastu-section {
  background: var(--parchment);
  padding: var(--space-8) 0 var(--space-9);
  border-top: 1px solid var(--line);
}
.section-head {
  text-align: center;
  margin-bottom: var(--space-7);
}
.section-head .eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin-bottom: var(--space-3);
}
.section-head h2 {
  font-size: clamp(22px, 3.5vw, 36px);
  margin-bottom: var(--space-3);
}
.section-head p {
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.75;
}

/* Compass diagram */
.vastu-compass {
  max-width: 400px;
  margin: 0 auto var(--space-8);
}
.vastu-compass-inner {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  display: grid;
  grid-template-areas:
    "nw  n  ne"
    "w   c   e"
    "sw  s  se";
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
  border: 2px solid var(--gold);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.vastu-dir {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-2);
  border: 1px solid var(--line);
  background: var(--cream);
  text-align: center;
  gap: 4px;
}
.vastu-n  { grid-area: n;  background: rgba(100,160,100,0.12); }
.vastu-ne { grid-area: ne; background: rgba(184,134,75,0.15); }
.vastu-e  { grid-area: e;  background: rgba(255,220,100,0.12); }
.vastu-se { grid-area: se; background: rgba(220,80,50,0.12); }
.vastu-s  { grid-area: s;  background: rgba(200,80,80,0.10); }
.vastu-sw { grid-area: sw; background: rgba(100,70,40,0.12); }
.vastu-w  { grid-area: w;  background: rgba(80,120,180,0.10); }
.vastu-nw { grid-area: nw; background: rgba(140,180,140,0.10); }
.vastu-center { grid-area: c; display: flex; align-items: center; justify-content: center; background: rgba(184,134,75,0.18); border: 1px solid var(--gold-pale); }

.dir-label { font-size: 11px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.dir-label small { font-size: 9px; color: var(--ink-faint); display: block; }
.dir-deity { font-size: 9.5px; color: var(--gold-deep); font-family: var(--font-mono); }
.vastu-center-text { font-size: 12px; font-weight: 700; color: var(--gold-deep); text-align: center; line-height: 1.4; }
.vastu-center-text small { font-size: 9px; display: block; color: var(--ink-faint); }

/* Vastu cards grid */
.vastu-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  margin-bottom: var(--space-7);
}
@media (max-width: 900px) { .vastu-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .vastu-grid { grid-template-columns: 1fr; } }

.vastu-card {
  background: var(--cream);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: var(--space-4);
  transition: box-shadow 0.2s var(--ease-soft);
}
.vastu-card:hover { box-shadow: var(--shadow-card); }
.vastu-card-top {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}
.vastu-emoji { font-size: 26px; line-height: 1; }
.vastu-card-dir { font-size: 10.5px; font-family: var(--font-mono); color: var(--gold-deep); text-transform: uppercase; letter-spacing: 0.06em; }
.vastu-card-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-top: 2px; }

.vastu-card-tabs {
  display: flex;
  gap: 0;
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--line);
}
.vc-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-faint);
  cursor: pointer;
  font-family: var(--font-body);
  transition: all 0.2s;
}
.vc-tab.active { color: var(--gold-deep); border-bottom-color: var(--gold); }

.vastu-card-text {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.7;
  margin: 0;
}

/* Crystal strip */
.vastu-crystal-strip {
  background: linear-gradient(135deg, #1a1225, #2d1b4e);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  text-align: center;
}
.vastu-crystal-strip h3 {
  color: var(--bone-on-dark);
  font-size: 20px;
  margin-bottom: var(--space-5);
}
.vastu-crystals {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
  margin-bottom: var(--space-4);
}
.vc-item {
  background: rgba(255,252,247,0.08);
  border: 1px solid rgba(184,134,75,0.3);
  border-radius: var(--radius-md);
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 120px;
}
.vc-item span { font-size: 24px; }
.vc-item strong { font-size: 13px; color: var(--bone-on-dark); }
.vc-item small { font-size: 11.5px; color: rgba(246,241,231,0.55); }

/* ── Period tabs ──────────────────────────────────────── */
.period-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}
.period-tab {
  background: none;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 7px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: var(--ink-soft);
  font-family: var(--font-body);
  transition: all .15s;
}
.period-tab:hover { border-color: var(--gold); color: var(--ink); }
.period-tab.active {
  background: var(--gold);
  color: var(--ink);
  border-color: var(--gold);
}
