/**
 * author.css — author archive deltas (author.php), ported from author.html.
 *
 * Enqueued on is_author() AFTER css/blog.css, which supplies the :root palette,
 * .btn family, shared .blog-card grid, pagination, and the light-background
 * .breadcrumb. This file adds only the blue author hero, the white breadcrumb
 * override for that hero, the profile/stats/social block, and the expertise
 * strip. Theme chrome comes from header.css / footer.css.
 */

/* ===== AUTHOR HERO ===== */
.author-hero {
  background: linear-gradient(135deg, #0D47A1 0%, #1565C0 55%, #1976D2 100%);
  position: relative;
  overflow: hidden;
  padding: 56px 0 80px;
}

.author-hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 48px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48'%3E%3Cpath fill='%23f5f8ff' d='M0,30 C360,0 1080,48 1440,16 L1440,48 L0,48 Z'/%3E%3C/svg%3E") no-repeat bottom center / cover;
}

.author-hero .hero-shape {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .07);
}

.author-hero .container {
  position: relative;
  z-index: 1;
}

/* White breadcrumb on the blue hero (overrides blog.css light-bg breadcrumb). */
.author-hero .breadcrumb {
  color: rgba(255, 255, 255, .65);
  margin-bottom: 28px;
}

.author-hero .breadcrumb a {
  color: rgba(255, 255, 255, .65);
}

.author-hero .breadcrumb a:hover {
  color: var(--accent);
}

.author-hero .breadcrumb-sep {
  color: rgba(255, 255, 255, .35);
}

.author-hero .breadcrumb-current {
  color: var(--accent);
  font-weight: 600;
}

/* ===== PROFILE ===== */
.author-profile {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 36px;
  align-items: start;
}

.author-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.author-avatar {
  width: 130px;
  height: 130px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid rgba(255, 255, 255, .3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, .2);
}

.author-verified {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 32px;
  height: 32px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-dark);
  font-size: 14px;
  border: 3px solid var(--white);
}

.author-archive-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: var(--accent);
  margin-bottom: 8px;
}

.author-name {
  font-family: var(--font-head);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  color: var(--white);
  margin-bottom: 6px;
}

.author-title {
  font-size: 15px;
  color: rgba(255, 255, 255, .75);
  margin-bottom: 18px;
}

.author-bio-hero {
  font-size: 15px;
  color: rgba(255, 255, 255, .7);
  line-height: 1.7;
  max-width: 640px;
  margin-bottom: 22px;
}

.author-stats-row {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.author-stat {
  text-align: center;
}

.author-stat + .author-stat {
  border-left: 1px solid rgba(255, 255, 255, .2);
  padding-left: 28px;
}

.author-stat strong {
  display: block;
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 800;
  color: var(--white);
}

.author-stat span {
  font-size: 12px;
  color: rgba(255, 255, 255, .65);
}

.author-social-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.author-social-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 18px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid rgba(255, 255, 255, .3);
  color: var(--white);
  text-decoration: none;
  transition: var(--transition);
}

.author-social-btn:hover {
  background: rgba(255, 255, 255, .15);
  border-color: rgba(255, 255, 255, .5);
}

.author-social-btn.whatsapp {
  background: rgba(37, 211, 102, .2);
  border-color: rgba(37, 211, 102, .4);
  color: #9ef7be;
}

.author-social-btn.whatsapp:hover {
  background: rgba(37, 211, 102, .3);
}

/* ===== EXPERTISE STRIP ===== */
.expertise-section {
  background: var(--white);
  padding: 48px 0 0;
}

.expertise-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.expertise-card {
  background: var(--light-gray);
  border-radius: var(--radius);
  padding: 18px;
  border: 1px solid var(--border);
  text-align: center;
  transition: var(--transition);
}

.expertise-card:hover {
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transform: translateY(-2px);
}

.expertise-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin: 0 auto 12px;
}

.expertise-label {
  font-family: var(--font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--dark);
}

/* ===== POSTS SECTION HEADER ===== */
.author-page .blog-section-header {
  margin-bottom: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.author-page .blog-section-title {
  font-family: var(--font-head);
  font-size: 22px;
  font-weight: 700;
  color: var(--dark);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .author-profile {
    grid-template-columns: 1fr;
  }

  .expertise-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .expertise-grid {
    grid-template-columns: 1fr 1fr;
  }

  .author-stats-row {
    gap: 16px;
  }

  .author-stat + .author-stat {
    padding-left: 16px;
  }
}
