/* ================================================================
   style.css — Ditzy Link-in-Bio Template
   Mobile-first, max-width 480px, pure CSS (no frameworks)
   ================================================================ */

/* ----------------------------------------------------------------
   RESET
---------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ----------------------------------------------------------------
   CSS VARIABLES — edit these to re-theme the whole site
---------------------------------------------------------------- */
:root {
  /* Background */
  --bg:          #080808;
  --bg2:         #111111;

  /* Surfaces */
  --card:        rgba(255, 255, 255, 0.04);
  --card-hover:  rgba(255, 255, 255, 0.08);
  --border:      rgba(255, 255, 255, 0.13);

  /* Text */
  --text:        #f0f0f0;
  --muted:       rgba(240, 240, 240, 0.42);

  /* White/grey accent (VIP) */
  --accent:      #d4d4d4;
  --accent2:     #ffffff;
  --glow-purple: rgba(255, 255, 255, 0.05);

  /* Silver accent (Free) */
  --pink:        #b0b0b0;
  --pink2:       #ffffff;
  --glow-pink:   rgba(255, 255, 255, 0.05);
}

/* ----------------------------------------------------------------
   BASE
---------------------------------------------------------------- */
html, body {
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
}

/* Ambient top glow */
body::before {
  content: '';
  position: fixed;
  top: -20%;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.04) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

/* Ambient bottom glow */
body::after {
  content: '';
  position: fixed;
  bottom: -15%;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.02) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

/* ----------------------------------------------------------------
   PAGE CONTAINER
---------------------------------------------------------------- */
.page {
  position: relative;
  z-index: 1;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 0 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ----------------------------------------------------------------
   HERO SECTION
---------------------------------------------------------------- */
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 28px;
  animation: fadeUp 0.55s ease both;
}

/* Banner — full width, no side rounding for edge-to-edge feel */
.banner {
  width: 100%;
  height: 175px;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: brightness(0.72);
}

/* Profile picture — glowing ring, overlaps banner */
.pfp-wrap {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #555555, #ffffff);
  box-shadow:
    0 0 0 4px var(--bg),
    0 0 28px rgba(255, 255, 255, 0.10),
    0 0 60px rgba(255, 255, 255, 0.04);
  margin-top: -48px; /* overlap the bottom of the banner by half the PFP height */
  z-index: 2;
  flex-shrink: 0;
}

.pfp {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Creator name */
.name {
  font-family: 'DM Serif Display', serif;
  font-size: 27px;
  letter-spacing: -0.3px;
  color: var(--text);
  margin-top: 16px;
  text-align: center;
}

/* Handle */
.handle {
  font-size: 13px;
  color: var(--muted);
  font-weight: 400;
  letter-spacing: 0.3px;
  margin-top: 3px;
  text-align: center;
}

/* Short bio */
.bio {
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  line-height: 1.65;
  max-width: 270px;
  margin-top: 12px;
  padding: 0 8px;
}

/* ----------------------------------------------------------------
   PILL BUTTONS
---------------------------------------------------------------- */
.buttons {
  width: 100%;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: fadeUp 0.55s 0.12s ease both;
}

/* Base pill */
.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 17px 28px;
  border-radius: 50px;
  border: none;
  text-decoration: none;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.25px;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
  -webkit-tap-highlight-color: transparent;
  text-align: center;
  white-space: nowrap;
}

.btn:active { transform: scale(0.97); }

/* Free — white pill, black text */
.btn-free {
  background: #ffffff;
  color: #080808;
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.12);
}

.btn-free:hover {
  background: #e8e8e8;
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.18);
  transform: translateY(-2px);
  filter: none;
}

/* VIP — dark pill, white border, white text */
.btn-vip {
  background: #111111;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 6px 24px rgba(255, 255, 255, 0.06);
}

.btn-vip:hover {
  background: #1e1e1e;
  border-color: rgba(255, 255, 255, 0.85);
  box-shadow: 0 12px 32px rgba(255, 255, 255, 0.10);
  transform: translateY(-2px);
  filter: none;
}

/* TikTok — dark ghost */
.btn-tiktok {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-tiktok:hover {
  background: var(--card-hover);
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-1px);
}

.btn-icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

/* ----------------------------------------------------------------
   FOOTER
---------------------------------------------------------------- */
.footer {
  margin-top: 44px;
  font-size: 11px;
  color: rgba(240, 234, 248, 0.2);
  text-align: center;
  letter-spacing: 0.2px;
  animation: fadeUp 0.55s 0.3s ease both;
}

/* ----------------------------------------------------------------
   IN-APP BROWSER OVERLAY
   Shown by script.js when a known in-app WebView is detected.
---------------------------------------------------------------- */
.inapp-overlay {
  display: none; /* JS adds .active to show */
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 7, 16, 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: 54px;
  line-height: 1;
}

.inapp-title {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  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: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 14px;
  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: 50%;
  background: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #080808;
  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: 'DM Sans', sans-serif;
  margin-top: 6px;
  padding: 4px 8px;
}

.inapp-dismiss:hover { color: var(--text); }

/* ----------------------------------------------------------------
   LAYOUT VARIANTS — applied by script.js (anti-shadowban)
   Minor spacing/size tweaks so each session looks slightly
   different to automated scanners without breaking the UI.
---------------------------------------------------------------- */
.layout-a .buttons { gap: 12px; }
.layout-b .buttons { gap: 15px; }
.layout-b .btn    { padding: 16px 28px; }
.layout-c .pfp-wrap { width: 90px; height: 90px; margin-top: -45px; }
.layout-c .btn    { font-size: 14px; padding: 15px 28px; }

/* ----------------------------------------------------------------
   ANIMATIONS
---------------------------------------------------------------- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0);    }
}

/* ----------------------------------------------------------------
   REDIRECT PAGES (free.html / 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(--accent);
  animation: spin 0.8s linear infinite;
}

.redirect-title {
  font-family: 'DM Serif Display', serif;
  font-size: 24px;
  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);    }
}
