/* ============================================
   NatalSky Vedic Theme
   Extends base theme with sacred/vedic accents.
   Uses existing --gold + adds saffron/bordo undertones.
   ============================================ */

:root {
    --vedic-saffron: #D97706;
    --vedic-saffron-dim: rgba(217, 119, 6, 0.12);
    --vedic-bordo: #7C2D12;
    --vedic-deep: #1a1340;
    --vedic-cream: #FAF4E6;
}

/* Vedic page header — minimal, matches Western birth-chart-result spacing */
.vedic-header {
    text-align: center;
    padding: 8px 20px 4px;
    background: transparent;
    border-bottom: none;
}
.vedic-header .vedic-om {
    font-size: 22px;
    color: var(--gold);
    margin-bottom: 2px;
    line-height: 1;
    font-family: var(--font-display);
}
.vedic-header h1 {
    font-family: var(--font-display);
    font-size: clamp(22px, 3vw, 32px);
    color: var(--text);
    margin: 0 0 4px;
    letter-spacing: -0.5px;
    line-height: 1.15;
}
.vedic-header .vedic-sub {
    color: var(--text-secondary);
    font-size: 13px;
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.45;
}
.vedic-header .vedic-sanskrit {
    color: var(--gold);
    font-style: italic;
    font-family: var(--font-display);
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 2px;
}

/* Section immediately after vedic-header — no extra top padding */
.vedic-header + .section,
.vedic-header + section {
    padding-top: 8px;
}

/* Compare page hero — moved above zodiac picker by JS, needs visible styling */
.global-stars-wrap > .vedic-header.compare-page-hero {
    padding: 18px 20px 10px;
    background: rgba(217, 119, 6, 0.04);
    border-bottom: 1px solid rgba(201, 169, 110, 0.18);
    position: relative;
    z-index: 2;
}
.global-stars-wrap > .vedic-header.compare-page-hero h1 {
    font-size: clamp(26px, 4vw, 38px);
    margin-bottom: 6px;
}
.global-stars-wrap > .vedic-header.compare-page-hero .vedic-sub {
    font-size: 14px;
}

/* ============================================
   NORTH INDIAN CHART (SVG container)
   ============================================ */
.vedic-chart-wrap {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin: 0 auto;
    max-width: 560px;
}
.vedic-chart-wrap svg {
    width: 100%;
    height: auto;
    display: block;
}
.vedic-chart-wrap .chart-label {
    text-align: center;
    color: var(--text-secondary);
    font-size: 13px;
    margin-top: 10px;
    letter-spacing: 0.5px;
}

/* North Indian chart cells (when rendered as HTML grid fallback) */
.ni-chart {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 2px;
    background: var(--border);
    border: 1px solid var(--border);
    aspect-ratio: 1;
    width: 100%;
    max-width: 480px;
    margin: 0 auto;
}
.ni-cell {
    background: var(--surface);
    padding: 8px 6px;
    font-size: 11px;
    color: var(--text);
    min-height: 100px;
    position: relative;
}
.ni-cell .ni-house-num {
    position: absolute;
    top: 4px;
    right: 6px;
    font-size: 9px;
    color: var(--text-muted);
    font-family: var(--font-display);
}
.ni-cell .ni-sign {
    color: var(--gold);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
}
.ni-cell .ni-planet {
    display: block;
    margin: 2px 0;
    font-weight: 500;
}
.ni-cell.ni-lagna {
    background: rgba(217, 119, 6, 0.10);
    border: 1px solid var(--vedic-saffron);
}

/* ============================================
   PLANET TABLE
   ============================================ */
.vedic-table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 14px;
}
.vedic-table th {
    text-align: left;
    padding: 12px 14px;
    background: rgba(201, 169, 110, 0.08);
    color: var(--gold);
    font-weight: 600;
    border-bottom: 1px solid var(--primary-dim);
    font-family: var(--font-display);
    letter-spacing: 0.5px;
}
.vedic-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--border);
    color: var(--text);
}
.vedic-table tr:hover td {
    background: var(--surface-hover);
}
.vedic-table .sanskrit {
    color: var(--gold);
    font-family: var(--font-display);
    font-style: italic;
    font-size: 15px;
}
.vedic-table .retro {
    display: inline-block;
    color: var(--vedic-saffron);
    font-weight: 700;
    margin-left: 4px;
}

/* ============================================
   DASHA TIMELINE
   ============================================ */
