/* Reset */
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji"; color: #0f172a; background: #0b0b0b; }

/* Theming via CSS variables populated by JS if provided */
:root {
  --bg: #f8fafc;
  --text: #0f172a;
  --muted: #475569;
  --card: #ffffff;
  --accent: #2563eb;
  --accent-contrast: #ffffff;
  --ring: rgba(37,99,235,.3);
  --logo-size: 48px;
  --logo-size-mobile: 40px;
  --avatar-size: 112px;
  --avatar-size-mobile: 88px;
  --page-bg-image: none;
  --panel-bg: rgba(0,0,0,0.6);
  --panel-text: #ffffff;
  --panel-muted: rgba(255,255,255,0.75);
}

.page-bg { position: fixed; inset: 0; z-index: -1; background: center/cover no-repeat; background-image: var(--page-bg-image); pointer-events: none; }

.banner {
  width: 100%;
  height: clamp(160px, 30vw, 280px);
  background-size: cover;
  background-position: center;
}

.container { max-width: 740px; margin: -64px auto 64px; padding: 0 16px; position: relative; z-index: 1; }
.panel { background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.35) 22%, rgba(0,0,0,0.55) 55%, rgba(0,0,0,0.65) 100%); color: var(--panel-text); border-radius: 18px; padding: 20px; backdrop-filter: blur(2px); box-shadow: 0 10px 30px rgba(0,0,0,.3); }

.profile { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 16px; border-radius: 16px; background: transparent; box-shadow: none; }
.profile-image { width: var(--avatar-size); height: var(--avatar-size); border-radius: 50%; object-fit: cover; border: 4px solid rgba(255,255,255,.15); box-shadow: 0 8px 24px rgba(0,0,0,.35); background: #111; }
.profile-name { margin: 0; font-size: clamp(1.25rem, 2.8vw, 2rem); color: #fff; text-align: center; }
.profile-tagline { margin: 6px 0 0; color: #ffffff; font-weight: 600; text-align: center; }
.profile-bio { margin: 4px 0 0; color: var(--panel-muted); text-align: center; }
.profile-text { text-align: center; }

.socials { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 16px; justify-content: center; }
.socials a { display: inline-flex; align-items: center; justify-content: center; padding: 10px; width: 44px; height: 44px; border-radius: 9999px; background: transparent; color: #fff; text-decoration: none; border: none; box-shadow: none; transition: box-shadow 120ms ease, background-color 120ms ease; }
.socials a:hover, .socials a:focus-visible { background-color: rgba(255,255,255,0.06); box-shadow: 0 0 0 2px rgba(56,189,248,0.6), 0 0 12px rgba(56,189,248,0.35); outline: none; }
.socials img { width: 22px; height: 22px; object-fit: contain; filter: invert(1); opacity: 0.95; }
.socials a span { display: none; }

.links { display: grid; gap: 12px; }
.link-card { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: rgba(255,255,255,0.06); text-decoration: none; color: #fff; border: 1px solid rgba(255,255,255,0.12); box-shadow: 0 1px 2px rgba(0,0,0,.2), 0 6px 20px rgba(0,0,0,.25); }
.link-card:hover { outline: 2px solid rgba(56,189,248,0.9); border-color: rgba(56,189,248,0.6); box-shadow: 0 0 0 3px rgba(56,189,248,0.25); }
.link-card img.logo { width: var(--logo-size); height: var(--logo-size); object-fit: cover; border-radius: 8px; background: rgba(255,255,255,0.08); }
.link-text { display: grid; gap: 2px; }
.link-title { font-weight: 800; color: #fff; }
.link-desc { color: var(--panel-muted); font-size: 0.98rem; }

.footer { text-align: center; color: #000000; padding: 32px 0; }

@media (max-width: 520px) {
  .profile { align-items: center; }
  .profile-image { width: var(--avatar-size-mobile); height: var(--avatar-size-mobile); }
  .link-card img.logo { width: var(--logo-size-mobile); height: var(--logo-size-mobile); }
}


