/* ================================================================
   style.css — Dani Link-in-Bio
   Wine-dark theme: near-black burgundy background, single cherry
   accent (pulled from the dress + bikini), soft 18px radius
   system, Fraunces display + Manrope body.

   Contract preserved for script.js / vip.html:
   .page #page, .buttons, .btn, .btn-vip, .btn-tiktok, .pfp-wrap,
   .layout-a/b/c, .inapp-* (+ .active), .redirect-*
   ================================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ----------------------------------------------------------------
   TOKENS
---------------------------------------------------------------- */
:root {
  /* Wine-black background (matches the dress) */
  --bg:          #14090c;
  --bg2:         #1e0d11;

  /* Surfaces */
  --card:        rgba(255, 107, 125, 0.06);
  --card-hover:  rgba(255, 107, 125, 0.12);
  --border:      rgba(255, 107, 125, 0.18);

  /* Text */
  --text:        #fbf0f1;
  --muted:       rgba(251, 240, 241, 0.55);

  /* Cherry accent (the only accent on the page).
     Token names kept as --ice* to avoid churn; values are cherry. */
  --ice:         #ff6b7d;
  --ice-deep:    #b3122e;
  --ice-ink:     #1f0509;   /* text on accent fills */

  /* Radius system: everything soft 18px (12px small) */
  --r:           18px;
  --r-sm:        12px;
}

/* ----------------------------------------------------------------
   BASE
---------------------------------------------------------------- */
html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Manrope', system-ui, sans-serif;
  overflow-x: hidden;
}

/* Ambient cold glow, top */
body::before {
  content: '';
  position: fixed;
  top: -24%;
  left: 50%;
  transform: translateX(-50%);
  width: 680px;
  height: 680px;
  background: radial-gradient(circle, rgba(179, 18, 46, 0.12) 0%, transparent 64%);
  pointer-events: none;
  z-index: 0;
}

/* Ambient glow, bottom */
body::after {
  content: '';
  position: fixed;
  bottom: -18%;
  left: 50%;
  transform: translateX(-50%);
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(255, 107, 125, 0.05) 0%, transparent 64%);
  pointer-events: none;
  z-index: 0;
}

/* ----------------------------------------------------------------
   PAGE CONTAINER
---------------------------------------------------------------- */
.page {
  position: relative;
  z-index: 1;
  max-width: 480px;
  width: 100%;
  margin: 0 auto;
  padding: 0 0 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 768px) {
  .page {
    max-width: 540px;
    margin: 48px auto;
    background: linear-gradient(180deg, var(--bg2), rgba(30, 13, 17, 0.35));
    border: 1px solid rgba(255, 107, 125, 0.10);
    border-radius: var(--r);
    overflow: hidden;
    box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  }
}

/* ----------------------------------------------------------------
   HERO — full photo banner, name overlaid, social icon row below
---------------------------------------------------------------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 18px;
  animation: fadeUp 0.55s ease both;
}

/* Banner is the hero photo; name + handle overlay its bottom edge */
.banner-wrap {
  position: relative;
  width: 100%;
}

.banner {
  width: 100%;
  height: 340px;
  object-fit: cover;
  object-position: 30% 26%;
  display: block;
}

.banner-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    rgba(20, 9, 12, 0.10) 0%,
    rgba(20, 9, 12, 0.00) 40%,
    rgba(20, 9, 12, 0.70) 78%,
    var(--bg) 100%);
  pointer-events: none;
}

.hero-id {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 58px;
  z-index: 2;
  text-align: center;
  pointer-events: none;
}

.name {
  font-family: 'Fraunces', Georgia, serif;
  font-style: italic;
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.6px;
  color: var(--text);
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
}

.handle {
  font-size: 14px;
  color: var(--ice);
  font-weight: 500;
  letter-spacing: 0.4px;
  margin-top: 1px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
}

.bio {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  line-height: 1.6;
  max-width: 320px;
  margin-top: 12px;
  padding: 0 8px;
}

/* ----------------------------------------------------------------
   ONLINE STATUS (real semantic state)
---------------------------------------------------------------- */
.status-row {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
  padding: 5px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--card);
  font-size: 12.5px;
}

.online-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 6px rgba(74, 222, 128, 0.7);
  flex-shrink: 0;
  animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 5px rgba(74, 222, 128, 0.7); }
  50%      { box-shadow: 0 0 12px rgba(74, 222, 128, 0.95); }
}

.online-text {
  color: #4ade80;
  font-weight: 500;
}

/* ----------------------------------------------------------------
   BUTTONS — VIP image card is the page's focus
---------------------------------------------------------------- */
.buttons {
  width: 100%;
  padding: 0 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: fadeUp 0.55s 0.12s ease both;
}

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 24px;
  border-radius: var(--r);
  border: none;
  text-decoration: none;
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.2px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease,
              background 0.18s ease, border-color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

/* VIP — ice gradient block, dark ink text (primary CTA).
   Occasional sheen: a light band sweeps across once every ~7s
   (sweep lasts ~1s, idle the rest of the cycle). */
.btn-vip {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--ice), var(--ice-deep));
  color: var(--ice-ink);
  font-weight: 600;
  box-shadow: 0 8px 28px rgba(179, 18, 46, 0.35);
}

.btn-vip::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 45%;
  height: 100%;
  background: linear-gradient(105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.35) 50%,
    transparent 100%);
  transform: translateX(-120%) skewX(-18deg);
  pointer-events: none;
  animation: vip-sheen 7s ease-in-out infinite;
}

