/* Cover overlay styles */
.cover-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  z-index: 9999;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}

.cover-overlay.active {
  opacity: 1;
  visibility: visible;
}

.cover-overlay-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.cover-overlay-image {
  max-width: 100%;
  max-height: 90vh;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
}

.cover-overlay-close {
  position: absolute;
  top: -30px;
  right: -30px;
  width: 30px;
  height: 30px;
  background-color: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.cover-overlay-title {
  position: absolute;
  bottom: -40px;
  left: 0;
  width: 100%;
  text-align: center;
  color: white;
  font-size: 18px;
  padding: 10px;
}

/* Enhanced thumbnail styles */
.thumbnail-cell {
  cursor: zoom-in;
  position: relative;
}

.book-thumbnail {
  transition: transform 0.2s ease;
}

.thumbnail-cell:hover .book-thumbnail,
.thumbnail-cell:hover .magazine-thumbnail {
  filter: brightness(0.7) contrast(1.1);
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.3);
}

/* Loading indicator */
.cover-loading {
  color: white;
  font-size: 24px;
  text-align: center;
}