/**
 * BhaktiStotra — Compiled theme styles (Tailwind-compatible utilities)
 * Rebuild: npm run build
 */

:root {
  --color-saffron: #ff9933;
  --color-maroon: #800000;
  --color-gold: #d4af37;
  --color-cream: #fff8f0;
  --color-white: #ffffff;
  --color-ink: #1a1a1a;
  --color-muted: #5c4a3a;
  --font-heading: "Cormorant Garamond", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
  --font-devanagari: "Noto Sans Devanagari", sans-serif;
  --container-wide: 1200px;
  --content-max: 720px;
  --radius: 0.75rem;
  --shadow-card: 0 4px 20px rgba(128, 0, 0, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--color-ink);
  background: var(--color-cream);
}
body.dark-mode {
  --color-cream: #1a1410;
  --color-ink: #f5f0eb;
  --color-muted: #c4b5a5;
  --color-white: #2a221c;
  background: #1a1410;
  color: var(--color-ink);
}
.lang-devanagari .entry-content,
.lang-marathi .entry-content,
.font-devanagari { font-family: var(--font-devanagari); line-height: 1.9; }

/* Typography */
.font-heading { font-family: var(--font-heading); }
.text-saffron { color: var(--color-saffron); }
.text-maroon { color: var(--color-maroon); }
.text-gold { color: var(--color-gold); }
.text-muted { color: var(--color-muted); }
.bg-cream { background: var(--color-cream); }
.bg-white { background: var(--color-white); }

