/* ==========================================================================
   Marcus Celulares — Link na Bio Personalizado (bio.html)
   Layout centralizado estilo anterior, compacto para caber 100% sem rolagem
   ========================================================================== */

.bio-page {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background-color: var(--color-bg-primary);
  color: var(--color-text-primary);
  overflow-x: clip;
}

/* Fundo animado com grade técnica e trilhas PCB */
.bio-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background-image:
    radial-gradient(circle at 50% 10%, rgba(255, 184, 0, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 82%, rgba(37, 211, 102, 0.08) 0%, transparent 40%),
    radial-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 28px 28px;
}

.bio-circuit-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.35;
}

@keyframes circuitFlow {
  0% {
    stroke-dashoffset: 320;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

.bio-circuit-pulse {
  stroke-dasharray: 70 250;
  animation: circuitFlow 7s linear infinite;
}

.bio-circuit-pulse--slow {
  animation-duration: 10s;
  animation-direction: reverse;
}

/* Container central coeso (sem espaços vazios esticados) */
.bio-main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0.875rem 1rem 0.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.75rem;
}

/* Cabeçalho centralizado da marca */
.bio-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.45rem;
}

@keyframes haloPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.07);
    opacity: 0.95;
  }
}

.bio-avatar {
  position: relative;
  width: 60px;
  height: 60px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 26, 46, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(255, 184, 0, 0.45);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.52), 0 0 22px rgba(255, 184, 0, 0.16);
  flex-shrink: 0;
}

.bio-avatar::before {
  content: '';
  position: absolute;
  inset: -5px;
  border-radius: 22px;
  border: 1px solid rgba(255, 184, 0, 0.35);
  animation: haloPulse 3.2s ease-in-out infinite;
  pointer-events: none;
}

.bio-avatar svg {
  width: 38px;
  height: 38px;
}

.bio-title {
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1.05;
}

.bio-title__name {
  font-family: var(--font-display);
  font-size: clamp(1.1875rem, 4vw, 1.5rem);
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-text-primary);
}

.bio-title__sub {
  font-family: var(--font-display);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--color-accent-gold);
  margin-top: 2px;
}

.bio-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-pill);
  background: rgba(15, 26, 46, 0.72);
  border: 1px solid var(--color-border-subtle);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--color-text-muted);
}

.bio-status-pill__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-whatsapp);
  box-shadow: 0 0 8px var(--color-whatsapp);
  flex-shrink: 0;
}

/* Lista de Links Cyber-Glass */
.bio-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.bio-card {
  --mouse-x: 50%;
  --mouse-y: 50%;
  position: relative;
  display: block;
  text-decoration: none;
  border-radius: 14px;
  background: rgba(15, 26, 46, 0.74);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border-subtle);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.42), inset 0 1px 1px rgba(255, 255, 255, 0.08);
  padding: 0.625rem 0.9375rem;
  overflow: hidden;
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1), border-color 0.32s ease, box-shadow 0.32s ease;
}

.bio-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    320px circle at var(--mouse-x) var(--mouse-y),
    rgba(255, 184, 0, 0.14),
    transparent 60%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.bio-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 184, 0, 0.55);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.58), 0 0 22px rgba(255, 184, 0, 0.14);
}

.bio-card:hover::after {
  opacity: 1;
}

.bio-card:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 3px;
}

/* Destaque especial para WhatsApp */
.bio-card--whatsapp {
  border-color: rgba(37, 211, 102, 0.42);
  background: linear-gradient(135deg, rgba(15, 26, 46, 0.86) 0%, rgba(16, 46, 36, 0.55) 100%);
}

.bio-card--whatsapp::after {
  background: radial-gradient(
    320px circle at var(--mouse-x) var(--mouse-y),
    rgba(37, 211, 102, 0.18),
    transparent 60%
  );
}

.bio-card--whatsapp:hover {
  border-color: var(--color-whatsapp);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.58), 0 0 24px rgba(37, 211, 102, 0.22);
}

/* Varredura holográfica sutil no hover (mesmo DNA de Botão.html) */
.bio-card__glare {
  position: absolute;
  top: 0;
  left: 0;
  width: 28%;
  height: 100%;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 184, 0, 0.12) 45%,
    rgba(255, 255, 255, 0.22) 50%,
    rgba(255, 184, 0, 0.12) 55%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-160%) skewX(-28deg);
  opacity: 0;
  pointer-events: none;
}

.bio-card:hover .bio-card__glare {
  opacity: 1;
  animation: holoSweep 1.6s ease-in-out;
}

/* Cantos HUD */
.bio-card .corner {
  position: absolute;
  width: 5px;
  height: 5px;
  border-color: rgba(255, 255, 255, 0.2);
  border-style: solid;
  transition: width 0.28s ease, height 0.28s ease, border-color 0.28s ease;
  pointer-events: none;
}

