/* ========================================================
   NF BARÃO / NOSTRO FUMO BARÃO — LINK-IN-BIO PREMIUM
   Direção Visual: Tabacaria Artesanal de Luxo & Botânica Dark
   Refinamento Mobile-First: Escala Imersiva, Presença & Sem Badges
   ======================================================== */

:root {
  /* Tipografia */
  --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Cores Base / Preto Obsidian & Verde Floresta */
  --bg-deep: #030704;
  --bg-card: rgba(7, 18, 11, 0.78);
  --bg-surface: rgba(12, 28, 17, 0.75);
  --bg-surface-hover: rgba(18, 44, 27, 0.95);
  
  /* Verdes & Acentos da Marca */
  --green-leaf: #10b981;
  --green-bright: #22c55e;
  --green-light: #86efac;
  --green-dark: #064e3b;
  --green-gradient: linear-gradient(135deg, #22c55e 0%, #10b981 50%, #059669 100%);
  --green-gradient-soft: linear-gradient(135deg, rgba(34, 197, 94, 0.16) 0%, rgba(6, 78, 59, 0.1) 100%);
  --green-border: rgba(34, 197, 94, 0.28);
  --green-border-hover: rgba(34, 197, 94, 0.75);
  --green-glow: 0 0 32px rgba(34, 197, 94, 0.28);
  
  /* Textos & Contraste */
  --text-main: #f8faf5;
  --text-sub: #d1dcd2;
  --text-muted: #9ab09e;
  --text-highlight: #86efac;
  
  /* Dimensões & Geometria Mobile-First */
  --max-width: 480px;
  --radius-card: 26px;
  --radius-btn: 18px;
  --radius-sm: 12px;
  
  /* Transições suaves */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.25, 1, 0.5, 1);
}

/* Reset Global */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg-deep);
  color: var(--text-main);
  font-family: var(--font-main);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 0;
  margin: 0;
  overflow-x: hidden !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* --- CAMADAS DE BACKGROUND ATMOSFÉRICO --- */
.bg-layer-image {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background-image: url('../assets/background.jpg');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  filter: brightness(0.42) contrast(1.12) saturate(1.18);
  transform: scale(1.02);
  z-index: -4;
  pointer-events: none;
}

.bg-layer-vignette {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: radial-gradient(circle at 50% 25%, rgba(4, 12, 6, 0.22) 0%, rgba(3, 7, 4, 0.72) 65%, rgba(2, 4, 2, 0.95) 100%);
  z-index: -3;
  pointer-events: none;
}

.ambient-glow {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(95px);
  z-index: -2;
}

.glow-header {
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.25) 0%, rgba(16, 185, 129, 0.06) 60%, transparent 75%);
  animation: glowPulse 5s ease-in-out infinite alternate;
}

@keyframes glowPulse {
  0% { opacity: 0.16; transform: translateX(-50%) scale(0.96); }
  100% { opacity: 0.28; transform: translateX(-50%) scale(1.08); }
}

/* --- WRAPPER PRINCIPAL MOBILE-FIRST --- */
.app-container {
  width: 100%;
  max-width: var(--max-width);
  min-height: 100vh;
  min-height: 100dvh;
  padding: 20px 14px 36px;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
  margin: 0 auto;
}

/* Card unificador com presença e imersão */
.bio-card {
  width: 100%;
  background: var(--bg-card);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-card);
  box-shadow: 0 20px 60px -10px rgba(0, 0, 0, 0.85),
              0 0 35px -5px rgba(34, 197, 94, 0.12);
  padding: 32px 20px 28px;
  position: relative;
  overflow: hidden;
  animation: cardEntrance 0.65s var(--ease-spring) forwards;
}

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

/* Borda sutil de destaque no topo do card */
.bio-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, rgba(34, 197, 94, 0.6), transparent);
  pointer-events: none;
}

/* --- HEADER DA MARCA --- */
.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 26px;
}

/* Logo Circular com Anel e Efeito Tilt */
.logo-wrapper {
  position: relative;
  width: 124px;
  height: 124px;
  margin-bottom: 18px;
  cursor: pointer;
  perspective: 600px;
}

.logo-aura {
  position: absolute;
  top: -8px;
  left: -8px;
  right: -8px;
  bottom: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(34, 197, 94, 0.45) 0%, transparent 70%);
  filter: blur(10px);
  z-index: 1;
  pointer-events: none;
  animation: auraBreath 4s ease-in-out infinite alternate;
}

@keyframes auraBreath {
  0% { opacity: 0.45; transform: scale(0.97); }
  100% { opacity: 0.85; transform: scale(1.08); }
}

.logo-ring {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  padding: 3.5px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.95) 0%, rgba(34, 197, 94, 0.85) 50%, rgba(6, 78, 59, 0.7) 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7),
              0 0 20px rgba(34, 197, 94, 0.3);
  z-index: 2;
  transition: transform 0.2s var(--ease-spring), box-shadow 0.3s ease;
}

.logo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  background-color: #000;
  display: block;
}

/* Título e Textos da Marca */
.brand-name {
  font-size: 1.85rem;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: var(--text-main);
  margin-bottom: 6px;
  line-height: 1.2;
}

.brand-description {
  font-size: 0.92rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  color: var(--green-bright);
  margin-bottom: 14px;
  line-height: 1.35;
}

/* Categorias Oficiais */
.categories-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 5px 8px;
  margin-bottom: 12px;
  max-width: 400px;
}

.category-item {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-sub);
  letter-spacing: 0.3px;
}