@keyframes vip-sheen {
  0%        { transform: translateX(-120%) skewX(-18deg); }
  12%, 100% { transform: translateX(320%)  skewX(-18deg); }
}

.btn-vip:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 38px rgba(179, 18, 46, 0.5);
}

/* VIP card (index only, inside .buttons): image card, lock badge,
   caption pinned to bottom. */
.buttons .btn-vip {
  padding: 0;
  height: 380px;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
}

.vip-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 38%;
  transition: transform 0.4s ease;
}

.buttons .btn-vip:hover .vip-img { transform: scale(1.03); }

.buttons .btn-vip::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg,
    transparent 45%,
    rgba(20, 9, 12, 0.85) 100%);
  pointer-events: none;
}

.vip-lock {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ice);
  background: rgba(20, 9, 12, 0.55);
  border: 1px solid rgba(255, 107, 125, 0.35);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.vip-label {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  z-index: 2;
  font-size: 17px;
  font-weight: 600;
  text-align: center;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

/* sheen layers above the image, below the caption */
.buttons .btn-vip::before { z-index: 1; }

/* Socials: row of circular icon-only links */
.social-grid {
  display: flex;
  justify-content: center;
  gap: 10px;
  position: relative;
  z-index: 3;
  margin-top: -50px;
}

.social-grid .btn-tiktok {
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: 50%;
}

.social-grid .btn-tiktok img {
  width: 18px;
  height: 18px;
  display: block;
}

.btn-tiktok {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-tiktok:hover {
  background: var(--card-hover);
  border-color: rgba(255, 107, 125, 0.35);
  transform: translateY(-1px);
}

/* ----------------------------------------------------------------
   FOOTER
---------------------------------------------------------------- */
.footer {
  margin-top: 28px;
  font-size: 11px;
  color: rgba(251, 240, 241, 0.25);
  text-align: center;
  letter-spacing: 0.2px;
  animation: fadeUp 0.55s 0.3s ease both;
}

/* ----------------------------------------------------------------
   IN-APP BROWSER OVERLAY
---------------------------------------------------------------- */
.inapp-overlay {
  display: none; /* JS adds .active */
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(20, 9, 12, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 24px;
  text-align: center;
  gap: 20px;
}

.inapp-overlay.active { display: flex; }

.inapp-icon {
  font-size: 50px;
  line-height: 1;
}

.inapp-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: -4px;
}

.inapp-msg {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.7;
  max-width: 300px;
}

.inapp-steps {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 320px;
}

.inapp-step {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 16px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-align: left;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.inapp-step strong { color: var(--text); }

.inapp-step-num {
  width: 28px;
  height: 28px;
  border-radius: var(--r-sm);
  background: linear-gradient(135deg, var(--ice), var(--ice-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ice-ink);
  flex-shrink: 0;
}

.inapp-dismiss {
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: 'Manrope', system-ui, sans-serif;
  margin-top: 6px;
  padding: 4px 8px;
}

.inapp-dismiss:hover { color: var(--text); }

/* ----------------------------------------------------------------
   LAYOUT VARIANTS — applied by script.js (anti-shadowban)
---------------------------------------------------------------- */
.layout-a .social-grid { gap: 10px; }
.layout-b .social-grid { gap: 12px; }
.layout-b .buttons .btn-vip { height: 388px; }
.layout-c .social-grid .btn-tiktok { width: 42px; height: 42px; }
.layout-c .vip-label { font-size: 16px; }

/* ----------------------------------------------------------------
   ANIMATIONS
---------------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0);    }
}

@media (prefers-reduced-motion: reduce) {
  .hero, .buttons, .footer { animation: none; }
  .online-dot { animation: none; }
  .btn-vip::before { animation: none; display: none; }
  .btn, .btn:hover, .btn:active { transform: none; transition: none; }
}

/* ----------------------------------------------------------------
   REDIRECT PAGES (vip.html)
---------------------------------------------------------------- */
.redirect-body {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.redirect-wrap {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  max-width: 340px;
  width: 100%;
  text-align: center;
  animation: pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.redirect-spinner {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 3px solid var(--border);
  border-top-color: var(--ice);
  animation: spin 0.8s linear infinite;
}

.redirect-title {
  font-size: 24px;
  font-weight: 600;
  color: var(--text);
}

.redirect-sub {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.redirect-back {
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}

.redirect-back:hover { color: var(--text); }

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes pop {
  from { opacity: 0; transform: scale(0.93) translateY(10px); }
  to   { opacity: 1; transform: scale(1)    translateY(0);    }
}

@media (prefers-reduced-motion: reduce) {
  .redirect-wrap { animation: none; }
}

/* ----------------------------------------------------------------
   DESKTOP — same vertical stack, sized to fit the viewport (no scroll):
   banner and VIP card share the height left after the fixed rows.
---------------------------------------------------------------- */
@media (min-width: 768px) {
  .page {
    max-width: 460px;
    height: calc(100vh - 48px);
    max-height: 980px;
    margin: 24px auto;
    padding: 0 0 20px;
  }

  .hero {
    flex: 1;
    min-height: 0;
    margin-bottom: 14px;
  }

  .banner-wrap {
    flex: 1;
    min-height: 0;
  }

  .banner { height: 100%; }

  .buttons {
    flex: 1.15;
    min-height: 0;
  }

  .page .buttons .btn-vip { height: 100%; }

  .footer { margin-top: 12px; }
}
