/* ==========================================================================
   Pakistanipro — Author Archive Template
   Extends main.css · WordPress-ready (author.php)
   ========================================================================== */

@import url('category.css');

/* Author hero / profile box */
.author-hero {
  display: grid;
  gap: 1.75rem;
  padding: 1.5rem 0 2rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid var(--pp-border);
}

@media (min-width: 768px) {
  .author-hero {
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 2rem;
  }
}

.author-hero__box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.75rem 1.5rem;
  background: linear-gradient(165deg, var(--pp-bg-subtle) 0%, var(--pp-bg) 100%);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius-lg);
  box-shadow: var(--pp-shadow-md);
}

@media (min-width: 768px) {
  .author-hero__box {
    min-width: 260px;
    max-width: 280px;
  }
}

.author-hero__avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--pp-bg);
  box-shadow: var(--pp-shadow-md);
  margin-bottom: 1rem;
}

.author-hero__name {
  font-family: var(--pp-font-display);
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  color: var(--pp-ink);
  margin: 0 0 0.35rem;
  letter-spacing: -0.02em;
}

.author-hero__title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--pp-accent);
  margin: 0 0 0.75rem;
}

.author-hero__bio {
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--pp-ink-muted);
  margin: 0;
  max-width: 36rem;
}

@media (min-width: 768px) {
  .author-hero__content {
    padding-top: 0.5rem;
  }

  .author-hero__box .author-hero__bio {
    display: none;
  }
}

@media (max-width: 767px) {
  .author-hero__box .author-hero__bio--box {
    display: none;
  }
}

.author-hero__content .author-hero__bio {
  margin-bottom: 1.25rem;
}

/* Stats */
.author-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 600px) {
  .author-stats {
    grid-template-columns: repeat(4, 1fr);
  }
}

.author-stats__item {
  padding: 1rem 1.1rem;
  background: var(--pp-bg);
  border: 1px solid var(--pp-border);
  border-radius: var(--pp-radius);
  transition: border-color var(--pp-transition), box-shadow var(--pp-transition);
}

.author-stats__item:hover {
  border-color: var(--pp-accent);
  box-shadow: var(--pp-shadow-sm);
}

.author-stats__value {
  display: block;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--pp-ink);
  font-family: var(--pp-font-body);
  margin-bottom: 0.2rem;
}

.author-stats__label {
  font-size: 0.8rem;
  color: var(--pp-ink-soft);
  line-height: 1.35;
}

/* Social */
.author-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .author-hero__content .author-social {
    justify-content: flex-start;
    margin-top: 0;
  }
}

.author-social__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pp-bg);
  border: 1px solid var(--pp-border);
  color: var(--pp-ink-muted);
  transition: background var(--pp-transition), color var(--pp-transition), border-color var(--pp-transition), transform var(--pp-transition);
}

.author-social__link:hover {
  background: var(--pp-accent);
  border-color: var(--pp-accent);
  color: #fff;
  transform: translateY(-2px);
}

.author-social__link svg {
  width: 18px;
  height: 18px;
}

/* Specialties */
.author-specialties {
  margin-bottom: 2rem;
}

.author-specialties__title {
  font-family: var(--pp-font-display);
  font-size: 1.1rem;
  color: var(--pp-ink);
  margin: 0 0 0.75rem;
}

.author-specialties__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.author-specialties__tag {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--pp-accent-dark);
  background: var(--pp-accent-light);
  border-radius: 999px;
  transition: background var(--pp-transition), color var(--pp-transition);
}

.author-specialties__tag:hover {
  background: var(--pp-accent);
  color: #fff;
}

/* Layout */
.author-layout {
  display: grid;
  gap: 2.5rem;
  padding-bottom: 3.5rem;
}

@media (min-width: 1100px) {
  .author-layout {
    grid-template-columns: minmax(0, 1fr) var(--pp-sidebar);
    align-items: start;
  }
}

.author-main {
  min-width: 0;
}

.author-articles__heading {
  margin-bottom: var(--pp-section-header-gap);
}
