/* ═══════════════════════════════════════════════════════════
   banner.css — Hero Banner Section (neobrutalism)
═══════════════════════════════════════════════════════════ */

.banner-section {
  position: relative;
  overflow: hidden;
  padding: 70px 20px 40px;
  text-align: center;
}

/* Cover — dark monochrome backdrop matching Mathabot's brand,
   with the logo mark watermarked faintly in the corner instead
   of a personal cover photo. */
.banner-cover-wrap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 270px;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 120% 90% at 50% -10%, rgba(255,255,255,0.07), transparent 60%),
    linear-gradient(180deg, #111111 0%, #050505 72%);
}

.banner-cover-wrap::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 380px;
  height: 380px;
  background-image: url('../media/profile/mathabot-mark-white.png');
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.09;
  transform: rotate(-6deg);
  pointer-events: none;
}

.banner-cover-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(5,5,5,0) 26%, var(--bg) 76%);
  pointer-events: none;
}

.banner-fade,
.banner-noise,
.banner-glow,
.banner-bottom-line {
  display: none;
}

.banner-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  max-width: 480px;
  margin: 0 auto;
  padding-top: 0;
}

/* ── Badge — role pill (Programmer · Editor · Gamer) ───────
   Each role gets a tiny hover-independent stagger via nth-child
   so the dot + words don't all read as one flat block. ──────── */
.banner-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1.5px solid rgba(10,10,10,0.14);
  box-shadow: 0 6px 16px -8px rgba(10,10,10,0.18);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
}

.badge-role { white-space: nowrap; }
.badge-sep { color: var(--ink); font-weight: 900; }

/* ── Avatar ─────────────────────────────────────────────── */
.banner-avatar-wrap {
  position: relative;
  width: 96px; height: 96px;
  margin: 8px 0 2px;
}

.avatar-ring {
  position: absolute;
  inset: -7px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.55);
  opacity: 0.7;
}

.avatar-ring::after { content: none; }

/* Dark circle backdrop — the logo mark is white, so it needs a
   dark plate behind it to read clearly (same treatment used on
   Mathabot's WhatsApp profile picture). */
.avatar-inner {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: #0A0A0A;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: 0 8px 20px -6px rgba(10,10,10,0.35);
}

.avatar-photo {
  width: 78%;
  height: 78%;
  object-fit: contain;
  object-position: center;
  display: block;
}

.avatar-status {
  position: absolute;
  bottom: 2px; right: 2px;
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--green);
  border: 2.5px solid var(--white);
  z-index: 2;
  animation: breathe 2.6s ease-in-out infinite;
}

/* ── Name & Tagline ──────────────────────────────────────── */
.banner-name {
  font-size: clamp(2rem, 7vw, 2.7rem);
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--ink);
  line-height: 1.05;
  margin-top: 8px;
}

.banner-tagline {
  font-size: 0.93rem;
  color: var(--ink-soft);
  line-height: 1.6;
  font-weight: 500;
  margin-top: 14px;
  max-width: 320px;
}

.tagline-accent {
  display: inline-block;
  margin-top: 8px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--blue);
  text-transform: uppercase;
}

@media (max-width: 400px) {
  .banner-cover-wrap { height: 250px; }
  .banner-section { padding-top: 60px; }
}

/* ══════════════════════════════════════════════════════════
   DESKTOP (min-width: 540px)
══════════════════════════════════════════════════════════ */
@media (min-width: 540px) {
  .banner-section { padding: 100px 40px 64px; }

  .banner-cover-wrap { height: 350px; }

  .banner-content { max-width: 680px; padding-top: 0; gap: 16px; }

  .banner-avatar-wrap { width: 124px; height: 124px; }

  .banner-name { font-size: clamp(2.6rem, 5vw, 3.5rem); }

  .banner-tagline { font-size: 1.05rem; max-width: 420px; }

  .tagline-accent { font-size: 0.85rem; }
}
