/**
 * NityaGuruKripa — Enterprise Spiritual UI Styles
 * Sacred Indic Palette: Deep Saffron, Royal Maroon, Celestial Gold, Temple Parchment.
 */

:root {
  --color-primary: #800020;        /* Royal Maroon */
  --color-secondary: #E65100;      /* Deep Saffron */
  --color-accent: #D4AF37;         /* Celestial Gold */
  --color-gold-dark: #A38020;
  --color-bg: #FAF7F2;             /* Sacred Parchment */
  --color-surface: #FFFFFF;
  --color-surface-hover: #FDFBF7;
  --color-text: #2B2520;           /* Deep Charcoal */
  --color-text-muted: #6B6258;
  --color-border: #E8E1D5;
  --color-good: #2E7D32;           /* Auspicious Green */
  --color-inauspicious: #C62828;   /* Alert Red */
  --color-neutral: #0277BD;
  --shadow-sm: 0 2px 8px rgba(128, 0, 32, 0.05);
  --shadow-md: 0 4px 16px rgba(128, 0, 32, 0.08);
  --shadow-lg: 0 8px 28px rgba(128, 0, 32, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --transition: all 0.2s ease-in-out;
}

[data-theme="dark"] {
  --color-bg: #141210;
  --color-surface: #1E1A16;
  --color-surface-hover: #26211C;
  --color-text: #EFE9E0;
  --color-text-muted: #B3A89B;
  --color-border: #332B24;
  --color-primary: #D4AF37;
  --color-secondary: #FF8F00;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Noto Sans Devanagari", "Noto Sans Tamil", "Noto Sans Telugu", sans-serif;
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Header & Navigation */
header.gk-header {
  background: var(--color-surface);
  border-bottom: 2px solid var(--color-accent);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}

.gk-header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.gk-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--color-primary);
}

.gk-brand-logo {
  font-size: 1.8rem;
}

.gk-brand-title {
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.gk-brand-tagline {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  display: block;
}

.gk-nav-links {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none;
  flex-wrap: wrap;
}

.gk-nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: var(--color-text);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 16px;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.gk-nav-links a:hover {
  color: var(--color-secondary);
  border-color: var(--color-secondary);
  background: rgba(230, 81, 0, 0.06);
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(230, 81, 0, 0.14);
}

.gk-nav-links a.active {
  color: #FFFFFF;
  background: linear-gradient(135deg, #E65100 0%, #9A1B1B 100%);
  border-color: #E65100;
  font-weight: 700;
  transform: translateY(-3px) scale(1.04);
  box-shadow: 0 6px 18px rgba(230, 81, 0, 0.30), 0 0 0 2px rgba(212, 175, 55, 0.45);
}

.gk-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gk-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  transition: var(--transition);
}

.gk-btn:hover {
  background: var(--color-surface-hover);
  border-color: var(--color-accent);
}

.gk-btn-primary {
  background: var(--color-secondary);
  color: #FFF;
  border-color: var(--color-secondary);
}

.gk-btn-primary:hover {
  background: #C43C00;
  color: #FFF;
}

.gk-select {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

/* Main Container */
main.gk-main {
  flex: 1;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 20px 80px;
}

/* Location Bar */
.gk-location-bar {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.gk-location-info {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gk-location-pin {
  font-size: 1.3rem;
  color: var(--color-secondary);
}

.gk-location-name {
  font-weight: 700;
  font-size: 1rem;
}

.gk-location-coords {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Tabs */
.gk-tabs {
  display: flex;
  gap: 8px;
  border-bottom: 2px solid var(--color-border);
  margin-bottom: 24px;
}

.gk-tab-btn {
  padding: 10px 18px;
  background: transparent;
  border: none;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-muted);
  cursor: pointer;
  border-bottom: 3px solid transparent;
  margin-bottom: -2px;
  transition: var(--transition);
}

.gk-tab-btn:hover {
  color: var(--color-secondary);
}

.gk-tab-btn.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-secondary);
}

/* Panchang Card Grid */
.gk-panchang-hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}

.gk-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.gk-card:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.gk-card-title {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.gk-card-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary);
}