/* Layout utilities */
.container-wide { width: 100%; max-width: var(--container-wide); margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 768px) { .container-wide { padding-inline: 1.5rem; } }
.flex { display: flex; }
.flex-wrap { flex-wrap: wrap; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.items-start { align-items: flex-start; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }
.hidden { display: none !important; }
.shrink-0 { flex-shrink: 0; }
.w-full { width: 100%; }
.max-w-xl { max-width: 36rem; }
.max-w-2xl { max-width: 42rem; }
.max-w-3xl { max-width: 48rem; }
.mx-auto { margin-inline: auto; }
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mt-10 { margin-top: 2.5rem; }
.mt-12 { margin-top: 3rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.my-6 { margin-block: 1.5rem; }
.py-3 { padding-block: 0.75rem; }
.py-4 { padding-block: 1rem; }
.py-6 { padding-block: 1.5rem; }
.py-8 { padding-block: 2rem; }
.py-10 { padding-block: 2.5rem; }
.py-12 { padding-block: 3rem; }
.py-14 { padding-block: 3.5rem; }
.p-4 { padding: 1rem; }
.p-5 { padding: 1.25rem; }
.p-6 { padding: 1.5rem; }
.px-4 { padding-inline: 1rem; }
.px-6 { padding-inline: 1.5rem; }
.px-8 { padding-inline: 2rem; }
.text-center { text-align: center; }
.text-sm { font-size: 0.875rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }
.text-3xl { font-size: 1.875rem; }
.text-4xl { font-size: 2.25rem; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.75; }
.leading-loose { line-height: 2; }
.uppercase { text-transform: uppercase; }
.tracking-wide { letter-spacing: 0.05em; }
.italic { font-style: italic; }
.rounded-lg { border-radius: var(--radius); }
.rounded-xl { border-radius: 1rem; }
.rounded-full { border-radius: 9999px; }
.rounded-t-xl { border-radius: 1rem 1rem 0 0; }
.overflow-hidden { overflow: hidden; }
.border { border: 1px solid rgba(212, 175, 55, 0.35); }
.border-b { border-bottom: 1px solid rgba(212, 175, 55, 0.25); }
.border-t { border-top: 1px solid rgba(212, 175, 55, 0.25); }
.border-2 { border-width: 2px; }
.border-gold\/30 { border-color: rgba(212, 175, 55, 0.3); }
.border-gold\/40 { border-color: rgba(212, 175, 55, 0.4); }
.shadow-sm { box-shadow: 0 1px 3px rgba(0,0,0,.06); }
.shadow-md { box-shadow: var(--shadow-card); }
.shadow-lg { box-shadow: 0 8px 30px rgba(128,0,0,.12); }
.sticky { position: sticky; }
.fixed { position: fixed; }
.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { inset: 0; }
.top-0 { top: 0; }
.top-24 { top: 6rem; }
.left-4 { left: 1rem; }
.z-40 { z-index: 40; }
.z-50 { z-index: 50; }
.opacity-20 { opacity: 0.2; }
.backdrop-blur { backdrop-filter: blur(8px); }
.aspect-video { aspect-ratio: 16/9; }
.object-cover { object-fit: cover; }
.h-48 { height: 12rem; }
.h-auto { height: auto; }
.h-8 { height: 2rem; }
.w-8 { width: 2rem; }
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.space-y-2 > * + * { margin-top: 0.5rem; }
.space-y-3 > * + * { margin-top: 0.75rem; }
.space-y-4 > * + * { margin-top: 1rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

@media (min-width: 640px) {
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .sm\:flex-row { flex-direction: row; }
}
@media (min-width: 768px) {
  .md\:text-left { text-align: left; }
  .md\:text-4xl { font-size: 2.25rem; }
  .md\:text-5xl { font-size: 3rem; }
  .md\:py-16 { padding-block: 4rem; }
  .md\:py-20 { padding-block: 5rem; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
  .md\:flex-row { flex-direction: row; }
  .md\:block { display: block !important; }
  .md\:hidden { display: none !important; }
}
@media (min-width: 1024px) {
  .lg\:block { display: block !important; }
  .lg\:hidden { display: none !important; }
  .lg\:flex { display: flex !important; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
  .lg\:col-span-2 { grid-column: span 2; }
  .lg\:text-6xl { font-size: 3.75rem; }
}

/* Gradients */
.bg-gradient-spiritual {
  background: linear-gradient(135deg, #fff8f0 0%, #ffe4cc 50%, rgba(255,153,51,.15) 100%);
}
.bg-gradient-temple {
  background: linear-gradient(180deg, #800000 0%, #5c0000 100%);
}
.bg-cream\/30 { background: rgba(255,248,240,.5); }
.bg-cream\/50 { background: rgba(255,248,240,.7); }
.bg-white\/10 { background: rgba(255,255,255,.1); }
.bg-white\/95 { background: rgba(255,255,255,.95); }
.text-white { color: #fff; }
.text-white\/70 { color: rgba(255,255,255,.7); }
.text-white\/80 { color: rgba(255,255,255,.8); }
.border-white\/10 { border-color: rgba(255,255,255,.1); }

/* Header */
.site-header { transition: box-shadow .2s; }
.nav-link, .primary-menu a {
  padding: .5rem .75rem;
  color: var(--color-maroon);
  text-decoration: none;
  font-weight: 500;
  border-radius: .5rem;
  transition: color .2s, background .2s;
}
.nav-link:hover, .primary-menu a:hover {
  color: var(--color-saffron);
  background: rgba(255,153,51,.1);
}
.btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border: none;
  background: transparent;
  color: var(--color-maroon);
  border-radius: 50%;
  cursor: pointer;
}
.btn-icon:hover { background: rgba(255,153,51,.15); color: var(--color-saffron); }

/* Buttons */
.btn-primary, .btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .625rem 1.25rem;
  font-weight: 600;
  font-size: .9375rem;
  border-radius: 9999px;
  text-decoration: none;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform .15s, box-shadow .15s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--color-saffron), #e67e00);
  color: #fff;
  border-color: var(--color-gold);
  box-shadow: 0 2px 8px rgba(255,153,51,.35);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 4px 14px rgba(255,153,51,.45); }
.btn-outline {
  background: transparent;
  color: var(--color-maroon);
  border-color: var(--color-gold);
}
.btn-outline:hover { background: rgba(255,153,51,.1); }

/* Cards */
.card-devotional {
  background: var(--color-white);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(212,175,55,.2);
  transition: transform .2s, box-shadow .2s;
}
.card-devotional:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(128,0,0,.12); }
.card-link { text-decoration: none; color: inherit; }
.card-badge {
  display: inline-block;
  font-size: .7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--color-saffron);
  background: rgba(255,153,51,.12);
  padding: .2rem .5rem;
  border-radius: 4px;
}
.pill-link {
  display: inline-block;
  padding: .4rem .9rem;
  background: var(--color-white);
  border: 1px solid rgba(212,175,55,.4);
  border-radius: 9999px;
  color: var(--color-maroon);
  text-decoration: none;
  font-size: .875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s;
}
.pill-link:hover, .pill-link.active {
  background: var(--color-saffron);
  color: #fff;
  border-color: var(--color-saffron);
}

/* Category tiles */
.category-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--color-white);
  border: 2px solid rgba(212,175,55,.25);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--color-maroon);
  transition: all .2s;
}
.category-tile:hover {
  border-color: var(--color-saffron);
  background: linear-gradient(180deg, #fff, #fff8f0);
}
.category-tile-icon { font-size: 1.75rem; color: var(--color-saffron); opacity: .8; }
.category-tile-name { font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600; margin-top: .5rem; }
.category-tile-count { font-size: .75rem; color: var(--color-muted); margin-top: .25rem; }

/* Layout sidebar */
.layout-with-sidebar {
  display: grid;
  gap: 2rem;
}
@media (min-width: 1024px) {
  .layout-with-sidebar {
    grid-template-columns: 1fr 300px;
    align-items: start;
  }
  .single-layout .content-area { max-width: var(--content-max); }
}
.section-title {
  font-family: var(--font-heading);
  color: var(--color-maroon);
  position: relative;
  padding-bottom: .5rem;
}
.section-title::after {
  content: "";
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--color-saffron), var(--color-gold));
  margin-top: .5rem;
  border-radius: 2px;
}

