/* Site theme — rendered both as the full public page and inside the builder's
   phone preview. All colors/sizes come from CSS custom properties set by
   render.js (applyTheme), so this one stylesheet drives every theme variant. */

:root {
  --cream: #f4f3e8;
  --card: #18180f;
  --card-border: #2c2c1c;
}

.site-theme {
  position: relative;
  min-height: 100%;
  width: 100%;
  background: var(--wallpaper, #0a0a08);
  color: var(--text-color, #f4f3e8);
  font-family: var(--font-family, 'DM Sans', sans-serif);
  overflow-x: hidden;
  display: flex;
  justify-content: center;
  isolation: isolate;
}

.site-theme * { box-sizing: border-box; }

.stripe-field {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      115deg,
      transparent 0 120px,
      rgba(255,255,255,0.045) 120px 132px,
      transparent 132px 260px
    );
}

.page {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 560px;
  padding: 56px 24px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- Hero / header ---------- */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

.badge {
  position: relative;
  width: 84px;
  height: 84px;
  border-radius: 20px;
  background: rgba(0,0,0,0.3);
  border: 2px solid var(--btn-bg, #18180f);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  overflow: hidden;
}

.badge img { width: 100%; height: 100%; object-fit: cover; }

.badge-ring {
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  border: 2px solid transparent;
  border-top-color: currentColor;
  border-right-color: currentColor;
  color: var(--btn-bg, #18180f);
  animation: spin 7s linear infinite;
}

.badge-letter {
  font-family: 'Anton', sans-serif;
  font-size: 40px;
  line-height: 1;
  transform: translateY(2px);
}

@keyframes spin { to { transform: rotate(360deg); } }

.wordmark {
  font-family: 'Anton', sans-serif;
  font-weight: 400;
  font-size: clamp(30px, 9vw, 48px);
  letter-spacing: 1px;
  margin: 0;
  line-height: 1.05;
}

.kicker {
  margin: 10px 0 0;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 4px;
  opacity: 0.7;
  text-transform: uppercase;
}

.bio {
  margin: 22px 0 26px;
  font-size: 15.5px;
  line-height: 1.75;
  opacity: 0.85;
  max-width: 380px;
}

.empty-state {
  margin: 24px 0;
  opacity: 0.6;
  font-size: 14px;
}

.socials {
  display: flex;
  gap: 14px;
  margin-bottom: 36px;
  flex-wrap: wrap;
  justify-content: center;
}

.social-link {
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1.5px solid color-mix(in srgb, var(--text-color, #f4f3e8) 18%, transparent);
  color: var(--text-color, #f4f3e8);
  background: color-mix(in srgb, var(--text-color, #f4f3e8) 4%, transparent);
  text-decoration: none;
  transition: border-color .2s ease, color .2s ease, transform .2s ease;
}

.social-link svg { width: 19px; height: 19px; }

.social-link:hover {
  border-color: var(--btn-bg, #e8e600);
  transform: translateY(-2px);
}

/* ---------- Header layout variants ---------- */

.header-hero { width: 100%; position: relative; border-radius: 22px; overflow: hidden; margin-bottom: 20px; }
.hero-photo { height: 220px; background: linear-gradient(135deg, rgba(255,255,255,0.15), rgba(0,0,0,0.3)); display: flex; align-items: center; justify-content: center; font-size: 64px; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.75), transparent 60%); }
.hero-text { position: absolute; left: 0; right: 0; bottom: 16px; text-align: center; }
.header-hero .wordmark, .header-hero .kicker { color: var(--cream); }

.header-banner { width: 100%; position: relative; margin-bottom: 8px; }
.banner-strip { height: 96px; border-radius: 18px; background: linear-gradient(120deg, rgba(255,255,255,0.14), rgba(255,255,255,0.03)); }
.badge--overlap { margin-top: -42px; }

.header-cutout { width: 100%; display: flex; flex-direction: column; align-items: center; }
.cutout-shape {
  width: 96px; height: 96px; margin-bottom: 18px; overflow: hidden; display:flex; align-items:center; justify-content:center;
  background: rgba(0,0,0,0.3);
  clip-path: polygon(30% 0%, 70% 0%, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0% 70%, 0% 30%);
}
.cutout-shape img { width: 100%; height: 100%; object-fit: cover; }

.header-shape { width: 100%; display: flex; flex-direction: column; align-items: center; }
.shape-blob {
  width: 100px; height: 100px; margin-bottom: 18px; overflow: hidden; display:flex; align-items:center; justify-content:center;
  background: rgba(0,0,0,0.3);
  border-radius: 42% 58% 65% 35% / 45% 40% 60% 55%;
}
.shape-blob img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Links ---------- */

.links {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.link-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--btn-text, #f4f3e8);
  overflow: hidden;
  background: var(--btn-bg, #18180f);
  border-radius: var(--btn-radius, 14px);
  box-shadow: var(--btn-shadow, none);
  border: 1.5px solid transparent;
  transition: transform .15s ease, filter .2s ease;
}

.site-theme[data-btn-style="outline"] .link-card {
  background: transparent;
  border-color: var(--btn-bg, #18180f);
  color: var(--btn-bg, #18180f);
}

.site-theme[data-btn-style="glass"] .link-card {
  background: color-mix(in srgb, var(--btn-bg, #18180f) 55%, transparent);
  backdrop-filter: blur(10px);
  border-color: rgba(255,255,255,0.18);
}

.link-card:hover { transform: translateY(-2px); filter: brightness(1.08); }
.link-card:active { transform: translateY(0); }

.link-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: calc(var(--btn-radius, 14px) * 0.6);
  background: rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
}

.link-icon svg { width: 20px; height: 20px; }

.link-icon--feature { background: rgba(255,255,255,0.9); color: #111; }

.link-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.link-title { font-weight: 700; font-size: 15.5px; }

.link-sub {
  font-size: 12.5px;
  opacity: 0.65;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-arrow {
  flex: none;
  font-size: 18px;
  opacity: 0.7;
  transition: transform .2s ease;
}

.link-card:hover .link-arrow { transform: translateX(4px); }

/* Button presets tweak type feel on top of the controls above */
.site-theme[data-btn-preset="professional"] .link-title { text-transform: uppercase; letter-spacing: 0.5px; font-size: 13.5px; }
.site-theme[data-btn-preset="friendly"] .link-card { font-family: var(--font-family); }
.site-theme[data-btn-preset="modern"] .link-title { font-weight: 900; }

/* ---------- Footer ---------- */

.footer {
  margin-top: 44px;
  font-size: 12px;
  opacity: 0.45;
  letter-spacing: 0.5px;
}

@media (max-width: 380px) {
  .page { padding: 40px 18px 32px; }
}

/* ---------- Stickers ---------- */

.sticker {
  position: absolute;
  z-index: 3;
  font-size: 34px;
  line-height: 1;
  filter: drop-shadow(0 2px 6px rgba(0,0,0,0.35));
  pointer-events: none;
}

/* ---------- Support banner ---------- */

.support-banner {
  width: 100%;
  text-align: center;
  font-size: 12.5px;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 10px;
  background: color-mix(in srgb, var(--text-color, #f4f3e8) 12%, transparent);
  margin-bottom: 18px;
}

/* ---------- Inline forms (subscribe / message) ---------- */

.inline-form {
  width: 100%;
  margin-top: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.inline-form--message { margin-top: 10px; }

.inline-form-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: calc(var(--btn-radius, 14px) * 0.7);
  border: 1.5px solid color-mix(in srgb, var(--text-color, #f4f3e8) 20%, transparent);
  background: color-mix(in srgb, var(--text-color, #f4f3e8) 6%, transparent);
  color: var(--text-color, #f4f3e8);
  font-family: var(--font-family);
  font-size: 14px;
}

.inline-form-input::placeholder { color: color-mix(in srgb, var(--text-color, #f4f3e8) 55%, transparent); }

.inline-form-textarea { resize: vertical; }

.inline-form-btn {
  padding: 11px 14px;
  border-radius: var(--btn-radius, 14px);
  border: none;
  background: var(--btn-bg, #18180f);
  color: var(--btn-text, #f4f3e8);
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.inline-form-status {
  font-size: 12.5px;
  opacity: 0.75;
  margin: 0;
}

/* ---------- Footer extras ---------- */

.footer-custom { margin: 0 0 6px; opacity: 0.8; }
.footer-legal { margin: 2px 0; opacity: 0.4; font-size: 11px; }
.footer-badge {
  display: inline-block;
  margin-top: 8px;
  font-size: 11.5px;
  color: inherit;
  opacity: 0.55;
  text-decoration: underline;
}

/* ---------- Sensitive content gate ---------- */

.sensitive-gate {
  position: absolute;
  inset: 0;
  z-index: 10;
  background: rgba(5,5,4,0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.sensitive-gate-card {
  text-align: center;
  color: #f4f3e8;
}

.sensitive-gate-card p { margin: 0 0 14px; font-size: 14px; }

.sensitive-gate-btn {
  padding: 10px 20px;
  border-radius: 10px;
  border: 1.5px solid #f4f3e8;
  background: transparent;
  color: #f4f3e8;
  font-weight: 700;
  cursor: pointer;
}
