/* emmelinebelle.com — link.me-style link-in-bio */

*, *::before, *::after { box-sizing: border-box; }

:root {
  --page-bg: #007681;
  --card-bg: #ffffff;
  --card-radius: 18px;
  --text: #18181b;
  --text-muted: #71717a;
  --border: #e4e4e7;
  --primary: #4062ff;
  --shadow-soft: 0 10px 40px rgba(0, 0, 0, 0.18);
  --shadow-card: 0 2px 10px rgba(17, 24, 39, 0.08);
  --hero-overlay-top: rgba(0, 0, 0, 0);
  --hero-overlay-bot: rgba(0, 0, 0, 0.72);
}

html, body, #root {
  width: 100%;
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background: var(--page-bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; -webkit-user-drag: none; user-select: none; }

.eb-page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px 80px;
}

/* sticky mini-header (avatar + name when scrolled past hero) */
.eb-sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(0, 0, 0, 0.42);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #ffffff;
  transform: translateY(-100%);
  transition: transform 0.24s ease;
}
.eb-sticky-header.is-visible { transform: translateY(0); }
.eb-sticky-header .eb-mini-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}
.eb-sticky-header .eb-mini-avatar img { width: 100%; height: 100%; object-fit: cover; }
.eb-sticky-header .eb-mini-name {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.eb-sticky-header .eb-mini-verified {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* the central card */
.eb-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
  background: var(--card-bg);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

/* hero: full-bleed portrait with name overlay */
.eb-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  background: #18181b;
  overflow: hidden;
}
.eb-hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.eb-hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    var(--hero-overlay-top) 38%,
    var(--hero-overlay-bot) 100%
  );
  pointer-events: none;
}
.eb-hero-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 18px 22px 22px;
  color: #ffffff;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.eb-hero-name {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}
.eb-verified {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  color: var(--primary);
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.4));
}
.eb-hero-handle {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.86);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.eb-hero-bio {
  max-width: 320px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.78);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
  white-space: pre-wrap;
}
.eb-hero-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.eb-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 8px rgba(34, 197, 94, 0.7);
}

/* socials row (in hero overlay) */
.eb-socials {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 2px;
  padding: 0;
  list-style: none;
}
.eb-social {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--social-bg, rgba(255, 255, 255, 0.18));
  color: var(--social-fg, #ffffff);
  transition: transform 0.16s ease;
  border: 1px solid rgba(255, 255, 255, 0.22);
}
.eb-social:hover { transform: translateY(-1px) scale(1.06); }
.eb-social img { width: 18px; height: 18px; object-fit: contain; }
.eb-social svg { width: 18px; height: 18px; }