.gk-card-meta {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-top: 6px;
}

/* Muhurta Tables */
.gk-table-wrapper {
  overflow-x: auto;
  margin-top: 16px;
}

.gk-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.gk-table th {
  background: rgba(128, 0, 32, 0.04);
  color: var(--color-primary);
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid var(--color-border);
  font-weight: 700;
}

.gk-table td {
  padding: 10px 14px;
  border-bottom: 1px solid var(--color-border);
}

.gk-badge-good {
  background: rgba(46, 125, 50, 0.12);
  color: var(--color-good);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
}

.gk-badge-alert {
  background: rgba(198, 40, 40, 0.12);
  color: var(--color-inauspicious);
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.75rem;
}

/* Sloka Reader */
.gk-sloka-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: var(--shadow-sm);
}

.gk-sloka-header {
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 14px;
  margin-bottom: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.gk-sloka-title {
  font-size: 1.3rem;
  color: var(--color-primary);
  font-weight: 700;
}

.gk-sloka-source {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.gk-sloka-text {
  font-size: 1.35rem;
  line-height: 1.9;
  text-align: center;
  color: var(--color-primary);
  font-weight: 600;
  padding: 20px 12px;
  background: rgba(230, 81, 0, 0.03);
  border-radius: var(--radius-md);
  margin-bottom: 18px;
  white-space: pre-line;
}

.gk-sloka-iast {
  font-family: Georgia, serif;
  font-style: italic;
  font-size: 1.05rem;
  color: var(--color-text-muted);
  text-align: center;
  margin-bottom: 20px;
  white-space: pre-line;
}

.gk-sabdartha-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 10px;
  margin: 16px 0;
  background: rgba(0, 0, 0, 0.02);
  padding: 14px;
  border-radius: var(--radius-md);
}

.gk-sabdartha-item {
  font-size: 0.85rem;
}

.gk-sabdartha-word {
  font-weight: 700;
  color: var(--color-secondary);
}

.gk-sloka-translation {
  background: var(--color-surface);
  border-left: 4px solid var(--color-secondary);
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 0.95rem;
}

.gk-sloka-purport {
  font-size: 0.9rem;
  color: var(--color-text);
  line-height: 1.7;
  margin-top: 14px;
}

/* Japa Mala Interface */
.gk-japa-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  box-shadow: var(--shadow-md);
}

.gk-japa-circle {
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 6px solid var(--color-border);
  margin: 24px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: radial-gradient(circle, rgba(230,81,0,0.06) 0%, rgba(128,0,32,0.02) 100%);
  position: relative;
  user-select: none;
  transition: transform 0.08s ease;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.2);
}

.gk-japa-circle:active {
  transform: scale(0.96);
  border-color: var(--color-secondary);
}

.gk-bead-number {
  font-size: 3.5rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
}

.gk-bead-max {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-accent);
}

.gk-japa-stats {
  display: flex;
  justify-content: space-around;
  margin: 24px 0;
  padding: 14px;
  background: rgba(0, 0, 0, 0.02);
  border-radius: var(--radius-md);
}

.gk-japa-stat-num {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-secondary);
}

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

/* Modal */
.gk-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.gk-modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  max-width: 500px;
  width: 100%;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  max-height: 80vh;
  display: flex;
  flex-direction: column;
}

.gk-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.gk-search-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.gk-city-list {
  overflow-y: auto;
  list-style: none;
  flex: 1;
}

.gk-city-item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.gk-city-item:hover {
  background: rgba(230, 81, 0, 0.08);
}

/* Footer */
footer.gk-footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: 32px 20px 48px;
  margin-top: auto;
}

.gk-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}

.gk-footer-links {
  display: flex;
  gap: 16px;
  list-style: none;
  flex-wrap: wrap;
}

