/* ==========================================================================
   TCA Interactive UI — North Indian SVG Kundli & Dynamic Tools
   Dark-Gold Design System (#030508, #d4af37)
   ========================================================================== */

:root {
    --tca-gold: #d4af37;
    --tca-gold-dim: rgba(212, 175, 55, 0.25);
    --tca-gold-glow: rgba(212, 175, 55, 0.4);
    --tca-bg-dark: #030508;
    --tca-bg-card: rgba(14, 20, 32, 0.95);
    --tca-text-main: #f0f4f8;
    --tca-text-dim: rgba(255, 255, 255, 0.65);
}

/* Container */
.tca-kundli-viewer {
    background: linear-gradient(135deg, rgba(16, 22, 34, 0.96), rgba(4, 7, 12, 0.98));
    border: 1px solid var(--tca-gold-dim);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 2rem auto;
    max-width: 900px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    font-family: 'Exo 2', -apple-system, sans-serif;
    color: var(--tca-text-main);
}

.tca-kundli-viewer__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.75rem;
    border-bottom: 1px solid var(--tca-gold-dim);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
}

.tca-kundli-viewer__title {
    font-family: 'Orbitron', monospace;
    font-size: 1.2rem;
    color: var(--tca-gold);
    margin: 0;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tca-kundli-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 1.5rem;
    align-items: start;
}

@media (max-width: 820px) {
    .tca-kundli-layout {
        grid-template-columns: 1fr;
    }
}

/* SVG Chart Box */
.tca-kundli-chart-box {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    max-width: 460px;
    margin: 0 auto;
}

.tca-kundli-svg {
    width: 100%;
    height: 100%;
    display: block;
    filter: drop-shadow(0 0 12px rgba(212, 175, 55, 0.15));
}

/* SVG Elements */
.tca-kundli-house-poly {
    fill: rgba(255, 255, 255, 0.02);
    stroke: rgba(212, 175, 55, 0.4);
    stroke-width: 1.2;
    transition: fill 0.2s ease, stroke 0.2s ease;
    cursor: pointer;
}

.tca-kundli-house-poly:hover,
.tca-kundli-house-poly.is-active {
    fill: rgba(212, 175, 55, 0.12);
    stroke: #d4af37;
    stroke-width: 2;
}

.tca-kundli-house-num {
    font-family: 'Orbitron', monospace;
    font-size: 11px;
    fill: rgba(212, 175, 55, 0.7);
    text-anchor: middle;
    pointer-events: none;
    user-select: none;
}

.tca-kundli-rashi-num {
    font-family: 'Exo 2', sans-serif;
    font-size: 13px;
    font-weight: 700;
    fill: #ffffff;
    text-anchor: middle;
    pointer-events: none;
    user-select: none;
}

.tca-kundli-graha-text {
    font-family: 'Exo 2', sans-serif;
    font-size: 11.5px;
    font-weight: 600;
    fill: #ffd700;
    text-anchor: middle;
    cursor: pointer;
    transition: fill 0.15s ease;
}

.tca-kundli-graha-text:hover {
    fill: #ffffff;
    text-shadow: 0 0 8px rgba(212, 175, 55, 0.8);
}

/* Detail Drawer Panel */
.tca-kundli-drawer {
    background: rgba(8, 12, 20, 0.9);
    border: 1px solid var(--tca-gold-dim);
    border-radius: 8px;
    padding: 1.25rem;
    min-height: 280px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tca-kundli-drawer__head {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 0.75rem;
    margin-bottom: 0.75rem;
}

.tca-kundli-drawer__title {
    font-size: 1.05rem;
    color: var(--tca-gold);
    margin: 0 0 0.25rem;
}

.tca-kundli-drawer__subtitle {
    font-size: 0.8rem;
    color: var(--tca-text-dim);
    margin: 0;
}

.tca-kundli-drawer__body {
    font-size: 0.85rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    flex-grow: 1;
}

.tca-kundli-drawer__meta-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin: 0.75rem 0;
    font-size: 0.78rem;
}

.tca-meta-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.35rem 0.5rem;
    border-radius: 4px;
}

