/* Section Title */
.section-title {
  margin-bottom: 2.5rem;
}

.section-title h2 {
  font-size: 2rem;
  color: white;
  margin-bottom: 0.5rem;
}

.section-title p {
  color: var(--text-light);
  font-size: 1rem;
}

/* Ebook Grid */
.ebook-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-top: 2rem;
}

.ebook-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: all 0.3s ease;
}

.ebook-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.12);
}

.ebook-cover {
  position: relative;
  overflow: hidden;
  min-height: 220px;
  height: auto;
}

.ebook-cover img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
  aspect-ratio: 3/2;
  transition: transform 0.3s ease;
}

.ebook-card:hover .ebook-cover img {
  transform: scale(1.05);
}

.premium-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(14, 165, 233, 0.9);
  color: white;
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
  z-index: 10;
}

.badge-free {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 18px;
  background: rgba(168, 85, 247, 0.15);
  border: 1px solid rgba(168, 85, 247, 0.3);
  color: rgba(168, 85, 247, 0.9);
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
}

.ebook-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-grow: 1;
}

.ebook-content h3 {
  color: white;
  font-size: 1.1rem;
  line-height: 1.4;
  margin: 0;
}

.ebook-content p {
  color: var(--text-light);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
  flex-grow: 1;
}

.ebook-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-light);
  font-size: 0.9rem;
  gap: 1rem;
  flex-wrap: wrap;
}

.ebook-actions {
  display: flex;
  gap: 0.9rem;
  margin-top: 1rem;
}

.ebook-actions .btn {
  flex: 1;
  text-align: center;
}

/* Responsive Design */
@media (max-width: 900px) {
  .ebook-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  }

  .section-title h2 {
    font-size: 1.6rem;
  }
}

@media (max-width: 600px) {
  .ebook-grid {
    grid-template-columns: 1fr;
  }

  .section-title h2 {
    font-size: 1.4rem;
  }

  .ebook-content {
    padding: 1.2rem;
  }

  .ebook-actions {
    flex-direction: column;
  }

  .ebook-actions .btn {
    width: 100%;
  }
}

/* Legacy styles cleanup */
.ebook-summary-panel {
  display: none;
}

.ebook-info-grid {
  display: none;
}

.pay-card {
  display: none;
}

.copy-button {
  display: none;
}