.gk-footer-links a {
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 0.85rem;
}

.gk-footer-links a:hover {
  color: var(--color-secondary);
}

/* Consent Banner */
.gk-consent-banner {
  position: fixed;
  bottom: 60px;
  left: 20px;
  right: 20px;
  max-width: 480px;
  background: var(--color-surface);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-lg);
  z-index: 1001;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gk-consent-text {
  font-size: 0.85rem;
  color: var(--color-text);
}

.gk-consent-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}


/* ====================================================================
 * NityaGuruKripa — Classical Temple Typography & Indic Font Stack
 * ==================================================================== */
h1, h2, h3, .gk-brand-title, .gk-card-title, .gk-almanac-title {
  font-family: 'Cinzel', 'Playfair Display', Georgia, serif;
  letter-spacing: 0.02em;
}

.gk-sloka-text {
  line-height: 1.85 !important;
  letter-spacing: 0.015em;
  font-feature-settings: "kern" 1, "liga" 1;
}

[data-lang="sa"] .gk-sloka-text,
[data-lang="hi"] .gk-sloka-text,
[data-lang="mr"] .gk-sloka-text {
  font-family: 'Noto Serif Devanagari', Georgia, serif;
}

[data-lang="ta"] .gk-sloka-text {
  font-family: 'Noto Sans Tamil', system-ui, sans-serif;
  line-height: 1.9 !important;
}

[data-lang="te"] .gk-sloka-text {
  font-family: 'Noto Sans Telugu', system-ui, sans-serif;
  line-height: 1.95 !important;
}

[data-lang="kn"] .gk-sloka-text {
  font-family: 'Noto Sans Kannada', system-ui, sans-serif;
  line-height: 1.95 !important;
}

[data-lang="ml"] .gk-sloka-text {
  font-family: 'Noto Sans Malayalam', system-ui, sans-serif;
  line-height: 1.9 !important;
}

[data-lang="bn"] .gk-sloka-text {
  font-family: 'Noto Sans Bengali', system-ui, sans-serif;
}

[data-lang="gu"] .gk-sloka-text {
  font-family: 'Noto Sans Gujarati', system-ui, sans-serif;
}

[data-lang="or"] .gk-sloka-text {
  font-family: 'Noto Sans Oriya', system-ui, sans-serif;
}

[data-lang="en"] .gk-sloka-text {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: var(--color-primary);
}

/* ====================================================================
 * 12 Sacred Deity Hubs — Visual Shrine Navigation Grid
 * ==================================================================== */
.gk-deity-hub-container {
  margin-bottom: 24px;
}

.gk-deity-scroll-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 2px 14px;
  scrollbar-width: thin;
  scrollbar-color: var(--color-accent) transparent;
}

.gk-deity-card-chip {
  flex: 0 0 auto;
  background: var(--color-surface);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-sm);
  user-select: none;
}

.gk-deity-card-chip:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  background: var(--color-surface-hover);
}

.gk-deity-card-chip.active {
  background: linear-gradient(135deg, rgba(128, 0, 32, 0.08), rgba(230, 81, 0, 0.12));
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 2px var(--color-secondary);
}

.gk-deity-icon {
  font-size: 1.6rem;
}

.gk-deity-meta {
  display: flex;
  flex-direction: column;
}

.gk-deity-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
}

.gk-deity-sanskrit {
  font-size: 0.75rem;
  color: var(--color-text-muted);
}

/* Category Filter Pills */
.gk-category-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.gk-cat-pill {
  padding: 6px 14px;
  border-radius: 20px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition);
}

.gk-cat-pill:hover,
.gk-cat-pill.active {
  background: var(--color-secondary);
  color: #FFFFFF;
  border-color: var(--color-secondary);
}

/* ====================================================================
 * Synchronized Chanting Audio Player with Speed Controls
 * ==================================================================== */
