/* ============================================
   ALBASAER — AUTHORS LISTING PAGE CSS (English / LTR)
   Figma: vmTA4IVgGrXqZYp0eeWe2h  node 140-32235
   ============================================ */

/* ============================================
   AUTHORS HERO
   ============================================ */
.authors-hero {
  background: #faf9f6;
  padding: calc(var(--header-height) + 48px) 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

  .authors-hero::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 700px;
    border-bottom: 1px solid #F3F4F6;
    background: #F9F6EF;
    top: -150px;
    left: 50%;
    transform: translateX(-50%);
    pointer-events: none;
  }

.authors-hero__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;

}

.authors-hero__title {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 700;
  color: #101828;
  letter-spacing: -1px;
  line-height: 1.1;
  margin: 0 0 16px;
  font-family: 'Lora', 'Inter', serif;
  /* GSAP will animate from opacity:0 y:30 */
  opacity: 0;
}

.authors-hero__sub {
  font-size: 16px;
  color: #6a7282;
  line-height: 1.75;
  margin: 0 0 40px;
  font-family: 'Inter', sans-serif;
  opacity: 0;
}

.authors-hero__search {
  max-width: 576px;
  margin: 0 auto;
  position: relative;
  opacity: 0;
}

.authors-hero__search-input {
  width: 100%;
  height: 56px;
  padding: 0 56px 0 20px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  font-size: 15px;
  font-family: 'Inter', sans-serif;
  color: #101828;
  outline: none;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.authors-hero__search-input:focus {
  border-color: rgba(138, 21, 56, 0.35);
  box-shadow: 0 0 0 3px rgba(138, 21, 56, 0.08), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.authors-hero__search-input::placeholder {
  color: #99a1af;
}

.authors-hero__search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #99a1af;
  pointer-events: none;
  display: flex;
  align-items: center;
}

/* ============================================
   AUTHORS CATALOG
   ============================================ */
.authors-catalog {
  padding: 48px 0 80px;
  background: #faf9f6;
}

.authors-catalog__container {
  max-width: 1387px;
  margin: 0 auto;
  padding: 0 64px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ============================================
   RESULT BAR
   ============================================ */
.authors-result-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  opacity: 0;
}

.sort-bar__result-label {
  color: #6a7282;
  font-weight: 400;
  font-family: 'Inter', sans-serif;
}

.sort-bar__result-num {
  font-weight: 700;
  color: #101828;
  font-family: 'Inter', sans-serif;
}

/* ============================================
   AUTHORS GRID
   ============================================ */
.authors-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

/* Empty state */
.authors-grid__empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 80px 24px;
  color: #99a1af;
  font-family: 'Inter', sans-serif;
  font-size: 15px;
}

.authors-grid__empty svg {
  opacity: 0.5;
}

/* ============================================
   AUTHOR CARD
   ============================================ */
.author-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #fff;
  border: 1px solid #f3f4f6;
  border-radius: 14px;
  padding: 28px 20px 20px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.25s ease;
  cursor: pointer;
  overflow: hidden;
}

.author-card:hover {
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.10), 0 3px 10px rgba(0, 0, 0, 0.06);
}

/* Portrait image */
.author-card__img-wrap {
  position: relative;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 3px solid #f3f4f6;
}

.author-card__img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.author-card:hover .author-card__img {
  transform: scale(1.05);
}

.author-card__img-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #faf5f6 0%, #efe2e6 100%);
}

.author-card__img-placeholder img {
  width: 44%;
  height: auto;
  opacity: 0.6;
}

/* Text body */
.author-card__body {
  text-align: center;
  margin-top: 16px;
  flex: 1;
  width: 100%;
}

.author-card__name {
  font-size: 1rem;
  font-weight: 700;
  color: #101828;
  margin: 0 0 6px;
  font-family: 'Inter', sans-serif;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.author-card__specialty {
  font-size: 14px;
  font-weight:400;
  color: #6A7282;
  margin: 0;
  font-family: 'Inter', sans-serif;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Footer row */
.author-card__footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f2f4f7;
}

.author-card__browse {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #8a1538;
  font-size: 0.8125rem;
  font-weight: 600;
  font-family: 'Inter', sans-serif;
  transition: gap 0.2s ease, opacity 0.2s ease;
}

.author-card:hover .author-card__browse {
  gap: 6px;
}

.author-card__count {
  font-size: 0.8125rem;
  color: #667085;
  font-family: 'Inter', sans-serif;
  font-weight: 500;
}

/* ============================================
   LOADING STATE
   ============================================ */
.catalog-results.is-loading {
  opacity: 0.55;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

/* ============================================
   PAGINATION
   (Re-declared here so authors.css is self-contained)
   ============================================ */
.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}

.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 6px;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 14px;
  font-weight: 500;
  color: #4a5565;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.page-btn:hover {
  border-color: rgba(138, 21, 56, 0.3);
  color: #8a1538;
  background: rgba(138, 21, 56, 0.04);
}

.page-btn.is-active {
  background: #8a1538;
  border-color: #8a1538;
  color: #fff;
  font-weight: 700;
  pointer-events: none;
}

.page-btn--nav svg {
  transform: scaleX(-1);
}

.page-btn--nav {
  background: #fff;
  border: 1px solid #e5e7eb;
  color: #4a5565;
}

.page-btn--nav:hover {
  border-color: rgba(138, 21, 56, 0.3);
  color: #8a1538;
}

.page-btn--nav[disabled],
.page-btn--nav[aria-disabled="true"] {
  opacity: 0.35;
  pointer-events: none;
}

.page-btn--ellipsis {
  border: none;
  background: none;
  pointer-events: none;
  color: #99a1af;
  cursor: default;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1200px) {
  .authors-catalog__container {
    padding: 0 40px;
  }
}

@media (max-width: 1024px) {
  .authors-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .authors-hero {
    padding: calc(var(--header-height) + 32px) 0 48px;
  }

  .authors-hero__title {
    font-size: 32px;
    letter-spacing: -0.5px;
  }

  .authors-catalog__container {
    padding: 0 20px;
  }

  .authors-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .author-card {
    padding: 20px 14px 16px;
  }

  .author-card__img-wrap {
    width: 96px;
    height: 96px;
  }
}

@media (max-width: 480px) {
  .authors-grid {
    grid-template-columns: 1fr;
    max-width: 340px;
    margin: 0 auto;
  }

  .catalog-pagination {
    gap: 4px;
  }

  .page-btn {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }
}
