/*
 * BookShowcase Styles
 *
 * Vertical columns of book covers rising from bottom.
 * Variable sizes with parallax effect (smaller = slower).
 * No shadows, designed to sit in hero background.
 */

.book-showcase {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.3s ease;
}

.book-showcase--transitioning {
  opacity: 0;
}

@keyframes float-up {
  0% {
    transform: translateY(calc(100vh + 100px));
  }
  100% {
    transform: translateY(calc(-100% - 100px));
  }
}

.book-showcase__item {
  position: absolute;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  pointer-events: auto;
  width: fit-content;
  animation: float-up linear infinite;
  box-shadow: 0 55px 50px rgba(0, 0, 0, 0.9);
}

@media (min-width: 768px) {
  .book-showcase__item {
    box-shadow: 0 55px 50px rgba(0, 0, 0, 0.35);
  }
}

/* Size variants - 5 sizes (larger = higher z-index, larger radius) */
.book-showcase__item--xs {
  border-radius: 1px;
  z-index: 1;
  filter: blur(1px);
}

.book-showcase__item--xs .book-showcase__cover {
  width: 50px;
  height: 50px;
}

.book-showcase__item--xs .book-showcase__info {
  width: 50px;
  min-height: 30px;
  padding: 3px 4px;
}

.book-showcase__item--xs .book-showcase__title {
  font-size: 5px;
}

.book-showcase__item--xs .book-showcase__author {
  font-size: 5px;
}

.book-showcase__item--small {
  border-radius: 2px;
  z-index: 2;
}

.book-showcase__item--small .book-showcase__cover {
  width: 70px;
  height: 70px;
}

.book-showcase__item--small .book-showcase__info {
  width: 70px;
  min-height: 40px;
  padding: 4px 6px;
}

.book-showcase__item--small .book-showcase__title {
  font-size: 6px;
}

.book-showcase__item--small .book-showcase__author {
  font-size: 6px;
}

.book-showcase__item--medium {
  border-radius: 2px;
  z-index: 3;
}

.book-showcase__item--medium .book-showcase__cover {
  width: 100px;
  height: 100px;
}

.book-showcase__item--medium .book-showcase__info {
  width: 100px;
  min-height: 55px;
  padding: 6px 8px;
}

.book-showcase__item--medium .book-showcase__title {
  font-size: 8px;
}

.book-showcase__item--medium .book-showcase__author {
  font-size: 8px;
}

.book-showcase__item--large {
  border-radius: 3px;
  z-index: 4;
}

.book-showcase__item--large .book-showcase__cover {
  width: 130px;
  height: 130px;
}

.book-showcase__item--large .book-showcase__info {
  width: 130px;
  min-height: 65px;
  padding: 8px 10px;
}

.book-showcase__item--large .book-showcase__title {
  font-size: 10px;
}

.book-showcase__item--large .book-showcase__author {
  font-size: 10px;
}

.book-showcase__item--xl {
  border-radius: 4px;
  z-index: 5;
}

.book-showcase__item--xl .book-showcase__cover {
  width: 160px;
  height: 160px;
}

.book-showcase__item--xl .book-showcase__info {
  width: 160px;
  min-height: 75px;
  padding: 10px 12px;
}

.book-showcase__item--xl .book-showcase__title {
  font-size: 11px;
}

.book-showcase__item--xl .book-showcase__author {
  font-size: 11px;
}

.book-showcase__cover {
  object-fit: cover;
}

.book-showcase__info {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.book-showcase__title {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  line-height: 1.25;
}

.book-showcase__author {
  font-family: 'Outfit', sans-serif;
  font-weight: 500;
  color: #888;
  line-height: 1.25;
  margin-top: 1px;
}

.book-showcase__texture {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-size: cover;
  background-position: center;
  pointer-events: none;
  border-radius: inherit;
}

/* Tablet */
@media (min-width: 768px) {
  .book-showcase__column {
    gap: 24px;
  }

  .book-showcase__item--xs .book-showcase__cover {
    width: 60px;
    height: 60px;
  }

  .book-showcase__item--xs .book-showcase__info {
    width: 60px;
  }

  .book-showcase__item--small .book-showcase__cover {
    width: 85px;
    height: 85px;
  }

  .book-showcase__item--small .book-showcase__info {
    width: 85px;
  }

  .book-showcase__item--medium .book-showcase__cover {
    width: 120px;
    height: 120px;
  }

  .book-showcase__item--medium .book-showcase__info {
    width: 120px;
  }

  .book-showcase__item--large .book-showcase__cover {
    width: 155px;
    height: 155px;
  }

  .book-showcase__item--large .book-showcase__info {
    width: 155px;
  }

  .book-showcase__item--xl .book-showcase__cover {
    width: 190px;
    height: 190px;
  }

  .book-showcase__item--xl .book-showcase__info {
    width: 190px;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .book-showcase__column {
    gap: 28px;
  }

  .book-showcase__item--xs .book-showcase__cover {
    width: 70px;
    height: 70px;
  }

  .book-showcase__item--xs .book-showcase__info {
    width: 70px;
  }

  .book-showcase__item--small .book-showcase__cover {
    width: 100px;
    height: 100px;
  }

  .book-showcase__item--small .book-showcase__info {
    width: 100px;
  }

  .book-showcase__item--medium .book-showcase__cover {
    width: 140px;
    height: 140px;
  }

  .book-showcase__item--medium .book-showcase__info {
    width: 140px;
  }

  .book-showcase__item--large .book-showcase__cover {
    width: 180px;
    height: 180px;
  }

  .book-showcase__item--large .book-showcase__info {
    width: 180px;
  }

  .book-showcase__item--xl .book-showcase__cover {
    width: 220px;
    height: 220px;
  }

  .book-showcase__item--xl .book-showcase__info {
    width: 220px;
    min-height: 90px;
  }

  .book-showcase__item--xl .book-showcase__title {
    font-size: 16px;
  }

  .book-showcase__item--xl .book-showcase__author {
    font-size: 16px;
  }
}
