/* ==========================================================================
   Link da Bio Profissional - Quero Ser Comissário (Julia Maria Machado)
   Design: Executive Aviation & Navy Luxury Harmonizado
   Tipografia: Plus Jakarta Sans (Sem Emojis)
   Apenas a foto grande oficial de estúdio (imagemfundo.jpeg) em destaque
   ========================================================================== */

:root {
  --font-main: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Cores de Alto Contraste para Fundo Claro Sofisticado */
  --text-headline: #0a192f;
  --text-body: #1e293b;
  --text-muted: #475569;
  --text-light: #94a3b8;

  /* Azul Corporativo Aviação */
  --blue-primary: #0284c7;
  --blue-royal: #1d4ed8;
  --blue-hover: #0369a1;
  --blue-electric: #38bdf8;

  /* Cartões Escuros de Alta Conversão dos Livros */
  --navy-card: rgba(6, 20, 48, 0.92);
  --navy-card-hover: rgba(10, 32, 74, 0.96);
  --navy-card-border: rgba(56, 189, 248, 0.25);
  --navy-card-border-hover: rgba(56, 189, 248, 0.65);

  /* Sombras Executivas */
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-card: 0 10px 28px rgba(6, 20, 48, 0.35);

  /* Bordas Arredondadas */
  --radius-card: 20px;
  --radius-pill: 9999px;
  --radius-md: 14px;

  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: all 0.28s var(--ease-spring);
}

/* Reset Geral */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-main);
  background-color: transparent;
  color: var(--text-body);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
  overflow-x: hidden;
  padding: 1.5rem 1rem 3.5rem 1rem;
  display: flex;
  justify-content: center;
}

/* ==========================================================================
   Fundo com a Imagem Real (imagemfundo.jpeg) Sem Sombra / Sem Escurecimento
   ========================================================================== */

.bg-ambient {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  height: 100lvh;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background-image: url('../../imagemfundo.jpeg');
  background-position: center top;
  background-size: cover;
  background-repeat: no-repeat;
}

/* ==========================================================================
   Container Principal do Perfil
   ========================================================================== */

.bio-wrapper {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 0.25rem;
}

/* ==========================================================================
   Header do Perfil: Texto Maior no Topo Harmonizado com a Página
   ========================================================================== */

.profile-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 0.5rem 0.5rem 0.35rem 0.5rem;
}

/* Informações de Texto do Perfil */
.profile-names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  margin-bottom: 0.15rem;
}

.profile-title {
  font-size: clamp(1.4rem, 7vw, 1.85rem);
  font-weight: 800;
  color: var(--text-headline);
  letter-spacing: -0.5px;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.95);
}

.verified-icon {
  color: var(--blue-primary);
  display: inline-flex;
}

.verified-icon svg {
  width: 22px;
  height: 22px;
}

.profile-handle {
  display: inline-block;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--blue-primary);
  text-decoration: none;
  margin-bottom: 0.35rem;
  transition: var(--transition);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.85);
}

.profile-handle:hover {
  color: var(--blue-hover);
  text-decoration: underline;
}

/* ==========================================================================
   Letreiro Animado (Marquee / Ticker) abaixo do Nome
   ========================================================================== */

.profile-ticker-wrapper {
  width: 100%;
  max-width: 380px;
  overflow: hidden;
  position: relative;
  margin: 0.45rem auto 0.45rem auto;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: var(--radius-pill);
  padding: 0.32rem 0;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 12%, black 88%, transparent 100%);
}

.profile-ticker-track {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: tickerSlide 14s linear infinite;
  will-change: transform;
}

.profile-ticker-wrapper:hover .profile-ticker-track {
  animation-play-state: paused;
}

.ticker-content {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--text-headline);
  letter-spacing: 0.3px;
}

.ticker-dot {
  color: var(--blue-primary);
  font-size: 0.95rem;
  line-height: 1;
}

@keyframes tickerSlide {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Barra de Redes Sociais Rápidas */
.social-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 0.25rem;
  margin-bottom: 0.25rem;
}

.social-icon-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.12);
  color: var(--text-headline);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  backdrop-filter: blur(10px);
}

.social-icon-btn svg {
  width: 20px;
  height: 20px;
}

.social-icon-btn:hover {
  background: var(--blue-primary);
  border-color: var(--blue-primary);
  color: #ffffff;
  transform: translateY(-3px) scale(1.06);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.35);
}

/* ==========================================================================
   Seções & Cards de Links Restaurados como Estavam Antes
   Posicionamento dos Cards a partir do Lenço no Pescoço
   ========================================================================== */

