/* ============================================
   E-LIBRARY HOMEPAGE STYLES
   ============================================ */

/* Hero Section */
.elibrary-hero {
  position: relative;
  min-height: 600px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: flex;
  align-items: center;
  overflow: hidden;
}

.elibrary-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="rgba(255,255,255,0.1)" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,144C960,149,1056,139,1152,122.7C1248,107,1344,85,1392,74.7L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') no-repeat bottom;
  background-size: cover;
  opacity: 0.3;
  animation: wave 8s ease-in-out infinite;
}

@keyframes wave {
  0%, 100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(-20px);
  }
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(255,255,255,0.1) 0%, transparent 50%);
  animation: pulse 4s ease-in-out infinite;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  color: white;
  margin-bottom: 20px;
  text-shadow: 0 4px 20px rgba(0,0,0,0.2);
  position: relative;
  z-index: 1;
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: 1.3rem;
  color: rgba(255,255,255,0.95);
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.hero-cta {
  display: flex;
  gap: 20px;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.btn-hero-primary {
  background: white;
  color: #667eea;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  animation: fadeInUp 1.2s ease;
}

.btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.3);
  color: #764ba2;
}

.btn-hero-primary i {
  transition: transform 0.3s ease;
}

.btn-hero-primary:hover i {
  transform: scale(1.2) rotate(5deg);
}

.btn-hero-secondary {
  background: rgba(255,255,255,0.2);
  color: white;
  padding: 16px 40px;
  border-radius: 50px;
  font-weight: 700;
  font-size: 1.1rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 2px solid white;
  backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  animation: fadeInUp 1.4s ease;
}

.btn-hero-secondary:hover {
  background: white;
  color: #667eea;
  transform: translateY(-3px);
}

.btn-hero-secondary i {
  transition: transform 0.3s ease;
}

.btn-hero-secondary:hover i {
  transform: scale(1.2);
}

/* Phrase of the Day */
.phrase-of-day {
  margin-top: -80px;
  position: relative;
  z-index: 10;
  padding: 0 15px;
}

.phrase-card {
  background: white;
  border-radius: 20px;
  padding: 40px 50px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 30px;
  position: relative;
  overflow: hidden;
  animation: slideUp 0.8s ease;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.phrase-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.phrase-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: linear-gradient(45deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: rotate(45deg);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%) rotate(45deg);
  }
  100% {
    transform: translateX(100%) rotate(45deg);
  }
}

.phrase-icon {
  font-size: 3rem;
  color: #667eea;
  opacity: 0.3;
  animation: float 3s ease-in-out infinite;
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

.phrase-content {
  flex: 1;
}

.phrase-text {
  font-size: 1.4rem;
  font-style: italic;
  color: #2d3748;
  margin: 0 0 10px 0;
  font-weight: 500;
}

.phrase-author {
  font-size: 1rem;
  color: #718096;
  margin: 0;
  font-weight: 600;
}

.phrase-badge {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Book Sections */
.book-section {
  margin: 80px 0;
}

.section-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 40px;
  padding-bottom: 20px;
  border-bottom: 2px solid #e2e8f0;
}

.section-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: white;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 12px 30px rgba(102, 126, 234, 0.5);
  }
}

.section-icon i {
  animation: iconRotate 4s linear infinite;
}

@keyframes iconRotate {
  0%, 90% {
    transform: rotate(0deg);
  }
  95% {
    transform: rotate(15deg);
  }
  100% {
    transform: rotate(0deg);
  }
}

.popular-icon {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3);
}

.genre-icon {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
}

.authors-icon {
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3);
}

.section-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #1a202c;
  margin: 0;
}

.section-subtitle {
  font-size: 1rem;
  color: #718096;
  margin: 5px 0 0 0;
}

.view-all-link {
  margin-left: auto;
  color: #667eea;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.view-all-link:hover {
  color: #764ba2;
  gap: 12px;
}

/* Books Scroll Container */
.books-scroll-container {
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 0 20px 0;
  margin: 0 -15px;
  padding-left: 15px;
  padding-right: 15px;
}

.books-scroll-container::-webkit-scrollbar {
  height: 8px;
}

.books-scroll-container::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.books-scroll-container::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 10px;
}

.books-row {
  display: flex;
  gap: 25px;
  padding-bottom: 10px;
}

/* Book Card */
.book-card {
  min-width: 220px; /* Changed from 220px */
  max-width: 100%; /* Changed from 220px */
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  animation: fadeInScale 0.6s ease forwards;
}

