/* ==========================================
   Lion Author Archive Styles
   Prefix: .lion_author_
============================================= */

.lion_author_page {
  background: var(--lb-bg, #eef3fb);
  padding: 24px 0 60px;
}

.lion_author_page .container {
  direction: rtl;
}

.lion_author_card {
  background: #ffffff;
  border-radius: 26px;
  box-shadow: var(--lb-shadow, 0 14px 34px rgba(20, 30, 60, 0.12));
  display: grid;
  grid-template-columns: 1.05fr 1.45fr;
  gap: 22px;
  padding: 22px;
  align-items: stretch;
  direction: ltr; /* keep column order: featured (left) + profile (right) */
}

.lion_author_featured,
.lion_author_profile {
  direction: rtl;
}

.lion_author_featured {
  padding-right: 22px;
  border-right: 1px solid #e5e7eb;
}

.lion_author_featured_head {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin-bottom: 14px;
}

.lion_author_featured_title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 14px;
  color: #111827;
}

.lion_author_featured_icon {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.12);
}

.lion_author_featured_card {
  position: relative;
  display: block;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--lb-shadow-soft, 0 8px 20px rgba(20, 30, 60, 0.08));
  text-decoration: none;
  background: #0b1220;
}

.lion_author_featured_card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  display: block;
  object-fit: cover;
}

.lion_author_featured_overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.10) 0%,
    rgba(0, 0, 0, 0.28) 40%,
    rgba(0, 0, 0, 0.70) 100%
  );
}

.lion_author_featured_text {
  position: absolute;
  inset-inline: 14px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  gap: 6px;
  color: #ffffff;
}

.lion_author_featured_post_title {
  font-size: 14px;
  font-weight: 900;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lion_author_featured_post_date {
  font-size: 12px;
  opacity: 0.9;
}

.lion_author_profile_top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.lion_author_lastpost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #6b7280;
  font-size: 12px;
  font-weight: 700;
}

.lion_author_lastpost_label {
  color: #9ca3af;
}

.lion_author_lastpost_sep {
  opacity: 0.6;
}

.lion_author_identity {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lion_author_name {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  color: #111827;
}

.lion_author_avatar img,
.lion_author_avatar .avatar {
  width: 86px;
  height: 86px;
  border-radius: 22px;
  object-fit: cover;
  display: block;
  box-shadow: var(--lb-shadow-soft, 0 8px 20px rgba(20, 30, 60, 0.08));
}

.lion_author_bio {
  margin: 14px 0 0;
  color: #374151;
  font-size: 14px;
  line-height: 2;
}

.lion_author_stats {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.lion_author_stat {
  background: #ffffff;
  border: 1px solid #eef2f7;
  border-radius: 18px;
  padding: 14px 12px;
  box-shadow: 0 10px 26px rgba(20, 30, 60, 0.06);
  display: grid;
  gap: 8px;
  align-content: start;
  text-align: center;
}

.lion_author_stat_icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.12);
}

.lion_author_stat_label {
  font-size: 12px;
  font-weight: 700;
  color: #6b7280;
  line-height: 1.7;
}

.lion_author_stat_value {
  font-size: 15px;
  font-weight: 900;
  color: #111827;
}

.lion_author_section {
  margin-top: 28px;
}

.lion_author_section_head {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 0 0 12px;
}

.lion_author_section_head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  color: #111827;
}

.lion_author_banner {
  margin: 24px 0;
}

.lion_author_banner_link {
  display: block;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--lb-shadow, 0 14px 34px rgba(20, 30, 60, 0.12));
  background: #ffffff;
}

.lion_author_banner_link img {
  width: 100%;
  height: min(160px, 22vw);
  display: block;
  object-fit: cover;
}

.lion_author_empty {
  text-align: center;
  padding: 44px 12px;
  color: #6b7280;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: var(--lb-shadow-soft, 0 8px 20px rgba(20, 30, 60, 0.08));
}

.lion_author_pagination {
  margin-top: 14px;
}

.lion_author_pagination ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.lion_author_pagination a,
.lion_author_pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111827;
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}

.lion_author_pagination .current {
  background: linear-gradient(135deg, #00a693, #4560fc);
  color: #ffffff;
  border-color: transparent;
}

@media (max-width: 1100px) {
  .lion_author_stats {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 980px) {
  .lion_author_card {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .lion_author_featured {
    padding-right: 0;
    border-right: 0;
  }
}

@media (max-width: 560px) {
  .lion_author_stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .lion_author_name {
    font-size: 18px;
  }
  .lion_author_avatar img,
  .lion_author_avatar .avatar {
    width: 76px;
    height: 76px;
    border-radius: 18px;
  }
}

