/*
 * gate.css — aperçu visiteur des annonces et des fiches d'événements :
 * contenu flouté, pastille cadenas, bandeau d'aperçu, barre d'inscription
 * collante. Les données floutées sont du texte de remplissage (le serveur
 * n'envoie jamais la vraie donnée à un visiteur) ; le flou n'est qu'habillage.
 * Chargé après nav.css : les couleurs passent par les variables --nv-*.
 */

.gate-blur {
  filter: blur(6px);
  -webkit-user-select: none;
  user-select: none;
  pointer-events: none;
}

.gate-locked-box {
  position: relative;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  padding: 14px;
  overflow: hidden;
}
.gate-locked-box > .gate-blur {
  font-size: 14px;
  line-height: 1.5;
  color: var(--nv-t1);
}
.gate-chip-wrap {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
}
.gate-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: var(--nv-pill);
  background: rgba(11, 11, 12, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.14);
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--nv-t1);
  text-align: center;
}
.gate-chip svg {
  width: 14px;
  height: 14px;
  flex: none;
  color: var(--nv-violet-b);
}

/* Bandeau d'aperçu en tête de liste */
.gate-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin: 0 0 18px;
  border-radius: 14px;
  background: rgba(255, 47, 160, 0.08);
  border: 1px solid rgba(255, 47, 160, 0.28);
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: var(--nv-t1);
}
.gate-banner svg {
  width: 18px;
  height: 18px;
  flex: none;
  color: var(--nv-violet-b);
}

/* Bandeau « vue administrateur » (contenu non public ouvert par un admin) */
.gate-admin-banner {
  box-sizing: border-box;
  padding: 10px 16px;
  text-align: center;
  font: 600 12.5px "Manrope", sans-serif;
  color: #ffc46b;
  background: rgba(255, 196, 107, 0.1);
  border-bottom: 1px solid rgba(255, 196, 107, 0.35);
}

/* Barre d'inscription collante (bas de l'écran) */
.gate-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 380;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px));
  background: rgba(11, 11, 12, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-family: "Manrope", sans-serif;
}
.gate-sticky[hidden] {
  display: none;
}
.gate-sticky-text {
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  color: rgba(246, 245, 242, 0.78);
}
.gate-sticky-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  max-width: 560px;
}
.gate-cta,
.gate-cta-secondary {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--nv-pill);
  font-family: "Manrope", sans-serif;
  cursor: pointer;
}
.gate-cta {
  flex: 1.6;
  background: #d4157f;
  border: none;
  color: #ffffff;
  font-size: 15px;
  font-weight: 700;
}
.gate-cta-secondary {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--nv-t1);
  font-size: 14px;
  font-weight: 600;
}
.gate-cta:focus-visible,
.gate-cta-secondary:focus-visible {
  outline: 2px solid var(--nv-violet-b);
  outline-offset: 2px;
}
body.has-gate-sticky {
  padding-bottom: 120px;
}
/* Sur mobile, le bouton « Rejoindre » de la barre d'onglets (nav.css) joue ce
   rôle : la barre collante ferait doublon et s'empilerait sur les onglets. */
@media (max-width: 768px) {
  .gate-sticky {
    display: none !important;
  }
  body.has-gate-sticky {
    padding-bottom: var(--tabbar-h, 0px);
  }
}
@media (min-width: 769px) {
  .gate-sticky {
    flex-direction: row;
    justify-content: center;
    gap: 24px;
  }
  .gate-sticky-actions {
    width: auto;
  }
  .gate-cta,
  .gate-cta-secondary {
    flex: none;
  }
}
