/* Book Clubs Page */

/* Full-width section bands */
.book-club-band {
  position: relative;
  margin-left: -1rem;
  margin-right: -1rem;
  padding: 2.5rem 2.5rem 2rem;
  border-bottom: 3px solid rgba(0, 0, 0, 0.06);
}

.book-club-band:last-child {
  border-bottom: none;
}

.book-club-band.band-white {
  background-color: #ffffff;
}

.book-club-band.band-gray {
  background-color: #f0f1f3;
}

.book-club-section {
  max-width: 1200px;
  margin: 0 auto;
}

/* Header card */
.book-club-header {
  max-width: 1200px;
  margin: 0 auto 1rem;
  border-radius: 12px;
  padding: 1.5rem 1.75rem;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.band-white .book-club-header {
  background: linear-gradient(135deg, #1c375b 0%, #2d5a8e 50%, #1c375b 100%);
}

.band-gray .book-club-header {
  background: linear-gradient(135deg, #4a2c2a 0%, #7a4f3a 50%, #4a2c2a 100%);
}

.book-club-header h2 {
  margin: 0;
  font-size: 1.6rem;
  color: #fff;
  line-height: 1;
}

.book-club-header .flex-row i {
  color: #ffffff;
}

.book-club-header p {
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.95rem;
  line-height: 1.6;
  margin: 0;
}

.book-club-details {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  margin-top: 0.5rem;
  margin-bottom: 0;
  padding-top: 0.5rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.3);
}

.book-club-details .flex-row {
  gap: .5rem;
}

.book-club-details .flex-row i {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}

.book-club-details .flex-row span {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.9);
}

/* Books heading */
.book-list-heading {
  font-size: 1rem;
  font-weight: 500;
  color: #888;
  margin: 1.25rem 0 0.75rem;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 0.8rem;
}

/* Legend */
.book-club-legend {
  display: flex;
  justify-content: center;
  gap: 1rem;
  padding: 0 1rem 0.5rem;
  font-size: 0.75rem;
  color: #888;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.legend-item .format-btn-libby,
.legend-item .format-btn-hoopla {
  width: 20px;
  height: 20px;
  font-size: 0.75rem;
}

.legend-item .format-btn-cd {
  font-size: 0.75rem;
  padding: 0.1rem 0.35rem;
}

/* Horizontal scroll carousel */
.book-list {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 1rem;
  scrollbar-width: thin;
  scrollbar-color: #ccc transparent;
}

.book-list::-webkit-scrollbar {
  height: 6px;
}

.book-list::-webkit-scrollbar-track {
  background: transparent;
}

.book-list::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

/* Book Cards */
.book-card {
  background: #fff;
  border-radius: 15px;
  border: 1px solid #ddd;
  box-shadow: 0 2px 8px rgb(0 0 0 / 10%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-width: 280px;
  max-width: 310px;
  flex-shrink: 0;
  scroll-snap-align: start;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.book-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgb(0 0 0 / 15%);
}

.book-card-image {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1.5rem;
  background: #f9f9f9;
  border-bottom: 1px solid #eee;
}

.book-card-image img {
  max-height: 200px;
  border-radius: 4px;
  box-shadow: 2px 2px 8px rgb(0 0 0 / 15%);
}

.book-date-badge {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  background: #1c375b;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 0.3rem;
  box-shadow: 0 2px 6px rgb(0 0 0 / 20%);
}

.book-date-badge i {
  font-size: 0.8rem;
}

.book-card-body {
  padding: 1rem 1.25rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-card-body h3 {
  font-size: 1.1rem;
  color: #1c375b;
  margin: 0 0 0.25rem;
}

.book-card-author {
  font-size: 0.9rem;
  color: #666;
  margin: 0 0 0.75rem;
}

/* Available Formats */
.book-formats-section {
  margin-bottom: 0;
}

.book-formats-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.book-format-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.35rem 0;
  border-bottom: 1px solid #eee;
}

.book-format-row:last-child {
  border-bottom: none;
}

.book-format-left {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.book-format-left i {
  color: #1c375b;
  font-size: 0.9rem;
  width: 1rem;
  text-align: center;
}

.book-format-label {
  font-weight: 600;
  color: #333;
  white-space: nowrap;
}

.book-format-value {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  flex-shrink: 0;
}

.format-yes {
  color: #16a34a;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.format-no {
  color: #dc2626;
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.format-btn {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.5rem;
  border-radius: 15px;
  text-decoration: none;
  transition: opacity 0.2s ease;
}

.format-btn:hover {
  opacity: 0.8;
}

.format-btn-libby {
  background-color: #E64C7E;
  color: #ffffff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 700;
}

.format-btn-hoopla {
  background-color: #2050dd;
  color: #ffffff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 700;
}

.format-btn-cd {
  background-color: #f0f0f0;
  color: #444;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 5px;
}

/* Discussion Questions button */
.book-discussion-link {
  margin-top: auto;
  padding-top: 0.5rem;
}

/* Register button inside book card */
.book-register-link {
  margin-top: 0.5rem;
}

.book-register-btn {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  background-color: #1c375b;
  padding: 0.5rem 1rem;
  border-radius: 15px;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.book-register-btn:hover {
  background-color: #152d4a;
}

.book-discussion-link a {
  display: block;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: #333;
  background-color: #fff;
  border: 1px solid #ddd;
  padding: 0.5rem 1rem;
  border-radius: 15px;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.book-discussion-link a:hover {
  background-color: #f5f5f5;
  border-color: #bbb;
}

/* Resources section */
.book-club-resources {
  max-width: 1000px;
  margin: 0 auto;
}

.book-club-resources h3 {
  margin-bottom: 0.5rem;
}

.book-club-resources ul {
  padding-left: 1.25rem;
}

.book-club-resources li {
  margin-bottom: 0.4rem;
}

@media (max-width: 768px) {
  .book-club-band {
    padding: 2rem 1rem 1.5rem;
  }

  .book-club-details {
    flex-direction: column;
    gap: 1.2rem;
  }

  .book-card {
    min-width: 250px;
  }

  .book-list {
    justify-content: flex-start;
  }
}