/* per-platform brand colors */
.eb-social[data-platform="fanvue"]   { --social-bg: #ff3366; --social-fg: #ffffff; border-color: transparent; }
.eb-social[data-platform="onlyfans"] { --social-bg: #00aff0; --social-fg: #ffffff; border-color: transparent; }
.eb-social[data-platform="instagram"]{ --social-bg: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); --social-fg: #ffffff; border-color: transparent; }
.eb-social[data-platform="twitter"], .eb-social[data-platform="x"] { --social-bg: #000000; --social-fg: #ffffff; border-color: transparent; }
.eb-social[data-platform="tiktok"]   { --social-bg: #000000; --social-fg: #ffffff; border-color: transparent; }
.eb-social[data-platform="snapchat"] { --social-bg: #FFFC00; --social-fg: #000000; border-color: transparent; }
.eb-social[data-platform="youtube"]  { --social-bg: #FF0000; --social-fg: #ffffff; border-color: transparent; }
.eb-social[data-platform="twitch"]   { --social-bg: #9146FF; --social-fg: #ffffff; border-color: transparent; }

/* link cards container */
.eb-links {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  margin: 0;
  list-style: none;
}

.eb-link-anchor {
  display: block;
  position: relative;
  border-radius: 14px;
  color: inherit;
  cursor: pointer;
  outline-offset: 4px;
}
.eb-link-anchor:focus-visible { outline: 2px solid var(--primary); }

/* simple link card (used when type !== featured) */
.eb-link-card {
  position: relative;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #ffffff;
  color: var(--text);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.eb-link-anchor:hover .eb-link-card,
.eb-link-anchor:hover .eb-link-featured { transform: translateY(-2px); border-color: rgba(64, 98, 255, 0.4); }

.eb-link-icon {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.eb-link-icon img { width: 22px; height: 22px; object-fit: contain; }

.eb-link-title {
  flex: 1;
  min-width: 0;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.eb-link-arrow {
  flex-shrink: 0;
  color: #a1a1aa;
  font-size: 16px;
  font-weight: 800;
}

/* featured card (big image with overlay text) */
.eb-link-featured {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 150px;
  border-radius: 14px;
  background: #18181b;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.16s ease;
}
.eb-link-featured.has-image::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.72) 100%);
}
.eb-featured-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.eb-featured-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 14px 18px 16px;
  text-align: center;
  color: #ffffff;
}
.eb-featured-title {
  font-size: 17px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.01em;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
  overflow-wrap: anywhere;
}
.eb-featured-subtitle {
  margin-top: 4px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.84);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.45);
}
.eb-featured-icon {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.eb-featured-icon img { width: 18px; height: 18px; object-fit: contain; }

/* animations on featured/link cards */
.eb-anim-shine  { position: relative; isolation: isolate; }
.eb-anim-shine::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -100%;
  z-index: 3;
  width: 60%;
  height: 200%;
  background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.08) 25%, rgba(255,255,255,0.34) 50%, rgba(255,255,255,0.08) 75%, transparent 100%);
  transform: skewX(-15deg);
  animation: eb-shine 4s ease-in-out infinite;
  pointer-events: none;
}
.eb-anim-pulse  { animation: eb-pulse 2.4s ease-in-out infinite; }
.eb-anim-bounce { animation: eb-bounce 2s ease-in-out infinite; }
.eb-anim-glow   { animation: eb-glow 2.4s ease-in-out infinite; }
@keyframes eb-shine  { 0% { left: -100%; opacity: 0; } 12% { opacity: 1; } 50% { left: 100%; opacity: 1; } 56% { opacity: 0; } 100% { left: 100%; opacity: 0; } }
@keyframes eb-pulse  { 0%,100% { transform: scale(1); } 50% { transform: scale(1.02); } }
@keyframes eb-bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes eb-glow   { 0%,100% { box-shadow: var(--shadow-card); } 50% { box-shadow: 0 6px 28px rgba(64, 98, 255, 0.5); } }

/* adult content gate (inline overlay on link cards) */
.eb-link-anchor.has-gate { overflow: hidden; }
.eb-gate {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(8, 8, 10, 0.94);
  color: #ffffff;
  text-align: center;
  border-radius: inherit;
}
.eb-gate-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 320px;
}
.eb-gate-title  { font-size: 12px; font-weight: 900; line-height: 1.15; text-transform: uppercase; }
.eb-gate-body   { font-size: 11px; font-weight: 600; line-height: 1.3; color: rgba(255, 255, 255, 0.72); }
.eb-gate-actions { display: flex; gap: 8px; }
.eb-gate-btn {
  min-height: 30px;
  padding: 0 14px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
}
.eb-gate-btn.secondary { background: rgba(255, 255, 255, 0.1); color: #ffffff; }
.eb-gate-btn.primary { border-color: #ffffff; background: #ffffff; color: #18181b; }

/* footer */
.eb-footer {
  margin-top: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 600;
}

@media (max-width: 430px) {
  .eb-page { padding: 0 0 80px; }
  .eb-card { border-radius: 0; box-shadow: none; }
  .eb-hero { aspect-ratio: 3 / 4; }
  .eb-hero-name { font-size: 28px; }
  .eb-links { padding: 12px; }
}
