/* =============================================
   HERO — Top banner + stats row
   ============================================= */

/* Hero banner */
.hero {
  background: var(--accent);
  padding: 3.5rem 2.5rem;
  border-radius: 0 0 var(--radius-xl) var(--radius-xl);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 2.5rem;
}

.hero-av {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 2px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 600;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
  position: relative;
}

/* Photo inside avatar */
.hero-av img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  display: block;
}

/* Fallback initials shown when image fails to load */
.hero-av[data-fallback]::after {
  content: attr(data-fallback);
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 600;
  color: #fff;
}

.hero h1 {
  color: #fff;
  font-size: 26px;
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.hero h2 {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  font-weight: 400;
  margin-bottom: 1rem;
}

.hero-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.htag {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  gap: 5px;
}

.htag i {
  font-size: 13px;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 2rem;
}

.stat {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 1.1rem;
  text-align: center;
  border: 0.5px solid var(--border);
  overflow: hidden;
  position: relative;
}

.stat-n {
  font-size: 26px;
  font-weight: 600;
  color: var(--accent);
  display: block;
  min-height: 34px;
}

.stat-l {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

.stat-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 3px;
  background: var(--light);
  width: 100%;
}

.stat-bar-fill {
  height: 100%;
  background: var(--accent);
  width: 0%;
  border-radius: 0 2px 2px 0;
}
