/* ===== Book Showcase Component ===== */
.books-showcase {
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 20px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.showcase-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.75rem;
  position: relative;
}

.showcase-header h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.01em;
  color: #1e293b;
  position: relative;
  padding-bottom: 0.25rem;
}

.showcase-header h2::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.5rem;
  height: 3px;
  background: linear-gradient(85deg, #fff13b, #f752bc);
  border-radius: 1px;
}

.showcase-header a {
  color: #1e293b;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  position: relative;
  transition: all 0.2s ease;
  padding-right: 1.5rem;
}

.showcase-header a:hover {
  color: #f752bc;
}

.showcase-header a::after {
  content: '→';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  transition: transform 0.2s ease;
}

.showcase-header a:hover::after {
  transform: translate(3px, -50%);
}

.books-container {
  position: relative;
  padding: 0 3rem;
  margin-bottom: 1.5rem;
}

.books-slider {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  transition: transform 0.3s ease;
}

.book-card {
  display: none;
  position: relative;
  aspect-ratio: 3/4;
  border-radius: 0.75rem;
  overflow: hidden;
  text-decoration: none;
  transition: transform 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  border: 1px solid rgba(0, 0, 0, 0.08);
  background-color: #f8fafc;
}

.book-card.visible {
  display: block;
}

.book-card:hover {
  transform: translateY(-6px);
  border-color: rgba(0, 0, 0, 0.12);
}

.buy-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.25s ease;
}

.buy-overlay span {
  color: white;
  font-weight: 600;
  font-size: 1rem;
  padding: 0.75rem 1.5rem;
  border: 2px solid white;
  border-radius: 2rem;
  transition: all 0.2s ease;
}

.book-card:hover .buy-overlay {
  opacity: 1;
}

.book-card:hover .buy-overlay span {
  transform: scale(1.05);
}

.book-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-color: #f8fafc;
}

.rating-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.3rem 0.75rem;
  border-radius: 2rem;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  border: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(10px);
  z-index: 2;
}

.rating-badge .star {
  color: #f59e0b;
  font-size: 0.95rem;
}

.rating-value {
  font-weight: 700;
  color: #222;
  font-size: 0.95rem;
}

.book-title {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.7) 70%, rgba(0, 0, 0, 0) 100%);
  color: white;
  padding: 1.5rem 1rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.3;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.book-card:hover .book-title {
  opacity: 0;
  transform: translateY(10px);
}

.nav-button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 50%;
  width: 2.75rem;
  height: 2.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 20;
}

.nav-button:hover {
  border-color: rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.05);
}

.nav-button:focus {
  outline: none;
  border-color: #f752bc;
}

.nav-button.prev {
  left: 0;
}

.nav-button.next {
  right: 0;
}

.nav-button svg {
  width: 1.25rem;
  height: 1.25rem;
  color: #333;
}

.position-indicators {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.position-indicator {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background-color: #e2e8f0;
  transition: all 0.2s ease;
  cursor: pointer;
}

.position-indicator.active {
  background: linear-gradient(85deg, #fff13b, #f752bc);
  transform: scale(1.2);
}

.disclaimer {
  text-align: center;
  color: #64748b;
  font-size: 0.8125rem;
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid #f1f5f9;
}

.disclaimer a {
  color: #1e293b;
  text-decoration: none;
  font-weight: 600;
  position: relative;
  transition: color 0.2s ease;
}

.disclaimer a:hover {
  color: #f752bc;
}

.disclaimer a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 0;
  height: 1px;
  background: linear-gradient(85deg, #fff13b, #f752bc);
  transition: width 0.2s ease;
}

.disclaimer a:hover::after {
  width: 100%;
}