/* search.css - Styles for the search page */

/* Search tabs */
.search-tabs {
  display: flex;
  margin-bottom: 20px;
  border-bottom: 1px solid #ddd;
}

.tab-btn {
  margin-right: 5px;
}

/* Search form */
.search-form {
  margin-bottom: 20px;
}

.search-form .form-group {
  display: flex;
  gap: 10px;
}

.search-form input {
  flex: 1;
}

/* Search results */
.search-results {
  background-color: #fff;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.book-card {
  background-color: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s, box-shadow 0.2s;
}

.book-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.book-cover {
  height: 200px;
  overflow: hidden;
}

.book-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-info {
  padding: 15px;
}

.book-title {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 5px;
  color: #2c3e50;
}

.book-author,
.book-year {
  font-size: 14px;
  color: #7f8c8d;
  margin-bottom: 5px;
}

.view-details-btn {
  display: block;
  width: 100%;
  padding: 8px 0;
  background-color: #3498db;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  margin-top: 10px;
  transition: background-color 0.2s;
}

.view-details-btn:hover {
  background-color: #2980b9;
}

/* No results */
.no-results {
  padding: 30px;
  text-align: center;
  color: #7f8c8d;
}

/* Responsive design */
@media (max-width: 768px) {
  .search-results-grid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  }

  .search-form .form-group {
    flex-direction: column;
  }
}
