/* =====================================================================
   NIA — LinkMe style "hoo.be". Dark, foto grandi, viola, mobile-first.
   La pagina è guidata da config.js: i blocchi senza dati restano nascosti.
   ===================================================================== */
:root {
  --bg: #0a0a0c;
  --surface: #121216;       /* pannelli (contatti, contacto) */
  --text: #f5f5f7;
  --muted: #9a9aa6;
  --accent: #8b5cf6;        /* viola: badge verificato + dettagli */
  --green: #25d366;         /* whatsapp */
  --glass-line: rgba(255, 255, 255, .10);
  --radius: 18px;
  --radius-lg: 24px;
  --shadow: 0 24px 70px rgba(0, 0, 0, .55);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
}

/* ---------------- SFONDO VETRO (cornice attorno alla card su desktop) ---- */
.page-bg, .page-bg-video {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  max-width: 100vw;
  object-fit: cover;
  background-size: cover;
  background-position: center;
  filter: blur(70px) saturate(1.3) brightness(.5);
  transform: scale(1.18);
  z-index: 0;
}
.page-tint {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(120% 60% at 50% -10%, rgba(139, 92, 246, .20), transparent 55%),
    linear-gradient(to bottom, rgba(10, 10, 12, .45), rgba(10, 10, 12, .9) 70%, var(--bg));
}

/* ---------------- CONTENITORE (la "scheda" nera centrale) ---------------- */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
  min-height: 100dvh;
  padding: 0 14px 28px;
  background: var(--bg);
}
@media (min-width: 500px) {
  .card {
    min-height: auto;
    margin: 24px 0;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow);
    padding-bottom: 20px;
  }
}

/* ---------------- BARRA STICKY (appare scrollando) ---------------- */
.topbar {
  position: fixed;
  top: 0; left: 50%;
  transform: translateX(-50%) translateY(-100%);
  width: 100%;
  max-width: 460px;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  background: rgba(12, 12, 15, .82);
  border-bottom: 1px solid var(--glass-line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  opacity: 0;
  transition: transform .25s ease, opacity .25s ease;
}
.topbar.show { transform: translateX(-50%) translateY(0); opacity: 1; }
.tb-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex: none;
}
.tb-name {
  font-weight: 700;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.badge-sm { width: 16px; height: 16px; }

/* ---------------- HERO (foto grande + nome sovrapposto) ---------------- */
.hero {
  position: relative;
  margin: 14px 0 18px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1.12;
  background: #16161c;
}
.hero-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center top;
}
.hero-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, var(--bg) 2%, rgba(10,10,12,.65) 22%, transparent 48%);
}
.hero-head {
  position: absolute;
  left: 0; right: 0; bottom: 16px;
  z-index: 2;
  text-align: center;
  padding: 0 16px;
}
.name {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -.02em;
  color: #fff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  line-height: 1.05;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .6);
}
.badge { width: 24px; height: 24px; fill: var(--accent); flex: none; filter: drop-shadow(0 2px 6px rgba(0,0,0,.4)); }
.badge-check { stroke: #fff; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.handle {
  margin-top: 3px;
  color: rgba(255, 255, 255, .68);
  font-size: 14px;
  font-weight: 500;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .6);
}

/* ---------------- RIGA ICONE SOCIAL (cerchi a colori) ---------------- */
.icon-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 18px;
}
.icon-row a {
  width: 42px; height: 42px;
  border-radius: 50%;
  overflow: hidden;
  display: block;
  transition: transform .15s ease;
}
.icon-row a:active { transform: scale(.9); }
.icon-row svg { width: 100%; height: 100%; display: block; }

/* logo OnlyFans reale (of.png) montato dentro i cerchietti, su fondo bianco */
.icon-row a img, .fc-badge img, .lc-badge img, .fp-ic img, .contacto .ct-icon img {
  width: 100%; height: 100%; object-fit: contain; display: block; background: #fff;
}

