/* ==========================================================================
   Sanatan Hindu Calendar - Vedic Horoscope & Gochara Engine Styles
   ========================================================================== */

.horoscope-container {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
}

/* --- Section Mode Tabs (Horoscope vs Baby Names vs Rashi Info) --- */
.horoscope-section-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg-card);
  padding: 6px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.horoscope-section-tabs::-webkit-scrollbar {
  display: none;
}

.horoscope-mode-tab {
  flex: 1 0 auto;
  min-width: max-content;
  flex-shrink: 0;
  padding: 9px 12px;
  border: none;
  background: transparent;
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.horoscope-mode-tab:hover {
  color: var(--text-primary);
  background: rgba(245, 158, 11, 0.08);
}

.horoscope-mode-tab.active {
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-saffron));
  color: #ffffff;
  box-shadow: 0 2px 10px rgba(217, 119, 6, 0.35);
}

@media (max-width: 480px) {
  .horoscope-section-tabs {
    padding: 4px;
    gap: 4px;
  }
  .horoscope-mode-tab {
    padding: 7px 10px;
    font-size: 12px;
    gap: 4px;
  }
}

/* --- Interactive Date Bar & Date Selection --- */
.horoscope-date-bar {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.horoscope-date-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-gold), var(--primary-saffron));
}

.horo-date-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.horo-nav-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
  user-select: none;
}

.horo-nav-btn:hover {
  background: var(--primary-saffron);
  color: #ffffff;
  border-color: var(--primary-saffron);
  transform: translateY(-1px);
}

.horo-nav-btn:active {
  transform: scale(0.96);
}

.horo-date-display {
  text-align: center;
  flex: 1;
  min-width: 0;
}

.horo-date-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  line-height: 1.3;
}

.horo-calendar-icon {
  font-size: 15px;
}

.horo-today-badge {
  font-size: 10px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
}

.horo-date-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-top: 3px;
}

/* Date Selection & Jump Today Row */
.horo-date-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding-top: 8px;
  border-top: 1px dashed rgba(245, 158, 11, 0.22);
}

.horo-action-chip {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
  position: relative;
  user-select: none;
}

.horo-action-chip:hover {
  border-color: var(--primary-gold);
  color: var(--primary-gold);
  transform: translateY(-1px);
}

.horo-action-chip:active {
  transform: scale(0.96);
}

.horo-jump-today-btn {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(230, 81, 0, 0.1) 100%);
  border-color: rgba(245, 158, 11, 0.4);
  color: var(--primary-gold);
  font-weight: 700;
}

.horo-jump-today-btn:hover {
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-saffron));
  color: #ffffff;
  border-color: transparent;
}

.horo-date-picker-chip {
  cursor: pointer;
  overflow: hidden;
}

.horo-native-date-input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

@media (max-width: 640px) {
  .horoscope-date-bar {
    padding: 10px 12px;
    gap: 8px;
    border-radius: var(--radius-md);
  }

  .horo-date-top-row {
    gap: 6px;
  }

  .horo-nav-btn {
    padding: 6px 10px;
    font-size: 11.5px;
    gap: 4px;
  }

  .horo-date-title {
    font-size: 13.5px;
    gap: 4px;
    line-height: 1.25;
  }

  .horo-calendar-icon {
    font-size: 13px;
  }

  .horo-date-sub {
    font-size: 11px;
    margin-top: 2px;
  }

  .horo-today-badge {
    font-size: 9px;
    padding: 1px 5px;
  }

  .horo-date-actions-row {
    padding-top: 6px;
    gap: 8px;
  }

  .horo-action-chip {
    padding: 5px 11px;
    font-size: 11.5px;
    gap: 5px;
  }
}

@media (max-width: 380px) {
  .horo-btn-text {
    display: none;
  }
  .horo-nav-btn {
    padding: 6px 8px;
  }
  .horo-date-title {
    font-size: 12.5px;
  }
}

