/* Background Image Styles */
body {
  position: relative;
}

body::before {
  content: '';
  position: fixed;
  bottom: 0;
  right: 0;
  width: 100%;
  height: 100%;
  background-image: url('/assets/images/assets_task_01k4nx4059f12afnq5yatd1nvg_1757376841_img_1.webp');
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: bottom;
  z-index: -1;
  opacity: 0.2;
  filter: grayscale(75%);
  pointer-events: none;
}

/* Sticky Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: rgba(255, 255, 255, 1.0);
  box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

/* Adjust opacity for different screen sizes */
@media (max-width: 768px) {
  body::before {
    opacity: 0.15;
  }
}

@media (max-width: 480px) {
  body::before {
    opacity: 0.1;
  }
}

/* Books List Styles */
.books-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}

.book-item {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background: white;
  display: flex;
  flex-direction: row;
  align-items: flex-start;
}

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

.book-item a {
  display: flex;
  flex-direction: row;
  text-decoration: none;
  color: inherit;
  width: 100%;
  align-items: flex-start;
}

.book-info {
  padding: 1rem;
  background: white;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.book-info h3 {
  margin: 0 0 0.5rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.3;
  color: #333;
}

.book-info p {
  margin: 0 0 0.5rem 0;
  font-size: 1rem;
  color: #666;
}

.book-info small {
  font-size: 0.9rem;
  color: #888;
  display: block;
  margin-top: 0.5rem;
  line-height: 1.4;
}

.book-item img {
  width: 120px;
  height: auto;
  aspect-ratio: 2/3;
  object-fit: cover;
  display: block;
  flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .books-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .book-item img {
    width: 100px;
  }
  
  .book-info {
    padding: 0.75rem;
  }
  
  .book-info h3 {
    font-size: 1.1rem;
  }
  
  .book-info p {
    font-size: 0.9rem;
  }
  
  .book-info small {
    font-size: 0.8rem;
  }
}

@media (max-width: 480px) {
  .book-item img {
    width: 80px;
  }
  
  .book-info {
    padding: 0.5rem;
  }
  
  .book-info h3 {
    font-size: 1rem;
  }
  
  .book-info p {
    font-size: 0.85rem;
  }
}
