/* E-books Page Styles */
.hero-section {
  text-align: center;
  padding: 32px 0;
  background: radial-gradient(600px 200px at 50% 0%, rgba(139, 92, 246, 0.08), transparent);
  border-radius: var(--radius);
  margin-bottom: 32px;
}

.breadcrumb {
  font-size: 14px;
  color: rgb(var(--muted));
  margin-bottom: 12px;
}

.breadcrumb a {
  color: rgb(139 92 246);
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.hero-section h1 {
  font-size: clamp(28px, 4vw, 42px);
  margin-bottom: 12px;
  background: linear-gradient(135deg, rgb(var(--accent-start)), rgb(var(--accent-end)));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.lead {
  font-size: 18px;
  color: rgb(var(--muted));
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}


/* E-books Grid */
.ebooks-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.ebook-card {
  background: rgb(var(--card));
  border: 1px solid rgb(var(--border));
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s ease;
  position: relative;
}

.ebook-card:hover {
  transform: translateY(-4px);
  border-color: rgba(139, 92, 246, 0.4);
  box-shadow: 0 20px 40px rgba(139, 92, 246, 0.15);
}

.ebook-cover {
  height: 200px;
  /* background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(236, 72, 153, 0.15)); */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}


.ebook-img {
  width: 100%;
  height: 100%;
  object-fit: cover !important;
  object-position: top !important;
}

/* img wrap */
.img-wrap{
  width: 100%;
  height: 100%;
}

.book-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(139, 92, 246, 0.9);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}

.ebook-info {
  padding: 20px;
}

.ebook-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
  color: rgb(var(--fg));
}

.ebook-info > h3,
.ebook-info > p{
  text-transform: capitalize;
}

.author {
  color: rgb(var(--muted));
  font-size: 14px;
  margin-bottom: 12px;
}

.book-meta {
  display: flex;
  gap: 16px;
  margin-bottom: 16px;
  font-size: 12px;
  color: rgb(var(--muted));
}

.book-actions {
  display: flex;
  gap: 8px;
}

.book-actions .btn {
  flex: 1;
  font-size: 14px;
  padding: 8px 12px;
}

/* Load More Section */
.load-more-section {
  text-align: center;
  padding: 32px 0;
}

.load-info {
  margin-top: 12px;
  color: rgb(var(--muted));
  font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    padding: 24px 16px;
  }


  .ebooks-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
  }

  .ebook-info {
    padding: 16px;
  }

  .book-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {

  .container {
    width: 80%;
    margin: auto;
  }

  .ebooks-grid {
    grid-template-columns: 1fr;
  }
}

/* Animation for filtered items */
.ebook-card.hidden {
  display: none;
}

.ebook-card.show {
  animation: fadeInUp 0.4s ease forwards;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}