.tca-meta-pill strong {
    color: var(--tca-gold);
    display: block;
    font-size: 0.7rem;
    text-transform: uppercase;
}

.tca-kundli-drawer__cta {
    margin-top: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.45rem 0.85rem;
    background: rgba(212, 175, 55, 0.15);
    color: #fff;
    border: 1px solid var(--tca-gold);
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.8rem;
    font-weight: 600;
    transition: all 0.2s ease;
}

.tca-kundli-drawer__cta:hover {
    background: #d4af37;
    color: #030508;
}

/* Chart Selector Controls */
.tca-chart-controls {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.tca-chart-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(212, 175, 55, 0.3);
    color: #fff;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.8rem;
    transition: all 0.18s ease;
}

.tca-chart-btn.is-active,
.tca-chart-btn:hover {
    background: rgba(212, 175, 55, 0.2);
    border-color: #d4af37;
    color: #d4af37;
}

/* ==========================================================================
   Transit Matrix & Cosmic Weather Styles
   ========================================================================== */
.tca-transit-matrix {
    background: linear-gradient(135deg, rgba(14, 20, 32, 0.96), rgba(4, 7, 12, 0.98));
    border: 1px solid rgba(212, 175, 55, 0.35);
    border-radius: 14px;
    padding: 2rem;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
    margin: 2.5rem auto;
    max-width: 960px;
    position: relative;
    overflow: hidden;
}

.tca-transit-matrix__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid rgba(212, 175, 55, 0.15);
    padding-bottom: 1rem;
}

.tca-transit-matrix__pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.72rem;
    font-weight: 700;
    color: #d4af37;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    background: rgba(212, 175, 55, 0.12);
    padding: 0.25rem 0.65rem;
    border-radius: 4px;
    border: 1px solid rgba(212, 175, 55, 0.25);
    margin-bottom: 0.4rem;
}

.tca-live-dot {
    width: 7px;
    height: 7px;
    background: #00ff66;
    border-radius: 50%;
    box-shadow: 0 0 8px #00ff66;
    display: inline-block;
    animation: tcaPulse 2s infinite ease-in-out;
}

@keyframes tcaPulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}

.tca-transit-matrix__title {
    font-family: 'Exo 2', sans-serif;
    font-size: 1.35rem;
    color: #fff;
    margin: 0.2rem 0 0;
    line-height: 1.3;
}

.tca-transit-matrix__date {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.04);
    padding: 0.4rem 0.75rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.tca-transit-matrix__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tca-transit-card {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(212, 175, 55, 0.2);
    border-radius: 10px;
    padding: 1.1rem;
    transition: all 0.2s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tca-transit-card:hover {
    background: rgba(212, 175, 55, 0.06);
    border-color: rgba(212, 175, 55, 0.45);
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.tca-transit-card__top {
    display: flex;
    align-items: flex-start;
    gap: 0.85rem;
    margin-bottom: 0.65rem;
}

.tca-transit-card__icon {
    font-size: 1.5rem;
    color: #d4af37;
    width: 36px;
    height: 36px;
    background: rgba(212, 175, 55, 0.12);
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tca-transit-card__name {
    font-size: 0.95rem;
    color: #fff;
    margin: 0 0 0.2rem;
    font-weight: 600;
}

.tca-transit-card__coord {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.75);
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.tca-transit-tag {
    font-size: 0.68rem;
    color: #d4af37;
    background: rgba(212, 175, 55, 0.12);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-weight: 600;
}

.tca-transit-card__body {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    padding-top: 0.65rem;
    margin-top: 0.4rem;
}

.tca-transit-theme {
    display: block;
    font-size: 0.82rem;
    color: #d4af37;
    margin-bottom: 0.35rem;
    font-weight: 600;
}

.tca-transit-desc {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
    margin: 0;
    line-height: 1.45;
}

.tca-transit-matrix__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    border-top: 1px solid rgba(212, 175, 55, 0.15);
    padding-top: 1.25rem;
}

.tca-transit-matrix__footer p {
    font-size: 0.86rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0;
}

