/* Books Page Component - Specific Styles Only */
.books-page__title {
  margin-inline: auto;
  text-align: center;
}

@media (max-width: 480px) {
  .book-item__cover {
    width: 160px;
  }
}

.books-page__intro {
  margin-bottom: var(--size-7);
  font-size: var(--font-size-2);
  color: var(--text-2);
}

.books-page__coming-soon {
  margin-top: var(--size-8);
}

.books-page__coming-soon h2 {
  color: var(--text-1);
  margin-bottom: var(--size-4);
}

.books-page__coming-soon p {
  margin-bottom: var(--size-4);
}

/* Book Item Component */
.book-item {
  text-align: center;
  position: relative;
}

.book-item__cover-container {
  position: relative;
  margin-bottom: var(--size-4);
  display: inline-block;
}

.book-item__cover {
  width: 200px;
  aspect-ratio: 2/3;
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  font-size: var(--font-size-0);
  position: relative;
  z-index: 1;
}

.book-item__title {
  font-size: var(--font-size-1);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-1);
  margin: 0;
  letter-spacing: 0.025em;
}

.book-item__link {
  text-decoration: none;
  color: inherit;
  display: inline-flex;
  align-items: center;
}

.book-item__icon {
  width: var(--font-size-0);
  height: var(--font-size-0);
  margin-right: var(--size-1);
  color: var(--text-2);
  flex-shrink: 0;
}

.book-item__link:hover {
  text-decoration: none;
  color: inherit;
}

.book-item__link:hover .book-item__cover {
  transform: translateY(-2px);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

/* Admin Book Item Extensions */
.book-item__meta {
  margin-top: var(--size-3);
  display: flex;
  flex-direction: column;
  gap: var(--size-1);
  font-size: var(--font-size-0);
  color: var(--text-2);
  text-align: center;
}

.book-item__status {
  display: flex;
  justify-content: center;
}

.book-item__date,
.book-item__isbn,
.book-item__platforms {
  font-size: var(--font-size-0);
  color: var(--text-2);
}

.book-item__actions {
  margin-top: var(--size-4);
  display: flex;
  gap: var(--size-2);
  justify-content: center;
  flex-wrap: wrap;
}

.book-item__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* Series Section Styling */
.books__series,
.books__standalone {
  margin-bottom: var(--size-8);
}

.content__section-title {
  font-size: var(--font-size-3);
  font-weight: 600;
  margin-bottom: var(--size-5);
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: var(--size-2);
  width: min(95%, var(--size-page));
  margin-inline: auto;
}

.books__series-link {
  text-decoration: none;
  color: inherit;
}

.books__series-link:hover {
  color: var(--brand-primary);
  text-decoration: none;
}

.books__series-count {
  font-size: var(--font-size-1);
  font-weight: normal;
  color: var(--text-2);
}

/* Content Grid Layout (for books, holdings, etc.) */
.content-page__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--size-6);
  margin-bottom: var(--size-7);
  width: min(95%, var(--size-page));
  margin-inline: auto;
}

/* Book Card Component (Public Books) */
.book-card {
  text-align: center;
  position: relative;
}

.book-card__cover {
  position: relative;
  margin-bottom: var(--size-4);
  display: inline-block;
}

.book-card__placeholder {
  width: 200px;
  aspect-ratio: 2/3;
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  font-size: var(--font-size-0);
  position: relative;
  z-index: 1;
  gap: var(--size-2);
}

.book-card__placeholder-text {
  font-size: var(--font-size-0);
  font-weight: 500;
  text-align: center;
  color: var(--text-2);
}

.book-card__image {
  width: 200px;
  aspect-ratio: 2/3;
  object-fit: cover;
  border-radius: var(--radius-2);
  border: 1px solid var(--surface-3);
}

.book-card__content {
  text-align: center;
}

.book-card__title {
  font-size: var(--font-size-1);
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-1);
  margin: 0 0 var(--size-2) 0;
  letter-spacing: 0.025em;
}