/* Prose / article */
.prose-devotional { max-width: var(--content-max); }
.prose-devotional h2, .prose-devotional h3 {
  font-family: var(--font-heading);
  color: var(--color-maroon);
  margin-top: 2rem;
  scroll-margin-top: 5rem;
}
.prose-devotional p { margin-bottom: 1.25rem; }
.prose-devotional a { color: var(--color-maroon); }
.prose-devotional a:hover { color: var(--color-saffron); }
.prose-devotional ul, .prose-devotional ol { padding-left: 1.5rem; margin-bottom: 1.25rem; }
.prose-devotional img { max-width: 100%; height: auto; border-radius: var(--radius); }

/* TOC */
.bhakti-toc {
  background: var(--color-white);
  border: 1px solid rgba(212,175,55,.3);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
}
.toc-list { margin: .5rem 0 0; padding-left: 1.25rem; }
.toc-list a { color: var(--color-maroon); text-decoration: none; font-size: .9375rem; }
.toc-list a:hover { color: var(--color-saffron); }
.toc-level-3 { margin-left: 1rem; list-style: circle; }

/* Tabs */
.tab-btn {
  padding: .5rem 1rem;
  border: none;
  background: transparent;
  color: var(--color-muted);
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
}
.tab-btn.active { color: var(--color-maroon); border-bottom-color: var(--color-saffron); }
.tab-panel.hidden { display: none; }

/* Steps */
.step-num {
  flex-shrink: 0;
  width: 2rem;
  height: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-saffron);
  color: #fff;
  font-weight: 700;
  border-radius: 50%;
  font-size: .875rem;
}

/* Ad slots — CLS safe */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  margin-block: 1rem;
  background: rgba(255,248,240,.6);
  border: 1px dashed rgba(212,175,55,.4);
  border-radius: var(--radius);
  overflow: hidden;
}
.ad-placeholder {
  color: var(--color-muted);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 1rem;
}
.ad-slot--mobile-sticky {
  position: fixed;
  bottom: 4.5rem;
  left: 0;
  right: 0;
  z-index: 35;
  margin: 0;
  border-radius: 0;
}