.dasha-timeline {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 24px 0;
}
.dasha-row {
    display: grid;
    grid-template-columns: 100px 1fr 200px;
    align-items: center;
    gap: 14px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    transition: all 0.2s;
}
.dasha-row.dasha-current {
    background: rgba(217, 119, 6, 0.10);
    border-color: var(--vedic-saffron);
    box-shadow: 0 0 0 1px var(--vedic-saffron-dim);
}
.dasha-row.dasha-past {
    opacity: 0.55;
}
.dasha-lord {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 18px;
    font-weight: 600;
}
.dasha-bar {
    height: 8px;
    background: var(--border);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}
.dasha-bar-fill {
    background: var(--gold);
    height: 100%;
    border-radius: 4px;
}
.dasha-current .dasha-bar-fill {
    background: var(--vedic-saffron);
}
.dasha-dates {
    text-align: right;
    color: var(--text-secondary);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

/* Current Dasha highlight card */
.dasha-current-card {
    background: linear-gradient(135deg, rgba(217, 119, 6, 0.10), rgba(201, 169, 110, 0.06));
    border: 1px solid var(--vedic-saffron);
    border-radius: var(--radius);
    padding: 28px;
    margin: 24px 0;
}
.dasha-current-card h3 {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 22px;
    margin: 0 0 16px;
}
.dasha-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}
.dasha-pill {
    padding: 14px 16px;
    background: var(--surface);
    border-radius: var(--radius-sm);
    border: 1px solid var(--border);
}
.dasha-pill .label {
    color: var(--text-muted);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 4px;
}
.dasha-pill .lord {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 20px;
    margin-bottom: 4px;
}
.dasha-pill .range {
    color: var(--text-secondary);
    font-size: 12px;
}

/* ============================================
   YOGA CARDS
   ============================================ */
.yoga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
    margin: 24px 0;
}
.yoga-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 18px;
    position: relative;
    transition: all 0.2s;
}
.yoga-card.yoga-major {
    border-left: 3px solid var(--gold);
}
.yoga-card.yoga-inauspicious {
    border-left: 3px solid var(--red);
}
.yoga-card:hover {
    transform: translateY(-2px);
    background: var(--surface-hover);
}
.yoga-card h4 {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 17px;
    margin: 0 0 8px;
}
.yoga-card .yoga-strength {
    display: inline-block;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 2px 8px;
    border-radius: 4px;
    background: var(--primary-dim);
    color: var(--gold);
    margin-bottom: 10px;
}
.yoga-card .yoga-strength.major {
    background: var(--gold);
    color: var(--bg);
}
.yoga-card p {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

/* ============================================
   NAKSHATRA INFO
   ============================================ */
.nakshatra-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px;
    margin: 16px 0;
}
.nakshatra-card .nak-name {
    font-family: var(--font-display);
    color: var(--gold);
    font-size: 24px;
    margin-bottom: 4px;
}
.nakshatra-card .nak-meta {
    color: var(--text-secondary);
    font-size: 13px;
    margin-bottom: 14px;
}
.nakshatra-card .nak-pada {
    display: inline-block;
    background: var(--primary-dim);
    color: var(--gold);
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    margin-left: 8px;
}

/* ============================================
   SYSTEM SELECTOR (for home page later)
   ============================================ */
.system-selector {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 20px 0;
}
.system-toggle {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 50px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text-secondary);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}
.system-toggle.active {
    background: var(--primary-dim);
    border-color: var(--gold);
    color: var(--gold);
}
.system-toggle:hover {
    border-color: var(--gold);
    color: var(--text);
}

/* ============================================
   MOBILE
   ============================================ */
@media (max-width: 640px) {
    .vedic-header { padding: 36px 16px 20px; }
    .vedic-header .vedic-om { font-size: 36px; }
    .dasha-row { grid-template-columns: 80px 1fr 130px; gap: 10px; font-size: 13px; }
    .dasha-stack { grid-template-columns: 1fr; }
    .ni-cell { font-size: 10px; min-height: 78px; padding: 5px 4px; }
    .vedic-table th, .vedic-table td { padding: 8px 6px; font-size: 12px; }
}

/* Soft fade-out below page-header into the picker/content area (no visible edge line) */
.page-header { overflow: visible; }
.page-header::after {
    content: "";
    position: absolute;
    left: 0; right: 0;
    bottom: -80px;
    height: 80px;
    background: linear-gradient(to bottom, rgba(26,26,46,0.95) 0%, rgba(26,26,46,0) 100%);
    pointer-events: none;
    z-index: 0;
}

/* Wider paragraph on vedic/compare page-header so longer text fits in 2 lines */
.page-header p { max-width: 820px !important; }
