/* Vedic Space — Gold on Imperial Twilight (shared app shell)
   Synced with design/tokens.css · June 2026 */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600;700&family=Inter:wght@400;500;600;700&family=Space+Mono:wght@400;700&family=Tiro+Devanagari+Sanskrit&display=swap');

:root {
  --void:        #0D0618;
  --surface-1:   #150D28;
  --surface-2:   #1E1438;
  --surface-3:   #251A42;
  --gold:        #D4A843;
  --gold-bright: #F0C84A;
  --gold-mist:   rgba(212,168,67,0.10);
  --crimson:     #A61E4D;
  --crimson-br:  #D94A3D;
  --ink:         #F0E6D3;
  --ink-soft:    #B8A898;
  --ink-faint:   rgba(240,230,211,0.45);
  --line:        rgba(212,168,67,0.18);
  --line-strong: rgba(212,168,67,0.34);
  --shubha:      #5FB88A;
  --ashubha:     #D94A3D;
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui: 'Inter', system-ui, sans-serif;
  --font-mono: 'Space Mono', ui-monospace, monospace;
  --font-sanskrit: 'Tiro Devanagari Sanskrit', serif;
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --gradient-hero: linear-gradient(180deg, #0D0618 0%, #150D28 50%, #0D0618 100%);
  --gradient-gold: linear-gradient(90deg, transparent 0%, var(--gold) 50%, transparent 100%);
  --shadow-card: 0 2px 14px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }

body.vs-app {
  margin: 0;
  font-family: var(--font-ui);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--void);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(156,103,229,0.08) 0%, transparent 55%),
    radial-gradient(circle at 80% 20%, rgba(212,168,67,0.04) 0%, transparent 40%);
  -webkit-font-smoothing: antialiased;
}

.vs-wrap { max-width: 1100px; margin: 0 auto; padding: 0 1rem 3rem; }

.vs-header {
  text-align: center;
  padding: 1.75rem 1rem 1.25rem;
  border-bottom: 1px solid var(--line);
  background: var(--gradient-hero);
}
.vs-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  margin-bottom: 0.55rem;
}
.vs-brand img { display: block; flex-shrink: 0; }
.vs-brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  color: var(--gold-bright);
}
.vs-brand-word b { color: var(--gold); font-weight: 700; }
.vs-header h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 2rem;
  letter-spacing: 0.06em;
  color: var(--gold-bright);
  margin: 0;
}
.vs-header .vs-sub {
  color: var(--ink-soft);
  font-size: 0.88rem;
  margin: 0.45rem 0 0;
}
.vs-header .vs-sanskrit {
  font-family: var(--font-sanskrit);
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin-top: 0.25rem;
}

.vs-divider {
  height: 1px;
  border: 0;
  background: var(--gradient-gold);
  margin: 1.5rem 0;
}

.vs-card {
  background: var(--surface-1);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
  box-shadow: var(--shadow-card);
}
.vs-card h2 {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 0.85rem;
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.4rem;
}

.vs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 800px) { .vs-grid { grid-template-columns: 1fr; } }

label.vs-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 0.25rem;
}
.vs-input, .vs-select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  margin-bottom: 0.65rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 0.9rem;
}
.vs-input:focus, .vs-select:focus {
  outline: none;
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(212,168,67,0.15);
}
.vs-input::placeholder { color: var(--ink-faint); }

.vs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-md);
  font-family: var(--font-ui);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}
.vs-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.vs-btn-primary { background: var(--crimson); color: var(--ink); border-color: var(--crimson); }
.vs-btn-primary:hover:not(:disabled) { background: var(--crimson-br); }
.vs-btn-gold { background: var(--gold); color: var(--void); }
.vs-btn-gold:hover:not(:disabled) { background: var(--gold-bright); }
.vs-btn-ghost {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.vs-btn-ghost:hover:not(:disabled) { background: var(--gold-mist); }
.vs-btn-surface {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--line);
}
.vs-btn-surface:hover:not(:disabled) { border-color: var(--gold); color: var(--gold-bright); }

.vs-quick {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.55rem;
  margin: 1.25rem 0;
}

.vs-link {
  color: var(--gold);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  background: var(--surface-2);
  padding: 0.25rem 0.45rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
}
.vs-link:hover { color: var(--gold-bright); border-color: var(--gold); }

.vs-panel {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-top: 1rem;
  max-height: 420px;
  overflow: auto;
}
.vs-pre {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--ink-soft);
  white-space: pre-wrap;
  word-break: break-word;
}

.vs-banner {
  margin: 1rem 0 0;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 0.88rem;
}
.vs-banner.ok { border-color: rgba(95,184,138,0.45); background: rgba(95,184,138,0.08); color: var(--shubha); }
.vs-banner.fail { border-color: rgba(217,74,61,0.45); background: rgba(217,74,61,0.08); color: var(--crimson-br); }
.vs-banner.wait { border-color: var(--line-strong); color: var(--gold-bright); }

.vs-win {
  border-left: 3px solid var(--gold);
  padding: 0.6rem 0.8rem;
  margin: 0.5rem 0;
  background: var(--surface-2);
  border-radius: var(--radius-md);
}
.vs-win.sub { border-color: var(--crimson-br); }

.vs-bar-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.25rem 0;
  font-size: 0.78rem;
  color: var(--ink-soft);
}
.vs-bar {
  height: 8px;
  border-radius: var(--radius-sm);
  background: linear-gradient(90deg, var(--surface-3), var(--gold));
  flex: 1;
}

