/* Estilos específicos para la Biblioteca */

.library-container {
  flex-direction: column;
  max-width: 1000px;
}

.search-section {
  width: 100%;
  margin-bottom: 2rem;
  text-align: center;
}

.search-section input {
  width: 100%;
  max-width: 500px;
  padding: 1rem 1.5rem;
  border-radius: 25px;
  border: 2px solid var(--card-border);
  background-color: var(--bg-color);
  color: var(--texto);
  font-family: 'Quicksand', sans-serif;
  font-size: 1.1rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  outline: none;
}

.search-section input:focus {
  border-color: var(--rosa);
  box-shadow: 0 4px 15px rgba(255, 214, 232, 0.5);
}

.books-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  width: 100%;
}

.book-card {
  background-color: var(--bg-color);
  border: 2px solid var(--card-border);
  border-radius: 15px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  text-decoration: none;
  color: inherit;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border-color: var(--rosa);
}

.book-cover {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, var(--rosa-claro), var(--azul-pastel));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--texto);
  font-weight: bold;
}

.book-card h3 {
  margin: 0.5rem 0;
  color: #e77db0;
  font-size: 1.4rem;
}

.book-card p {
  font-size: 0.95rem;
  color: var(--subtitulo);
  margin-top: 0;
  flex-grow: 1;
}

.no-results {
  grid-column: 1 / -1;
  text-align: center;
  font-size: 1.2rem;
  color: var(--subtitulo);
  padding: 2rem;
}

.back-home-btn {
  background: var(--card-bg);
  border: 2px solid var(--card-border);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  text-decoration: none;
}

.back-home-btn:hover {
  transform: scale(1.1);
  background: var(--rosa-claro);
}

.book-rating {
  margin: 0.5rem 0;
  font-size: 1.1rem;
  font-weight: bold;
}

.book-rating .rating-stars {
  color: #FFD700;
  letter-spacing: 2px;
}