/* --- Vedic Sunrise & Gochara Details Banner --- */
.vedic-sunrise-banner {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(230, 81, 0, 0.06) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.vedic-banner-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.vedic-sunrise-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vedic-info-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.vedic-info-pill svg {
  width: 14px;
  height: 14px;
  fill: var(--primary-gold);
}

.vedic-rule-note {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
  padding-top: 4px;
  border-top: 1px dashed rgba(245, 158, 11, 0.25);
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.vedic-rule-note strong {
  color: var(--primary-gold);
}

/* --- 12 Rashi Quick Selector Bar --- */
.rashi-quick-selector-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rashi-selector-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.rashi-selector-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.rashi-selector-track {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}

@media (max-width: 768px) {
  .rashi-selector-track {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 480px) {
  .rashi-selector-track {
    grid-template-columns: repeat(3, 1fr);
  }
}

.rashi-select-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 10px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  position: relative;
  transition: all var(--transition-fast);
}

.rashi-select-btn:hover {
  background: var(--bg-surface);
  border-color: var(--primary-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.rashi-select-btn.active {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(217, 119, 6, 0.24) 100%);
  border-color: var(--primary-gold);
  box-shadow: 0 0 0 1.5px var(--primary-gold), 0 4px 12px rgba(217, 119, 6, 0.25);
  transform: translateY(-2px);
}

.rashi-btn-symbol {
  font-size: 20px;
  line-height: 1;
}

.rashi-btn-name {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.rashi-btn-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  font-size: 9.5px;
  padding: 1px 4px;
  border-radius: var(--radius-full);
  font-weight: 800;
  line-height: 1.2;
}

.badge-caution {
  background: rgba(239, 68, 68, 0.18);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.badge-auspicious {
  background: rgba(16, 185, 129, 0.18);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

/* --- Selected Rashi Primary Card --- */
.horo-main-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-highlight);
  border-radius: var(--radius-lg);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.horo-main-card.is-chandrashtama {
  border-color: rgba(239, 68, 68, 0.5);
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.04) 0%, var(--bg-surface) 100%);
}

.horo-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 16px;
}

.horo-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.horo-symbol-orb {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--primary-gold), var(--primary-saffron));
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 4px 14px rgba(217, 119, 6, 0.35);
  flex-shrink: 0;
}

.horo-header-titles h3 {
  font-size: 22px;
  font-weight: 800;
  color: var(--text-primary);
  margin: 0 0 4px 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.horo-header-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary);
}

.horo-meta-pill {
  background: var(--bg-card);
  padding: 3px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-subtle);
}

.horo-header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 6px;
}

.horo-status-tag {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 12.5px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.horo-status-tag.caution {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.35);
}

.horo-status-tag.good {
  background: rgba(16, 185, 129, 0.15);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.35);
}

.horo-score-bar-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-muted);
}

.horo-score-bar {
  width: 90px;
  height: 8px;
  background: var(--bg-card);
  border-radius: var(--radius-full);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
}

.horo-score-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s ease;
}

/* --- Summary Box --- */
.horo-summary-box {
  background: var(--bg-card);
  border-left: 4px solid var(--primary-gold);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  padding: 14px 16px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-primary);
}

/* --- 4 Core Pillars Grid (Career, Finance, Love, Health) --- */
.horo-pillars-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

@media (max-width: 640px) {
  .horo-pillars-grid {
    grid-template-columns: 1fr;
  }
}

.horo-pillar-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.horo-pillar-card:hover {
  border-color: var(--primary-gold);
  transform: translateY(-1px);
}

.horo-pillar-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.horo-pillar-icon {
  font-size: 17px;
}

.horo-pillar-text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}

/* --- Daily Metrics Ribbon --- */
.horo-metrics-ribbon {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.horo-metrics-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: baseline;
}

.horo-metrics-row + .horo-metrics-row {
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
}

.horo-metric-item {
  display: flex;
  align-items: baseline;
  gap: 4px 6px;
  min-width: 0;
  flex-wrap: wrap;
}

.horo-metric-label {
  font-size: 11.5px;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-weight: 600;
  white-space: nowrap;
}

.horo-metric-val {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  word-break: break-word;
}

/* --- Vedic Remedy Callout --- */
.horo-remedy-box {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08) 0%, rgba(217, 119, 6, 0.04) 100%);
  border: 1px dashed var(--primary-gold);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-primary);
}

.horo-remedy-box strong {
  color: var(--primary-gold);
}

/* --- View All Signs Toggle & Table --- */
.horo-view-all-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 4px;
}

.horo-view-all-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-highlight);
  color: var(--primary-gold);
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.horo-view-all-btn:hover {
  background: var(--primary-gold);
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.3);
}

.all-rashis-grid-view {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 12px;
}

@media (max-width: 768px) {
  .all-rashis-grid-view {
    grid-template-columns: 1fr;
  }
}

.all-rashi-mini-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.all-rashi-mini-card:hover {
  border-color: var(--primary-gold);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.all-rashi-mini-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.all-rashi-mini-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}
