/* ═══════════════════════════════════════
   DIGITAL GEETA — Shared Stylesheet
   Dark divine aesthetic · Gold & Saffron
═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cinzel+Decorative:wght@400;700&family=Cinzel:wght@400;600;700&family=Crimson+Pro:ital,wght@0,300;0,400;0,600;1,300;1,400;1,600&display=swap');

/* ── VARIABLES ── */
:root {
  --gold: #c9922a;
  --gold-light: #e8b84b;
  --gold-pale: #f5dfa0;
  --gold-dim: rgba(201,146,42,0.15);
  --saffron: #e07b2a;
  --deep: #0d0a06;
  --dark: #111009;
  --card: #1a1710;
  --card2: #201d12;
  --text: #f0ddb0;
  --text-mid: #c0aa80;
  --text-dim: #7a6a48;
  --border: rgba(201,146,42,0.18);
  --border-bright: rgba(201,146,42,0.45);
  --krishna-blue: rgba(26,58,92,0.25);
  --font-display: 'Cinzel Decorative', serif;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Crimson Pro', serif;
}

/* ── RESET ── */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  background: var(--deep);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a { text-decoration: none; color: inherit; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
img { max-width: 100%; display: block; }

/* ── SHARED UTILITIES ── */
.gold { color: var(--gold-light); }
.dim { color: var(--text-dim); }
.italic { font-style: italic; }

/* ── SHARED DIVIDER ── */
.divider {
  width: 160px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 0 auto;
}
.divider-full {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}

/* ── DONATE MODAL OVERLAY ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(5,4,2,0.88);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 24px;
  backdrop-filter: blur(6px);
}
.modal-overlay.open { display: flex; }

.modal-box {
  background: var(--card);
  border: 1px solid var(--border-bright);
  border-radius: 8px;
  padding: 32px 28px;
  max-width: 360px;
  width: 100%;
  text-align: center;
  position: relative;
  animation: modalIn 0.3s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 14px; right: 18px;
  font-size: 1.3rem;
  color: var(--text-dim);
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.modal-close:hover { color: var(--gold-light); }

.modal-om {
  font-size: 1.8rem;
  color: var(--gold);
  margin-bottom: 8px;
  opacity: 0.8;
}
.modal-title {
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 0.2em;
  color: var(--gold-light);
  text-transform: uppercase;
  margin-bottom: 18px;
}
.modal-qr {
  width: 180px;
  height: 180px;
  margin: 0 auto 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.modal-qr img { width: 100%; height: 100%; object-fit: cover; }
.modal-qr-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #aaa;
  font-size: 0.75rem;
  font-family: var(--font-heading);
  letter-spacing: 0.1em;
  text-align: center;
  padding: 16px;
  color: #999;
}
.modal-qr-placeholder .qr-icon { font-size: 2.5rem; }

.modal-message {
  font-size: 0.92rem;
  color: var(--text-mid);
  line-height: 1.75;
  font-style: italic;
  margin-bottom: 16px;
}
.modal-message strong {
  color: var(--gold-light);
  font-style: normal;
}
.modal-gratitude {
  font-family: var(--font-heading);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--gold);
  opacity: 0.7;
}

/* ── SHARED TOP NAV (non-landing pages) ── */
.topnav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border);
  background: rgba(13,10,6,0.95);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(8px);
}
.topnav-back {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.topnav-back:hover { color: var(--gold-light); }
.topnav-title {
  font-family: var(--font-heading);
  font-size: 0.68rem;
  letter-spacing: 0.15em;
  color: var(--text-mid);
  text-transform: uppercase;
}
.topnav-donate {
  padding: 6px 13px;
  border: 1px solid rgba(201,146,42,0.3);
  border-radius: 20px;
  background: rgba(201,146,42,0.07);
  font-family: var(--font-heading);
  font-size: 0.58rem;
  letter-spacing: 0.1em;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}
.topnav-donate:hover { background: rgba(201,146,42,0.15); border-color: var(--gold); }

/* ── SHARED BOTTOM NAV (shlok page) ── */
.bottom-nav {
  display: flex;
  align-items: stretch;
  border-top: 1px solid var(--border);
  background: rgba(10,8,4,0.97);
  position: sticky;
  bottom: 0;
  z-index: 100;
  height: 64px;
}
.bnav-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--text-dim);
  transition: color 0.2s, background 0.2s;
  padding: 0 12px;
}
.bnav-btn:hover { color: var(--gold-light); background: rgba(201,146,42,0.04); }
.bnav-btn:disabled { opacity: 0.3; pointer-events: none; }

