/* ===================================================
   Author Home Page Styles
   =================================================== */

/* Hero Section */
.author-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1rem 2.5rem;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  margin-bottom: 2.5rem;
  position: relative;
}

.author-hero__avatar {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #6366f1, #ec4899, #f59e0b) border-box;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 24px rgba(99, 102, 241, 0.25);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.author-hero__avatar:hover {
  transform: scale(1.04);
  box-shadow: 0 12px 32px rgba(99, 102, 241, 0.35);
}

.author-hero__name {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0 0 0.5rem;
  background: linear-gradient(135deg, #6366f1 0%, #ec4899 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.author-hero__tagline {
  font-size: 1.05rem;
  opacity: 0.75;
  margin: 0 0 1.5rem;
  max-width: 480px;
  line-height: 1.6;
}

.author-hero__social {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 600px;
}

.author-hero__social a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.35rem 0.85rem;
  border-radius: 9999px;
  border: 1.5px solid var(--link-color, #6366f1);
  transition: background 0.2s, color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.author-hero__social a:hover {
  background: var(--link-color, #6366f1);
  color: #fff !important;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.3);
  text-decoration: none;
}

/* Bio Section */
.author-bio {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  line-height: 1.8;
}

.author-bio h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

/* Section Cards */
.author-sections {
  margin-bottom: 2.5rem;
}

.author-sections h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
}

.section-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.section-card {
  display: flex;
  flex-direction: column;
  padding: 1.4rem 1.2rem;
  border-radius: 0.75rem;
  border: 1.5px solid var(--border-color, #e5e7eb);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s;
  position: relative;
  overflow: hidden;
}

.section-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  opacity: 0;
  transition: opacity 0.2s;
}

.section-card:nth-child(1)::before { background: linear-gradient(90deg, #6366f1, #8b5cf6); }
.section-card:nth-child(2)::before { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.section-card:nth-child(3)::before { background: linear-gradient(90deg, #10b981, #06b6d4); }
.section-card:nth-child(4)::before { background: linear-gradient(90deg, #ec4899, #f43f5e); }

.section-card:hover {
  border-color: var(--link-color, #6366f1);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-3px);
  text-decoration: none;
}

.section-card:hover::before {
  opacity: 1;
}

.section-card__icon {
  font-size: 1.8rem;
  margin-bottom: 0.7rem;
}

.section-card:nth-child(1) .section-card__icon { color: #6366f1; }
.section-card:nth-child(2) .section-card__icon { color: #f59e0b; }
.section-card:nth-child(3) .section-card__icon { color: #10b981; }
.section-card:nth-child(4) .section-card__icon { color: #ec4899; }

.section-card__title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.4rem;
}

.section-card__desc {
  font-size: 0.85rem;
  opacity: 0.72;
  line-height: 1.55;
}

/* Media Features */
.author-media {
  margin-bottom: 2.5rem;
}

.author-media h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
}

.author-media ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.author-media ul li {
  padding: 0.75rem 1rem;
  border-left: 3px solid var(--link-color, #6366f1);
  background: var(--card-bg, rgba(99,102,241,0.04));
  border-radius: 0 0.4rem 0.4rem 0;
  line-height: 1.55;
}

/* Latest Posts */
.author-latest {
  margin-bottom: 2rem;
}

.author-latest h2 {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.latest-post-item {
  display: flex;
  flex-direction: column;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--border-color, #e5e7eb);
  text-decoration: none;
}

.latest-post-item:last-child {
  border-bottom: none;
}

.latest-post-item__title {
  font-weight: 600;
}

.latest-post-item__meta {
  font-size: 0.8rem;
  opacity: 0.65;
  margin-top: 0.2rem;
}

.latest-post-item:hover .latest-post-item__title {
  text-decoration: underline;
}

.view-all-link {
  display: inline-block;
  margin-top: 0.9rem;
  font-size: 0.9rem;
}
