/* Book card component */
.book-card {
  background-color: white;
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-3);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

[data-theme="dark"] .book-card {
  background-color: var(--surface-2);
}

.book-card:hover {
  box-shadow: var(--shadow-3);
}

.book-card__cover {
  width: 100%;
  aspect-ratio: 2/3;
  object-fit: cover;
  background-color: var(--surface-3);
}

.book-card__cover--filled {
  background-color: var(--button-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--button-text);
  font-size: var(--font-size-2);
  font-weight: 600;
}

.book-card__content {
  padding: var(--size-4);
}

.book-card__title {
  font-size: var(--font-size-2);
  margin-bottom: var(--size-2);
  color: var(--text-1);
}

.book-card__author {
  font-size: var(--font-size-1);
  color: var(--link-color);
  margin-bottom: var(--size-2);
}

.book-card__description {
  font-size: var(--font-size-0);
  line-height: 1.5;
  color: var(--text-2);
  margin-bottom: var(--size-3);
}

/* Hero section */
.hero {
  text-align: center;
  padding-block: var(--size-8);
}

.hero__logo {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background-color: white;
  border: 2px solid var(--surface-3);
  margin: 0 auto var(--size-4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-5);
  color: var(--button-bg);
  font-weight: 600;
}

[data-theme="dark"] .hero__logo {
  background-color: var(--surface-2);
}

.hero__logo-img {
  display: inline-block;
  width: 100px;
  height: 100px;
}

.hero__logo-img svg {
  width: 100%;
  height: 100%;
  fill: var(--button-bg);
}

[data-theme="dark"] .hero__logo-img svg {
  fill: white;
}

.hero__tagline {
  font-size: var(--font-size-3);
  color: var(--text-1);
  font-style: italic;
  max-width: 600px;
  margin: 0 auto;
}

/* Book detail */
.book-detail {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: var(--size-6);
  margin-bottom: var(--size-6);
}

@media (max-width: 768px) {
  .book-detail {
    grid-template-columns: 1fr;
  }
}

.book-detail__cover {
  width: 100%;
  border-radius: var(--radius-3);
  box-shadow: var(--shadow-3);
}

.book-detail__cover.book-card__cover--filled {
  aspect-ratio: 2/3;
}

.book-detail__meta {
  margin-bottom: var(--size-4);
  padding-bottom: var(--size-4);
  border-bottom: 1px solid var(--surface-3);
}

.book-detail__author {
  font-size: var(--font-size-3);
  color: var(--link-color);
  margin-bottom: var(--size-2);
}

.book-detail__info {
  font-size: var(--font-size-1);
  color: var(--text-2);
  line-height: 1.8;
}

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

.book-detail__buy-links {
  list-style: none;
  display: flex;
  gap: var(--size-3);
  flex-wrap: wrap;
}

.buy-link {
  display: inline-block;
  padding: var(--size-2) var(--size-4);
  background-color: var(--button-bg);
  color: var(--button-text);
  border-radius: var(--radius-3);
  text-decoration: none;
  font-size: var(--font-size-1);
  transition: opacity 0.2s ease;
}

.buy-link:hover {
  opacity: 0.9;
}

/* Form styles */
.form-group {
  margin-bottom: var(--size-4);
}

.form-label {
  display: block;
  margin-bottom: var(--size-2);
  font-weight: 600;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: var(--size-2) var(--size-3);
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-3);
  font-family: inherit;
  font-size: var(--font-size-1);
  background-color: white;
  color: var(--text-1);
}

[data-theme="dark"] .form-input,
[data-theme="dark"] .form-textarea {
  background-color: var(--surface-2);
}

.form-textarea {
  min-height: 150px;
  resize: vertical;
}

.form-button {
  padding: var(--size-3) var(--size-5);
  background-color: var(--button-bg);
  color: var(--button-text);
  border: none;
  border-radius: var(--radius-3);
  font-size: var(--font-size-1);
  cursor: pointer;
  transition: opacity 0.2s ease;
}

.form-button:hover {
  opacity: 0.9;
}

/* Generic card */
.card {
  background-color: white;
  border: 1px solid var(--surface-3);
  border-radius: var(--radius-3);
  padding: var(--size-5);
}

[data-theme="dark"] .card {
  background-color: var(--surface-2);
}

.card__title {
  font-size: var(--font-size-3);
  margin-bottom: var(--size-2);
  color: var(--text-1);
}

.card__content {
  margin-bottom: var(--size-3);
  line-height: 1.6;
  color: var(--text-2);
}

.card__link {
  display: inline-block;
  color: var(--link-color);
  font-weight: 600;
}
