/*
 * Public bio page.
 *
 * Kept in its own file so a visitor downloads only this — none of the dashboard
 * styling. Everything reads from the --bio-* custom properties set inline by
 * the page from the creator's chosen theme, so one stylesheet serves every
 * theme without a single conditional.
 */

.bio-body {
  min-height: 100vh;
  padding: 32px 16px 40px;
  -webkit-font-smoothing: antialiased;
}

@media (min-width: 640px) {
  .bio-body { padding-top: 48px; }
}

.bio-main { width: 100%; max-width: 560px; margin: 0 auto; }

/* --- Header ------------------------------------------------------------ */

.bio-header { display: flex; flex-direction: column; align-items: center;
  text-align: center; margin-bottom: 28px; }

.bio-avatar {
  width: 92px; height: 92px; border-radius: 999px; object-fit: cover;
  box-shadow: 0 10px 24px -8px rgb(0 0 0 / .4);
  box-shadow: 0 0 0 2px rgb(255 255 255 / .2), 0 10px 24px -8px rgb(0 0 0 / .4);
}

.bio-avatar-initial {
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700;
}

.bio-title { margin-top: 16px; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; }
@media (min-width: 640px) { .bio-title { font-size: 24px; } }

.bio-bio { margin-top: 8px; font-size: 15px; line-height: 1.55; max-width: 420px;
  color: var(--bio-muted); }

.bio-socials { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }

.bio-social {
  width: 40px; height: 40px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bio-card-bg); border: 1px solid var(--bio-card-border);
  transition: transform .2s;
}
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .bio-social:hover { transform: translateY(-2px); }
}

/* --- Notice ------------------------------------------------------------ */

.bio-notice {
  margin-bottom: 20px; padding: 12px 16px; border-radius: 12px; text-align: center;
  font-size: 13px; font-weight: 500;
  background: var(--bio-card-bg); border: 1px solid var(--bio-card-border);
  color: var(--bio-muted);
}

/* --- Search ------------------------------------------------------------ */

.bio-search { position: relative; margin-bottom: 20px; }

.bio-search input {
  width: 100%; padding: 14px 44px; border-radius: 16px; font-size: 15px;
  background: var(--bio-input-bg);
  border: 1px solid var(--bio-input-border);
  color: var(--bio-text);
  transition: box-shadow .15s, border-color .15s;
  -webkit-appearance: none;
}
.bio-search input::placeholder { color: var(--bio-muted); opacity: .8; }
.bio-search input:focus {
  outline: none;
  border-color: var(--bio-accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--bio-accent) 22%, transparent);
}
/* Hide the browser's own clear affordance; we render our own. */
.bio-search input::-webkit-search-cancel-button { -webkit-appearance: none; }

.bio-search-icon {
  position: absolute; left: 16px; top: 50%; transform: translateY(-50%);
  color: var(--bio-muted); opacity: .7; pointer-events: none;
}

.bio-search-clear {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  padding: 6px; border-radius: 999px; color: var(--bio-muted); opacity: .65;
}
.bio-search-clear:hover { opacity: 1; }

.bio-status { margin-bottom: 12px; padding: 0 4px; font-size: 13px;
  font-weight: 500; color: var(--bio-muted); }

/* --- Link cards -------------------------------------------------------- */

.bio-list { display: flex; flex-direction: column; gap: 12px; }

.bio-card {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  min-height: 64px;                      /* comfortably above the 44px touch minimum */
  background: var(--bio-card-bg);
  border: 1px solid var(--bio-card-border);
  border-radius: var(--bio-radius);
  color: var(--bio-text);
  transition: transform .2s, background-color .2s;
  -webkit-tap-highlight-color: transparent;
}
.bio-card:active { transform: scale(.985); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .bio-card:hover { transform: translateY(-2px); }
}

.bio-card-title {
  display: block; font-size: 15px; font-weight: 600; line-height: 1.35;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.bio-card-desc {
  display: block; margin-top: 2px; font-size: 13px; line-height: 1.35;
  color: var(--bio-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.bio-chev { flex-shrink: 0; opacity: .4; transition: opacity .2s, transform .2s; }
.bio-card:hover .bio-chev { opacity: .8; transform: translateX(2px); }

/* --- Empty states ------------------------------------------------------ */

.bio-empty {
  padding: 48px 24px; text-align: center; border-radius: 16px;
  background: var(--bio-card-bg); border: 1px solid var(--bio-card-border);
}

/* --- Ads --------------------------------------------------------------- */

.ad-slot { min-height: 110px; margin-bottom: 20px; }

.ad-label {
  margin: 0 0 4px; font-size: 10px; letter-spacing: .08em; text-transform: uppercase;
  text-align: center; opacity: .45; color: var(--bio-muted);
}

.ad-slot-test {
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--bio-radius); border: 1px dashed var(--bio-card-border);
  background: var(--bio-card-bg); color: var(--bio-muted);
  font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
}

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

.bio-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 28px; }

.bio-action {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 600;
  background: var(--bio-card-bg); border: 1px solid var(--bio-card-border);
  color: var(--bio-text);
  transition: opacity .15s;
}
.bio-action:hover { opacity: .8; }

.bio-footer { margin-top: 32px; display: flex; flex-direction: column;
  align-items: center; gap: 8px; text-align: center; }
.bio-footer a { font-size: 13px; font-weight: 500; opacity: .6; transition: opacity .15s; }
.bio-footer a:hover { opacity: 1; }
.bio-report { font-size: 11px !important; opacity: .4 !important; }

.hide { display: none !important; }