.links-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: clamp(160px, calc(max(100vh, 56.25vw) * 0.23), 260px);
}

.section-group {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.section-header-box {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: var(--radius-pill);
  padding: 0.35rem 0.95rem;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  align-self: flex-start;
  box-shadow: var(--shadow-sm);
}

.section-bullet {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue-primary);
  box-shadow: 0 0 8px var(--blue-primary);
}

.section-header-title {
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-headline);
}

.cards-stack {
  display: flex;
  flex-direction: column;
  gap: 0.95rem;
}

/* ==========================================================================
   Card de Link Executivo (3 Níveis)
   ========================================================================== */

.link-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.15rem 1.25rem 0.95rem 1.25rem;
  background: var(--navy-card);
  border: 1px solid var(--navy-card-border);
  border-radius: var(--radius-card);
  text-decoration: none;
  color: #e2e8f0;
  transition: var(--transition);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  animation: cardFlyIn 0.5s var(--ease-spring) both;
  animation-delay: calc(var(--item-index, 0) * 0.08s);
}

@keyframes cardFlyIn {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Ornamento com Foto da Comissária no Bloco */
.card-photo-watermark {
  position: absolute;
  right: -15px;
  bottom: -15px;
  width: 140px;
  height: 140px;
  pointer-events: none;
  z-index: 0;
  opacity: 0.08;
  overflow: hidden;
  border-radius: 50%;
  mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(circle, rgba(0, 0, 0, 1) 25%, transparent 75%);
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.watermark-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: contrast(110%);
}

/* Top Meta Row do Card */
.card-top-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
}

/* Badges dos Livros */
.link-badge {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  padding: 0.22rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--badge-color, #0284c7);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Selo com Foto da Comissária */
.author-micro-stamp {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: rgba(4, 15, 36, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 0.18rem 0.55rem 0.18rem 0.25rem;
  border-radius: var(--radius-pill);
  font-size: 0.66rem;
  font-weight: 700;
  color: #cbd5e1;
}

.micro-stamp-img {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--blue-electric);
}

/* Main Content Row: Ícone + Textos */
.card-main-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.link-icon-box {
  width: 46px;
  height: 46px;
  border-radius: var(--radius-md);
  background: rgba(2, 132, 199, 0.15);
  border: 1px solid rgba(56, 189, 248, 0.28);
  color: var(--blue-electric);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.link-icon-box svg {
  width: 22px;
  height: 22px;
}

.link-body {
  flex: 1;
  min-width: 0;
}

.link-title {
  font-size: 1.02rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 0.25rem;
  transition: color 0.25s ease, text-shadow 0.25s ease;
}

.link-subtitle {
  font-size: 0.82rem;
  color: #cbd5e1;
  line-height: 1.45;
  transition: color 0.25s ease;
}

/* Rodapé do Card com Barra de Ação */
.card-action-bar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.45rem;
  padding-top: 0.65rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--blue-electric);
  font-size: 0.80rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  transition: var(--transition);
}

.card-action-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.card-action-arrow svg {
  width: 15px;
  height: 15px;
}

/* ==========================================================================
   Ao Entrar / Hover no Card (Efeitos Azuis)
   ========================================================================== */

.link-card:hover,
.link-card:focus-visible {
  background: var(--navy-card-hover);
  border-color: var(--navy-card-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 16px 36px -4px rgba(2, 132, 199, 0.35), 0 0 24px rgba(56, 189, 248, 0.35);
}

.link-card:hover .link-title,
.link-card:focus-visible .link-title {
  color: var(--blue-electric);
  text-shadow: 0 0 14px rgba(56, 189, 248, 0.4);
}

.link-card:hover .link-subtitle,
.link-card:focus-visible .link-subtitle {
  color: #ffffff;
}

.link-card:hover .link-icon-box {
  transform: scale(1.08) rotate(-3deg);
  border-color: var(--blue-electric);
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.45);
}

.link-card:hover .card-photo-watermark {
  opacity: 0.22;
  transform: scale(1.08) rotate(-3deg);
}

.link-card:hover .card-action-arrow {
  transform: translateX(5px);
}

/* Card em Destaque */
.link-card.is-featured {
  border-left: 4px solid #f59e0b;
  box-shadow: 0 0 24px rgba(2, 132, 199, 0.35);
}

.link-card.is-featured .link-icon-box {
  background: linear-gradient(135deg, #0284c7, #38bdf8);
  color: #ffffff;
  border: none;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.5);
}

/* ==========================================================================
   Rodapé Oficial Harmonizado
   ========================================================================== */

.bio-footer {
  text-align: center;
  padding: 1.4rem 1rem;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: var(--radius-card);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-sm);
  margin-top: 0.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
}

