/**
 * Author Personal Blog Pro - Author Profile Widget Stylesheet
 * Scoped under: .apb-widget-author-profile
 */

.apb-author-hero-section,
.apb-widget-author-profile {
  width: 100%;
  display: block;
  margin: 0;
  box-sizing: border-box;
}

.apb-author-hero-section {
  padding: clamp(2.5rem, 5vw, 4.5rem) 0 clamp(2rem, 4vw, 3.5rem);
}

.apb-widget-author-profile .apb-author-hero-card {
  background-color: var(--apb-color-bg-card, #ffffff);
  border: 1px solid var(--apb-color-border, #e2e8f0);
  border-radius: var(--apb-radius-lg, 16px);
  padding: clamp(2rem, 5vw, 4rem);
  box-shadow: var(--apb-shadow-card, 0 10px 30px rgba(0, 0, 0, 0.05));
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.25fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  position: relative;
}

@media (max-width: 860px) {
  .apb-widget-author-profile .apb-author-hero-card {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* Author Portrait Column */
.apb-widget-author-profile .apb-author-portrait-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.apb-widget-author-profile .apb-author-portrait-frame {
  position: relative;
  width: 100%;
  max-width: 380px;
}

.apb-widget-author-profile .apb-author-portrait-img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--apb-radius-md, 10px);
  box-shadow: -14px 20px 38px rgba(15, 23, 42, 0.22);
  transition: transform var(--apb-transition-smooth, 0.3s ease), box-shadow var(--apb-transition-smooth, 0.3s ease);
  display: block;
}

.apb-widget-author-profile .apb-author-portrait-wrap:hover .apb-author-portrait-img {
  transform: translateY(-4px);
  box-shadow: -18px 26px 46px rgba(15, 23, 42, 0.28);
}

.apb-widget-author-profile .apb-author-hero-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--apb-color-primary, #0d5c63);
  color: #ffffff;
  font-size: var(--apb-font-size-xs, 0.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.85rem;
  border-radius: var(--apb-radius-full, 9999px);
  box-shadow: var(--apb-shadow-sm, 0 2px 4px rgba(0, 0, 0, 0.05));
  z-index: 2;
}

.apb-widget-author-profile .apb-author-signature-overlay {
  margin-top: var(--apb-space-3, 1rem);
  font-family: 'Caveat', cursive, var(--apb-font-serif, Georgia, serif);
  font-size: 2.2rem;
  color: var(--apb-color-primary, #0d5c63);
  transform: rotate(-3deg);
  user-select: none;
}

.apb-widget-author-profile .apb-author-signature-img {
  margin-top: var(--apb-space-3, 1rem);
  max-height: 70px;
  width: auto;
  object-fit: contain;
  transform: rotate(-2deg);
}

/* Author Bio Narrative Column */
.apb-widget-author-profile .apb-author-bio-content {
  display: flex;
  flex-direction: column;
}

.apb-widget-author-profile .apb-author-lead-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--apb-color-accent, #c05621);
  font-size: var(--apb-font-size-xs, 0.75rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--apb-space-2, 0.5rem);
}

@media (max-width: 860px) {
  .apb-widget-author-profile .apb-author-lead-badge {
    justify-content: center;
  }
}

.apb-widget-author-profile .apb-author-headline {
  font-family: var(--apb-font-serif, Georgia, serif);
  font-size: clamp(2rem, 3.2vw + 0.3rem, 3rem);
  line-height: 1.15;
  color: var(--apb-color-heading, #1e293b);
  margin-bottom: var(--apb-space-4, 1.5rem);
}

.apb-widget-author-profile .apb-author-narrative {
  font-size: var(--apb-font-size-base, 1rem);
  line-height: var(--apb-line-height-relaxed, 1.75);
  color: var(--apb-color-text, #475569);
  margin-bottom: var(--apb-space-4, 1.5rem);
}

.apb-widget-author-profile .apb-author-narrative p {
  margin-bottom: var(--apb-space-3, 1rem);
}

.apb-widget-author-profile .apb-author-narrative p:last-child {
  margin-bottom: 0;
}

.apb-widget-author-profile .apb-author-social-connections {
  display: flex;
  align-items: center;
  gap: var(--apb-space-3, 0.75rem);
  flex-wrap: wrap;
  margin-top: var(--apb-space-2, 0.5rem);
}

@media (max-width: 860px) {
  .apb-widget-author-profile .apb-author-social-connections {
    justify-content: center;
  }
}

.apb-widget-author-profile .apb-social-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0.55rem 1rem;
  border-radius: var(--apb-radius-full, 9999px);
  font-size: var(--apb-font-size-xs, 0.75rem);
  font-weight: 600;
  background-color: var(--apb-color-bg-alt, #f8fafc);
  color: var(--apb-color-heading, #1e293b);
  border: 1px solid var(--apb-color-border, #e2e8f0);
  text-decoration: none;
  transition: all var(--apb-transition-smooth, 0.3s ease);
}

.apb-widget-author-profile .apb-social-pill svg,
.apb-widget-author-profile .apb-social-pill i {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.apb-widget-author-profile .apb-social-pill:hover {
  background-color: var(--apb-color-primary, #0d5c63);
  color: #ffffff;
  border-color: var(--apb-color-primary, #0d5c63);
  transform: translateY(-2px);
}