/* =========================================================
   Aviox Blog — Author Profile Page
   Extends style.css + blog.css + category.css tokens/components.
   ========================================================= */

/* ---------- Profile hero ---------- */
.profile-cover {
  position: relative;
  height: 250px;
  margin-top: var(--nav-h);
  background: var(--grad-primary);
  overflow: hidden;
  isolation: isolate;
}
.profile-cover::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,0.14) 1px, transparent 0);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(85% 140% at 15% 0%, #000 0%, transparent 75%);
  mask-image: radial-gradient(85% 140% at 15% 0%, #000 0%, transparent 75%);
}
.profile-cover::after {
  content: "";
  position: absolute; top: -35%; right: -8%;
  width: 46%; aspect-ratio: 1;
  background: radial-gradient(circle, rgba(0,194,168,0.45) 0%, transparent 70%);
}
/* The cover's own solid gradient background otherwise paints above a
   z-index:-1 .hero-shape child, hiding it entirely — lift it back above. */
.profile-cover .hero-shape { z-index: 0; }
@media (max-width: 575.98px) { .profile-cover { height: 160px; } }

.profile-header {
  position: relative;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  margin-bottom: 2.5rem;
}

.profile-card {
  position: relative;
  max-width: 980px;
  margin: -84px auto 0;
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 2.25rem 2.5rem 2rem;
}
@media (max-width: 767.98px) { .profile-card { margin-top: -64px; padding: 1.75rem 1.5rem; } }

.profile-id-row {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}
@media (max-width: 575.98px) { .profile-id-row { flex-direction: column; align-items: center; text-align: center; } }

.profile-avatar-wrap {
  position: relative;
  width: 136px; height: 136px;
  border-radius: 50%;
  background: var(--grad-primary);
  padding: 4px;
  flex-shrink: 0;
  box-shadow: var(--shadow-glow);
  margin-top: -68px;
}
.profile-avatar-wrap img {
  width: 100%; height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--clr-surface);
  display: block;
}
.verified-badge-corner {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 32px; height: 32px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-accent);
  color: #06342E;
  font-size: 0.95rem;
  border: 3px solid var(--clr-surface);
  box-shadow: var(--shadow-sm);
}
@media (max-width: 575.98px) { .profile-avatar-wrap { width: 116px; height: 116px; margin-top: -78px; } }

.profile-id-info { flex: 1; min-width: 240px; }
.profile-id-info h1 { font-size: clamp(1.7rem, 2.8vw, 2.15rem); margin-bottom: 0.5rem; }
.profile-id-info .role {
  display: inline-flex; align-items: center; gap: 0.4rem;
  color: var(--clr-primary); background: rgba(108,99,255,0.08);
  font-size: 0.78rem; font-weight: 700; padding: 0.3rem 0.8rem; border-radius: var(--radius-pill); margin: 0 0 1rem;
}
.profile-meta-line {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-bottom: 1.1rem;
}
.profile-meta-line span {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  background: var(--clr-surface-2);
  border-radius: var(--radius-pill);
  font-size: 0.8rem;
  color: var(--clr-text-soft);
}
.profile-meta-line i { color: var(--clr-primary); }
.profile-meta-line a { color: inherit; transition: color 0.2s; }
.profile-meta-line a:hover { color: var(--clr-primary); }
.profile-id-info p.bio {
  color: var(--clr-text-soft);
  max-width: 580px;
  margin-bottom: 0;
  font-size: 0.98rem;
  line-height: 1.75;
  padding-left: 1rem;
  border-left: 2px solid var(--clr-border);
}
@media (max-width: 575.98px) {
  .profile-meta-line { justify-content: center; }
  .profile-id-info p.bio { border-left: none; padding-left: 0; text-align: center; }
}

.profile-actions-col {
  display: flex; flex-direction: column; align-items: flex-end; gap: 0.9rem;
  flex-shrink: 0;
}
@media (max-width: 575.98px) { .profile-actions-col { align-items: center; width: 100%; } }
.profile-actions-col .author-social a { width: 38px; height: 38px; font-size: 0.85rem; }

/* ---------- Real, honest quick stats (no manual/fake numbers) ---------- */
.profile-stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--clr-border);
}
.profile-stat {
  display: flex;
  flex-direction: column;
  padding: 0 1.85rem;
  border-right: 1px solid var(--clr-border);
}
.profile-stat:first-child { padding-left: 0; }
.profile-stat:last-child { border-right: none; }
.profile-stat b {
  font-family: var(--font-heading);
  font-size: 1.7rem;
  font-weight: 800;
  font-style: normal;
  line-height: 1.15;
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.profile-stat span { font-size: 0.8rem; color: var(--clr-gray); margin-top: 0.2rem; }
@media (max-width: 575.98px) {
  .profile-stats-row { justify-content: center; }
  .profile-stat { padding: 0 1.25rem; }
  .profile-stat:first-child { padding-left: 1.25rem; }
}

/* ---------- Section shell reused across widgets ---------- */
.subsection-label { font-size: 1.3rem; margin-bottom: 1.5rem; }

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 2.1rem; }
.timeline::before {
  content: ""; position: absolute; left: 7px; top: 6px; bottom: 6px; width: 2px;
  background: var(--clr-border);
}
.timeline-item { position: relative; padding-bottom: 2.1rem; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: ""; position: absolute; left: -2.1rem; top: 4px;
  width: 16px; height: 16px; border-radius: 50%;
  background: var(--grad-primary);
  box-shadow: 0 0 0 4px var(--clr-bg), 0 0 0 5px var(--clr-border);
}
.timeline-item .t-year { font-size: 0.78rem; font-weight: 700; color: var(--clr-primary); letter-spacing: 0.03em; text-transform: uppercase; }
.timeline-item h4 { font-size: 1.05rem; margin: 0.35rem 0 0.35rem; }
.timeline-item p { color: var(--clr-gray); font-size: 0.92rem; margin: 0; }

/* ---------- Awards ---------- */
.award-card {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.3rem;
  border-radius: var(--radius-md);
  background: var(--clr-surface);
  border: 1px solid var(--clr-border);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease-premium), box-shadow 0.35s var(--ease-premium);
  height: 100%;
}
.award-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.award-card .a-icon {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #F5A524, #F0C419);
  color: #402A00; font-size: 1.1rem;
}
.award-card h4 { font-size: 0.98rem; margin-bottom: 0.25rem; }
.award-card span { font-size: 0.8rem; color: var(--clr-gray); }