.category-divider {
  color: var(--green-leaf);
  font-size: 0.75rem;
  opacity: 0.75;
}

/* Informações Oficiais em Texto Limpo e Sofisticado (Zero Badges) */
.brand-meta-info {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 6px 12px;
  margin-top: 4px;
}

.meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.2px;
}

.meta-item svg {
  width: 15px;
  height: 15px;
  color: var(--green-bright);
  flex-shrink: 0;
}

.meta-separator {
  color: var(--green-leaf);
  font-size: 0.75rem;
  opacity: 0.5;
}

/* --- LINKS EMPILHADOS --- */
.links-section {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 26px;
}

/* Estrutura Base do Link */
.link-btn {
  width: 100%;
  min-height: 66px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--green-border);
  border-radius: var(--radius-btn);
  text-decoration: none;
  color: var(--text-main);
  position: relative;
  overflow: hidden;
  transition: all 0.28s var(--ease-spring);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
  gap: 14px;
}

/* Varredura de brilho no hover */
.link-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -120%;
  width: 70%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.09), transparent);
  transform: skewX(-20deg);
  transition: left 0.6s ease;
  pointer-events: none;
}

.link-btn:hover::before {
  left: 140%;
}

.link-btn:hover {
  transform: translateY(-2px) scale(1.01);
  background: var(--bg-surface-hover);
  border-color: var(--green-border-hover);
  box-shadow: 0 12px 28px -4px rgba(0, 0, 0, 0.65),
              0 0 22px rgba(34, 197, 94, 0.2);
}

.link-btn:active {
  transform: translateY(1px) scale(0.99);
}

.link-btn:focus-visible {
  outline: 2px solid var(--green-bright);
  outline-offset: 3px;
}

/* Ícone do Link */
.link-icon-box {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-sm);
  background: rgba(4, 14, 8, 0.9);
  border: 1px solid rgba(34, 197, 94, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green-bright);
  transition: all 0.25s ease;
}

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

.link-btn:hover .link-icon-box {
  background: var(--green-dark);
  border-color: var(--green-bright);
  color: #fff;
  transform: scale(1.06);
}

/* Textos do Link */
.link-info {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  text-align: left;
  gap: 3px;
}

.link-title {
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--text-main);
  letter-spacing: -0.1px;
  line-height: 1.25;
}

.link-subtitle {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 400;
  letter-spacing: 0.1px;
  line-height: 1.3;
}

/* Seta Indicadora */
.link-arrow {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
  transition: all 0.25s var(--ease-spring);
}

.link-btn:hover .link-arrow {
  color: var(--green-bright);
  transform: translateX(4px);
}

/* --- VARIANTE 1: DESTAQUE PRINCIPAL (WHATSAPP) --- */
.link-btn.link-highlight {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16) 0%, rgba(6, 78, 59, 0.26) 100%);
  border: 1px solid rgba(34, 197, 94, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.55),
              0 0 22px rgba(34, 197, 94, 0.16);
}

.link-btn.link-highlight:hover {
  background: linear-gradient(135deg, rgba(34, 197, 94, 0.24) 0%, rgba(6, 78, 59, 0.38) 100%);
  border-color: var(--green-bright);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.7),
              0 0 28px rgba(34, 197, 94, 0.32);
}

.link-btn.link-highlight .link-icon-box {
  background: var(--green-gradient);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
}

.link-btn.link-highlight:hover .link-icon-box {
  transform: scale(1.08) rotate(3deg);
}

/* --- VARIANTE 2: AVALIAÇÕES NO GOOGLE --- */
.link-btn.link-google .link-icon-box {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.link-btn.link-google:hover .link-icon-box {
  background: rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.35);
}

/* --- FOOTER DISCRETO & RESPONSABILIDADE --- */
.brand-footer {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 18px;
  border-top: 1px solid rgba(34, 197, 94, 0.14);
  gap: 8px;
}

.footer-responsible {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-weight: 500;
  letter-spacing: 0.3px;
}

.footer-responsible svg {
  width: 13px;
  height: 13px;
  color: var(--green-leaf);
}

.footer-copy {
  font-size: 0.74rem;
  color: #7a8e7e;
  letter-spacing: 0.3px;
}

/* --- RESPONSIVIDADE PRECISA (MOBILE VIEWPORTS) --- */

/* Telas médias mobile (360px a 414px) */
@media (max-width: 414px) {
  .app-container {
    padding: 16px 12px 28px;
  }
  .bio-card {
    padding: 28px 16px 24px;
  }
}

/* Dispositivos super compactos (320px - iPhone SE / telas estreitas) */
@media (max-width: 340px) {
  .app-container {
    padding: 12px 8px 24px;
  }
  .bio-card {
    padding: 22px 12px 18px;
    border-radius: 20px;
  }
  .logo-wrapper {
    width: 104px;
    height: 104px;
    margin-bottom: 14px;
  }
  .brand-name {
    font-size: 1.48rem;
  }
  .brand-description {
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 10px;
  }
  .category-item {
    font-size: 0.78rem;
  }
  .meta-item {
    font-size: 0.75rem;
  }
  .link-btn {
    min-height: 60px;
    padding: 12px 14px;
    gap: 12px;
  }
  .link-icon-box {
    width: 42px;
    height: 42px;
  }
  .link-icon-box svg {
    width: 21px;
    height: 21px;
  }
  .link-title {
    font-size: 0.98rem;
  }
  .link-subtitle {
    font-size: 0.76rem;
  }
}

/* Respeito a prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