@keyframes fadeInScale {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.book-card:nth-child(1) { animation-delay: 0.1s; }
.book-card:nth-child(2) { animation-delay: 0.2s; }
.book-card:nth-child(3) { animation-delay: 0.3s; }
.book-card:nth-child(4) { animation-delay: 0.4s; }
.book-card:nth-child(5) { animation-delay: 0.5s; }
.book-card:nth-child(6) { animation-delay: 0.6s; }

.book-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.book-badge {
  position: absolute;
  top: 15px;
  right: 15px;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 5;
  backdrop-filter: blur(10px);
  animation: badgePulse 2s ease-in-out infinite;
}

@keyframes badgePulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.new-badge {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.4);
}

.trending-badge {
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  display: flex;
  align-items: center;
  gap: 5px;
}

.trending-badge i {
  animation: fire 0.5s ease-in-out infinite alternate;
}

@keyframes fire {
  from {
    transform: scale(1) rotate(-5deg);
  }
  to {
    transform: scale(1.2) rotate(5deg);
  }
}

.book-cover {
  position: relative;
  width: 100%;
  height: 300px;
  overflow: hidden;
  background: #f8fafc;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.book-card:hover .book-cover img {
  transform: scale(1.1);
}

.book-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.book-card:hover .book-overlay {
  opacity: 1;
}

.btn-quick-view {
  background: white;
  color: #667eea;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.btn-quick-view:hover {
  background: #667eea;
  color: white;
  transform: scale(1.05);
}

.book-info {
  padding: 20px;
}

.book-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 8px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-author {
  font-size: 0.9rem;
  color: #718096;
  margin: 0 0 15px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.book-rating,
.book-date,
.book-readers {
  font-size: 0.85rem;
  color: #4a5568;
  display: flex;
  align-items: center;
  gap: 5px;
}

.book-rating i {
  color: #f59e0b;
}

/* Genre Section */
.genre-tabs {
  display: flex;
  gap: 15px;
  margin-bottom: 40px;
  overflow-x: auto;
  padding-bottom: 10px;
}

.genre-tabs::-webkit-scrollbar {
  height: 6px;
}

.genre-tabs::-webkit-scrollbar-track {
  background: #f1f5f9;
  border-radius: 10px;
}

.genre-tabs::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-radius: 10px;
}

.genre-tab {
  background: white;
  border: 2px solid #e2e8f0;
  padding: 14px 28px;
  border-radius: 50px;
  font-weight: 600;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideInLeft 0.5s ease backwards;
}

.genre-tab:nth-child(1) { animation-delay: 0.1s; }
.genre-tab:nth-child(2) { animation-delay: 0.2s; }
.genre-tab:nth-child(3) { animation-delay: 0.3s; }
.genre-tab:nth-child(4) { animation-delay: 0.4s; }
.genre-tab:nth-child(5) { animation-delay: 0.5s; }
.genre-tab:nth-child(6) { animation-delay: 0.6s; }

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.genre-tab:hover {
  border-color: #10b981;
  color: #10b981;
  transform: translateY(-2px);
}

.genre-tab.active {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  border-color: #10b981;
  color: white;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
  animation: tabGlow 2s ease-in-out infinite;
}

@keyframes tabGlow {
  0%, 100% {
    box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3);
  }
  50% {
    box-shadow: 0 12px 30px rgba(16, 185, 129, 0.5);
  }
}

.genre-books-container {
  min-height: 400px;
}

/* Authors Section */
.authors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
}

.author-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  animation: fadeInUp 0.6s ease backwards;
}

.author-card:nth-child(1) { animation-delay: 0.1s; }
.author-card:nth-child(2) { animation-delay: 0.2s; }
.author-card:nth-child(3) { animation-delay: 0.3s; }
.author-card:nth-child(4) { animation-delay: 0.4s; }

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.author-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.author-card:hover::before {
  transform: scaleX(1);
}

.author-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}

.author-avatar {
  width: 120px;
  height: 120px;
  margin: 0 auto 20px;
  position: relative;
}

.author-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid #f8fafc;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease;
}

.author-card:hover .author-avatar img {
  transform: scale(1.1);
}

.author-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 35px;
  height: 35px;
  background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
  border: 3px solid white;
  box-shadow: 0 4px 12px rgba(245, 158, 11, 0.4);
  animation: badgeRotate 3s ease-in-out infinite;
}

@keyframes badgeRotate {
  0%, 100% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.1);
  }
}

.author-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 10px 0;
}

.author-stat {
  font-size: 0.95rem;
  color: #667eea;
  font-weight: 600;
  margin: 0 0 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.author-achievement {
  font-size: 0.9rem;
  color: #718096;
  margin: 0 0 20px 0;
}

.btn-author-books {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 100%);
  color: white;
  padding: 12px 24px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.btn-author-books:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
  color: white;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.5rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }

  .phrase-card {
    flex-direction: column;
    text-align: center;
    padding: 30px 25px;
  }

  .phrase-text {
    font-size: 1.2rem;
  }

  .section-header {
    flex-wrap: wrap;
  }

  .section-title {
    font-size: 1.8rem;
  }

  .view-all-link {
    width: 100%;
    justify-content: center;
    margin-top: 10px;
  }

  .genre-tabs {
    justify-content: flex-start;
  }

  .authors-grid {
    grid-template-columns: 1fr;
  }
}

