/* ==========================================================================
   PanditDarshan Modern - Devotional Vedic Design System & Stylesheet
   Author: Pandit Shivam Tiwari (PanditDarshan.com)
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design Tokens & Color Palettes
   -------------------------------------------------------------------------- */
:root {
  --font-devanagari: 'Noto Sans Devanagari', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Cinzel', 'Plus Jakarta Sans', serif;

  /* Devotional Spiritual Palette */
  --bg-primary: #0c0a09;          /* Deep Sacred Stone */
  --bg-surface: #1c1917;          /* Warm Slate */
  --bg-surface-elevated: #292524; /* Elevated Card */
  --bg-surface-subtle: #181412;
  --bg-glass: rgba(28, 25, 23, 0.85);

  --border-color: #382f2d;
  --border-gold: rgba(234, 179, 8, 0.3);

  --text-primary: #fafaf9;
  --text-secondary: #d6d3d1;
  --text-muted: #a8a29e;

  /* Sacred Accents */
  --saffron-primary: #f97316;
  --gold-primary: #eab308;
  --gold-hover: #facc15;
  --maroon-deep: #881337;
  --shubh-green: #10b981;
  --ashubh-red: #ef4444;

  --gradient-sacred: linear-gradient(135deg, #f97316 0%, #eab308 50%, #f59e0b 100%);
  --gradient-gold: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
  --gradient-maroon: linear-gradient(135deg, #881337 0%, #4c0519 100%);
  --glow-saffron: 0 0 25px rgba(249, 115, 22, 0.25);
  --glow-gold: 0 0 25px rgba(234, 179, 8, 0.3);

  --card-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.6);
  --card-shadow-hover: 0 20px 40px -12px rgba(234, 179, 8, 0.25);

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --header-height: 72px;
  --container-max: 1240px;
}

[data-theme="light"] {
  --bg-primary: #fffbeb;          /* Warm Sacred Cream */
  --bg-surface: #ffffff;
  --bg-surface-elevated: #fef3c7;
  --bg-surface-subtle: #fffdf5;
  --bg-glass: rgba(255, 255, 255, 0.9);

  --border-color: #fde68a;
  --border-gold: rgba(202, 138, 4, 0.3);

  --text-primary: #1c1917;
  --text-secondary: #44403c;
  --text-muted: #78716c;

  --card-shadow: 0 10px 30px -10px rgba(180, 83, 9, 0.08);
  --card-shadow-hover: 0 20px 40px -12px rgba(234, 179, 8, 0.22);
}

/* --------------------------------------------------------------------------
   2. Base Reset & Typography
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-family: var(--font-devanagari);
  font-size: 16px;
  line-height: 1.65;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  transition: background-color 0.3s ease, color 0.3s ease;
}

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

a:hover {
  color: var(--saffron-primary);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.pd-container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 20px;
}

/* --------------------------------------------------------------------------
   3. Sacred Shloka Top Bar
   -------------------------------------------------------------------------- */
.pd-shloka-bar {
  background: var(--maroon-deep);
  color: #fef08a;
  font-size: 0.85rem;
  font-weight: 600;
  text-align: center;
  padding: 6px 16px;
  letter-spacing: 0.04em;
  border-bottom: 1px solid rgba(234, 179, 8, 0.25);
}

/* --------------------------------------------------------------------------
   4. Sticky Devotional Header
   -------------------------------------------------------------------------- */
.pd-header {
  position: sticky;
  top: 0;
  height: var(--header-height);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  z-index: 1000;
  transition: all 0.3s ease;
}

.pd-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  gap: 16px;
}

.pd-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--text-primary);
  white-space: nowrap;
}

.pd-logo-emblem {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  background: var(--gradient-sacred);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--glow-gold);
}

.pd-logo span {
  background: var(--gradient-sacred);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.custom-logo {
  max-height: 44px;
  width: auto;
  object-fit: contain;
}

/* Navigation Menu */
.pd-nav-menu {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
}

.pd-nav-item a {
  color: var(--text-secondary);
  font-size: 0.95rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: all 0.2s ease;
}

.pd-nav-item a:hover,
.pd-nav-item.active a {
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
}

/* Header Action Buttons */
.pd-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.pd-btn-register {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--gradient-sacred);
  color: #fff !important;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--glow-saffron);
  transition: all 0.2s ease;
}

.pd-btn-register:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(249, 115, 22, 0.45);
}

.pd-theme-toggle {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--gold-primary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.pd-theme-toggle:hover {
  transform: rotate(20deg);
}

.pd-mobile-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 1.6rem;
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   5. Devotional Hero Section
   -------------------------------------------------------------------------- */
.pd-hero {
  position: relative;
  padding: 60px 0 40px;
  text-align: center;
  overflow: hidden;
}

.pd-hero-glow {
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(circle, rgba(234, 179, 8, 0.18) 0%, rgba(249, 115, 22, 0.08) 50%, transparent 70%);
  filter: blur(80px);
  pointer-events: none;
}

.pd-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-gold);
  color: var(--gold-primary);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 20px;
  box-shadow: var(--glow-gold);
}

.pd-hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.2;
  letter-spacing: -0.02em;
  max-width: 900px;
  margin: 0 auto 16px;
}

.pd-hero-title .gradient-text {
  background: var(--gradient-sacred);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.pd-hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-secondary);
  max-width: 760px;
  margin: 0 auto 30px;
  line-height: 1.7;
}

