/* Updated: 2026-06-17 */
/* ==========================================================================
   Author Box Plugin — author-box.css
   Colours and fonts read from theme CSS variables with hardcoded fallbacks
   so the plugin works on any WordPress site.
   ========================================================================== */

/* Plugin-scoped variables — resolved from theme globals when available */
.author-box {
  --authorbox-accent:       var(--brand-secondary, #ff9f00);
  --authorbox-secondary:    var(--brand-primary, #00abbb);
  --authorbox-bg:           var(--white, #ffffff);
  --authorbox-bg-muted:     var(--surface-100, #f3f4f6);
  --authorbox-text:         var(--text-color, #111827);
  --authorbox-text-muted:   var(--color-muted-foreground, #6b7280);
  --authorbox-font-heading: var(--font-family-heading, system-ui, sans-serif);
  --authorbox-font-body:    var(--font-family-body, system-ui, sans-serif);
}

/* ==========================================================================
   LAYOUT
   ========================================================================== */

.author-box {
  display: flex !important;
  flex-direction: column !important;
  gap: 16px !important;
  padding: 24px !important;
  background: var(--authorbox-bg) !important;
  border: none !important;
  border-radius: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  position: static !important;
}

/* Row: photo + name/title/social side by side */
.author-box-header {
  display: flex !important;
  align-items: flex-start !important;
  gap: 16px !important;
}

/* Identity column: name, title, social icons */
.author-box-identity {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  min-width: 0 !important;
}

/* ==========================================================================
   PHOTO
   ========================================================================== */

.author-box-photo {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid var(--authorbox-bg-muted) !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.10) !important;
  flex-shrink: 0 !important;
  background: var(--authorbox-bg-muted) !important;
}

/* ==========================================================================
   CONTENT
   ========================================================================== */

.author-box-name {
  font-family: var(--authorbox-font-heading) !important;
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--authorbox-text) !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.author-box-title {
  font-family: var(--authorbox-font-body) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  color: var(--authorbox-text-muted) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

/* Bio spans the full width below the photo+identity row */
.author-box-bio {
  font-family: var(--authorbox-font-body) !important;
  font-size: 13px !important;
  color: var(--authorbox-text-muted) !important;
  line-height: 1.6 !important;
  margin: 0 !important;
}

/* ==========================================================================
   SOCIAL LINKS
   ========================================================================== */

.author-box-social {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
  margin-top: 8px !important;
}

.author-box-social-link {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: none !important;
  border: 1.5px solid !important;
  text-decoration: none !important;
  transition: all 0.3s ease !important;
  font-size: 12px !important;
}

.author-box-social-link:hover {
  transform: translateY(-1px) !important;
}

.author-box-social-link.email {
  border-color: var(--authorbox-accent) !important;
  color: var(--authorbox-accent) !important;
}
.author-box-social-link.email:hover {
  background: var(--authorbox-accent) !important;
  color: var(--authorbox-bg) !important;
}

.author-box-social-link.linkedin {
  border-color: var(--authorbox-secondary) !important;
  color: var(--authorbox-secondary) !important;
}
.author-box-social-link.linkedin:hover {
  background: var(--authorbox-secondary) !important;
  color: var(--authorbox-bg) !important;
}

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */

@media (max-width: 768px) {
  .author-box {
    padding: 20px !important;
    gap: 14px !important;
  }

  .author-box-header {
    gap: 12px !important;
  }

  .author-box-photo {
    width: 60px !important;
    height: 60px !important;
  }
}

@media (max-width: 480px) {
  .author-box       { padding: 16px !important; }
  .author-box-photo { width: 52px !important; height: 52px !important; }
  .author-box-name  { font-size: 14px !important; }
  .author-box-bio   { font-size: 12px !important; }
}
