/* Links page styles — matches tip.css palette. Dark values mirror
   campaign.css's dark theme; data-theme is stamped by the theme controller. */
:root {
  --lp-bg: #f8f7f5;
  --lp-card: #ffffff;
  --lp-border: #e5e3df;
  --lp-border-hover: #d6d3cd;
  --lp-text-primary: #1a1a1e;
  --lp-text-secondary: #5c5c62;
  --lp-text-muted: #8c8c92;
  --lp-coral: #e85a4b;
  --lp-avatar-bg: #efe7e2;
  --lp-radius: 12px;
}

[data-theme="dark"] {
  --lp-bg: #12191c;
  --lp-card: #192226;
  --lp-border: #2a3a3f;
  --lp-border-hover: #3a4d52;
  --lp-text-primary: #fafafa;
  --lp-text-secondary: #c8cdd0;
  --lp-text-muted: #9ca3a7;
  --lp-coral: #ff6b5b;
  --lp-avatar-bg: #1f282c;
}

.links-page {
  margin: 0;
  padding: 0;
  font-family: 'Instrument Sans', -apple-system, system-ui, sans-serif;
  background: var(--lp-bg);
  color: var(--lp-text-primary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

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

.links-page .page {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 44px 16px 8px;
  flex: 1;
}

/* Profile header */
.links-page .profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 22px;
}

/* Creator branding (shared across tip/link/giveaway pages) */
.links-page .creator-branding {
  margin-bottom: 0;
}

.links-page .creator-branding-avatar {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--lp-border);
  background: var(--lp-avatar-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  object-fit: cover;
  margin: 0 auto 14px;
}

.links-page .creator-branding-avatar-fallback {
  color: var(--lp-coral);
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 40px;
}

.links-page .creator-branding-name {
  font-family: 'Fraunces', serif;
  font-weight: 600;
  font-size: 24px;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.3;
}

.links-page .creator-branding-handle {
  font-size: 14px;
  color: var(--lp-text-muted);
  margin-top: 3px;
}

.links-page .bio {
  font-size: 14.5px;
  color: var(--lp-text-secondary);
  line-height: 1.55;
  margin: 12px 0 0;
  max-width: 380px;
}

/* Social icons */
.links-page .socials {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin: 18px 0 28px;
  color: var(--lp-text-secondary);
}

.links-page .socials a {
  color: inherit;
  transition: color .15s;
}

.links-page .socials a:hover {
  color: var(--lp-coral);
}

.links-page .socials svg {
  width: 22px;
  height: 22px;
  display: block;
}

/* Link rows */
.links-page .stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.links-page .row {
  display: flex;
  align-items: center;
  gap: 14px;
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: var(--lp-radius);
  padding: 15px 16px;
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, transform .05s;
}

.links-page .row:hover {
  border-color: var(--lp-border-hover);
}

.links-page .row:active {
  transform: scale(0.995);
}

.links-page .row-icon {
  width: 34px;
  height: 34px;
  flex: none;
  color: var(--lp-text-primary);
  display: grid;
  place-items: center;
}

.links-page .row-icon svg {
  width: 22px;
  height: 22px;
}

.links-page .row-body {
  flex: 1;
  min-width: 0;
}

.links-page .row-title {
  font-weight: 500;
  font-size: 15.5px;
  letter-spacing: -0.01em;
  display: block;
}

.links-page .row-sub {
  font-size: 13px;
  color: var(--lp-text-muted);
  margin-top: 1px;
  display: block;
}

.links-page .row-end {
  flex: none;
  color: var(--lp-border-hover);
  display: grid;
  place-items: center;
}

.links-page .row-end svg {
  width: 18px;
  height: 18px;
}

.links-page .row:hover .row-end {
  color: var(--lp-text-muted);
}

.links-page .badge {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--lp-coral);
  border: 1px solid var(--lp-coral);
  padding: 2px 8px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.links-page .badge .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--lp-coral);
}

/* External link rows — lighter weight */
.links-page .row.ext {
  padding: 14px 16px;
}

.links-page .row.ext .row-icon {
  width: 22px;
  color: var(--lp-text-muted);
}

.links-page .row.ext .row-icon svg {
  width: 18px;
  height: 18px;
}

.links-page .row.ext .row-title {
  font-weight: 400;
  font-size: 15px;
}

/* Footer */
.links-page .page-footer {
  margin-top: 32px;
  padding: 20px 24px;
  text-align: center;
  border-top: 1px solid var(--lp-border);
  font-size: 12px;
  color: var(--lp-text-muted);
}

.links-page .page-footer a {
  color: var(--lp-text-secondary);
  text-decoration: none;
}

.links-page .page-footer a:hover {
  text-decoration: underline;
}

.links-page .page-footer-brand {
  margin-bottom: 4px;
}

.links-page .page-footer-brand a {
  font-weight: 600;
}
