/* Modern UI Enhancements for Sanatan Samruddhi */
/* Enhanced animations, transitions, and modern styling */
/* Beautiful Telugu typography for book sections */

/* ============================================================================
   TELUGU TYPOGRAPHY ENHANCEMENTS
   ============================================================================ */

/* Telugu body text — clean, readable, elegant */
.telugu-body {
  font-family: "Noto Sans Telugu", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.9;
  font-kerning: normal;
  font-feature-settings: "kern" 1;
  letter-spacing: 0.01em;
  color: #2b1a12;
}

/* Telugu heading — elegant serif or Ramabhadra display */
.telugu-heading {
  font-family: "Noto Serif Telugu", "Ramabhadra", serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  color: #6b1c1c;
}

/* Sanskrit verse — beautifully typeset */
.sanskrit-verse {
  font-family: "Tiro Devanagari Sanskrit", "Noto Sans Devanagari", "Noto Sans Telugu", serif;
  font-size: 1.5em;
  font-weight: 400;
  line-height: 1.7;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
  word-spacing: 0.05em;
  letter-spacing: 0.01em;
  color: #5c1a1a;
}

/* Telugu translation below Sanskrit */
.telugu-translation {
  font-family: "Noto Sans Telugu", -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 1.1rem;
  line-height: 1.8;
  letter-spacing: 0.01em;
  color: #3d2820;
}

