/* ============================================================
   LINK IN BIO — Rodrigo Rocha
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #08080f;
  --surface:     #10101c;
  --card:        #16162a;
  --card-hover:  #1e1e36;
  --border:      rgba(255,255,255,0.07);
  --border-h:    rgba(255,255,255,0.14);
  --text-1:      #f0f0ff;
  --text-2:      #8888aa;
  --text-3:      #55556a;
  --accent:      #7c3aed;
  --accent-2:    #a855f7;
  --accent-glow: rgba(124,58,237,0.35);
  --tab-active:  #ffffff;
  --tab-bg:      rgba(255,255,255,0.06);
  --radius-sm:   10px;
  --radius-md:   16px;
  --radius-lg:   24px;
  --radius-pill: 100px;
  --font:        'Inter', system-ui, sans-serif;
  --transition:  0.22s cubic-bezier(0.4,0,0.2,1);
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-1);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 80px;
  overflow-x: hidden;
}

/* ── Background ambient light ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% -10%, rgba(124,58,237,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 40% 30% at 80% 80%, rgba(168,85,247,0.08) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

/* ── Card Container ── */
.card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 420px;
  /* background: var(--surface); */
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px 28px;
  box-shadow:
    0 0 0 1px rgba(124,58,237,0.12),
    0 24px 64px rgba(0,0,0,0.5),
    0 4px 16px rgba(0,0,0,0.3);
  animation: cardIn 0.6s cubic-bezier(0.22,1,0.36,1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ── Profile Section ── */
.profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 28px;
  animation: fadeUp 0.5s 0.1s cubic-bezier(0.22,1,0.36,1) both;
}

.avatar-wrap {
  position: relative;
  width: 88px;
  height: 88px;
  margin-bottom: 16px;
}

.avatar-wrap::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2), #ec4899);
  z-index: 0;
  animation: rotateBorder 6s linear infinite;
}

@keyframes rotateBorder {
  from { filter: hue-rotate(0deg); }
  to   { filter: hue-rotate(360deg); }
}

.avatar-wrap img,
.avatar-placeholder {
  position: relative;
  z-index: 1;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  object-fit: contain;
  object-position: center;
  background: #0f0f1a;
  border: 3px solid var(--surface);
  display: block;
  padding: 10px;
}

.avatar-placeholder {
  background: linear-gradient(135deg, var(--card), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  font-weight: 700;
  color: #fff;
}

.verified-badge {
  position: absolute;
  bottom: 0px;
  right: 0px;
  width: 26px;
  height: 26px;
  background: transparent;
  border: none;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 2px 6px rgba(0,149,246,0.5));
}

.verified-badge svg {
  width: 22px;
  height: 22px;
  display: block;
}

.profile-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-1);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.profile-title {
  font-size: 10px;
  color: var(--text-2);
  margin-top: 4px;
  font-weight: 400;
}

.profile-title strong { color: var(--accent-2); font-weight: 500; }

.profile-bio {
  font-size: 0.74rem;
  color: var(--text-2);
  line-height: 1.65;
  margin-top: 12px;
  max-width: 320px;
}

/* ── Category Tabs ── */
.tabs-wrap {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 4px;
  display: flex;
  gap: 2px;
  margin-bottom: 20px;
  animation: fadeUp 0.5s 0.2s cubic-bezier(0.22,1,0.36,1) both;
}

.tab-btn {
  flex: 1;
  background: transparent;
  border: none;
  color: var(--text-2);
  font-family: var(--font);
  font-size: 0.8rem;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
  letter-spacing: 0.01em;
}

.tab-btn:hover { color: var(--text-1); }

.tab-btn.active {
  background: #fff;
  color: #0a0a14;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(0,0,0,0.25);
}

/* ── Links List ── */
.links-panel { display: none; }
.links-panel.active { display: block; }

.link-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  text-decoration: none;
  color: inherit;
  margin-bottom: 9px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
}

.link-item.visible {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22,1,0.36,1), background var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.link-item:hover {
  background: var(--card-hover);
  border-color: var(--border-h);
  transform: translateY(-1px) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}

.link-text { flex: 1; min-width: 0; }

.link-title {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-1);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

.link-desc {
  font-size: 0.74rem;
  color: var(--text-2);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.link-arrow {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--transition);
}

.link-arrow svg {
  width: 13px;
  height: 13px;
  stroke: var(--text-2);
  transition: all var(--transition);
}

.link-item:hover .link-arrow {
  background: rgba(255,255,255,0.13);
}

.link-item:hover .link-arrow svg {
  stroke: var(--text-1);
  transform: translate(2px, -2px);
}

/* ── Social Icons ── */
.socials {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
  animation: fadeUp 0.5s 0.4s cubic-bezier(0.22,1,0.36,1) both;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: var(--card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--text-2);
  transition: all var(--transition);
}

.social-btn:hover {
  background: rgba(124,58,237,0.15);
  border-color: rgba(124,58,237,0.35);
  color: var(--text-1);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(124,58,237,0.2);
}

.social-btn svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Footer ── */
.card-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.72rem;
  color: var(--text-3);
  animation: fadeUp 0.5s 0.5s cubic-bezier(0.22,1,0.36,1) both;
}

.card-footer a {
  color: var(--text-3);
  text-decoration: none;
  transition: color var(--transition);
}

.card-footer a:hover { color: var(--accent-2); }

/* ── Animations ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── No links state ── */
.no-links {
  text-align: center;
  color: var(--text-3);
  font-size: 0.85rem;
  padding: 32px 0;
}

/* ── Responsive ── */
@media (max-width: 480px) {
  body { padding: 16px 12px 60px; align-items: flex-start; }
  .card { padding: 28px 20px 24px; border-radius: var(--radius-md); }
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

/* ── Focus ring ── */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