.vs-footer {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.75rem;
  padding: 1rem;
}
.vs-footer a { color: var(--gold); }

/* Place picker — matches purple theme */
.place-ac-list {
  background: var(--surface-2) !important;
  border-color: var(--line) !important;
}
.place-ac-list li button:hover {
  background: var(--surface-3) !important;
  color: var(--gold-bright) !important;
}
.place-status { color: var(--shubha) !important; }
.place-status.warn { color: var(--gold-bright) !important; }
.place-status.err { color: var(--crimson-br) !important; }

/* Hub / command center extras */
.vs-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 800px) { .vs-grid-2 { grid-template-columns: 1fr; } }
.vs-link-row { display: flex; flex-wrap: wrap; gap: 0.35rem 0.5rem; margin-bottom: 0.45rem; align-items: flex-start; }
.vs-lbl { font-size: 0.75rem; color: var(--ink-soft); min-width: 5rem; }
.vs-btn-sm {
  font-size: 0.72rem;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--surface-3);
  color: var(--gold-bright);
  border: 1px solid var(--line);
  font-family: var(--font-ui);
  font-weight: 600;
}
.vs-btn-sm:hover { border-color: var(--gold); background: var(--gold-mist); }
.vs-ext {
  margin-top: 1rem;
  padding: 1rem;
  border: 1px dashed var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
  background: var(--gold-mist);
}
.vs-status { font-size: 0.75rem; color: var(--ink-soft); margin-top: 0.5rem; }
.vs-loading { color: var(--gold-bright); }
.vs-pulse { animation: vs-pulse 1s ease infinite; }
@keyframes vs-pulse { 50% { opacity: 0.55; } }
.vs-busy { opacity: 0.7; pointer-events: none; }

/* Muhūrta results */
.vs-audit {
  font-size: 0.88rem;
  color: var(--ink-soft);
  padding: 0.75rem;
  background: var(--surface-2);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--gold);
}
.vs-result {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem;
  margin-bottom: 0.75rem;
  background: var(--surface-2);
}
.vs-result.rank-1 {
  border-color: var(--gold);
  box-shadow: 0 0 20px rgba(212,168,67,0.12);
}
.vs-score { font-size: 1.5rem; color: var(--gold-bright); font-weight: 600; font-family: var(--font-mono); }
.vs-tag {
  font-size: 0.72rem;
  padding: 0.2rem 0.5rem;
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  color: var(--gold);
  border: 1px solid var(--line);
}
.vs-err { color: var(--crimson-br); }

/* Marriage Command Center — Gantt timeline */
.vs-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}
.vs-stat {
  flex: 1 1 90px;
  text-align: center;
  padding: 0.65rem 0.5rem;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
}
.vs-stat .n {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--gold-bright);
}
.vs-stat .n.green { color: var(--shubha); }
.vs-stat .n.amber { color: var(--gold-bright); }
.vs-stat .n.red { color: var(--ashubha); }
.vs-stat .n.gold { color: var(--gold); }
.vs-stat .l {
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
}
.vs-gantt-hint {
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin: -0.35rem 0 0.65rem;
}
.vs-gantt-wrap { overflow-x: auto; padding-bottom: 0.5rem; }
.vs-gantt-year { margin-bottom: 0.75rem; }
.vs-gantt-year-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--gold);
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}
.vs-gantt-row {
  display: flex;
  flex-wrap: nowrap;
  gap: 3px;
  min-width: min-content;
}
.vs-gantt-cell {
  width: 42px;
  min-width: 42px;
  padding: 0.35rem 0.2rem;
  border-radius: var(--radius-sm);
  text-align: center;
  cursor: default;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.15s;
}
.vs-gantt-cell:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.35);
  z-index: 2;
}
.vs-gantt-cell .mo {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--ink-faint);
}
.vs-gantt-cell .sc {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
}
.vs-gantt-cell.green { background: rgba(95,184,138,0.22); border-color: rgba(95,184,138,0.45); }
.vs-gantt-cell.green .sc { color: var(--shubha); }
.vs-gantt-cell.amber { background: rgba(240,200,74,0.15); border-color: rgba(212,168,67,0.4); }
.vs-gantt-cell.amber .sc { color: var(--gold-bright); }
.vs-gantt-cell.red { background: rgba(217,74,61,0.12); border-color: rgba(217,74,61,0.35); }
.vs-gantt-cell.red .sc { color: var(--ashubha); }
.vs-gantt-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin-top: 0.65rem;
}
.vs-gantt-legend .dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  margin-right: 0.35rem;
  vertical-align: middle;
}
.vs-gantt-legend .dot.green { background: var(--shubha); }
.vs-gantt-legend .dot.amber { background: var(--gold-bright); }
.vs-gantt-legend .dot.red { background: var(--ashubha); }
.vs-gantt-bands { margin-top: 0.85rem; display: flex; flex-direction: column; gap: 0.35rem; }
.vs-gantt-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.45rem 0.75rem;
  border-radius: var(--radius-md);
  font-size: 0.78rem;
  font-family: var(--font-mono);
}
.vs-gantt-band.optimal {
  background: rgba(212,168,67,0.12);
  border: 1px solid rgba(212,168,67,0.35);
  color: var(--gold-bright);
}