.gk-chant-player {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.08), rgba(230, 81, 0, 0.05));
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin: 12px 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.gk-audio-controls-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.gk-audio-play-btn {
  background: var(--color-primary);
  color: #FFFFFF;
  border: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 1rem;
}

.gk-audio-play-btn:hover {
  background: var(--color-secondary);
  transform: scale(1.05);
}

.gk-audio-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-primary);
}

.gk-speed-selector {
  display: flex;
  gap: 4px;
  align-items: center;
}

.gk-speed-btn {
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}

.gk-speed-btn.active {
  background: var(--color-primary);
  color: #FFFFFF;
  border-color: var(--color-primary);
}

/* Share as Devotional Card Button */
.gk-share-card-btn {
  background: linear-gradient(135deg, #D4AF37, #E65100);
  color: #FFFFFF;
  border: none;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  box-shadow: 0 2px 6px rgba(230, 81, 0, 0.2);
}

.gk-share-card-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

/* ====================================================================
 * Canvas Devotional Share-Card Modal
 * ==================================================================== */
.gk-card-maker-modal {
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  max-width: 580px;
  width: 100%;
  padding: 24px;
  box-shadow: var(--shadow-lg);
  max-height: 90vh;
  overflow-y: auto;
  border: 2px solid var(--color-accent);
}

.gk-theme-swatches {
  display: flex;
  gap: 10px;
  margin: 14px 0 18px;
  flex-wrap: wrap;
}

.gk-theme-swatch {
  flex: 1;
  min-width: 100px;
  padding: 10px 8px;
  border-radius: var(--radius-sm);
  border: 2px solid transparent;
  text-align: center;
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  color: #FFFFFF;
  transition: var(--transition);
}

.gk-theme-swatch.active {
  border-color: #FFFFFF;
  box-shadow: 0 0 0 3px var(--color-secondary);
}

.gk-theme-saffron { background: linear-gradient(135deg, #FF6F00, #E65100, #800020); }
.gk-theme-maroon  { background: linear-gradient(135deg, #4A0E17, #800020, #2D050B); }
.gk-theme-sandal  { background: linear-gradient(135deg, #D4AF37, #996515, #5A3D0B); }
.gk-theme-indigo  { background: linear-gradient(135deg, #0A192F, #1E3A8A, #311042); }

.gk-canvas-preview-wrapper {
  background: #111;
  border-radius: var(--radius-md);
  padding: 12px;
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
}

#gk-share-canvas {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  box-shadow: 0 8px 24px rgba(0,0,0,0.5);
}

/* ====================================================================
 * Traditional Vedic Almanac (Panchangam) Header & Solar Arc
 * ==================================================================== */
.gk-almanac-header {
  background: linear-gradient(135deg, #800020, #4A0E17);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 18px 24px;
  margin-bottom: 24px;
  position: relative;
  overflow: hidden;
  border: 2px solid var(--color-accent);
  box-shadow: var(--shadow-md);
}

.gk-almanac-header::after {
  content: "🕉️";
  position: absolute;
  right: 16px;
  bottom: -15px;
  font-size: 6rem;
  opacity: 0.08;
  pointer-events: none;
}

.gk-almanac-title {
  font-size: 1.45rem;
  color: #FFE082;
  margin-bottom: 6px;
}

.gk-samvat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.gk-samvat-item {
  font-size: 0.78rem;
  color: #FFE0B2;
}

.gk-samvat-item strong {
  display: block;
  font-size: 0.88rem;
  color: #FFFFFF;
}

/* Auspicious & Inauspicious Time Badges */
.gk-badge-auspicious {
  display: inline-block;
  background: rgba(46, 125, 50, 0.15);
  color: #2E7D32;
  border: 1px solid #81C784;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.78rem;
}

.gk-badge-inauspicious {
  display: inline-block;
  background: rgba(198, 40, 40, 0.15);
  color: #C62828;
  border: 1px solid #E57373;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.78rem;
}

/* ====================================================================
 * Dharmic Wisdom Library (Moral Stories) Illuminated Cards
 * ==================================================================== */
.gk-story-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: var(--transition);
}

.gk-story-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-accent);
}

.gk-moral-takeaway-card {
  background: linear-gradient(135deg, rgba(212, 175, 55, 0.12), rgba(230, 81, 0, 0.08));
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 12px 16px;
  margin: 14px 0;
}

.gk-moral-takeaway-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-secondary);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}

.gk-moral-takeaway-text {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.45;
}


/* ====================================================================
 * Classical Vedic Rāśi Kundali (Astrological Chart) Styles
 * ==================================================================== */
.gk-kundali-wrapper {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 20px;
}

@media (max-width: 900px) {
  .gk-kundali-wrapper {
    grid-template-columns: 1fr;
  }
}

.gk-kundali-chart-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gk-chart-controls {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.gk-chart-select {
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-accent);
  background: var(--color-surface);
  color: var(--color-primary);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  outline: none;
}

.gk-chart-select:focus {
  border-color: var(--color-secondary);
  box-shadow: 0 0 0 2px rgba(230, 81, 0, 0.2);
}

.gk-kundali-svg {
  width: 100%;
  max-width: 380px;
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-sm);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

/* SVG Chart Typography */
.gk-k-sign {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  font-weight: 800;
  fill: #ffd54f;
}

.gk-k-sign-si {
  font-family: 'Cinzel', serif;
  font-size: 10.5px;
  font-weight: 700;
  fill: #ffd54f;
}

.gk-k-planets {
  font-family: 'Noto Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 800;
  fill: #ffffff;
  letter-spacing: 0.5px;
}

.gk-k-planets-circ {
  font-family: 'Noto Sans', sans-serif;
  font-size: 11px;
  font-weight: 800;
  fill: #ffffff;
}

.gk-k-house-sub {
  font-family: 'Cinzel', serif;
  font-size: 9.5px;
  font-weight: 600;
  fill: #e0a96d;
  letter-spacing: 0.04em;
}

.gk-k-center-om {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  fill: #ffd700;
  font-weight: bold;
}

.gk-k-center-title {
  font-family: 'Cinzel', serif;
  font-size: 14px;
  font-weight: 800;
  fill: #ffffff;
  letter-spacing: 0.08em;
}

.gk-k-lagna-badge {
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 800;
  fill: #ff5252;
}

.gk-k-glyph {
  font-size: 18px;
  fill: #ffd54f;
}

.gk-kundali-details-box {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

/* ====================================================================
 * Dvadasha Jyotirlinga Mahakshetra Interactive Styles
 * ==================================================================== */
.gk-jyotir-header-banner {
  background: linear-gradient(135deg, #1b0a2a 0%, #311146 50%, #4a154b 100%);
  color: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 30px;
  margin-bottom: 30px;
  border: 1px solid var(--color-accent);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.gk-jyotir-header-title {
  font-family: 'Cinzel', serif;
  font-size: 1.85rem;
  color: #FFD700;
  margin-bottom: 8px;
}

.gk-jyotir-stotram-box {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 1.2rem;
  color: #FFE082;
  margin: 14px auto;
  max-width: 800px;
  line-height: 1.7;
}

.gk-jyotir-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 24px;
}

@media (max-width: 480px) {
  .gk-jyotir-grid {
    grid-template-columns: 1fr;
  }
}

.gk-jyotir-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.gk-jyotir-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--color-accent);
}

.gk-jyotir-top {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--color-border);
}

.gk-jyotir-icon-wrapper {
  width: 76px;
  height: 76px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #140720;
  padding: 2px;
  border: 2px solid var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(139, 0, 0, 0.14);
}

.gk-jyotir-icon-svg,
.gk-jyotir-icon-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.gk-jyotir-names {
  flex: 1;
}

.gk-jyotir-title {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 2px;
}

.gk-jyotir-sanskrit {
  font-family: 'Noto Serif Devanagari', serif;
  font-size: 1.05rem;
  color: var(--color-secondary);
  font-weight: 600;
}

.gk-jyotir-location {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  margin-top: 3px;
}

/* What Visit Does Box */
.gk-jyotir-benefits-box {
  background: rgba(212, 175, 55, 0.08);
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 14px;
  margin-bottom: 16px;
}

.gk-jyotir-benefit-row {
  margin-bottom: 8px;
  font-size: 0.85rem;
  line-height: 1.45;
}

.gk-jyotir-benefit-row:last-child {
  margin-bottom: 0;
}

.gk-jyotir-benefit-row strong {
  color: var(--color-primary);
  display: inline-block;
  min-width: 110px;
}

/* Specific Poojas Track */
.gk-jyotir-poojas-box {
  margin-bottom: 16px;
}

.gk-jyotir-section-heading {
  font-family: 'Cinzel', serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-secondary);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.gk-pooja-pill {
  background: var(--color-background);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: 6px;
  font-size: 0.82rem;
}

.gk-pooja-pill-title {
  font-weight: 700;
  color: var(--color-primary);
  display: flex;
  justify-content: space-between;
  margin-bottom: 2px;
}

.gk-pooja-pill-timing {
  font-size: 0.75rem;
  color: var(--color-secondary);
}

.gk-pooja-pill-desc {
  font-size: 0.78rem;
  color: var(--color-text-muted);
  line-height: 1.35;
}

/* Tri-Fold History Tabs */
.gk-history-accordion {
  margin-top: auto;
  border-top: 1px solid var(--color-border);
  padding-top: 14px;
}

.gk-history-block {
  font-size: 0.82rem;
  line-height: 1.5;
  color: var(--color-text);
  margin-bottom: 10px;
}

.gk-history-tag {
  font-weight: 700;
  color: var(--color-secondary);
  text-transform: uppercase;
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 2px;
}


/* ====================================================================
 * Daily Panchang Deity Postcard & Social Publisher Modal Styles
 * ==================================================================== */
.gk-deity-poster-modal {
  background: var(--color-surface);
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-md);
  padding: 24px;
  width: 95%;
  max-width: 680px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}

.gk-aspect-pills, .gk-theme-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 16px;
}

.gk-aspect-pill, .gk-theme-pill {
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-background);
  color: var(--color-text);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
}

