/* ============================================================
   author_hero_01 — premium scholarly author hero
   Design language: editorial, whitespace-driven, modern academic.
   Palette: driven by theme tokens (--color-primary*, --color-secondary)
   with sensible fallbacks so the section still looks intentional
   when used outside the JWM theme system.
   ============================================================ */

.author-hero-01 {
  /* Theme-driven tokens — these get re-resolved per journal/theme so the
     hero automatically follows the active brand. Fallbacks preserve the
     premium burgundy + gold treatment when no theme vars are set. */
  --ahero-bg:        var(--color-primary-dark, #1a0a0d);
  --ahero-bg-mid:    var(--color-primary,      #2a1014);
  --ahero-accent:    var(--color-secondary,    #d4a14e);
  --ahero-accent-2:  var(--color-secondary,    #e6c889);
  --ahero-fg:        var(--color-bg,           #f4ecec);

  position: relative;
  isolation: isolate;
  padding: clamp(2rem, 3.5vw, 3.5rem) 0 clamp(2rem, 3vw, 3rem);
  color: var(--ahero-fg);
  background:
    radial-gradient(ellipse at top right,
      color-mix(in srgb, var(--ahero-accent) 18%, transparent),
      transparent 55%),
    linear-gradient(180deg,
      var(--ahero-bg) 0%,
      var(--ahero-bg-mid) 55%,
      var(--ahero-bg) 100%);
  overflow: hidden;
  font-family: "Inter", "Helvetica Neue", system-ui, -apple-system, sans-serif;
  font-feature-settings: "ss01", "cv11";
  letter-spacing: -0.01em;
}

/* ── Backdrop layers ────────────────────────────────────────── */

.author-hero-01__backdrop {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.author-hero-01__grain {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.65), transparent 75%);
  opacity: 0.7;
}

.author-hero-01__halo {
  position: absolute;
  top: -10%;
  right: -15%;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--ahero-accent) 18%, transparent),
    transparent 60%);
  filter: blur(60px);
}

/* ── Container ──────────────────────────────────────────────── */

.author-hero-01__container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(1.25rem, 4vw, 2.5rem);
  display: flex;
  flex-direction: column;
  gap: clamp(1.25rem, 2vw, 2rem);
}

/* ── Breadcrumb ─────────────────────────────────────────────── */

.author-hero-01__breadcrumb ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  color: rgba(244, 236, 236, 0.55);
}
.author-hero-01__breadcrumb li {
  display: inline-flex;
  align-items: center;
}
.author-hero-01__breadcrumb li + li::before {
  content: "/";
  margin-right: 0.75rem;
  color: rgba(244, 236, 236, 0.25);
}
.author-hero-01__breadcrumb a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.author-hero-01__breadcrumb a:hover {
  color: var(--ahero-accent-2);
}
.author-hero-01__breadcrumb li[aria-current="page"] a {
  color: rgba(244, 236, 236, 0.95);
  font-weight: 500;
}

/* ── Hero layout: identity on the left, metrics panel on the right ── */

.author-hero-01__layout {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(240px, 1fr);
  gap: clamp(1.5rem, 3vw, 2.75rem);
  align-items: start;
}
@media (max-width: 900px) {
  .author-hero-01__layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

.author-hero-01__identity {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

/* ── Headline row: small portrait + name/role ──────────────── */

.author-hero-01__headline {
  display: flex;
  align-items: center;
  gap: 1.1rem;
  flex-wrap: wrap;
}
.author-hero-01__headline-text {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
  flex: 1 1 auto;
}

/* Portrait next to the name — circular with a gold accent ring,
   layered shadow for depth, and a subtle inner inset highlight. */
.author-hero-01__portrait {
  position: relative;
  margin: 0;
  width: 132px;
  height: 132px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: rgba(244, 236, 236, 0.04);
  padding: 4px;
  /* Outer gold ring + inner subtle highlight via box-shadow stack */
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--ahero-accent) 50%, transparent),
    0 0 0 5px color-mix(in srgb, var(--ahero-accent) 10%, transparent),
    0 24px 48px -22px rgba(0, 0, 0, 0.7),
    0 6px 14px -8px rgba(0, 0, 0, 0.5);
}
.author-hero-01__portrait::after {
  /* Soft golden glow that sits behind the avatar — adds depth without
     overwhelming the editorial palette. Pure cosmetic, non-interactive. */
  content: "";
  position: absolute;
  inset: -14px;
  border-radius: inherit;
  background: radial-gradient(circle,
    color-mix(in srgb, var(--ahero-accent) 20%, transparent),
    transparent 70%);
  z-index: -1;
  filter: blur(8px);
  pointer-events: none;
}
.author-hero-01__portrait img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  border-radius: inherit;
  filter: saturate(1) contrast(1.04);
  transition: transform 0.4s ease;
}
.author-hero-01__portrait:hover img {
  transform: scale(1.04);
}
@media (max-width: 480px) {
  .author-hero-01__portrait {
    width: 96px;
    height: 96px;
    padding: 3px;
  }
}

.author-hero-01__status {
  margin: 0.15rem 0 0;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(244, 236, 236, 0.6);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}
.author-hero-01__status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #6cbf7a;
  box-shadow: 0 0 0 3px rgba(108, 191, 122, 0.18);
}

.author-hero-01__eyebrow {
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ahero-accent);
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}
.author-hero-01__eyebrow-mark {
  width: 28px;
  height: 1px;
  background: currentColor;
  display: inline-block;
}

