/* ===========================
   Authors Grid Page Styles
   =========================== */

/* Authors Grid Layout */
.authors-grid {
  display: grid;
  grid-template-columns: repeat(5, 150px);
  gap: 54px;
  width: max-content;
  margin: 0 auto;
  padding: 0;
  padding-bottom: 40px;
}

.authors-page-heading {
  max-width: 1200px;
  margin: 0 auto;
  margin-top: 30px;
  margin-bottom: 20px;
  padding: 0 0 0 34px;
  font-family: 'Montserrat', sans-serif;
  font-size: 36px;
  font-weight: 700;
  text-transform: none;
  color: black;
}

/* Author Item Styles */
.author-item {
  text-align: center;
}

.author-item a {
  text-decoration: none;
  color: inherit;
}

/* Author Photo Styles */
.author-photo {
  width: 150px;
  height: 200px;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid #ddd;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

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

/* Author Name Styles */
.author-name {
  font-size: 1.1rem;
  margin-top: 8px;
  color: #000000;
}

/* ===========================
   Authors Filter Bar
   =========================== */
.authors-filter-bar {
  width: 95%;
  max-width: 1350px;
  margin: 0 auto 40px;
  margin-bottom: 50px;
  padding: 20px;
  background-color: #f5f5f5;
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.authors-filter-bar .filter-bar-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: flex-end;
}

.authors-filter-bar .filter-dropdown-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 160px;
  flex: 1 1 160px;
}

.authors-filter-bar .filter-dropdown-group label {
  font-size: 13px;
  font-weight: 600;
  color: #343a40;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.authors-filter-bar .filter-dropdown {
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  font-size: 14px;
  color: #1d262f;
  cursor: pointer;
  transition: border-color 0.2s ease;
}

.authors-filter-bar .filter-dropdown:hover {
  border-color: #004F86;
}

.authors-filter-bar .filter-dropdown:focus {
  outline: none;
  border-color: #004F86;
  box-shadow: 0 0 0 2px rgba(0, 79, 134, 0.1);
}

/* Genre Filter Buttons */
.genre-filter-btn {
  padding: 10px 24px;
  background-color: #004F86;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 42px;
  align-self: flex-end;
}

.genre-filter-btn:hover {
  background-color: #003d6b;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.genre-filter-btn.active {
  background-color: #c88a2a;
  box-shadow: 0 0 0 3px rgba(200, 138, 42, 0.2);
}

.genre-filter-btn.active:hover {
  background-color: #a6721f;
}

/* Random Author Button */
.random-author-btn {
  padding: 10px 24px;
  background-color: #004F86;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 42px;
  align-self: flex-end;
}

.random-author-btn:hover {
  background-color: #a6721f;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* Reset Button (reusing books style) */
.authors-filter-bar .reset-filters {
  padding: 10px 24px;
  background-color: #005830;
  color: #ffffff;
  border: none;
  border-radius: 4px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  cursor: pointer;
  transition: all 0.3s ease;
  height: 42px;
  align-self: flex-end;
}

.authors-filter-bar .reset-filters:hover {
  background-color: #00804d;
  transform: translateY(-1px);
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}