/* ==========================================================================
   AUDIOBOOKS.HTML SPECIFIC STYLES
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Base Resets & Active Menu
   -------------------------------------------------------------------------- */
.menuA { 
  color: #fbf9cd !important; 
}

#topNav {
  margin-bottom: 0 !important;
}

main.bd-content {
  margin-top: 0 !important;
  padding-top: 0 !important;
}

/* --------------------------------------------------------------------------
   2. Hero Section & Search Bar
   -------------------------------------------------------------------------- */
.audiobooks-hero {
  background-color: #ffffff;
  border: 1px solid #e8e2d5;
  border-radius: 12px;
  padding: 22px 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
}

h2, .desktop-h2 {
  margin-top: 0;
  margin-bottom: 8px;
  padding-bottom: 4px;
  border-bottom: 1px solid #ccc;
}

.audiobooks-intro {
  font-size: 0.96rem;
  line-height: 1.6;
  color: #444;
  margin-bottom: 18px;
}

.search-container {
  position: relative;
  max-width: 100%;
}

.search-container i.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #8c8273;
  font-size: 0.95rem;
  pointer-events: none;
}

.search-input {
  width: 100%;
  height: 44px;
  padding-left: 42px;
  padding-right: 36px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.92rem;
  border-radius: 22px;
  border: 1px solid #d1c7b7;
  background-color: #fbf9f5;
  transition: all 0.2s ease;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.03);
}

.search-input:focus {
  background-color: #ffffff;
  border-color: #8B0000;
  outline: none;
  box-shadow: 0 0 0 3px rgba(139, 0, 0, 0.12);
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #999;
  cursor: pointer;
  font-size: 1rem;
  display: none;
  padding: 4px;
}

.clear-search-btn:hover { 
  color: #333; 
}

/* --------------------------------------------------------------------------
   3. Language Switcher (Segmented Tab Bar)
   -------------------------------------------------------------------------- */
.lang-toggle-container {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 14px;
}

.lang-segmented-bar {
  display: inline-flex;
  background-color: #ede6d4;
  padding: 4px;
  border-radius: 24px;
  border: 1px solid #d8cfbe;
  gap: 4px;
}

.lang-tab-btn {
  font-family: "Roboto Condensed", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #495057;
  background-color: #ffffff;
  border: 1px solid #dcd5c7;
  border-radius: 20px;
  padding: 6px 22px;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none !important;
}

.lang-tab-btn:hover:not(.active) {
  background-color: #faf7f0;
  color: #000;
}

.lang-tab-btn.active {
  background-color: #8B0000 !important;
  border-color: #8B0000 !important;
  color: #ffffff !important;
  box-shadow: 0 2px 8px rgba(139, 0, 0, 0.28) !important;
}

/* --------------------------------------------------------------------------
   4. A-Z Alphabet Filter Strip
   -------------------------------------------------------------------------- */
.az-filter-wrapper {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  white-space: nowrap;
  padding: 4px 2px 14px 2px;
  margin-bottom: 10px;
  scrollbar-width: thin;
}

.az-filter-wrapper::-webkit-scrollbar { 
  height: 4px; 
}

.az-filter-wrapper::-webkit-scrollbar-thumb {
  background-color: #dfd7ca;
  border-radius: 4px;
}

.az-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  color: #555;
  background-color: #ffffff;
  border: 1px solid #dfd7ca;
  border-radius: 18px;
  cursor: pointer;
  transition: all 0.15s ease;
  user-select: none;
  text-decoration: none !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.az-btn:hover {
  background-color: #fbf9f4;
  border-color: #bcae98;
  color: #8B0000;
}

.az-btn.active {
  background-color: #8B0000;
  border-color: #8B0000;
  color: #ffffff;
  box-shadow: 0 2px 6px rgba(139, 0, 0, 0.2);
}

/* --------------------------------------------------------------------------
   5. Search Feedback & Cross-Tab Hints
   -------------------------------------------------------------------------- */
.search-status-bar {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.88rem;
  color: #635b50;
  margin: 6px 0 14px 0;
  padding-left: 4px;
  display: none;
}

.cross-tab-hint {
  display: none;
  background-color: #fff9e6;
  border: 1px solid #fae39d;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.88rem;
  color: #665000;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.cross-tab-hint:hover {
  background-color: #fff3cc;
}

.no-search-results {
  display: none;
  text-align: center;
  padding: 40px 15px;
  background: #ffffff;
  border: 1px dashed #ded6c8;
  border-radius: 12px;
  margin: 15px 0;
}

/* --------------------------------------------------------------------------
   6. Letter Group Headings
   -------------------------------------------------------------------------- */
.letter-heading {
  display: flex;
  align-items: center;
  margin: 22px 0 12px 0;
  width: 100%;
}

.letter-heading .letter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: #8B0000;
  color: #ffffff;
  font-family: "Roboto Condensed", sans-serif;
  font-weight: 700;
  font-size: 1rem;
  margin-right: 14px;
  box-shadow: 0 2px 5px rgba(139, 0, 0, 0.2);
  flex-shrink: 0;
}

.letter-heading .letter-line {
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, #dcd3c1 0%, rgba(220, 211, 193, 0.2) 100%);
}

/* --------------------------------------------------------------------------
   7. Audiobook Card Listing
   -------------------------------------------------------------------------- */
.book-item {
  display: flex;
  align-items: stretch;
}

.book-card-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #ffffff;
  border: 1px solid #e7e0d3;
  border-left: 4px solid #ded5c5;
  border-radius: 8px;
  padding: 12px 16px;
  min-height: 52px;
  text-decoration: none !important;
  color: #2b2b2b !important;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.02);
  width: 100%;
}

.book-card-link:hover {
  background-color: #fffdf7;
  border-color: #c4b69c;
  border-left-color: #8B0000;
  transform: translateY(-2px);
  box-shadow: 0 5px 12px rgba(0, 0, 0, 0.06);
}

.book-card-link:active {
  transform: scale(0.985);
  background-color: #f5efe6;
}

.book-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1;
}

.book-card-left i.book-icon {
  color: #a69c8c;
  font-size: 0.98rem;
  flex-shrink: 0;
  transition: color 0.2s ease;
}

.book-card-link:hover i.book-icon { 
  color: #8B0000; 
}

.book-title {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #262626;
  line-height: 1.35;
}

.title-stack {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.hindi-script {
  font-family: "Noto Serif Devanagari", serif;
  font-size: 0.96rem;
  font-weight: 500;
  color: #3e382f;
  margin-top: 3px;
  line-height: 1.5;
  letter-spacing: 0.2px;
}

.card-chevron {
  color: #ccc;
  font-size: 0.80rem;
  margin-left: 8px;
  flex-shrink: 0;
  transition: transform 0.15s ease, color 0.15s ease;
}

.book-card-link:hover .card-chevron {
  color: #8B0000;
  transform: translateX(3px);
}