/* Custom Literary Theme & Micro-Interactions for LitDigi 2.0 */

/* Custom Smooth Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: rgba(148, 163, 184, 0.3);
  border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(245, 158, 11, 0.6);
}

/* Hide scrollbar for category pill rows */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Nav Link Active State */
.nav-tab.active {
  color: #f59e0b;
  font-weight: 700;
}

/* Category Filter Active Pill */
.cat-pill.active {
  background-color: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}
.dark .cat-pill.active {
  background-color: #ffffff;
  color: #020617;
  border-color: #ffffff;
}

/* Reader Reading Themes */
.reader-theme-light {
  background-color: #ffffff !important;
  color: #1e293b !important;
}

.reader-theme-sepia {
  background-color: #fbf5eb !important;
  color: #382d1f !important;
}
.reader-theme-sepia #readerPaper {
  background-color: #fbf5eb !important;
  color: #382d1f !important;
}
.reader-theme-sepia article {
  color: #382d1f !important;
}
.reader-theme-sepia #readerSynopsisWrapper {
  background-color: #f0e6d2 !important;
  border-color: #b4833e !important;
  color: #4a3b29 !important;
}

.reader-theme-dark {
  background-color: #090d16 !important;
  color: #e2e8f0 !important;
}
.reader-theme-dark #readerPaper {
  background-color: #090d16 !important;
  color: #e2e8f0 !important;
}
.reader-theme-dark article {
  color: #cbd5e1 !important;
}
.reader-theme-dark #readerSynopsisWrapper {
  background-color: #131b2e !important;
  border-color: #f59e0b !important;
  color: #e2e8f0 !important;
}

/* Book Cover Hover & 3D tilt simulation */
.book-card {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease;
}

.book-card:hover {
  transform: translateY(-5px);
}

/* Line Clamp Utilities */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Pulse animation for active narrator indicator */
@keyframes narratePulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.7;
  }
}

.narrating-active {
  animation: narratePulse 1.5s infinite ease-in-out;
  color: #f59e0b !important;
}
