/* Astrologrepory Design System & Cosmic Theme — Solar Off-White & Flame Orange Palette */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Cinzel:wght@600;700;800;900&display=swap');

:root {
  --bg-deep: #FFFDF9;
  --bg-card: #FFFFFF;
  --bg-card-hover: #FFFBF2;
  --border-gold: rgba(245, 158, 11, 0.28);
  --border-gold-hover: rgba(249, 115, 22, 0.6);
  --primary-gold: #D97706;
  --gold-glow: rgba(245, 158, 11, 0.25);
  --accent-cyan: #F97316;
  --accent-purple: #EA580C;
  --text-main: #1F1710;
  --text-muted: #78624E;
  --text-gold: #D97706;
  --nav-bg: rgba(255, 253, 249, 0.95);
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow-gold: 0 10px 30px -10px rgba(249, 115, 22, 0.2);
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* City Autocomplete Dropdown Styling */
.city-dropdown-wrapper {
  position: relative !important;
}

.city-dropdown-menu {
  position: absolute !important;
  top: 100% !important;
  left: 0 !important;
  right: 0 !important;
  margin-top: 6px !important;
  background: #ffffff !important;
  border: 2px solid #f59e0b !important;
  border-radius: 14px !important;
  box-shadow: 0 12px 30px rgba(180, 83, 9, 0.25), 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  max-height: 240px !important;
  overflow-y: auto !important;
  z-index: 99999 !important;
  display: none;
}

.city-dropdown-menu.active {
  display: block !important;
}

.city-dropdown-item {
  padding: 10px 16px !important;
  cursor: pointer !important;
  border-bottom: 1px solid #fef3c7 !important;
  transition: background 0.15s ease-in-out !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-align: left !important;
}

.city-dropdown-item:last-child {
  border-bottom: none !important;
}

.city-dropdown-item:hover, .city-dropdown-item.selected {
  background-color: #fef3c7 !important;
}

.city-dropdown-item .city-title {
  font-weight: 700 !important;
  color: #1f1710 !important;
  font-size: 0.95rem !important;
}

.city-dropdown-item .city-sub {
  font-size: 0.78rem !important;
  color: #78624e !important;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-deep);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  background-image: 
    radial-gradient(circle at 15% 20%, rgba(251, 191, 36, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(249, 115, 22, 0.10) 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, rgba(253, 224, 71, 0.12) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Typography */
h1, h2, h3, h4, .font-cinzel {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.5px;
}

a {
  color: var(--primary-gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: #ea580c;
}

/* Glassmorphism */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 30px 0 rgba(217, 119, 6, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: var(--transition);
}

.glass-panel:hover {
  border-color: var(--border-gold-hover);
  box-shadow: var(--shadow-gold);
}

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: var(--nav-bg);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(245, 158, 11, 0.2);
  padding: 1rem 0;
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Cinzel', serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
}

.logo span {
  color: var(--primary-gold);
  text-shadow: 0 0 12px var(--gold-glow);
}

.logo-icon {
  width: 38px;
  height: 38px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fffdf9;
  font-size: 1.25rem;
  box-shadow: 0 0 15px rgba(249, 115, 22, 0.35);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--text-main);
  font-size: 0.95rem;
  font-weight: 500;
  position: relative;
  padding: 0.5rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--primary-gold);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-gold);
  transition: var(--transition);
  box-shadow: 0 0 8px var(--primary-gold);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.btn {
  padding: 0.65rem 1.4rem;
  border-radius: 30px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn-gold {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 60%, #ea580c 100%);
  color: #ffffff;
  box-shadow: 0 4px 18px rgba(249, 115, 22, 0.35);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(249, 115, 22, 0.5);
  color: #ffffff;
}

.btn-outline {
  background: #ffffff;
  color: var(--text-main);
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.btn-outline:hover {
  border-color: var(--primary-gold);
  color: var(--primary-gold);
  background: #fef3c7;
}

/* Ticker Header / Panchang Bar */
.panchang-ticker {
  margin-top: 80px;
  background: linear-gradient(90deg, #fef3c7 0%, #ffedd5 50%, #fef3c7 100%);
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  padding: 0.75rem 0;
  font-size: 0.9rem;
}

.ticker-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.ticker-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.ticker-label {
  color: var(--primary-gold);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.5px;
}

.ticker-value {
  color: var(--text-main);
}

/* Hero Section */
.hero {
  padding: 4rem 0 3rem;
  position: relative;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
}

.hero-title {
  font-size: 3rem;
  line-height: 1.15;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #7c2d12 0%, #c2410c 40%, #d97706 75%, #f59e0b 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.kundli-form-card {
  padding: 2rem;
  position: relative;
  overflow: hidden;
}

.kundli-form-card::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--gold-glow) 0%, transparent 70%);
  pointer-events: none;
}

.form-header {
  margin-bottom: 1.5rem;
  text-align: center;
}

.form-header h3 {
  font-size: 1.5rem;
  color: var(--primary-gold);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group.full {
  grid-column: span 2;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
}

.form-control {
  padding: 0.75rem 1rem;
  background: #fffdf9;
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.95rem;
  outline: none;
  transition: var(--transition);
}

.form-control:focus {
  border-color: var(--primary-gold);
  box-shadow: 0 0 10px var(--gold-glow);
}

select.form-control option {
  background: #ffffff;
  color: #1f1710;
}

/* Horoscope Wheel Section */
.section {
  padding: 4rem 0;
}

.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}

.section-header h2 {
  font-size: 2.25rem;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.section-header h2 span {
  color: var(--primary-gold);
}

.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.zodiac-wheel-bar {
  display: flex;
  overflow-x: auto;
  gap: 0.75rem;
  padding: 0.5rem 0 1.5rem;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-gold) transparent;
}

.zodiac-badge {
  flex: 0 0 auto;
  padding: 0.75rem 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border-gold);
  border-radius: 30px;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-main);
  font-weight: 500;
  transition: var(--transition);
}

