/* ============================================================
   DESIGN SYSTEM — ELI OCULARIA · LINK BIO
   Tema: Fundo Branco · Tipografia Premium · Animações Suaves
   ============================================================ */

/* ── RESET & BASE ───────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --white:        #ffffff;
  --off-white:    #f8f8f8;
  --border:       #e8e8e8;
  --shadow-sm:    0 2px 12px rgba(0,0,0,.06);
  --shadow-md:    0 6px 28px rgba(0,0,0,.10);
  --shadow-hover: 0 14px 44px rgba(0,0,0,.15);

  --accent:       #1a1a1a;
  --muted:        #888888;

  /* Badge verificado */
  --badge-color:  #3897f0;

  --font: 'Outfit', sans-serif;
  --gap: 14px;
  --radius-card: 20px;
  --max-width: 480px;
}

html {
  font-family: var(--font);
  background-color: var(--white);
  color: var(--accent);
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  background: var(--white);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

/* ── CANVAS DE PARTÍCULAS ───────────────────────────────────── */
#particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;   /* não bloqueia cliques */
  z-index: 0;
}

.page-wrapper {
  position: relative;
  z-index: 1;             /* conteúdo sempre acima das partículas */
  width: 100%;
  max-width: var(--max-width);
  padding: 44px 20px 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}

/* ── LOGO + BADGE ───────────────────────────────────────────── */
.logo-area {
  display: flex;
  justify-content: center;
}

.logo-wrapper {
  position: relative;
  display: inline-block;
}

.logo-img {
  width: 116px;
  height: 116px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  box-shadow: var(--shadow-md);
  border: 3px solid var(--border);
  transition: transform .35s ease, box-shadow .35s ease;
}

.logo-wrapper:hover .logo-img {
  transform: scale(1.05);
  box-shadow: var(--shadow-hover);
}

/* Badge verificado — canto inferior direito */
.verified-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0,0,0,.18);
  background: var(--white);
  padding: 2px;
}

.badge-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 50%;
  display: block;
}

/* ── PERFIL ─────────────────────────────────────────────────── */
.profile-info {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.profile-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -.01em;
  line-height: 1.3;
}

.profile-tagline {
  font-size: .95rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .01em;
}

/* ── HINT DE CLIQUE ─────────────────────────────────────────── */
.click-hint {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--off-white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: .82rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: .02em;
  user-select: none;
}

.hint-icon {
  font-size: 1rem;
  animation: bounce 1.8s ease-in-out infinite;
}

@keyframes bounce {
  0%, 100% { transform: translateY(0); }
  50%       { transform: translateY(-4px); }
}

/* ── LINKS / BANNERS ────────────────────────────────────────── */
.links-area {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.link-card {
  display: block;
  width: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  background: var(--white);
  transition:
    transform .30s cubic-bezier(.34,1.56,.64,1),
    box-shadow .30s ease;
  -webkit-tap-highlight-color: transparent;
  position: relative;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-5px) scale(1.008);
  box-shadow: var(--shadow-hover);
  outline: none;
}

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

/* Container relativo para o overlay */
.link-card-inner {
  position: relative;
  width: 100%;
  display: block;
  border-radius: var(--radius-card);
  overflow: hidden;
}

/* Imagem do banner */
.link-banner-img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: var(--radius-card);
  transition: transform .35s ease;
}

.link-card:hover .link-banner-img {
  transform: scale(1.025);
}

/* Overlay com CTA que aparece no hover */
.link-overlay {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-card);
  background: linear-gradient(
    to top,
    rgba(0,0,0,.50) 0%,
    rgba(0,0,0,.0) 55%
  );
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 16px;
  opacity: 0;
  transition: opacity .28s ease;
}

.link-card:hover .link-overlay,
.link-card:focus-visible .link-overlay {
  opacity: 1;
}

.link-cta {
  color: #fff;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
}

/* ── FOOTER ─────────────────────────────────────────────────── */
.footer {
  text-align: center;
  font-size: .78rem;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: .02em;
  padding-top: 8px;
}

/* ── RESPONSIVIDADE ─────────────────────────────────────────── */
@media (max-width: 400px) {
  .profile-name { font-size: 1.4rem; }
  .logo-img { width: 96px; height: 96px; }
  .verified-badge { width: 24px; height: 24px; bottom: 2px; right: 2px; }
  .verified-badge svg { width: 18px; height: 18px; }
}

/* ── ANIMAÇÕES DE ENTRADA ────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(22px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-wrapper > * {
  animation: fadeUp .55s ease both;
}

.page-wrapper > *:nth-child(1) { animation-delay: .05s; }
.page-wrapper > *:nth-child(2) { animation-delay: .13s; }
.page-wrapper > *:nth-child(3) { animation-delay: .21s; }
.page-wrapper > *:nth-child(4) { animation-delay: .29s; }
.page-wrapper > *:nth-child(5) { animation-delay: .35s; }

.links-area .link-card:nth-child(1) { animation: fadeUp .50s .32s ease both; }
.links-area .link-card:nth-child(2) { animation: fadeUp .50s .42s ease both; }
.links-area .link-card:nth-child(3) { animation: fadeUp .50s .52s ease both; }
.links-area .link-card:nth-child(4) { animation: fadeUp .50s .62s ease both; }

/* ══════════════════════════════════════════════════════════════
   MODAL DE LOCALIZAÇÃO
══════════════════════════════════════════════════════════════ */
.modal-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, .45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-backdrop.active {
  display: flex;
  animation: backdropIn .25s ease both;
}

@keyframes backdropIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.modal {
  background: var(--white);
  border-radius: 28px;
  width: 100%;
  max-width: 420px;
  padding: 32px 28px 28px;
  position: relative;
  box-shadow: 0 24px 80px rgba(0,0,0,.20);
  animation: modalIn .35s cubic-bezier(.34,1.56,.64,1) both;
}

@keyframes modalIn {
  from { opacity: 0; transform: translateY(40px) scale(.96); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--surface, #f2f2f2);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  font-size: .95rem;
  cursor: pointer;
  color: var(--muted);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s, transform .2s;
}

.modal-close:hover {
  background: var(--border);
  transform: scale(1.1);
}

.modal-header {
  text-align: center;
  margin-bottom: 24px;
}

.modal-icon {
  font-size: 2.2rem;
  display: block;
  margin-bottom: 8px;
}

.modal-header h2 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -.02em;
  margin-bottom: 4px;
}

.modal-header p {
  font-size: .85rem;
  color: var(--muted);
}

/* Cards das lojas */
.modal-stores {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.store-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 0;
}

.store-divider {
  height: 1px;
  background: var(--border);
}

.store-badge {
  display: inline-block;
  background: #f0f0f0;
  color: var(--accent);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 6px;
}

.store-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}

.store-address {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.5;
}

.btn-directions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: .8rem;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: 999px;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .2s, transform .2s, box-shadow .2s;
  box-shadow: 0 4px 14px rgba(0,0,0,.15);
}

.btn-directions:hover {
  background: #333;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,.20);
}

.btn-wpp {
  background: #25D366;
  color: #ffffff;
}

.btn-wpp:hover {
  background: #1EBE5D;
}

@media (max-width: 380px) {
  .store-card { flex-direction: column; align-items: flex-start; }
  .btn-directions { width: 100%; justify-content: center; }
}

