/* =============================================================================
 * styles.css — Link-in-bio @lucilafox_
 * Lista vertical de tarjetas-banner (imagen de fondo a todo el ancho + texto
 * encima). Paleta neón rosa/magenta/lila/violeta sobre negro. Dark-only,
 * mobile-first, sin dependencias.
 * =========================================================================== */

/* --- Tokens de la paleta --------------------------------------------------- */
:root {
  --mw-black: #050009;
  --mw-black-soft: #0b0612;
  --mw-panel: #120a1c;
  --mw-panel-alt: #160c22;
  --mw-border: #2b123d;
  --mw-neon-pink: #ff2bc2;
  --mw-hot-magenta: #ff149d;
  --mw-lilac: #b45cff;
  --mw-violet: #7a2cff;
  --mw-white: #f4ecff;
  --mw-muted: #a892b8;
  --mw-success: #35f2c2;
  --mw-warning: #ffb84d;
  --mw-danger: #ff3d7a;

  --mw-gradient: linear-gradient(90deg, #ff149d 0%, #ff2bc2 42%, #b45cff 100%);
  --mw-shadow-neon: 0 0 20px rgba(255, 43, 194, 0.45), 0 0 44px rgba(180, 92, 255, 0.24);
  --mw-radius-lg: 24px;
  --mw-radius-md: 16px;

  --accent: var(--mw-neon-pink); /* lo sobreescribe cada enlace */
}

/* --- Reset ligero ---------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100dvh;
  background-color: var(--mw-black);
  color: var(--mw-white);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background-image:
    radial-gradient(720px circle at 0% 0%, rgba(255, 20, 157, 0.12), transparent 45%),
    radial-gradient(820px circle at 100% 100%, rgba(122, 44, 255, 0.12), transparent 45%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
a {
  color: inherit;
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
}
button {
  font: inherit;
  cursor: pointer;
}

::selection {
  background: rgba(255, 43, 194, 0.35);
  color: #f4ecff;
}
::-webkit-scrollbar {
  width: 10px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #2b123d;
  border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
  background: #3a1a52;
}

/* --- Helpers de color ------------------------------------------------------ */
.mw-gradient-text {
  background: var(--mw-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.mw-title {
  font-family: Orbitron, 'Space Grotesk', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Layout columna -------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  padding: 40px 18px 64px;
}

/* --- Verja 18+ ------------------------------------------------------------- */
.age-gate {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(5, 0, 9, 0.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
body.age-ok .age-gate {
  display: none;
}
.age-card {
  width: 100%;
  max-width: 380px;
  text-align: center;
  padding: 32px 26px;
  background: var(--mw-panel);
  border: 1px solid var(--mw-border);
  border-radius: var(--mw-radius-lg);
  box-shadow: var(--mw-shadow-neon);
}
.age-card .age-logo {
  font-size: 13px;
  letter-spacing: 0.18em;
  color: var(--mw-muted);
  margin-bottom: 14px;
}
.age-card h1 {
  margin: 0 0 10px;
  font-size: 22px;
}
.age-card p {
  margin: 0 0 22px;
  color: var(--mw-muted);
  font-size: 14px;
  line-height: 1.5;
}
.age-actions {
  display: grid;
  gap: 10px;
}

/* --- Botones --------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  border: 1px solid var(--mw-border);
  border-radius: 12px;
  background: transparent;
  color: var(--mw-white);
  font-weight: 600;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}
.btn:hover {
  border-color: rgba(255, 43, 194, 0.5);
  transform: translateY(-1px);
}
.btn-primary {
  border: none;
  background: var(--mw-gradient);
  color: #fff;
  box-shadow: 0 6px 20px rgba(255, 43, 194, 0.35);
}
.btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.btn-ghost {
  color: var(--mw-muted);
}

/* --- Header de perfil ------------------------------------------------------ */
.profile {
  text-align: center;
  margin-bottom: 26px;
}
.avatar-ring {
  width: 116px;
  height: 116px;
  margin: 0 auto 16px;
  padding: 3px;
  border-radius: 50%;
  background: var(--mw-gradient);
  box-shadow: var(--mw-shadow-neon);
}
.avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  background: var(--mw-panel-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: Orbitron, sans-serif;
  font-size: 34px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--mw-white);
}
.profile .name {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
}
.profile .handle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  color: var(--mw-muted);
  font-size: 14px;
}
.verified {
  color: var(--mw-neon-pink);
  display: inline-flex;
}
.profile .bio {
  max-width: 460px;
  margin: 12px auto 0;
  color: var(--mw-muted);
  font-size: 15px;
  line-height: 1.55;
}

/* --- Lista vertical de tarjetas-banner ------------------------------------- */
.links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 8px;
}

/* Cada enlace = tarjeta ancha: imagen de fondo (cover) + texto encima. */
.link-card {
  position: relative;
  display: block;
  aspect-ratio: 8 / 3;
  overflow: hidden;
  border-radius: var(--mw-radius-lg);
  border: 1px solid var(--mw-border);
  /* Placeholder de color (visible si la tarjeta aún no tiene imagen) */
  background: linear-gradient(
    150deg,
    color-mix(in srgb, var(--accent) 80%, transparent),
    color-mix(in srgb, var(--mw-violet) 55%, transparent)
  );
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.link-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 60%, transparent);
  box-shadow: 0 0 26px color-mix(in srgb, var(--accent) 38%, transparent);
}

/* Marca de agua (icono de plataforma): visible si no hay imagen */
.link-ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  opacity: 0.85;
}
.link-ph svg {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}
.link-ph .mono {
  font-family: Orbitron, sans-serif;
  font-weight: 700;
  font-size: 44px;
  letter-spacing: 0.06em;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

/* Imagen banner (cubre toda la tarjeta) */
.link-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Velo oscuro inferior para legibilidad del texto */
.link-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(5, 0, 9, 0.86) 0%,
    rgba(5, 0, 9, 0.35) 42%,
    transparent 72%
  );
}

/* Flecha "abrir" (arriba-derecha) */
.link-cta {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(5, 0, 9, 0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(244, 236, 255, 0.25);
  color: #fff;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.link-card:hover .link-cta {
  background: var(--accent);
  border-color: transparent;
}
.link-cta svg {
  width: 18px;
  height: 18px;
}

/* Texto (abajo-izquierda) */
.link-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.link-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.15;
  color: #fff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}
.link-sub {
  margin: 0;
  font-size: 13px;
  color: rgba(244, 236, 255, 0.85);
  line-height: 1.35;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

/* Enlace destacado: borde + brillo con su propio accent (p. ej. OnlyFans/Fansly) */
.link-card.is-featured {
  border-color: color-mix(in srgb, var(--accent) 70%, transparent);
  box-shadow: 0 0 22px color-mix(in srgb, var(--accent) 42%, transparent);
}
.link-card.is-featured .link-cta {
  background: var(--accent);
  border-color: transparent;
}

/* --- Footer ---------------------------------------------------------------- */
.footer {
  margin-top: 40px;
  text-align: center;
  color: var(--mw-muted);
  font-size: 12px;
  line-height: 1.6;
}
.footer .divider {
  height: 1px;
  margin: 0 auto 18px;
  max-width: 220px;
  background: linear-gradient(90deg, transparent, var(--mw-border), transparent);
}

/* iOS: inputs <16px disparan zoom (no hay inputs, pero por si acaso) */
@media (max-width: 640px) {
  input,
  select,
  textarea {
    font-size: 16px;
  }
}