/* ---------------- CONTATORE FOLLOWER ---------------- */
.followers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 0 auto 20px;
  padding: 6px;
  background: none;
  border: none;
  color: var(--muted);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
}
.followers b { color: var(--text); font-weight: 800; }
.followers .chev { width: 16px; height: 16px; transition: transform .2s ease; opacity: .8; }
.followers.open .chev { transform: rotate(180deg); }
.followers-panel {
  margin: -8px 0 20px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.followers-panel .fp-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  font-size: 14px;
  border-top: 1px solid rgba(255,255,255,.05);
}
.followers-panel .fp-row:first-child { border-top: none; }
.followers-panel .fp-ic { width: 22px; height: 22px; border-radius: 50%; overflow: hidden; flex: none; }
.followers-panel .fp-ic svg { width: 100%; height: 100%; display: block; }
.followers-panel .fp-label { flex: 1; color: var(--muted); }
.followers-panel .fp-count { font-weight: 700; }

/* ---------------- CARD IN EVIDENZA "Exclusive Content" ---------------- */
.featured-card {
  position: relative;
  display: block;
  margin-bottom: 12px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  text-decoration: none;
  color: #fff;
  background: #16161c;
  border: 1px solid rgba(139, 92, 246, .25);
}
.featured-card:active { transform: scale(.99); }
.featured-card .fc-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .4s ease;
}
.featured-card:hover .fc-img { transform: scale(1.03); }
.featured-card .fc-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.05) 60%);
}
.featured-card .fc-badge {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  width: 34px; height: 34px;
  border-radius: 50%;
  overflow: hidden;
}
.featured-card .fc-badge svg { width: 100%; height: 100%; display: block; }
.featured-card .fc-label {
  position: absolute;
  left: 0; right: 0; bottom: 16px;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 0 16px;
  text-align: center;
  font-weight: 800;
  font-size: 22px;
  text-shadow: 0 2px 12px rgba(0,0,0,.7);
}
.featured-card .fc-price {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(37, 211, 102, .16);
  border: 1px solid rgba(37, 211, 102, .4);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .02em;
}
.featured-card .fc-price s { color: rgba(255,255,255,.55); margin-right: 6px; font-weight: 500; }
.featured-card .fc-price b { color: var(--green); }

/* ---------------- CARD-FOTO in griglia ---------------- */
.links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.link-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 1 / 1.02;
  display: flex;
  align-items: flex-end;
  text-decoration: none;
  color: #fff;
  background: #16161c;
}
.link-card:active { transform: scale(.97); }
.link-card .lc-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform .4s ease;
}
.link-card:hover .lc-img { transform: scale(1.04); }
.link-card .lc-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, .8), rgba(0,0,0,.05) 55%);
}
.link-card .lc-label {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 14px;
  font-weight: 700;
  font-size: 17px;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .7);
}
.link-card .lc-badge {
  position: absolute;
  top: 10px; left: 10px;
  z-index: 2;
  width: 30px; height: 30px;
  border-radius: 50%;
  overflow: hidden;
}
.link-card .lc-badge svg { width: 100%; height: 100%; display: block; }

/* ---------------- PULSANTE CONTATTO (WhatsApp) ---------------- */
.contacto {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding: 16px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid var(--glass-line);
  text-decoration: none;
  color: var(--text);
}
.contacto:active { transform: scale(.99); }
.contacto .ct-icon { width: 30px; height: 30px; border-radius: 50%; overflow: hidden; flex: none; }
.contacto .ct-icon svg { width: 100%; height: 100%; display: block; }
.contacto .ct-label { flex: 1; text-align: center; font-weight: 700; font-size: 17px; margin-right: 30px; }

/* ---------------- BLOCCO CONTATTI (telefono / email) ---------------- */
.contact-info {
  margin-top: 12px;
  border: 1px solid var(--glass-line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
}
.contact-info .ci-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  border-top: 1px solid rgba(255,255,255,.05);
}
.contact-info .ci-row:first-child { border-top: none; }
.contact-info .ci-row svg { width: 20px; height: 20px; fill: none; stroke: var(--muted); stroke-width: 1.8; flex: none; }

/* ---------------- FOOTER ---------------- */
.foot {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
  padding: 26px 16px 8px;
}
.foot-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  font-size: 12px;
}
.foot-links a { color: var(--muted); text-decoration: underline; }
.foot-links span { opacity: .4; }
.foot-copy { opacity: .7; }

@media (prefers-reduced-motion: reduce) {
  .topbar, .hero-photo, .fc-img, .lc-img { transition: none; }
}
