/* Frontend styles for Link Hub Pro */
.lhp-root {
  --lhp-theme-bg: #0b1220;
  --lhp-bg2: #111827;

  --lhp-card-bg: rgba(255,255,255,0.06);
  --lhp-text: rgba(255,255,255,0.92);
  --lhp-muted: rgba(255,255,255,0.72);
  --lhp-accent: #22c55e;

  --lhp-max-width: 420px;
  --lhp-padding: 18px;
  --lhp-gap: 10px;

  --lhp-title-size: 20px;
  --lhp-bio-size: 13px;

  --lhp-avatar-size: 64px;

  --lhp-button-radius: 14px;
  --lhp-button-height: 48px;
  --lhp-button-border: 1px;

  --lhp-icon-size: 18px;

  min-height: 100vh;
  display: flex;
  justify-content: center;
  padding: 28px 16px;
  box-sizing: border-box;
  color: var(--lhp-text);
}

.lhp-bg-solid { background: var(--lhp-theme-bg); }
.lhp-bg-gradient {
  background: linear-gradient(180deg, var(--lhp-theme-bg), var(--lhp-bg2));
}

.lhp-font-system { font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; }
.lhp-font-inter { font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif; }
.lhp-font-georgia { font-family: Georgia, "Times New Roman", serif; }
.lhp-font-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace; }

.lhp-card {
  width: min(100%, var(--lhp-max-width));
  background: var(--lhp-card-bg);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 18px;
  padding: var(--lhp-padding);
  box-sizing: border-box;
}

.lhp-shadow { box-shadow: 0 16px 44px rgba(0,0,0,0.35); }
.lhp-no-shadow { box-shadow: none; }

.lhp-header {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.lhp-avatar {
  width: var(--lhp-avatar-size);
  height: var(--lhp-avatar-size);
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.16);
  flex: 0 0 auto;
}

.lhp-avatar-circle { border-radius: 999px; }
.lhp-avatar-rounded { border-radius: 14px; }
.lhp-avatar-square { border-radius: 0px; }

.lhp-meta { min-width: 0; }

.lhp-name {
  font-weight: 800;
  letter-spacing: 0.01em;
  font-size: var(--lhp-title-size);
  line-height: 1.1;
  margin-bottom: 4px;
}

.lhp-bio {
  font-size: var(--lhp-bio-size);
  line-height: 1.35;
  color: var(--lhp-muted);
}

.lhp-links {
  display: grid;
  gap: var(--lhp-gap);
}

/* Buttons */
.lhp-btn {
  --lhp-link-bg: rgba(255,255,255,0.06);
  --lhp-link-fg: var(--lhp-text);

  height: var(--lhp-button-height);
  border-radius: var(--lhp-button-radius);
  border: var(--lhp-button-border) solid rgba(255,255,255,0.12);

  display: flex;
  align-items: center;
  gap: 10px;

  padding: 0 14px;
  box-sizing: border-box;

  text-decoration: none;
  color: var(--lhp-link-fg);
  font-weight: 700;
  font-size: 14px;

  transition: transform 120ms ease, background 120ms ease, border-color 120ms ease, filter 120ms ease;
}

.lhp-btn:focus {
  outline: 2px solid var(--lhp-accent);
  outline-offset: 2px;
}

.lhp-btn:hover {
  transform: translateY(-1px);
}

/* Filled / Outline / Glass global styles */
.lhp-btn-filled {
  background: var(--lhp-link-bg);
}

.lhp-btn-filled:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.18);
}

.lhp-btn-outline {
  background: transparent;
  border-color: rgba(255,255,255,0.22);
}

.lhp-btn-outline:hover {
  border-color: rgba(255,255,255,0.32);
  background: rgba(255,255,255,0.06);
}

.lhp-btn-glass {
  background: rgba(255,255,255,0.06);
  border-color: rgba(255,255,255,0.14);
  backdrop-filter: blur(10px);
}

.lhp-btn-glass:hover {
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,255,255,0.22);
}

/* Icon */
.lhp-btn-icon {
  width: calc(var(--lhp-icon-size) + 6px);
  height: calc(var(--lhp-icon-size) + 6px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.lhp-btn-icon svg {
  width: var(--lhp-icon-size);
  height: var(--lhp-icon-size);
}

.lhp-icon-accent { color: var(--lhp-accent); }
.lhp-icon-mono { color: currentColor; opacity: 0.92; }

.lhp-btn-label {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Alignment */
.lhp-align-left .lhp-card { text-align: left; }
.lhp-align-center .lhp-card { text-align: left; } /* keep readable; card centered by container */

/* Per-link shape overrides */
.lhp-shape-rect { border-radius: 0px; }
.lhp-shape-rounded { border-radius: 14px; }
.lhp-shape-pill { border-radius: 999px; }

/* Square and circle are icon-only buttons */
.lhp-shape-square,
.lhp-shape-circle {
  width: var(--lhp-button-height);
  padding: 0;
  justify-content: center;
}

.lhp-shape-square .lhp-btn-label,
.lhp-shape-circle .lhp-btn-label {
  display: none;
}

.lhp-shape-square { border-radius: 0px; }
.lhp-shape-circle { border-radius: 999px; }

/* Mobile polish */
@media (max-width: 420px) {
  .lhp-root { padding: 20px 12px; }
  .lhp-card { border-radius: 16px; }
}