/* Animations */
@keyframes pulse {
  0%, 100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.5;
  }
}


/* ============================================
   GENRE HUB SPECIFIC STYLES
   ============================================ */

/* Genre Hero */
.genre-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 500px;
}

/* Genre Category Cards */
.genre-category-card {
  background: white;
  border-radius: 20px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.genre-category-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: scaleX(0);
  transition: transform 0.3s ease;
}

.genre-category-card:hover::before {
  transform: scaleX(1);
}

.genre-category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  border-color: rgba(102, 126, 234, 0.3);
}

.genre-card-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: white;
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
  transition: all 0.4s ease;
}

.genre-category-card:hover .genre-card-icon {
  transform: scale(1.1) rotate(5deg);
}

/* Genre-specific gradients */
.genre-category-card.fiction .genre-card-icon {
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  box-shadow: 0 8px 20px rgba(240, 147, 251, 0.3);
}

.genre-category-card.nonfiction .genre-card-icon {
  background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
  box-shadow: 0 8px 20px rgba(79, 172, 254, 0.3);
}

.genre-category-card.thriller .genre-card-icon {
  background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
  box-shadow: 0 8px 20px rgba(250, 112, 154, 0.3);
}

.genre-category-card.scifi .genre-card-icon {
  background: linear-gradient(135deg, #30cfd0 0%, #330867 100%);
  box-shadow: 0 8px 20px rgba(48, 207, 208, 0.3);
}

.genre-category-card.romance .genre-card-icon {
  background: linear-gradient(135deg, #ff9a9e 0%, #fecfef 100%);
  box-shadow: 0 8px 20px rgba(255, 154, 158, 0.3);
}

.genre-category-card.mystery .genre-card-icon {
  background: linear-gradient(135deg, #a18cd1 0%, #fbc2eb 100%);
  box-shadow: 0 8px 20px rgba(161, 140, 209, 0.3);
}

.genre-category-card.horror .genre-card-icon {
  background: linear-gradient(135deg, #000000 0%, #434343 100%);
  box-shadow: 0 8px 20px rgba(67, 67, 67, 0.3);
}

.genre-category-card.biography .genre-card-icon {
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  box-shadow: 0 8px 20px rgba(255, 236, 210, 0.3);
}

.genre-card-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 10px 0;
}

.genre-card-count {
  font-size: 0.9rem;
  color: #718096;
  margin: 0 0 20px 0;
}

.genre-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  min-height: 60px;
}

.genre-tag {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #4a5568;
  transition: all 0.3s ease;
}

.genre-category-card:hover .genre-tag {
  background: #667eea;
  border-color: #667eea;
  color: white;
}

.genre-card-arrow {
  position: absolute;
  bottom: 20px;
  right: 20px;
  width: 40px;
  height: 40px;
  background: #667eea;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  opacity: 0;
  transform: translateX(-10px);
  transition: all 0.3s ease;
}

.genre-category-card:hover .genre-card-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* Fusion Section */
.fusion-section {
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
  border-radius: 30px;
  padding: 60px 40px;
  margin-top: 80px;
}

.fusion-icon {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  box-shadow: 0 8px 20px rgba(102, 126, 234, 0.3);
}

.fusion-card {
  background: white;
  border-radius: 20px;
  padding: 35px 28px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.fusion-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(102, 126, 234, 0.1), transparent);
  transition: left 0.6s ease;
}

.fusion-card:hover::before {
  left: 100%;
}

.fusion-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
  border-color: rgba(102, 126, 234, 0.3);
}

.fusion-emoji {
  font-size: 3rem;
  margin-bottom: 20px;
  animation: float 3s ease-in-out infinite;
}

.fusion-card-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 12px 0;
}

.fusion-card-desc {
  font-size: 0.95rem;
  color: #718096;
  line-height: 1.6;
  margin: 0 0 20px 0;
}

.fusion-card-link {
  color: #667eea;
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
}

.fusion-card:hover .fusion-card-link {
  color: #764ba2;
  gap: 12px;
}

/* Responsive for Genre Hub */
@media (max-width: 768px) {
  .genre-category-card {
    padding: 25px;
  }

  .genre-card-title {
    font-size: 1.2rem;
  }

  .fusion-section {
    padding: 40px 20px;
  }

  .fusion-emoji {
    font-size: 2.5rem;
  }
}