/* --------------------------------------------------------------------------
   6. Live Panchang Dashboard Card
   -------------------------------------------------------------------------- */
.pd-panchang-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 32px;
  margin-bottom: 48px;
  box-shadow: var(--card-shadow);
  position: relative;
  overflow: hidden;
}

.pd-panchang-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.pd-panchang-title {
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
}

.pd-panchang-date {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--gold-primary);
  background: var(--bg-surface-elevated);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
}

.pd-panchang-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.pd-panchang-item {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  transition: all 0.25s ease;
}

.pd-panchang-item:hover {
  transform: translateY(-3px);
  border-color: var(--gold-primary);
}

.pd-panchang-item-label {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  margin-bottom: 6px;
}

.pd-panchang-item-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
}

.pd-shubh { color: var(--shubh-green) !important; }
.pd-ashubh { color: var(--ashubh-red) !important; }

/* --------------------------------------------------------------------------
   7. Interactive 12-Rashi Horoscope Switcher (SEO Optimized)
   -------------------------------------------------------------------------- */
.pd-rashifal-section {
  padding: 30px 0 60px;
}

.pd-rashi-selector {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 10px 0 20px;
  scrollbar-width: thin;
}

.pd-rashi-pill {
  flex: 0 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  text-align: center;
  cursor: pointer;
  transition: all 0.25s ease;
}

.pd-rashi-pill:hover,
.pd-rashi-pill.active {
  border-color: var(--gold-primary);
  background: var(--bg-surface-elevated);
  transform: translateY(-3px);
  box-shadow: var(--glow-gold);
}

.pd-rashi-symbol {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.pd-rashi-name {
  font-size: 0.95rem;
  font-weight: 700;
}

.pd-rashi-detail-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--card-shadow);
  margin-top: 10px;
}

.pd-rashi-tabs {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 12px;
}

.pd-rashi-tab {
  background: none;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  transition: all 0.2s ease;
}

.pd-rashi-tab.active {
  color: var(--text-primary);
  background: var(--gold-primary);
  color: #000;
}

.pd-prediction-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.pd-prediction-box {
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 20px;
}

.pd-prediction-box h4 {
  font-size: 0.95rem;
  color: var(--gold-primary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* --------------------------------------------------------------------------
   8. Verified Pandit Directory & Registration Portal
   -------------------------------------------------------------------------- */
.pd-directory-section {
  padding: 50px 0;
  background: var(--bg-surface);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.pd-pandit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 30px;
}

.pd-pandit-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--card-shadow);
  transition: all 0.3s ease;
}

.pd-pandit-card:hover {
  transform: translateY(-5px);
  border-color: var(--gold-primary);
  box-shadow: var(--card-shadow-hover);
}

.pd-pandit-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}

.pd-pandit-avatar {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 2px solid var(--gold-primary);
  object-fit: cover;
  box-shadow: var(--glow-gold);
}

.pd-pandit-name {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 6px;
}

.pd-verified-badge {
  color: var(--gold-primary);
  font-size: 0.85rem;
}

.pd-pandit-location {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.pd-pandit-specialty {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 14px 0;
}

.pd-specialty-chip {
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-color);
  color: var(--gold-primary);
  padding: 4px 10px;
  border-radius: var(--radius-full);
}

.pd-pandit-bio {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin-bottom: 20px;
  flex-grow: 1;
}

.pd-btn-whatsapp {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25d366;
  color: #fff !important;
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
}

.pd-btn-whatsapp:hover {
  background: #1ebc59;
  transform: translateY(-2px);
}

/* --------------------------------------------------------------------------
   9. Registration & Guest Submission Forms
   -------------------------------------------------------------------------- */
.pd-form-wrapper {
  background: var(--bg-surface);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-lg);
  padding: 40px;
  max-width: 760px;
  margin: 0 auto;
  box-shadow: var(--card-shadow);
}

.pd-form-group {
  margin-bottom: 20px;
}

.pd-form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.pd-form-control {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease;
}

.pd-form-control:focus {
  border-color: var(--gold-primary);
}

/* --------------------------------------------------------------------------
   10. Footer
   -------------------------------------------------------------------------- */
.pd-footer {
  margin-top: auto;
  background: #080605;
  border-top: 1px solid var(--border-color);
  padding: 60px 0 30px;
}

.pd-footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 36px;
  margin-bottom: 40px;
}

.pd-footer-col h4 {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--gold-primary);
  margin-bottom: 16px;
}

.pd-footer-links {
  list-style: none;
  font-size: 0.9rem;
}

.pd-footer-links li { margin-bottom: 10px; }
.pd-footer-links a { color: var(--text-secondary); }
.pd-footer-links a:hover { color: var(--gold-primary); }

.pd-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* --------------------------------------------------------------------------
   11. Mobile Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 992px) {
  .pd-nav-menu { display: none; }
  .pd-mobile-toggle { display: block; }
  .pd-hero-title { font-size: 2.3rem; }
  .pd-footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 600px) {
  .pd-hero-title { font-size: 1.85rem; }
  .pd-panchang-grid { grid-template-columns: 1fr 1fr; }
  .pd-prediction-grid { grid-template-columns: 1fr; }
  .pd-footer-grid { grid-template-columns: 1fr; }
  .pd-form-wrapper { padding: 24px 18px; }
}