.book-card__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.book-card__link:hover {
  text-decoration: none;
  color: inherit;
}

.book-card__link:hover .book-card__image,
.book-card__link:hover .book-card__placeholder {
  transform: translateY(-2px);
  box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

.book-card__meta {
  margin-top: var(--size-2);
  display: flex;
  flex-direction: column;
  gap: var(--size-1);
  font-size: var(--font-size-0);
  color: var(--text-2);
  text-align: center;
}

.book-card__date {
  font-size: var(--font-size-0);
  color: var(--text-2);
}

.book-card__excerpt {
  font-size: var(--font-size-0);
  color: var(--text-2);
  margin-top: var(--size-2);
  line-height: 1.4;
}

/* Responsive adjustments for book cards */
@media (max-width: 480px) {
  .book-card__image,
  .book-card__placeholder {
    width: 160px;
  }
}

/* Individual Book Page Component */
.book-page {
  width: min(95%, var(--size-page));
  margin: 0 auto;
}

.book-page__warning {
  background-color: var(--yellow-2);
  color: var(--yellow-9);
  padding: var(--size-4);
  border-radius: var(--radius-2);
  margin-bottom: var(--size-6);
  text-align: center;
  font-size: var(--font-size-1);
  border: 1px solid var(--yellow-4);
}

.book-page__hero {
  margin-bottom: var(--size-8);
  padding: var(--size-6) 0;
}

.book-page__hero-content {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: var(--size-8);
  align-items: center;
}

.book-page__cover-large {
  text-align: center;
}

.book-page__cover-placeholder {
  width: 300px;
  aspect-ratio: 2/3;
  background: var(--surface-2);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  font-size: var(--font-size-1);
}

.book-page__cover-large .book__image {
  width: 300px;
  object-fit: cover;
  border-radius: var(--radius-2);
  border: 1px solid var(--surface-3);
}
.book__image {
  width: 100%;
  aspect-ratio: 2/3;
  height: auto;
  border-radius: var(--radius-2);
}

.book-page__details {
  text-align: left;
}

.book-page__title {
  font-size: var(--font-size-fluid-3);
  margin-bottom: var(--size-4);
  color: var(--text-1);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.book-page__subtitle {
  font-size: var(--font-size-2);
  color: var(--text-2);
  margin-bottom: var(--size-6);
  font-style: italic;
}

.book-page__buy-button {
  padding: var(--size-4) var(--size-6);
  font-size: var(--font-size-2);
  font-weight: 600;
  background-color: var(--violet-7);
  color: white;
  border: none;
  border-radius: var(--radius-2);
  cursor: pointer;
  transition: all 150ms cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

.book-page__buy-button:disabled {
  background-color: var(--surface-4);
  color: var(--on-surface-4);
  cursor: not-allowed;
}

.book-page__buy-button:hover:not(:disabled) {
  background-color: var(--violet-8);
}

.book-page__section {
  margin-bottom: var(--size-8);
  padding: var(--size-6) 0;
  border-bottom: 1px solid var(--surface-3);
}

.book-page__section:last-of-type {
  border-bottom: none;
}

.book-page__section h2 {
  font-size: var(--font-size-4);
  margin-bottom: var(--size-5);
  color: var(--text-1);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.025em;
}

.book-page__content {
  font-size: 18px;
  line-height: 1.75;  /* 31.5px */
  color: var(--text-1);
}

.book-page__content p {
  margin-bottom: var(--size-5);
}

.book-page__newsletter {
  margin-top: var(--size-8);
  padding-top: var(--size-6);
  border-top: 1px solid var(--surface-3);
}


/* Book Grid for Related Books */
.book-grid {
  display: grid;
  gap: var(--size-6);
  margin-top: var(--size-6);
}

/* Book Show Page Specific Styles */
.book__publication-date {
  text-align: center;
  margin-bottom: var(--size-4);
  font-size: var(--font-size-1);
  color: var(--text-2);
}