/* ============================================================
   Hub · Página da BIO · Diogo Brito
   Variant B — Premium Texturizado
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: var(--font-body);
  background: #0a0908;
  color: #fff;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

/* Outer dark "stage" só aparece no desktop */
@media (min-width: 481px) {
  body {
    display: grid;
    place-items: center;
    background:
      radial-gradient(circle at 50% 50%, #1a1916, #0a0908 70%);
    padding: 24px;
  }
}

.hub-frame {
  position: relative;
  width: 100%;
  min-height: 100vh;
  max-width: 480px;
  margin: 0 auto;
  background: #14130F;
  color: #fff;
  overflow: hidden;
  font-family: var(--font-body);
  display: flex;
  flex-direction: column;
}

@media (min-width: 481px) {
  .hub-frame {
    min-height: auto;
    height: min(820px, calc(100vh - 48px));
    max-width: 420px;
    border-radius: 36px;
    box-shadow:
      0 0 0 1px rgba(255,255,255,0.06),
      0 60px 120px rgba(0,0,0,0.6),
      0 30px 60px rgba(0,0,0,0.4);
  }
}

/* Orbs de fundo */
.hub-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 16%, rgba(128, 164, 34, 0.55), transparent 42%),
    radial-gradient(circle at 82% 82%, rgba(154, 35, 35, 0.42), transparent 44%),
    radial-gradient(circle at 50% 50%, rgba(94, 122, 22, 0.16), transparent 60%);
  filter: blur(2px);
  pointer-events: none;
  z-index: 1;
}

/* Textura sutil */
.hub-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.012) 0 1px, transparent 1px 2px);
  pointer-events: none;
  z-index: 1;
}

.hub-shell {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 32px 24px 22px;
}

/* ============================================================
   HEADER
   ============================================================ */
.hub-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 28px;
}
/* ============================================================
   LOGO no header — vidro fosco (Opção 3) + float sutil + halo respirando
   ============================================================ */
.hub-mark {
  position: relative;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin-bottom: 18px;
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.30),
    inset 0 -2px 6px rgba(0,0,0,0.18),
    0 18px 38px rgba(0,0,0,0.55);
  animation: hub-float 5.5s ease-in-out infinite;
  will-change: transform;
  overflow: visible;
}
/* halo verde "respirando" atrás da logo */
.hub-mark::before {
  content: "";
  position: absolute;
  inset: -18%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(128,164,34,0.45) 0%, transparent 60%);
  filter: blur(10px);
  z-index: -1;
  animation: hub-halo 4.8s ease-in-out infinite;
}
/* reflexo interno (vidro) */
.hub-mark::after {
  content: "";
  position: absolute;
  inset: 4px;
  border-radius: 50%;
  background: radial-gradient(ellipse 80% 50% at 50% 8%, rgba(255,255,255,0.30), transparent 60%);
  pointer-events: none;
  z-index: 1;
}
.hub-mark img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: block;
  width: 72px;
  height: 72px;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.40));
}
.hub-mark svg { width: 64px; height: 64px; }

@keyframes hub-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-4px); }
}
@keyframes hub-halo {
  0%, 100% { opacity: 0.85; transform: scale(1); }
  50%      { opacity: 1;    transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .hub-mark, .hub-mark::before { animation: none; }
}

.hub-name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.025em;
  line-height: 1.05;
  margin: 0 0 6px;
  color: #fff;
}
.hub-name em {
  font-style: italic;
  color: var(--brand-green-200);
  font-weight: 600;
}
.hub-crn {
  font-size: 11px;
  color: rgba(255,255,255,0.5);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ============================================================
   BOTÕES
   ============================================================ */
.hub-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  justify-content: center;
}
.hub-btn {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px 12px 12px;
  border-radius: 22px;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.06),
    0 8px 24px rgba(0,0,0,0.32);
  transition:
    transform var(--dur-base) var(--ease-out),
    box-shadow var(--dur-slow) var(--ease-out),
    background var(--dur-base) var(--ease-standard),
    border-color var(--dur-base) var(--ease-standard);
}
.hub-btn:hover { transform: translateY(-1px); }
.hub-btn:active { transform: translateY(0); }

.hub-btn-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.hub-btn-icon svg { width: 26px; height: 26px; }

