/* Link-in-bio page (Linkie-inspired structure + OptiBrain-ish colors) */

:root {
  --lb-bg1: #5f78ff;
  --lb-bg2: #7b3fe0;

  --lb-card: rgba(255, 255, 255, 0.10);
  --lb-card-border: rgba(255, 255, 255, 0.18);

  --lb-text: rgba(255, 255, 255, 0.92);
  --lb-muted: rgba(255, 255, 255, 0.72);

  --lb-btn: rgba(255, 255, 255, 0.92);
  --lb-btn-text: rgba(12, 14, 24, 0.92);
  --lb-btn-border: rgba(255, 255, 255, 0.34);

  --lb-shadow: 0 22px 60px rgba(9, 10, 28, 0.35);
  --lb-shadow-btn: 0 10px 26px rgba(9, 10, 28, 0.18);
}

/* Optional: isolate this page from any global body styles */
.links-page {
  min-height: 100vh;
  margin: 0;
  display: flex;

  background:
    radial-gradient(900px 520px at 50% 10%, rgba(255,255,255,0.14), transparent 60%),
    linear-gradient(135deg, var(--lb-bg1), var(--lb-bg2));
}

.links-shell {
  width: 100%;
  max-width: 680px;
  margin: auto;
  padding: 28px 16px 48px;
}

.links-card {
  position: relative;
  background: var(--lb-card);
  border: 1px solid var(--lb-card-border);
  border-radius: 26px;
  padding: 26px 18px 18px;
  box-shadow: var(--lb-shadow);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.links-profile {
  text-align: center;
  padding: 10px 6px 16px;
}

.avatar {
  width: 88px;
  height: 88px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.18);
  border: 1px solid rgba(255,255,255,0.28);
  box-shadow: 0 14px 40px rgba(9, 10, 28, 0.25);
  display: grid;
  place-items: center;
}

.avatar-initials {
  width: 72px;
  height: 72px;
  border-radius: 999px;
  background: rgba(0,0,0,0.26);
  color: rgba(255,255,255,0.92);
  font-weight: 800;
  font-size: 26px;
  display: grid;
  place-items: center;
  letter-spacing: 0.03em;
}

.links-name {
  margin: 0;
  font-size: clamp(1.45rem, 3.2vw, 2rem);
  line-height: 1.18;
  color: var(--lb-text);
}

.links-name .muted {
  font-weight: 700;
  opacity: 0.9;
}

.links-handle {
  margin: 6px 0 0;
  color: var(--lb-muted);
  font-weight: 600;
}

.links-meta {
  margin-top: 18px;
}

.links-title {
  margin: 0;
  font-size: 1.05rem;
  letter-spacing: 0.02em;
  color: rgba(255,255,255,0.90);
}

.links-subtitle {
  margin: 10px auto 0;
  max-width: 46ch;
  color: rgba(255,255,255,0.74);
  font-size: 0.95rem;
  line-height: 1.5;
  white-space: pre-line; /* allows your subtitle line breaks to render nicely */
}

.links-list {
  display: grid;
  gap: 12px;
  padding: 10px 6px 12px;
}

.link-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 16px 18px;
  border-radius: 999px;

  background: var(--lb-btn);
  color: var(--lb-btn-text);
  border: 1px solid var(--lb-btn-border);

  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;

  box-shadow: var(--lb-shadow-btn);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  -webkit-tap-highlight-color: transparent;
}

.link-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(9, 10, 28, 0.24);
  filter: brightness(1.02);
}

.link-btn:active {
  transform: translateY(0px);
}

.links-footer {
  padding: 10px 6px 4px;
  text-align: center;
}

.links-small {
  color: rgba(255,255,255,0.78);
  font-weight: 600;
  text-decoration: none;
}

.links-small:hover {
  color: rgba(255,255,255,0.92);
  text-decoration: underline;
}

/* Make the email button look like a clean Linkie footer label */
.links-copy {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  opacity: 0.88;
  text-decoration: none; /* cleaner by default */
}

.links-copy:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Keyboard focus polish */
.link-btn:focus-visible,
.links-copy:focus-visible {
  outline: 3px solid rgba(255,255,255,0.55);
  outline-offset: 3px;
  border-radius: 999px;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  padding: 10px 14px;
  border-radius: 999px;

  background: rgba(20, 20, 28, 0.92);
  color: #fff;
  font-size: 14px;
  line-height: 1;

  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
  opacity: 0;
  pointer-events: none;

  transition: opacity 160ms ease, transform 160ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-2px);
}

@media (min-width: 520px) {
  .links-card {
    padding: 28px 24px 20px;
  }

  .links-list {
    gap: 14px;
  }

  .link-btn {
    padding: 18px 20px;
  }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .link-btn,
  .toast {
    transition: none;
  }
}