.bio-card:hover .corner {
  width: 9px;
  height: 9px;
  border-color: var(--color-accent-gold);
}

.bio-card--whatsapp:hover .corner {
  border-color: var(--color-whatsapp);
}

.bio-card .corner-tl { top: 4px; left: 4px; border-width: 1px 0 0 1px; }
.bio-card .corner-tr { top: 4px; right: 4px; border-width: 1px 1px 0 0; }
.bio-card .corner-bl { bottom: 4px; left: 4px; border-width: 0 0 1px 1px; }
.bio-card .corner-br { bottom: 4px; right: 4px; border-width: 0 1px 1px 0; }

.bio-card__row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.bio-card__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(7, 13, 24, 0.78);
  border: 1px solid rgba(255, 184, 0, 0.32);
  color: var(--color-accent-gold);
  flex-shrink: 0;
  transition: transform 0.28s ease, background 0.28s ease;
}

.bio-card--whatsapp .bio-card__icon {
  border-color: rgba(37, 211, 102, 0.45);
  color: var(--color-whatsapp);
}

.bio-card:hover .bio-card__icon {
  transform: scale(1.06);
}

.bio-card__icon svg {
  width: 19px;
  height: 19px;
}

.bio-card__text {
  flex: 1;
  min-width: 0;
}

.bio-card__title {
  display: block;
  font-size: clamp(0.8125rem, 3.2vw, 0.90625rem);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.bio-card__subtitle {
  display: block;
  font-size: clamp(0.6875rem, 2.5vw, 0.75rem);
  line-height: 1.3;
  color: var(--color-text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.bio-card__arrow {
  width: 16px;
  height: 16px;
  color: var(--color-text-secondary);
  flex-shrink: 0;
  transition: transform 0.28s ease, color 0.28s ease;
}

.bio-card:hover .bio-card__arrow {
  transform: translateX(4px);
  color: var(--color-accent-gold);
}

.bio-card--whatsapp:hover .bio-card__arrow {
  color: var(--color-whatsapp);
}

/* Card Especial: Softwares e Ferramentas Técnicas (3 Serviços) */
.bio-card--tools {
  cursor: default;
}

.bio-tools-chips {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.45rem;
  margin-top: 0.5rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--color-border-subtle);
  width: 100%;
  box-sizing: border-box;
}

.bio-tool-chip {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0.35rem 0.25rem;
  border-radius: var(--radius-pill);
  background: rgba(7, 13, 24, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: var(--font-body);
  font-size: clamp(0.58rem, 2.15vw, 0.7rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--color-text-primary);
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
  overflow: hidden;
  transition: border-color 0.25s ease, background 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.bio-tool-chip span {
  display: inline-block;
  white-space: nowrap;
  max-width: 100%;
}

.bio-tool-chip:hover {
  border-color: var(--color-accent-gold);
  background: rgba(255, 184, 0, 0.18);
  color: var(--color-accent-gold);
  transform: translateY(-1px);
}

.bio-tool-chip:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 2px;
}

/* Ação secundária para o site completo */
.bio-site-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  min-height: 42px;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-subtle);
  background: rgba(7, 13, 24, 0.65);
  font-family: var(--font-display);
  font-size: clamp(0.625rem, 2.4vw, 0.71875rem);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text-muted);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  transition: border-color 0.28s ease, color 0.28s ease, background 0.28s ease;
}

.bio-site-cta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.bio-site-cta:hover {
  border-color: var(--color-accent-gold);
  color: var(--color-text-primary);
  background: rgba(15, 26, 46, 0.85);
}

.bio-site-cta:focus-visible {
  outline: 2px solid var(--color-accent-gold);
  outline-offset: 3px;
}

.bio-footer {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  padding: 0.35rem 1rem max(0.75rem, env(safe-area-inset-bottom));
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.6875rem;
  line-height: 1.35;
  color: var(--color-text-secondary);
}

.bio-footer a {
  color: var(--color-text-muted);
  text-decoration: none;
  transition: color 0.25s ease;
}

.bio-footer a:hover {
  color: var(--color-accent-gold);
}

@media (min-width: 640px) {
  .bio-main {
    padding: 1.5rem 1rem 0.75rem;
    gap: 1rem;
  }

  .bio-links {
    gap: 0.6875rem;
  }

  .bio-card {
    padding: 0.8125rem 1.0625rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bio-circuit-pulse,
  .bio-avatar::before,
  .bio-card:hover .bio-card__glare {
    animation: none;
  }

  .bio-card,
  .bio-card::after,
  .bio-card__icon,
  .bio-card__arrow,
  .bio-tool-chip {
    transition: none;
  }

  .bio-card:hover {
    transform: none;
  }
}