.gk-aspect-pill.active, .gk-theme-pill.active {
  background: var(--color-accent);
  color: #000000;
  border-color: var(--color-accent);
  box-shadow: 0 2px 6px rgba(212, 175, 55, 0.35);
}

.gk-poster-canvas-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  background: #0d0614;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 14px;
  margin: 16px 0;
  max-height: 480px;
  overflow: hidden;
}

.gk-poster-canvas-preview canvas {
  max-width: 100%;
  max-height: 450px;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5);
}

.gk-social-share-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.gk-btn-share-native {
  flex: 1;
  min-width: 180px;
  background: linear-gradient(135deg, #E1306C, #F77737);
  color: #FFFFFF;
  border: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(225, 48, 108, 0.3);
}

.gk-btn-share-x {
  flex: 1;
  min-width: 150px;
  background: #000000;
  color: #FFFFFF;
  border: 1px solid #333333;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

.gk-btn-copy-clip {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}

/* Multi-Indic Script Line-Height & Matra Vertical Clearance */
html[data-lang="te"] .gk-sloka-text,
html[data-lang="kn"] .gk-sloka-text,
html[data-lang="ml"] .gk-sloka-text,
html[data-lang="or"] .gk-sloka-text,
html[data-lang="gu"] .gk-sloka-text,
html[data-lang="bn"] .gk-sloka-text {
  line-height: 1.95;
  padding-top: 4px;
  padding-bottom: 4px;
}

html[data-lang="te"] .gk-card-value,
html[data-lang="kn"] .gk-card-value,
html[data-lang="ml"] .gk-card-value,
html[data-lang="or"] .gk-card-value {
  line-height: 1.55;
}