.author-hero-01__name {
  margin: 0;
  font-size: clamp(1.85rem, 3.4vw, 2.6rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--ahero-fg);
  font-family: "Source Serif Pro", "Lora", Georgia, "Times New Roman", serif;
}

.author-hero-01__role {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 400;
  color: rgba(244, 236, 236, 0.68);
  letter-spacing: 0.01em;
}

.author-hero-01__bio {
  margin: 0;
  max-width: 62ch;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: rgba(244, 236, 236, 0.82);
}

/* ── Meta list (single column: label above value, stacked) ─── */

.author-hero-01__meta {
  margin: 0.5rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(244, 236, 236, 0.08);
}
.author-hero-01__meta-item {
  display: flex;
  align-items: baseline;
  gap: 1.25rem;
}
.author-hero-01__meta-item dt {
  flex: 0 0 100px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 236, 236, 0.45);
}
.author-hero-01__meta-item dd {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 500;
  line-height: 1.45;
  color: rgba(244, 236, 236, 0.92);
}
@media (max-width: 480px) {
  .author-hero-01__meta-item {
    flex-direction: column;
    gap: 0.25rem;
  }
  .author-hero-01__meta-item dt { flex: 0 0 auto; }
}
.author-hero-01__orcid-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}
.author-hero-01__orcid-link:hover {
  color: var(--ahero-accent-2);
}
.author-hero-01__orcid-glyph {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* ── Expertise — inline text links with separators ─────────── */

.author-hero-01__expertise {
  margin: 0;
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(244, 236, 236, 0.78);
}
.author-hero-01__expertise-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(244, 236, 236, 0.45);
  margin-right: 0.65rem;
}
.author-hero-01__expertise-item {
  color: rgba(244, 236, 236, 0.88);
  text-decoration: none;
  border-bottom: 1px dotted rgba(244, 236, 236, 0.25);
  padding-bottom: 1px;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.author-hero-01__expertise-item:hover {
  color: var(--ahero-accent-2);
  border-bottom-color: rgba(230, 200, 137, 0.6);
}
.author-hero-01__expertise-sep {
  color: rgba(244, 236, 236, 0.3);
  margin: 0 0.15rem;
}

/* ── Metrics row ───────────────────────────────────────────── */

.author-hero-01__metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: rgba(244, 236, 236, 0.08);
  border: 1px solid rgba(244, 236, 236, 0.08);
  border-radius: 12px;
  overflow: hidden;
  align-self: start;
}
.author-hero-01__metric {
  background: linear-gradient(180deg, rgba(244, 236, 236, 0.035), rgba(244, 236, 236, 0.012));
  padding: 0.85rem 1rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  transition: background 0.2s ease;
}
/* When the count is odd, the last cell would otherwise look orphaned —
   span it across both columns so the panel stays visually balanced. */
.author-hero-01__metric:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}
.author-hero-01__metric:hover {
  background: linear-gradient(180deg, rgba(244, 236, 236, 0.06), rgba(244, 236, 236, 0.02));
}
.author-hero-01__metric strong {
  font-family: "Source Serif Pro", Georgia, serif;
  font-size: clamp(1.15rem, 1.5vw, 1.45rem);
  font-weight: 600;
  line-height: 1;
  color: var(--ahero-fg);
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.author-hero-01__metric span {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 236, 236, 0.65);
}
.author-hero-01__metric small {
  font-size: 0.6875rem;
  font-weight: 400;
  color: rgba(244, 236, 236, 0.42);
  line-height: 1.35;
}

/* ── Scholarly identity links ──────────────────────────────── */

.author-hero-01__identifiers {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(244, 236, 236, 0.08);
}
.author-hero-01__identifier {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.3rem 0.65rem;
  font-size: 0.75rem;
  border-radius: var(--radius-pill);
  text-decoration: none;
  color: rgba(244, 236, 236, 0.85);
  background: rgba(244, 236, 236, 0.04);
  border: 1px solid rgba(244, 236, 236, 0.08);
  transition: background 0.2s ease, border-color 0.2s ease;
  line-height: 1.4;
}
.author-hero-01__identifier:hover {
  background: rgba(244, 236, 236, 0.08);
  border-color: rgba(244, 236, 236, 0.22);
}
.author-hero-01__identifier-label {
  font-weight: 600;
  letter-spacing: 0.01em;
}
.author-hero-01__identifier-value {
  font-size: 0.6875rem;
  color: rgba(244, 236, 236, 0.45);
}
/* ORCID gets a subtle green accent to visually lead the row */
.author-hero-01__identifier[data-platform="ORCID"] {
  background: rgba(166, 206, 57, 0.1);
  border-color: rgba(166, 206, 57, 0.3);
  color: #d6e89a;
}
.author-hero-01__identifier[data-platform="ORCID"]:hover {
  background: rgba(166, 206, 57, 0.16);
  border-color: rgba(166, 206, 57, 0.5);
}
.author-hero-01__identifier[data-platform="ORCID"] .author-hero-01__identifier-value {
  color: rgba(214, 232, 154, 0.7);
}

/* ── Reduce motion ─────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .author-hero-01 *,
  .author-hero-01 *::before,
  .author-hero-01 *::after {
    transition: none !important;
  }
}

/* ── Mobile refinements ────────────────────────────────────── */

@media (max-width: 640px) {
  .author-hero-01__portrait figure {
    border-radius: 14px;
  }
  .author-hero-01__metric {
    padding: 1.25rem 1.1rem 1.1rem;
  }
  .author-hero-01__button {
    flex: 1 1 auto;
    text-align: center;
  }
  .author-hero-01__identifier {
    flex: 0 1 auto;
  }
}