.footer-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text-headline);
  letter-spacing: 0.5px;
}

.footer-plane-svg {
  width: 15px;
  height: 15px;
  color: var(--blue-primary);
  display: flex;
}

.footer-plane-svg svg {
  width: 100%;
  height: 100%;
}

.footer-copy {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  font-size: 0.78rem;
  flex-wrap: wrap;
}

.footer-sep {
  color: var(--text-light);
}

.footer-links a,
.footer-qr-btn {
  color: var(--blue-primary);
  text-decoration: none;
  font-weight: 600;
  transition: var(--transition);
  background: none;
  border: none;
  font-family: inherit;
  font-size: 0.78rem;
  cursor: pointer;
  padding: 0;
}

.footer-links a:hover,
.footer-qr-btn:hover {
  color: var(--blue-hover);
  text-decoration: underline;
}

.stats-anchor {
  color: var(--text-muted) !important;
}

/* ==========================================================================
   Modal de QR Code Harmonizado
   ========================================================================== */

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.50);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-backdrop.is-active {
  opacity: 1;
  pointer-events: auto;
}

.modal-card {
  position: relative;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 24px;
  width: 100%;
  max-width: 440px;
  max-height: 88vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px -10px rgba(15, 23, 42, 0.30);
  transform: scale(0.94) translateY(12px);
  transition: transform 0.32s var(--ease-spring), opacity 0.3s ease;
  padding: 1.75rem 1.6rem 1.6rem 1.6rem;
  color: var(--text-body);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}

.modal-backdrop.is-active .modal-card {
  transform: scale(1) translateY(0);
}

.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(15, 23, 42, 0.05);
  border: 1px solid rgba(15, 23, 42, 0.08);
  color: var(--text-headline);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: var(--transition);
}

.modal-close-btn:hover {
  background: var(--text-headline);
  border-color: var(--text-headline);
  color: #ffffff;
  transform: rotate(90deg) scale(1.05);
}

.modal-close-btn svg {
  width: 18px;
  height: 18px;
}

.qr-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.modal-title {
  font-size: 1.30rem;
  font-weight: 800;
  color: var(--text-headline);
  line-height: 1.35;
  letter-spacing: -0.3px;
}

.modal-body-text {
  font-size: 0.90rem;
  color: var(--text-body);
  line-height: 1.5;
}

.qr-canvas {
  background: #ffffff;
  padding: 1rem;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.10);
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: inline-flex;
}

.qr-canvas img {
  display: block;
  max-width: 100%;
  height: auto;
}

.modal-cta-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  width: 100%;
  padding: 0.95rem 1.25rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #0284c7 0%, #1d4ed8 100%);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  font-size: 0.92rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition: var(--transition);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.38);
  border: none;
  cursor: pointer;
}

.modal-cta-btn:hover {
  background: linear-gradient(135deg, #0369a1 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(2, 132, 199, 0.50);
  color: #ffffff;
}

.modal-cta-btn svg {
  width: 18px;
  height: 18px;
}

/* ==========================================================================
   Responsividade Mobile (Smartphones e Telas Pequenas)
   ========================================================================== */

@media (max-width: 480px) {
  body {
    padding: 1.2rem 0.75rem 2.5rem 0.75rem;
  }

  .profile-title {
    font-size: 1.65rem;
  }

  .links-container {
    margin-top: clamp(150px, 23vh, 220px);
  }

  .link-card {
    padding: 1.05rem 1.1rem 0.9rem 1.1rem;
  }
}

@media (max-width: 360px) {
  body {
    padding: 1rem 0.6rem 2rem 0.6rem;
  }

  .profile-names {
    flex-wrap: wrap;
  }

  .link-card {
    padding: 0.95rem 0.9rem 0.85rem 0.9rem;
  }

  .card-main-row {
    gap: 0.75rem;
  }

  .link-icon-box {
    width: 40px;
    height: 40px;
  }

  .link-title {
    font-size: 0.95rem;
  }

  .link-subtitle {
    font-size: 0.78rem;
  }

  .footer-links {
    gap: 0.5rem;
  }
}

/* Telas largas e baixas (celular deitado): libera o rosto, conteúdo à direita */
@media (orientation: landscape) and (max-height: 600px) {
  body {
    justify-content: flex-end;
    padding-right: max(1rem, 4vw);
  }

  .bio-wrapper {
    max-width: 380px;
  }

  .links-container {
    margin-top: 1rem;
  }

  .profile-title {
    font-size: 1.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .profile-ticker-track,
  .link-card {
    animation: none;
  }
}
