/* =============================================================================
   PP Custom Author — Frontend Card Styles
   Injected only on single post pages that have a custom author assigned.
   ============================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

/* ── Card Container ───────────────────────────────────────────────────────── */
.pp-author-card {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 2px solid #e2e8f0;
}

.pp-author-card__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 28px 32px;
  background: linear-gradient(135deg, #00be640f 0%, #fafafa00 100%);
  border-radius: 16px;
  font-family: 'Outfit', -apple-system, sans-serif;
  position: relative;
  overflow: hidden;
}

/* Decorative accent bar */
.pp-author-card__inner::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #00be64 0%, #151f38 100%);
  border-radius: 4px 0 0 4px;
}

/* ── Avatar ───────────────────────────────────────────────────────────────── */
.pp-author-card__avatar {
  flex-shrink: 0;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
  background: #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pp-author-card__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pp-author-card__initials {
  font-size: 28px;
  font-weight: 700;
  color: #0a1628;
  letter-spacing: -1px;
}

/* ── Info ─────────────────────────────────────────────────────────────────── */
.pp-author-card__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pp-author-card__label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin: 0;
}

.pp-author-card__name {
  font-size: 20px;
  font-weight: 700;
  color: #0a1628;
  margin: 0;
  line-height: 1.2;
}

.pp-author-card__designation {
  font-size: 14px;
  color: #475569;
  margin: 0;
  font-weight: 500;
}

/* ── LinkedIn Link ────────────────────────────────────────────────────────── */
.pp-author-card__linkedin {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 8px 16px;
  background: #0a66c2;
  color: #fff !important;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none !important;
  transition: background 0.15s, transform 0.15s, box-shadow 0.15s;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(10, 102, 194, 0.3);
}

.pp-author-card__linkedin:hover {
  background: #004182;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(10, 102, 194, 0.4);
}

.pp-author-card__linkedin svg {
  flex-shrink: 0;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .pp-author-card__inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 24px 20px;
    gap: 16px;
  }

  .pp-author-card__avatar {
    width: 72px;
    height: 72px;
  }

  .pp-author-card__name {
    font-size: 18px;
  }
}