/* ============================================
   SUB-GENRE SPECIFIC STYLES
   ============================================ */

/* Sub-Genre Cards */
.subgenre-card {
  background: white;
  border-radius: 16px;
  padding: 25px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  overflow: hidden;
  border: 2px solid transparent;
}

.subgenre-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  transform: scaleY(0);
  transition: transform 0.3s ease;
}

.subgenre-card:hover::before {
  transform: scaleY(1);
}

.subgenre-card:hover {
  transform: translateX(8px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  border-color: rgba(102, 126, 234, 0.2);
}

.subgenre-icon {
  width: 70px;
  height: 70px;
  min-width: 70px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: white;
  box-shadow: 0 6px 15px rgba(102, 126, 234, 0.25);
  transition: all 0.3s ease;
}

.subgenre-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.subgenre-card:hover .subgenre-icon {
  transform: scale(1.1) rotate(-5deg);
}

.subgenre-content {
  flex: 1;
}

.subgenre-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #1a202c;
  margin: 0 0 8px 0;
}

.subgenre-desc {
  font-size: 0.9rem;
  color: #718096;
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.subgenre-meta {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
}

.subgenre-count {
  font-size: 0.85rem;
  color: #667eea;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

.subgenre-arrow {
  width: 35px;
  height: 35px;
  min-width: 35px;
  background: #f8fafc;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #667eea;
  font-size: 0.9rem;
  transition: all 0.3s ease;
}

.subgenre-card:hover .subgenre-arrow {
  background: #667eea;
  color: white;
  transform: translateX(3px);
}

/* Empty State */
.empty-state {
  padding: 60px 20px;
}

.empty-state i {
  opacity: 0.3;
}

/* Responsive for Sub-Genres */
@media (max-width: 768px) {
  .subgenre-card {
    flex-direction: column;
    text-align: center;
  }

  .subgenre-arrow {
    display: none;
  }

  .subgenre-meta {
    justify-content: center;
  }
}

/* Pagination Styles */
.pagination {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.page-link {
  border-radius: 8px;
  padding: 10px 16px;
  color: #667eea;
  border: 2px solid #e2e8f0;
  font-weight: 600;
  transition: all 0.3s ease;
}

.page-link:hover {
  background: #667eea;
  border-color: #667eea;
  color: white;
  transform: translateY(-2px);
}

.page-item.active .page-link {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-color: #667eea;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.page-item.disabled .page-link {
  opacity: 0.5;
  cursor: not-allowed;
}

/* ============================================
   BOOKS LISTING PAGE STYLES
   ============================================ */

/* Books Hero Section */
.books-hero {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  padding: 80px 0 40px;
  position: relative;
  overflow: hidden;
}

.books-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1440 320"><path fill="%23ffffff" fill-opacity="0.1" d="M0,96L48,112C96,128,192,160,288,160C384,160,480,128,576,122.7C672,117,768,139,864,154.7C960,171,1056,181,1152,165.3C1248,149,1344,107,1392,85.3L1440,64L1440,320L1392,320C1344,320,1248,320,1152,320C1056,320,960,320,864,320C768,320,672,320,576,320C480,320,384,320,288,320C192,320,96,320,48,320L0,320Z"></path></svg>') bottom;
  background-size: cover;
}

/* Search Box */
.search-box {
  position: relative;
  margin-bottom: 20px;
}

.search-box input {
  padding: 15px 50px 15px 20px;
  border-radius: 50px;
  border: none;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
}

.search-box i {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #667eea;
}

/* Filter Section */
.filter-section {
  background: white;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 30px;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 25px;
  border: 2px solid #e2e8f0;
  background: white;
  color: #4a5568;
  cursor: pointer;
  transition: all 0.3s;
  margin-right: 10px;
  margin-bottom: 10px;
}

.filter-btn:hover,
.filter-btn.active {
  border-color: #667eea;
  background: #667eea;
  color: white;
}

/* Book Cards - Grid Layout (for books listing page) */
#books-container .book-card {
  background: white;
  border-radius: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.08);
  margin-bottom: 50px;
  height: 100%;
  display: flex;
  flex-direction: column;
}

#books-container .book-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
}

#books-container .book-cover {
  height: 400px;
  overflow: hidden;
  position: relative;
  background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

#books-container .book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#books-container .book-cover .overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.7));
  opacity: 0;
  transition: opacity 0.3s;
}

#books-container .book-card:hover .overlay {
  opacity: 1;
}

#books-container .book-info {
  padding: 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

#books-container .book-title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: #2d3748;
  min-height: 60px;
}

#books-container .book-authors {
  color: #667eea;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

#books-container .book-stats {
  display: flex;
  gap: 15px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #e2e8f0;
}

#books-container .stat-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.85rem;
  color: #718096;
}