/* Reading progress */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-saffron), var(--color-gold));
  z-index: 100;
  transition: width .1s linear;
}

/* Mobile bottom nav */
.mobile-bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 45;
  background: var(--color-white);
  border-top: 2px solid rgba(212,175,55,.35);
  box-shadow: 0 -4px 20px rgba(0,0,0,.08);
  padding-bottom: env(safe-area-inset-bottom);
}
.mobile-bottom-nav-list {
  display: flex;
  justify-content: space-around;
  margin: 0;
  padding: .35rem 0;
  list-style: none;
}
.mobile-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .15rem;
  padding: .35rem .5rem;
  font-size: .65rem;
  color: var(--color-muted);
  text-decoration: none;
  background: none;
  border: none;
  cursor: pointer;
}
.mobile-nav-btn.active, .mobile-nav-btn:hover { color: var(--color-saffron); }
body { padding-bottom: 4.5rem; }
@media (min-width: 768px) { body { padding-bottom: 0; } }

/* Sticky share */
.sticky-share .share-btn {
  width: 2.5rem;
  height: 2.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--color-white);
  border: 1px solid rgba(212,175,55,.4);
  color: var(--color-maroon);
  text-decoration: none;
  font-size: .75rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-card);
}
.sticky-share .share-btn:hover { background: var(--color-saffron); color: #fff; }

/* Search */
.search-input {
  font-size: 1rem;
  padding: .75rem 1rem;
  border: 2px solid rgba(212,175,55,.35);
  border-radius: 9999px;
  background: var(--color-white);
  color: var(--color-ink);
}
.search-overlay {
  border-top: 1px solid rgba(212,175,55,.2);
  background: var(--color-cream);
}
.search-overlay:not(.hidden) { display: block; }
.ajax-search-results { list-style: none; margin: 0; padding: 0; }
.ajax-search-results a {
  display: block;
  padding: .75rem 1rem;
  color: var(--color-maroon);
  text-decoration: none;
  border-bottom: 1px solid rgba(0,0,0,.05);
}
.ajax-search-results a:hover { background: rgba(255,153,51,.1); }

/* Mobile drawer */
.mobile-drawer {
  position: fixed;
  inset: 0;
  top: auto;
  background: var(--color-white);
  z-index: 60;
  padding: 1.5rem;
  max-height: 70vh;
  overflow-y: auto;
  box-shadow: 0 -8px 30px rgba(0,0,0,.15);
  transform: translateY(100%);
  transition: transform .3s;
}
.mobile-drawer.is-open { transform: translateY(0); }
.mobile-drawer:not([hidden]).is-open { display: block; }

/* Footer */
.footer-heading {
  font-family: var(--font-heading);
  color: var(--color-gold);
  font-size: 1.125rem;
  margin-bottom: .75rem;
}
.footer-links { list-style: none; margin: 0; padding: 0; }
.footer-links a {
  color: rgba(255,255,255,.85);
  text-decoration: none;
  font-size: .9375rem;
  line-height: 2;
}
.footer-links a:hover { color: var(--color-saffron); }

/* Pagination */
.pagination-nav .nav-links { display: flex; gap: .5rem; flex-wrap: wrap; }
.pagination-nav a, .pagination-nav span {
  padding: .5rem .85rem;
  border-radius: .5rem;
  border: 1px solid rgba(212,175,55,.3);
  text-decoration: none;
  color: var(--color-maroon);
}
.pagination-nav a:hover { background: var(--color-saffron); color: #fff; }

/* Accessibility */
.sr-only, .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  border: 0;
}
.skip-link:focus {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  padding: 1rem;
  background: var(--color-maroon);
  color: #fff;
}

/* Comments */
.comment-list { list-style: none; padding: 0; }
.comment-body {
  background: var(--color-white);
  padding: 1rem;
  border-radius: var(--radius);
  margin-bottom: 1rem;
  border: 1px solid rgba(212,175,55,.2);
}

/* Group hover */
.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.transition { transition: all .2s; }
