/* =========================================================
   Maa Baglamukhi Darbar - Web Stylesheet (Vedic Astrology Suite)
   ========================================================= */

:root {
  --primary: #f59e0b;
  --primary-dark: #b45309;
  --maroon: #831843;
  --maroon-dark: #701a75;
  --accent-gold: #d97706;
  --bg-cream: #FFFDF5;
  --text-dark: #1f2937;
  --text-muted: #6b7280;
  --border-light: #f1f5f9;
  --card-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

body {
  background-color: var(--bg-cream);
  font-family: 'Poppins', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text-dark);
}

/* Hero Banners */
.astro-hero-banner {
  background: linear-gradient(135deg, var(--maroon), var(--primary-dark));
  color: #fff;
  border-radius: 16px;
  padding: 22px 26px;
  box-shadow: 0 8px 24px rgba(131, 24, 67, 0.2);
  margin-bottom: 24px;
}

.astro-hero-icon {
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  color: #fff;
}

/* Cards & Layout */
.astro-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #fee2e2;
  box-shadow: var(--card-shadow);
  padding: 22px;
  margin-bottom: 20px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.astro-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid #f3f4f6;
}

.astro-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0;
}

/* Form Styles */
.astro-label {
  font-size: 13px;
  font-weight: 600;
  color: #374151;
  margin-bottom: 5px;
}

.astro-input, .astro-select {
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  padding: 9px 14px;
  font-size: 14px;
  background: #fff;
}

.astro-input:focus, .astro-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15);
}

/* Gender Pills */
.gender-selector {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
}

.gender-pill-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px;
  border-radius: 10px;
  border: 1.5px solid #e5e7eb;
  background: #f9fafb;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: #4b5563;
  transition: all 0.2s ease;
}

.gender-pill-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.3);
}

/* City Autocomplete Dropdown */
.city-autocomplete-wrapper {
  position: relative;
}

.city-results-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 1050;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  max-height: 220px;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.12);
  margin-top: 4px;
}

.city-result-item {
  padding: 10px 14px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: background 0.15s ease;
}

.city-result-item:hover {
  background: #fff7ed;
}

.city-result-name {
  font-weight: 600;
  font-size: 13px;
  color: #1f2937;
}

.city-result-desc {
  font-size: 11px;
  color: #6b7280;
}

.coords-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
  border-radius: 8px;
  padding: 5px 12px;
  font-size: 11px;
  font-weight: 600;
  margin-top: 6px;
}

/* Saved Profiles Section */
.saved-profiles-chip-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.saved-profile-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #fed7aa;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.saved-profile-chip:hover {
  background: #fff7ed;
  border-color: var(--primary);
  transform: translateY(-1px);
}

/* Action CTA Buttons */
.btn-vedic-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent-gold));
  color: #fff;
  font-weight: 700;
  border: none;
  border-radius: 12px;
  padding: 12px 24px;
  box-shadow: 0 4px 14px rgba(245, 158, 11, 0.35);
  transition: all 0.25s ease;
}

.btn-vedic-primary:hover {
  background: linear-gradient(135deg, #eab308, #b45309);
  color: #fff;
  box-shadow: 0 6px 18px rgba(245, 158, 11, 0.45);
  transform: translateY(-2px);
}

/* Tabs for Kundli Dashboard */
.vedic-nav-tabs {
  border-bottom: 2px solid #fed7aa;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  margin-bottom: 20px;
}

.vedic-nav-tab-item {
  padding: 10px 18px;
  font-weight: 600;
  font-size: 14px;
  color: #6b7280;
  border: none;
  background: transparent;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.vedic-nav-tab-item.active {
  color: var(--primary-dark);
  border-bottom-color: var(--primary);
  font-weight: 700;
}

/* Avakahada Chakra Grid */
.avakahada-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.avakahada-cell {
  background: #fffdf5;
  border: 1px solid #fed7aa;
  border-radius: 10px;
  padding: 12px;
}

.avakahada-cell-label {
  font-size: 11px;
  color: #9ca3af;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.avakahada-cell-val {
  font-size: 14px;
  font-weight: 700;
  color: #1f2937;
  margin-top: 3px;
}

/* SVG Chart Container */
.chart-container-box {
  background: #ffffff;
  border: 1px solid #fde68a;
  border-radius: 16px;
  padding: 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 12px rgba(253, 230, 138, 0.25);
  margin-bottom: 20px;
}

.chart-container-box svg {
  max-width: 100%;
  height: auto;
  max-height: 420px;
}

/* Chart Switcher Buttons */
.chart-switcher-group {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.chart-switcher-btn {
  flex: 1;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s ease;
}

.chart-switcher-btn.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.25);
}

/* Planetary Table */
.vedic-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #f1f5f9;
}

.vedic-table th {
  background: #fffbeb;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 12px;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 2px solid #fef3c7;
}

.vedic-table td {
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid #f8fafc;
}

.vedic-table tr:last-child td {
  border-bottom: none;
}

.vedic-table tr:nth-child(even) {
  background: #fafafa;
}

/* Dasha Timeline */
.dasha-timeline-item {
  display: flex;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #f3f4f6;
  position: relative;
}

.dasha-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary);
  margin-right: 14px;
  flex-shrink: 0;
}

.dasha-content {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Ashtakoot Match Score Meter */
.guna-meter-card {
  text-align: center;
  background: linear-gradient(135deg, #ffffff, #fffbeb);
  border: 2px solid var(--primary);
  border-radius: 18px;
  padding: 26px 20px;
  margin-bottom: 24px;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.15);
}

.guna-score-large {
  font-size: 54px;
  font-weight: 800;
  color: var(--primary-dark);
  line-height: 1;
}

.guna-score-max {
  font-size: 22px;
  color: #9ca3af;
  font-weight: 600;
}

.guna-status-pill {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 20px;
  font-weight: 700;
  font-size: 13px;
  margin-top: 10px;
  margin-bottom: 12px;
}

.guna-status-auspicious {
  background: #dcfce7;
  color: #15803d;
}

.guna-status-caution {
  background: #fee2e2;
  color: #b91c1c;
}

/* 12 Zodiac Selector Strip */
.zodiac-strip-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 12px;
  margin-bottom: 20px;
}

.zodiac-pill-card {
  min-width: 90px;
  background: #ffffff;
  border: 1px solid #fde68a;
  border-radius: 14px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.zodiac-pill-card.active {
  background: linear-gradient(135deg, var(--primary), var(--accent-gold));
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.35);
  transform: translateY(-2px);
}

.zodiac-symbol {
  font-size: 22px;
  line-height: 1;
  margin-bottom: 4px;
}

.zodiac-name {
  font-size: 12px;
  font-weight: 700;
}

.zodiac-hindi {
  font-size: 10px;
  opacity: 0.85;
}

/* Lucky Metrics Bar */
.lucky-metrics-bar {
  display: flex;
  background: #ffffff;
  border: 1px solid #fed7aa;
  border-radius: 14px;
  padding: 14px 20px;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 20px;
  box-shadow: var(--card-shadow);
}

.lucky-metric-col {
  text-align: center;
  flex: 1;
}

.lucky-metric-title {
  font-size: 11px;
  color: #9ca3af;
  text-transform: uppercase;
  font-weight: 600;
}

.lucky-metric-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary-dark);
  margin-top: 2px;
}

.lucky-metric-divider {
  width: 1px;
  height: 32px;
  background: #f3f4f6;
}
