/* Clean recommendations layout - No conflicts */
.books-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  margin-bottom: 30px;
}

.book-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  margin-top: 40px;
}

.book-card.top-match {
  background-color: rgba(255, 245, 220, 0.95);
  border: 2px solid #d4af37;
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.top-recommendation-message {
  background-color: #d4af37;
  color: #fff;
  font-weight: bold;
  padding: 10px 15px;
  border-radius: 5px 5px 0 0;
  text-align: center;
  position: absolute;
  top: -40px;
  left: 0;
  right: 0;
  width: 100%;
  box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.book-cover {
  display: flex;
  justify-content: center;
  margin-bottom: 15px;
}

.thumbnail {
  max-width: 150px;
  max-height: 225px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.book-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.book-info h3 {
  margin-top: 10px;
  margin-bottom: 10px;
  text-align: center;
}

.match-percent {
  font-weight: bold;
  margin-bottom: 15px;
  color: #5D4777;
  text-align: center;
}

.top-match .match-percent {
  color: #d4af37;
}

.book-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.book-actions a {
  display: block;
  width: 100%;
  padding: 10px 16px;
  border-radius: 4px;
  text-decoration: none;
  font-weight: bold;
  text-align: center;
  box-sizing: border-box;
}

.btn-info {
  background-color: #3498db;
  color: white;
}

.btn-secondary {
  background-color: #5D4777;
  color: white;
}

.btn-alternative {
  background-color: #8a8395;
  color: white;
}

.btn:hover {
  opacity: 0.9;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .books-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .books-container {
    grid-template-columns: 1fr;
  }
}