/* Foto circular dentro do botão (Opção A · Recorte fotográfico) */
.hub-btn-photo {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 4px 10px rgba(0,0,0,0.28);
}
.hub-btn-photo img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Diogo (foto fotográfica): borda verde discreta */
.btn-acomp .hub-btn-photo {
  background: var(--brand-green-900, #3d4f0a);
  border-color: rgba(255,255,255,0.22);
}

/* Balança (PNG transparente): fundo branco com leve padding */
.btn-aval .hub-btn-photo {
  background: #fff;
  border-color: rgba(20,19,15,0.10);
}
.btn-aval .hub-btn-photo img { padding: 4px; object-fit: contain; }

/* Guia (composição cheia, fundo branco para destacar as cores) */
.btn-caneta .hub-btn-photo {
  background: #fff;
  border-color: rgba(20,19,15,0.10);
}

.hub-btn-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.hub-btn-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.018em;
  line-height: 1.15;
}
.hub-btn-sub {
  font-size: 11px;
  line-height: 1.35;
  font-weight: 500;
}
.hub-btn-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  transition: transform var(--dur-base) var(--ease-out);
}
.hub-btn-arrow svg { width: 14px; height: 14px; }
.hub-btn:hover .hub-btn-arrow { transform: translateX(3px); }

/* — Acompanhamento (verde) — */
.btn-acomp {
  background: linear-gradient(135deg, rgba(128, 164, 34, 0.95) 0%, rgba(94, 122, 22, 0.95) 100%);
  border-color: rgba(255,255,255,0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 12px 32px rgba(94, 122, 22, 0.35);
  color: #fff;
}
.btn-acomp:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 16px 38px rgba(94, 122, 22, 0.45);
}
/* Quando o ícone é foto, NUNCA aplicar background colorido por cima */
.btn-acomp .hub-btn-icon:not(.hub-btn-photo) { background: rgba(255,255,255,0.18); color: #fff; }
.btn-acomp .hub-btn-sub { color: rgba(255,255,255,0.85); }
.btn-acomp .hub-btn-arrow { background: rgba(255,255,255,0.18); color: #fff; }

/* — Avaliação (branco) — */
.btn-aval {
  background: rgba(255,255,255,0.96);
  color: var(--stone-900);
  border-color: rgba(255,255,255,0.20);
}
.btn-aval:hover { background: #fff; }
.btn-aval .hub-btn-icon:not(.hub-btn-photo) { background: var(--brand-green-50); color: var(--brand-green-700); }
.btn-aval .hub-btn-title { color: var(--stone-900); }
.btn-aval .hub-btn-sub { color: var(--stone-600); }
.btn-aval .hub-btn-arrow { background: var(--stone-100); color: var(--stone-700); }

/* — Caneta (vermelho) — */
.btn-caneta {
  background: linear-gradient(135deg, rgba(178, 70, 70, 0.95) 0%, rgba(126, 27, 27, 0.95) 100%);
  border-color: rgba(255,255,255,0.16);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.18),
    0 12px 32px rgba(126, 27, 27, 0.40);
  color: #fff;
}
.btn-caneta:hover {
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.22),
    0 16px 38px rgba(126, 27, 27, 0.50);
}
.btn-caneta .hub-btn-icon:not(.hub-btn-photo) { background: rgba(255,255,255,0.18); color: #fff; }
.btn-caneta .hub-btn-sub { color: rgba(255,255,255,0.85); }
.btn-caneta .hub-btn-arrow { background: rgba(255,255,255,0.18); color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */
.hub-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.hub-socials { display: flex; gap: 8px; }
.hub-social {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.78);
  border: 1px solid rgba(255,255,255,0.10);
  transition: all var(--dur-base) var(--ease-standard);
}
.hub-social svg { width: 16px; height: 16px; }
.hub-social:hover {
  background: var(--brand-green);
  color: #fff;
  border-color: var(--brand-green);
}
.hub-foot-email {
  font-size: 11px;
  letter-spacing: 0.02em;
  text-decoration: none;
  font-weight: 500;
  color: var(--brand-green-200);
}
.hub-foot-email:hover { color: #fff; }
.hub-foot-line {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  text-align: center;
  color: rgba(255,255,255,0.45);
}

/* tela muito pequena: aperta um pouco */
@media (max-height: 700px) and (max-width: 480px) {
  .hub-shell { padding: 22px 22px 16px; }
  .hub-header { margin-bottom: 18px; }
  .hub-mark { width: 84px; height: 84px; margin-bottom: 12px; }
  .hub-mark svg { width: 56px; height: 56px; }
  .hub-name { font-size: 22px; }
  .hub-buttons { gap: 10px; }
  .hub-btn { padding: 10px 14px 10px 10px; }
  .hub-btn-icon { width: 50px; height: 50px; }
  .hub-footer { margin-top: 14px; padding-top: 12px; }
}
