/* ============================================================
   PUBLIC PROFILE PAGE (Linktree-style)
   ============================================================ */

.profile-page {
  min-height: 100vh;
  display: flex; flex-direction: column; align-items: center;
  padding: 2rem 1rem 4rem;
  background: var(--bg);
}

/* Hero */
.profile-hero {
  display: flex; flex-direction: column; align-items: center;
  gap: 0.75rem; margin-bottom: 1.5rem;
  text-align: center; max-width: 480px; width: 100%;
}

.profile-avatar {
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 3px solid var(--brand);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--brand) 20%, transparent);
  object-fit: cover;
  background: var(--bg-elevated);
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}

.profile-name {
  font-size: 1.5rem; font-weight: 600; margin-top: 0.5rem;
}

.profile-username {
  font-size: 0.875rem; opacity: 0.55;
}

.profile-bio {
  font-size: 0.9375rem; opacity: 0.75;
  line-height: 1.6; max-width: 340px;
}

.profile-social {
  display: flex; gap: 0.75rem; flex-wrap: wrap; justify-content: center;
}

.social-link {
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 1.1rem; transition: all 0.2s ease;
}

.social-link:hover {
  background: var(--brand);
  color: #000; border-color: var(--brand);
  transform: translateY(-2px);
}

/* Links */
.profile-links {
  width: 100%; max-width: 480px;
  display: flex; flex-direction: column; gap: 0.75rem;
}

.profile-category-label {
  font-size: 0.75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.1em;
  opacity: 0.45; margin-top: 0.75rem; margin-bottom: 0.25rem;
}

.profile-link-card {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  cursor: pointer; transition: all 0.2s ease;
  color: var(--text); text-decoration: none;
  font-weight: 600;
}

.profile-link-card:hover {
  background: rgba(255,255,255,0.12);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  border-color: var(--brand);
}

.profile-link-icon { font-size: 1.25rem; flex-shrink: 0; display: flex; align-items: center; }
.profile-link-title { flex: 1; font-size: 0.9375rem; display: flex; align-items: center; gap: 0.4rem; }
.profile-link-arrow { opacity: 0.4; font-size: 0.875rem; }

/* Featured / donation links */
.profile-link-card.featured {
  border-color: var(--brand);
  background: color-mix(in oklab, var(--brand) 8%, transparent);
}

.profile-link-card.featured:hover {
  background: color-mix(in oklab, var(--brand) 15%, transparent);
  box-shadow: 0 8px 24px color-mix(in oklab, var(--brand) 25%, transparent);
}

.profile-link-featured-badge {
  font-size: 0.6rem;
  background: var(--brand);
  color: #000;
  padding: 0.1rem 0.4rem;
  border-radius: 9999px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* Powered by badge */
.profile-badge {
  margin-top: 2.5rem;
  font-size: 0.75rem; opacity: 0.4;
  display: flex; align-items: center; gap: 0.4rem;
}

.profile-badge a { opacity: 0.7; }
.profile-badge a:hover { opacity: 1; color: var(--brand); }

/* Loading / error */
.profile-loading, .profile-error {
  display: flex; align-items: center; justify-content: center;
  min-height: 60vh; font-size: 1rem; opacity: 0.6;
}