.bnav-donate {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.2s;
}
.bnav-donate:hover { background: rgba(201,146,42,0.06); }
.bnav-donate-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(201,146,42,0.1);
  border: 1px solid rgba(201,146,42,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  transition: background 0.2s;
}
.bnav-donate:hover .bnav-donate-icon { background: rgba(201,146,42,0.2); }
.bnav-donate-text {
  font-family: var(--font-heading);
  font-size: 0.48rem;
  letter-spacing: 0.15em;
  color: var(--gold);
  text-transform: uppercase;
}

/* ── PAGE WRAPPER ── */
.page-content {
  max-width: 640px;
  margin: 0 auto;
  padding: 0 20px 40px;
}

/* ── SECTION LABEL ── */
.sec-label {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.sec-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

/* ── TAG PILLS ── */
.tag-pill {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 20px;
  background: rgba(201,146,42,0.1);
  border: 1px solid rgba(201,146,42,0.25);
  font-size: 0.72rem;
  color: var(--gold);
  font-style: italic;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
}
.tag-pill:hover, .tag-pill.active {
  background: rgba(201,146,42,0.22);
  border-color: var(--gold);
  color: var(--gold-pale);
}

/* ── SHLOK CARD (used in chapters list, situation, daily) ── */
.shlok-card {
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(201,146,42,0.035);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}
.shlok-card::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  opacity: 0;
  transition: opacity 0.2s;
}
.shlok-card:hover { border-color: rgba(201,146,42,0.4); background: rgba(201,146,42,0.07); }
.shlok-card:hover::before { opacity: 1; }

.shlok-card-meta {
  font-family: var(--font-heading);
  font-size: 0.6rem;
  letter-spacing: 0.15em;
  color: var(--text-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
}
.shlok-card-summary {
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text-mid);
  line-height: 1.55;
  margin-bottom: 8px;
}
.shlok-card-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.shlok-card-tag {
  padding: 3px 9px;
  border-radius: 12px;
  background: rgba(201,146,42,0.08);
  border: 1px solid rgba(201,146,42,0.18);
  font-size: 0.62rem;
  color: var(--text-dim);
  font-style: italic;
}

/* ── FADE IN ANIMATION ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.5s ease both; }
.fade-up-1 { animation-delay: 0.1s; }
.fade-up-2 { animation-delay: 0.2s; }
.fade-up-3 { animation-delay: 0.3s; }
.fade-up-4 { animation-delay: 0.4s; }
.fade-up-5 { animation-delay: 0.5s; }

/* ── LOADING STATE ── */
.loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  gap: 16px;
}
.loading-om {
  font-size: 2rem;
  color: var(--gold);
  opacity: 0.5;
  animation: pulse 1.5s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50% { opacity: 0.8; transform: scale(1.1); }
}
.loading-text {
  font-family: var(--font-heading);
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ── EMPTY STATE ── */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-dim);
}
.empty-state .empty-icon { font-size: 2.5rem; margin-bottom: 14px; opacity: 0.4; }
.empty-state p { font-style: italic; font-size: 0.95rem; }

/* ── RESPONSIVE: DESKTOP ── */
@media (min-width: 768px) {
  body { font-size: 17px; }

  .page-content {
    padding: 0 40px 60px;
  }

  .topnav {
    padding: 16px 40px;
  }

  .modal-box {
    padding: 40px 36px;
  }
}

@media (min-width: 1024px) {
  .page-content {
    max-width: 720px;
  }
}