.zodiac-badge.active,
.zodiac-badge:hover {
  background: linear-gradient(135deg, #fef3c7, #ffedd5);
  border-color: #f59e0b;
  box-shadow: 0 0 15px rgba(245, 158, 11, 0.25);
  color: #b45309;
}

.zodiac-icon {
  font-size: 1.25rem;
}

.zodiac-emoji {
  display: inline-block;
  font-size: 2.25rem;
  line-height: 1;
  filter: hue-rotate(135deg) saturate(2.2) brightness(1.05);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), filter 0.3s ease;
}

.group:hover .zodiac-emoji,
.zodiac-badge:hover .zodiac-emoji,
a:hover .zodiac-emoji {
  filter: hue-rotate(135deg) saturate(3) brightness(1.2);
  transform: scale(1.15);
}

.horoscope-display-card {
  padding: 2.5rem;
  margin-top: 1rem;
}

.horoscope-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(245, 158, 11, 0.25);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.horoscope-title {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.horoscope-title h3 {
  font-size: 1.8rem;
  color: var(--primary-gold);
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

.stat-box {
  background: #fffdf9;
  border: 1px solid rgba(245, 158, 11, 0.25);
  padding: 1rem;
  border-radius: var(--radius-md);
  text-align: center;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}

.stat-val {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-gold);
  margin-top: 0.25rem;
}

/* Features Grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.feature-card {
  padding: 2rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.feature-icon {
  width: 70px;
  height: 70px;
  background: linear-gradient(135deg, #fef3c7, #ffedd5);
  border: 1px solid rgba(245, 158, 11, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: #d97706;
  margin-bottom: 1.5rem;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.25);
}

.feature-card h3 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--text-main);
}

.feature-card p {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 1.5rem;
}

/* Astrologers Directory */
.astrologers-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}

.astrologer-card {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.avatar-wrapper {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  padding: 4px;
  background: linear-gradient(135deg, #fbbf24, #f97316);
  margin-bottom: 1rem;
}

.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: #fef3c7;
  color: #b45309;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
}

.astro-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
}

.astro-exp {
  font-size: 0.85rem;
  color: var(--primary-gold);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.astro-rating {
  font-size: 0.85rem;
  color: #fbbf24;
  margin-bottom: 1rem;
}

.astro-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.tag {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 0.75rem;
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
  color: var(--text-muted);
}

/* Modal Popup for Kundli Result */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(10px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  padding: 1.5rem;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  max-width: 750px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 2.5rem;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.75rem;
  cursor: pointer;
  transition: var(--transition);
}

.modal-close:hover {
  color: var(--primary-gold);
}

.kundli-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.5rem;
}

.kundli-box {
  background: #fffdf9;
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  padding: 1.25rem;
}

.kundli-box h4 {
  color: var(--primary-gold);
  margin-bottom: 0.75rem;
}

/* Footer */
.footer {
  background: #1c140e;
  border-top: 1px solid rgba(245, 158, 11, 0.3);
  padding: 4rem 0 2rem;
  margin-top: 4rem;
  color: #fffdf9;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 3rem;
}

.footer-about p {
  color: var(--text-muted);
  margin-top: 1rem;
  font-size: 0.95rem;
}

.footer-col h4 {
  color: var(--primary-gold);
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.footer-links a:hover {
  color: var(--primary-gold);
}

.copyright {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 2rem;
}

/* Responsive Media Queries */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .features-grid {
    grid-template-columns: 1fr 1fr;
  }
  .astrologers-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2.2rem;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
  .form-group.full {
    grid-column: span 1;
  }
  .features-grid, .astrologers-grid, .stats-row {
    grid-template-columns: 1fr;
  }
  .nav-links {
    display: none;
  }
  .kundli-result-grid {
    grid-template-columns: 1fr;
  }
}