/* Scripture verse box — premium card */
.scripture-verse-box {
  background: linear-gradient(145deg, #fff8ee, #fff0dc);
  border-radius: 24px;
  padding: 40px 32px;
  border: 1px solid rgba(104, 21, 21, 0.1);
  box-shadow: 0 8px 32px rgba(104, 21, 21, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.scripture-verse-box::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(90deg, transparent, #d4a24e, transparent);
  border-radius: 0 0 4px 4px;
}

.scripture-verse-box .sanskrit {
  font-family: "Tiro Devanagari Sanskrit", "Noto Sans Devanagari", "Noto Sans Telugu", serif;
  font-size: 1.5em;
  color: #5c1a1a;
  margin-bottom: 20px;
  line-height: 1.7;
  font-kerning: normal;
}

.scripture-verse-box .translation {
  font-family: "Noto Sans Telugu", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.1em;
  color: #3d2820;
  line-height: 1.8;
  margin-top: 16px;
  padding-top: 20px;
  border-top: 1px solid rgba(104, 21, 21, 0.08);
}

.scripture-verse-box .meaning {
  font-family: "Noto Sans Telugu", -apple-system, BlinkMacSystemFont, sans-serif;
  color: #6f5b4e;
  font-size: 0.9em;
  font-style: italic;
  margin-top: 16px;
  line-height: 1.6;
}

/* Chapter content — elegant reading layout */
.chapter-content {
  font-family: "Noto Sans Telugu", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.05rem;
  line-height: 1.9;
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 0;
  color: #2b1a12;
}

.chapter-content .sanskrit-block {
  font-family: "Tiro Devanagari Sanskrit", "Noto Sans Devanagari", "Noto Sans Telugu", serif;
  font-size: 1.15em;
  line-height: 1.7;
  margin: 16px 0;
  color: #5c1a1a;
}

.chapter-content .telugu-block {
  font-family: "Noto Sans Telugu", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 1.05em;
  line-height: 1.8;
  margin: 12px 0;
  color: #3d2820;
}

/* Scripture card heading */
.scripture-card-title {
  font-family: "Ramabhadra", "Noto Serif Telugu", serif;
  font-weight: 400;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  color: #6b1c1c;
  line-height: 1.3;
}

/* Breadcrumb with elegant fonts */
.breadcrumb-text {
  font-family: "Noto Sans Telugu", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  color: #6f5b4e;
}

/* Section title with gold accent */
.section-title-accent {
  font-family: "Noto Serif Telugu", "Ramabhadra", serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: #6b1c1c;
  padding-bottom: 12px;
  border-bottom: 2px solid;
  border-image: linear-gradient(90deg, #6b1c1c, #d4a24e, transparent) 1;
  margin-bottom: 20px;
}

/* Beautiful verse list item */
.verse-list-item {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 16px 20px;
  border: 1px solid rgba(104, 21, 21, 0.1);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s ease;
}

.verse-list-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(104, 21, 21, 0.1);
  border-color: rgba(212, 162, 78, 0.3);
}

.verse-list-item a {
  font-family: "Noto Serif Telugu", serif;
  font-weight: 600;
  color: #6b1c1c;
  text-decoration: none;
  font-size: 1rem;
}

.verse-list-item .preview {
  font-family: "Noto Sans Telugu", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.85em;
  color: #6f5b4e;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}@media (max-width: 768px) {
  .verse-list-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .verse-list-item .preview {
    max-width: 100%;
  }
}

/* ============================================================================
   ENHANCED ANIMATIONS & TRANSITIONS
   ============================================================================ */

/* ============================================================================
   ENHANCED ANIMATIONS & TRANSITIONS
   ============================================================================ */

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  0% { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Apply fade-in animation to main content */
main {
  animation: fadeIn 0.6s ease-out;
}

/* Enhanced button transitions */
button, .btn, a {
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

button:hover, .btn:hover, a:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

button:active, .btn:active, a:active {
  transform: translateY(0);
  transition: all 0.1s ease;
}

/* ============================================================================
   MODERN CARD & COMPONENT STYLING
   ============================================================================ */

.card, .panel {
  border-radius: 16px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.card:hover, .panel:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
}

/* Enhanced input styling */
input, textarea, select {
  border-radius: 12px;
  border: 2px solid rgba(0, 0, 0, 0.1);
  padding: 12px 16px;
  transition: all 0.3s ease;
  background: rgba(255, 255, 255, 0.9);
}

input:focus, textarea:focus, select:focus {
  border-color: var(--saffron, #f2a43a);
  box-shadow: 0 0 0 4px rgba(242, 164, 58, 0.1);
  outline: none;
  transform: scale(1.02);
}

/* ============================================================================
   ENHANCED TYPOGRAPHY
   ============================================================================ */

h1, h2, h3, h4, h5, h6 {
  letter-spacing: -0.02em;
  line-height: 1.2;
}

p {
  line-height: 1.7;
  color: var(--muted, #6f5b4e);
}

/* Text gradient for headings */
.gradient-text {
  background: linear-gradient(135deg, var(--maroon, #681515), var(--saffron, #f2a43a));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ============================================================================
   MODERN BADGES & TAGS
   ============================================================================ */

.badge, .tag {
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  transition: all 0.3s ease;
}

.badge:hover, .tag:hover {
  transform: scale(1.05);
}

.badge-primary { background: var(--maroon, #681515); color: white; }
.badge-accent { background: var(--saffron, #f2a43a); color: var(--ink, #221713); }
.badge-success { background: var(--leaf, #27633f); color: white; }
.badge-info { background: var(--indigo, #20284f); color: white; }

/* ============================================================================
   ENHANCED BUTTONS
   ============================================================================ */

.btn-primary {
  background: linear-gradient(135deg, var(--maroon, #681515), var(--maroon-2, #8f241b));
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 15px rgba(104, 21, 21, 0.3);
}

.btn-primary:hover {
  background: linear-gradient(135deg, var(--maroon-2, #8f241b), var(--maroon, #681515));
  box-shadow: 0 6px 20px rgba(104, 21, 21, 0.4);
}

.btn-secondary {
  background: linear-gradient(135deg, var(--saffron, #f2a43a), #ffb84d);
  color: var(--ink, #221713);
  border: none;
  padding: 12px 24px;
  border-radius: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  box-shadow: 0 4px 15px rgba(242, 164, 58, 0.3);
}

/* ============================================================================
   MODAL & DIALOG ENHANCEMENTS
   ============================================================================ */

.modal, .dialog {
  border-radius: 20px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  animation: scaleIn 0.3s ease-out;
}

.modal-backdrop {
  backdrop-filter: blur(8px);
  background: rgba(0, 0, 0, 0.5);
}

/* ============================================================================
   TABLE ENHANCEMENTS
   ============================================================================ */

table {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

thead {
  background: linear-gradient(135deg, var(--maroon, #681515), var(--maroon-2, #8f241b));
  color: white;
}

th {
  padding: 16px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line, rgba(104, 21, 21, 0.14));
}

tr:hover td {
  background: rgba(242, 164, 58, 0.05);
}

/* ============================================================================
   NAVIGATION ENHANCEMENTS
   ============================================================================ */

.nav-link {
  position: relative;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--saffron, #f2a43a);
  transition: all 0.3s ease;
  transform: translateX(-50%);
}

.nav-link:hover::after {
  width: 80%;
}

.nav-link:hover {
  background: rgba(242, 164, 58, 0.1);
  color: var(--maroon, #681515);
}

/* ============================================================================
   FORM ENHANCEMENTS
   ============================================================================ */

.form-group {
  margin-bottom: 24px;
}

.form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: var(--maroon, #681515);
  font-size: 0.9rem;
}

.form-control {
  width: 100%;
}

.form-control:focus {
  border-color: var(--saffron, #f2a43a);
  box-shadow: 0 0 0 4px rgba(242, 164, 58, 0.1);
}

/* ============================================================================
   LOADING STATES
   ============================================================================ */

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(242, 164, 58, 0.2);
  border-top-color: var(--saffron, #f2a43a);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.skeleton {
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.05) 25%,
    rgba(0, 0, 0, 0.1) 50%,
    rgba(0, 0, 0, 0.05) 75%
  );
  background-size: 1000px 100%;
  animation: shimmer 2s infinite linear;
  border-radius: 8px;
}

/* ============================================================================
   RESPONSIVE ENHANCEMENTS
   ============================================================================ */

@media (max-width: 768px) {
  .card, .panel {
    border-radius: 12px;
    margin: 8px;
  }
  
  h1 { font-size: 1.75rem; }
  h2 { font-size: 1.5rem; }
  h3 { font-size: 1.25rem; }
  
  .btn-primary, .btn-secondary {
    padding: 10px 20px;
    font-size: 0.9rem;
  }
  
  table {
    font-size: 0.85rem;
  }
  
  th, td {
    padding: 10px 12px;
  }
}

/* ============================================================================
   UTILITY CLASSES
   ============================================================================ */

.text-gradient { @extend .gradient-text; }
.shadow-sm { box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); }
.shadow-md { box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12); }
.shadow-lg { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15); }
.rounded { border-radius: 12px; }
.rounded-lg { border-radius: 16px; }
.rounded-xl { border-radius: 20px; }

/* ============================================================================
   ACCESSIBILITY ENHANCEMENTS
   ============================================================================ */

:focus-visible {
  outline: 3px solid var(--saffron, #f2a43a);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

/* ============================================================================
   BOOKS SECTION — CLEAN PROFESSIONAL UI
   ============================================================================ */

/* ---------- Page Wrapper ---------- */
.books-wrap {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  min-height: 100vh;
}

.books-wrap-narrow {
  max-width: 820px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  min-height: 100vh;
}

/* ---------- Hero Header ---------- */
.books-hero {
  background: linear-gradient(135deg, #681515, #8f241b);
  border-radius: 24px;
  padding: 40px 36px;
  color: #fff;
  position: relative;
  overflow: hidden;
  margin-bottom: 36px;
}

.books-hero::before {
  content: "";
  position: absolute;
  top: -50px;
  right: -50px;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, rgba(255,255,255,.07) 0%, transparent 70%);
  border-radius: 50%;
}

.books-hero::after {
  content: "";
  position: absolute;
  bottom: -80px;
  left: -40px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255,255,255,.04) 0%, transparent 70%);
  border-radius: 50%;
}

.books-hero h1 {
  font-family: var(--font-display);
  font-size: 2.2rem;
  margin: 0 0 6px;
  letter-spacing: 0.02em;
  color: #fff;
  position: relative;
  z-index: 1;
}

.books-hero .subtitle {
  font-family: var(--font-body);
  font-size: 1.05rem;
  opacity: .88;
  margin: 0 0 4px;
  position: relative;
  z-index: 1;
  line-height: 1.5;
}

.books-hero .desc {
  font-family: var(--font-body);
  font-size: .92rem;
  opacity: .72;
  margin: 6px 0 0;
  position: relative;
  z-index: 1;
  line-height: 1.5;
  max-width: 600px;
}

.books-hero .meta {
  display: flex;
  gap: 20px;
  margin-top: 16px;
  font-size: .82em;
  opacity: .75;
  position: relative;
  z-index: 1;
  flex-wrap: wrap;
}

.books-hero .meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.books-hero .meta a {
  color: #fff;
  margin-left: auto;
  opacity: .85;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,.3);
}

.books-hero .meta a:hover {
  opacity: 1;
  border-bottom-color: #d4a24e;
}

/* ---------- Stats Bar ---------- */
.books-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin-top: 22px;
  position: relative;
  z-index: 1;
}

.books-stats .stat {
  text-align: center;
  padding: 12px 20px;
  background: rgba(255,255,255,.1);
  border-radius: 14px;
  backdrop-filter: blur(6px);
  min-width: 110px;
}

.books-stats .stat-num {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: #fff;
  font-weight: 400;
}

.books-stats .stat-label {
  font-family: var(--font-body);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  opacity: .7;
  margin-top: 2px;
}

/* ---------- Section Title ---------- */
.books-section-title {
  font-family: var(--font-heading);
  color: #681515;
  font-size: 1.35rem;
  margin: 36px 0 18px;
  padding-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
}

.books-section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #681515, #d4a24e, transparent);
  border-radius: 1px;
}

.books-section-title .more-link {
  margin-left: auto;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 500;
  color: #8f241b;
  text-decoration: none;
  opacity: .7;
  transition: opacity .2s;
}

.books-section-title .more-link:hover {
  opacity: 1;
}

/* ---------- Grid Layouts ---------- */
.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
}

.books-grid-wide {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}

.books-grid-compact {
  display: grid;
  gap: 10px;
}

/* ---------- Category Cards ---------- */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.cat-card {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(12px);
  border-radius: 18px;
  padding: 24px 20px;
  text-align: center;
  border: 1px solid rgba(104,21,21,.1);
  text-decoration: none;
  color: #681515;
  transition: all .35s cubic-bezier(.4,0,.2,1);
}

.cat-card:hover {
  transform: translateY(-5px);
  background: #681515;
  color: #fff;
  box-shadow: 0 16px 40px rgba(104,21,21,.18);
  border-color: transparent;
}

.cat-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.1rem;
}

.cat-card p {
  margin: 6px 0 0;
  font-size: .82em;
  opacity: .65;
  font-family: var(--font-body);
  line-height: 1.4;
}

.cat-card:hover p {
  opacity: .8;
}

/* ---------- Book Cards — Clickable with Visual Header ---------- */
.book-card {
  display: block;
  border-radius: 18px;
  overflow: hidden;
  text-decoration: none;
  background: #fff;
  border: 1px solid rgba(104,21,21,.08);
  transition: all .35s cubic-bezier(.4,0,.2,1);
  box-shadow: 0 2px 12px rgba(104,21,21,.04);
  cursor: pointer;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(104,21,21,.12);
  border-color: rgba(212,162,78,.25);
}

.book-card:active {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(104,21,21,.15);
}

/* Visual header — gradient-based */
.book-card .card-visual {
  height: 120px;
  position: relative;
}

.book-card .card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(255,255,255,.12) 0%, transparent 60%);
}

/* Type-based gradients */
.book-card[data-type="itihasa"] .card-visual {
  background: linear-gradient(135deg, #b8860b, #d4a24e, #8f6b2e);
}
.book-card[data-type="purana"] .card-visual {
  background: linear-gradient(135deg, #e6551e, #f2a43a, #c43e1c);
}
.book-card[data-type="upanishad"] .card-visual {
  background: linear-gradient(135deg, #4a1a6b, #7c3aed, #5b1090);
}
.book-card[data-type="veda"] .card-visual {
  background: linear-gradient(135deg, #0e5e6b, #1a8f9e, #0a3d47);
}
.book-card[data-type="gita"] .card-visual {
  background: linear-gradient(135deg, #1b5e20, #43a047, #0d3b12);
}
.book-card[data-type="stotra"] .card-visual {
  background: linear-gradient(135deg, #7b1f4a, #c7648a, #5a1233);
}
.book-card[data-type="default"] .card-visual {
  background: linear-gradient(135deg, #5d2e16, #8f5e3a, #3d1d0c);
}

/* Card body */
.book-card .card-body {
  padding: 16px 18px 14px;
}

.book-card .card-body h3 {
  margin: 0;
  color: #681515;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.05rem;
  line-height: 1.3;
}

.book-card .type-badge {
  display: inline-block;
  background: rgba(212,162,78,.15);
  color: #8f6b2e;
  font-size: .65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .6px;
  padding: 2px 10px;
  border-radius: 20px;
  margin-top: 8px;
  font-family: var(--font-body);
}

.book-card .book-meta {
  margin: 8px 0 0;
  font-family: var(--font-body);
  font-size: .78em;
  color: #6f5b4e;
  line-height: 1.5;
  display: flex;
  align-items: center;
  gap: 4px;
}

.na-badge {
  display: inline-block;
  background: #e8d5c4;
  color: #8f241b;
  font-size: .72em;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 10px;
  letter-spacing: .02em;
}

.book-card .card-arrow {
  display: inline-block;
  margin-left: 3px;
  color: #8f241b;
  font-size: .85rem;
  transition: transform .25s ease, color .2s;
  font-weight: 500;
}

.book-card:hover .card-arrow {
  transform: translateX(4px);
  color: #d4a24e;
}

.book-card .read-label {
  font-size: .75rem;
  color: #8f241b;
  font-family: var(--font-body);
  opacity: .7;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  margin-top: 10px;
  transition: opacity .2s;
}

.book-card:hover .read-label {
  opacity: 1;
}

/* ---------- Verse List Items ---------- */
.verse-list {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.verse-item {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 16px 22px;
  border: 1px solid rgba(104,21,21,.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all .3s ease;
  cursor: pointer;
}

.verse-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(104,21,21,.08);
  border-color: rgba(212,162,78,.25);
  background: rgba(255,255,255,.85);
}

.verse-item a {
  font-family: var(--font-heading);
  font-weight: 600;
  color: #681515;
  text-decoration: none;
  font-size: .95rem;
}

.verse-item .preview {
  font-family: var(--font-body);
  font-size: .82em;
  color: #6f5b4e;
  max-width: 340px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}

/* ---------- Breadcrumb ---------- */
.books-breadcrumb {
  font-family: var(--font-body);
  font-size: .82em;
  color: #6f5b4e;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.books-breadcrumb a {
  color: #681515;
  text-decoration: none;
  transition: color .2s;
}

.books-breadcrumb a:hover {
  color: #d4a24e;
}

.books-breadcrumb .sep {
  opacity: .4;
}

/* ---------- Filter Bar ---------- */
.filter-bar {
  margin: 18px 0 22px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-bar a {
  padding: 7px 16px;
  border-radius: 24px;
  background: rgba(255,255,255,.6);
  color: #681515;
  text-decoration: none;
  font-size: .82em;
  font-family: var(--font-body);
  border: 1px solid rgba(104,21,21,.1);
  transition: all .25s ease;
}

.filter-bar a:hover {
  background: rgba(104,21,21,.08);
  border-color: rgba(104,21,21,.2);
}

.filter-bar a.active {
  background: #681515;
  color: #fff;
  border-color: #681515;
}

/* ---------- Empty State ---------- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  background: rgba(255,255,255,.5);
  border-radius: 20px;
  border: 1px dashed rgba(104,21,21,.12);
}

.empty-state .icon {
  font-size: 3rem;
  margin-bottom: 12px;
  opacity: .5;
}

.empty-state h3 {
  font-family: var(--font-heading);
  color: #681515;
  margin: 0 0 6px;
}

.empty-state p {
  font-family: var(--font-body);
  color: #6f5b4e;
  margin: 0;
  font-size: .92em;
}

/* ---------- Error State ---------- */
.error-state {
  text-align: center;
  padding: 32px 20px;
  background: rgba(139, 32, 32, 0.06);
  border-radius: 16px;
  border: 1px solid rgba(139, 32, 32, 0.18);
}

.error-state h3 {
  font-family: var(--font-heading);
  color: #8b2020;
  margin: 0 0 8px;
}

.error-state p {
  font-family: var(--font-body);
  color: #6f5b4e;
  margin: 0 0 16px;
}

.error-state .btn-retry {
  display: inline-block;
  min-height: 44px;
  padding: 10px 20px;
  border: 0;
  border-radius: 8px;
  background: #681515;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}

/* ---------- Accessibility ---------- */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid rgba(242, 164, 58, 0.85);
  outline-offset: 2px;
}

/* ---------- Progress / Bookmark Items ---------- */
.progress-item,
.bookmark-item {
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 18px 22px;
  border: 1px solid rgba(104,21,21,.07);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all .3s ease;
}

.progress-item:hover,
.bookmark-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(104,21,21,.08);
  border-color: rgba(212,162,78,.25);
}

.progress-item .title,
.bookmark-item .title {
  font-family: var(--font-heading);
  font-weight: 600;
  color: #681515;
  font-size: .95rem;
}

.progress-item .info,
.bookmark-item .info {
  font-family: var(--font-body);
  font-size: .82em;
  color: #6f5b4e;
  margin-top: 4px;
}

.progress-item .percent {
  font-family: var(--font-display);
  color: #8f241b;
  font-size: .9em;
  font-weight: 400;
}

.bookmark-item a {
  color: #681515;
  text-decoration: none;
  font-weight: 600;
  font-family: var(--font-heading);
}

.bookmark-item a:hover {
  color: #d4a24e;
}

/* ---------- Verse Box (already styled above) ---------- */
/* .scripture-verse-box already defined in TELUGU TYPOGRAPHY section */

/* ---------- Chapter Content ---------- */
.chapter-content {
  font-family: var(--font-body);
  font-size: 1.02rem;
  line-height: 1.85;
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 0 8px;
  color: #2b1a12;
}

/* ---------- Listing Grid ---------- */
.listing-grid {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

/* ---------- Responsive Overrides ---------- */
@media (max-width: 768px) {
  .books-wrap,
  .books-wrap-narrow {
    padding: 16px 14px 40px;
  }

  .books-hero {
    padding: 28px 20px;
    border-radius: 18px;
  }

  .books-hero h1 {
    font-size: 1.6rem;
  }

  .books-stats {
    gap: 12px;
  }

  .books-stats .stat {
    min-width: 90px;
    padding: 10px 14px;
  }

  .books-stats .stat-num {
    font-size: 1.2rem;
  }

  .books-grid {
    grid-template-columns: 1fr;
  }

  .books-grid-wide {
    grid-template-columns: 1fr;
  }

  .cat-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .verse-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 16px;
  }

  .verse-item .preview {
    max-width: 100%;
    text-align: left;
  }

  .progress-item,
  .bookmark-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .books-search { flex-direction: column; gap: 8px; }
  .books-search input { width: 100%; }
  .books-search button { width: 100%; }

  .filter-bar { gap: 6px; }
  .filter-bar a { font-size: 12px; padding: 5px 10px; }

  .books-section-title { font-size: 1.05rem; }
  .book-card { padding: 14px; }
  .book-card h3 { font-size: 13px; }
}

@media (max-width: 480px) {
  .books-grid { grid-template-columns: 1fr; }
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .cat-card { padding: 12px; }
  .cat-card h3 { font-size: 12px; }
  .cat-card p { font-size: 11px; }
}

/* ============================================================================
   LANGUAGE SECTIONS
   ============================================================================ */

.lang-section {
  margin-bottom: 32px;
}

.lang-heading {
  font-family: var(--font-display);
  color: #681515;
  font-size: 1.15rem;
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #e8ddd3;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ============================================================================
   PRINT STYLES
   ============================================================================ */

@media print {
  .no-print { display: none !important; }
  body { background: white; }
  .card, .panel { box-shadow: none; border: 1px solid #ddd; }
}

/* ============================================================================
   DARK MODE (prefers-color-scheme)
   ============================================================================ */

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1210;
    --bg-soft: #241a16;
    --text: #f5ebe0;
    --heading: #f2c4a0;
    --saffron: #e8a84a;
  }

  body {
    background:
      radial-gradient(1200px 520px at 10% -5%, rgba(104, 21, 21, 0.35) 0%, transparent 60%),
      radial-gradient(900px 520px at 90% 0%, rgba(80, 40, 20, 0.4) 0%, transparent 55%),
      linear-gradient(180deg, var(--bg), var(--bg-soft)) !important;
    color: var(--text) !important;
  }

  h1, h2, h3, h4, h5, h6 {
    color: var(--heading);
  }

  .card, .panel, .empty-state, .progress-item, .bookmark-item {
    background: rgba(40, 28, 24, 0.85);
    border-color: rgba(242, 164, 58, 0.15);
    color: var(--text);
  }

  .empty-state h3, .progress-item .title, .bookmark-item .title {
    color: var(--heading);
  }

  .empty-state p, .progress-item .info, .bookmark-item .info {
    color: rgba(245, 235, 224, 0.72);
  }

  .error-state {
    background: rgba(139, 32, 32, 0.18);
    border-color: rgba(242, 164, 58, 0.25);
  }

  .skeleton {
    background: linear-gradient(
      90deg,
      rgba(255, 255, 255, 0.04) 25%,
      rgba(255, 255, 255, 0.08) 50%,
      rgba(255, 255, 255, 0.04) 75%
    );
  }
}