/* ==========================================================================
   clickm.ee — Joshua Snoddy's link-in-bio
   Dark theme tokens lifted from joshuasnoddy.com for personal-brand consistency.
   ========================================================================== */

@font-face {
  font-family: 'Outfit';
  src: url('/assets/fonts/outfit-var.woff2') format('woff2-variations');
  font-weight: 100 900;
  font-display: swap;
}

:root {
  /* Backgrounds */
  --bg-0: #06060b;
  --bg-1: #0a0a12;
  --bg-2: #0e0e1a;
  --bg-card: rgba(255, 255, 255, 0.03);
  --bg-card-hover: rgba(255, 255, 255, 0.06);

  /* Text */
  --text-1: #f4f4f8;
  --text-2: #b0b0c8;
  --text-3: #6e6e8a;

  /* Accents */
  --accent:   #6366f1;
  --accent-2: #818cf8;
  --accent-3: #a78bfa;
  --pink:     #f472b6;

  /* Gradients */
  --gradient-primary: linear-gradient(135deg, #6366f1, #8b5cf6, #a855f7);
  --gradient-text:    linear-gradient(135deg, #818cf8 0%, #c084fc 40%, #f472b6 100%);

  /* Borders */
  --border:   rgba(255, 255, 255, 0.06);
  --border-2: rgba(255, 255, 255, 0.1);

  /* Glow */
  --glow: rgba(99, 102, 241, 0.15);
  --glow-strong: rgba(99, 102, 241, 0.35);

  /* Radii */
  --r:      16px;
  --r-sm:   10px;
  --r-full: 100px;

  --font-primary: 'Outfit', -apple-system, system-ui, sans-serif;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: var(--font-primary);
  background: var(--bg-0);
  color: var(--text-1);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

/* ── Background: glow orbs + grid overlay ──────────────────────── */

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}

.aurora-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(110px);
  opacity: 0.5;
  will-change: transform;
}

.aurora-orb.indigo {
  width: 560px;
  height: 560px;
  top: -160px;
  right: -140px;
  background: radial-gradient(circle at center, rgba(99,102,241,0.7), rgba(99,102,241,0) 70%);
  animation: drift-1 32s ease-in-out infinite;
}

.aurora-orb.purple {
  width: 500px;
  height: 500px;
  bottom: -200px;
  left: -120px;
  background: radial-gradient(circle at center, rgba(168,85,247,0.6), rgba(168,85,247,0) 70%);
  animation: drift-2 38s ease-in-out infinite;
}

.aurora-orb.pink {
  width: 400px;
  height: 400px;
  top: 45%;
  left: 60%;
  background: radial-gradient(circle at center, rgba(244,114,182,0.45), rgba(244,114,182,0) 70%);
  animation: drift-3 28s ease-in-out infinite;
}

.grid-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 30%, transparent 75%);
}

@keyframes drift-1 {
  0%, 100% { transform: translate3d(0, 0, 0)        scale(1);   }
  33%      { transform: translate3d(-60px, 80px, 0) scale(1.1); }
  66%      { transform: translate3d(40px, 160px, 0) scale(0.95);}
}
@keyframes drift-2 {
  0%, 100% { transform: translate3d(0, 0, 0)         scale(1);   }
  33%      { transform: translate3d(120px, -60px, 0) scale(1.05);}
  66%      { transform: translate3d(60px, -140px, 0) scale(0.9); }
}
@keyframes drift-3 {
  0%, 100% { transform: translate3d(0, 0, 0)         scale(1);   }
  50%      { transform: translate3d(-80px, -90px, 0) scale(1.15);}
}

/* ── Layout ─────────────────────────────────────────────────────── */

main {
  width: 100%;
  max-width: 600px;
  padding: 40px 20px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ── Hero ───────────────────────────────────────────────────────── */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin-bottom: 32px;
}

.avatar-wrap {
  position: relative;
  width: 128px;
  height: 128px;
  margin-bottom: 20px;
}

.avatar-wrap::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: var(--gradient-primary);
  filter: blur(0.5px);
  z-index: 0;
}

.avatar-wrap::after {
  content: '';
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.45), rgba(139,92,246,0) 65%);
  z-index: -1;
}

.avatar {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--bg-0);
  display: block;
}

.name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

h1 {
  font-size: clamp(1.625rem, 5vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.verified {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.tagline {
  font-size: 0.9375rem;
  color: var(--text-2);
  text-align: center;
  margin-bottom: 16px;
  max-width: 440px;
  line-height: 1.45;
}

.stat-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-2);
}

.stat-pill strong {
  color: var(--text-1);
  font-weight: 700;
  background: var(--gradient-text);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.partner-row {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  margin-top: 8px;
  padding: 4px 0;
}

.partner-row img {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}

/* ── Section labels ─────────────────────────────────────────────── */

.section-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-3);
  margin: 28px 0 14px;
  width: 100%;
}

.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, var(--border-2), transparent);
}

/* ── Cards ──────────────────────────────────────────────────────── */

.cards {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}

.card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--text-1);
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
  position: relative;
  overflow: hidden;
}

.card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-2);
  transform: translateY(-2px);
}

.card:active {
  transform: translateY(0);
}

.card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  background: var(--glow);
  border: 1px solid rgba(99,102,241,0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  flex-shrink: 0;
}

.card__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.card__title {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-1);
  line-height: 1.3;
}

.card__badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  margin-left: 6px;
  border-radius: var(--r-full);
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.25);
  color: #fbbf24;
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  vertical-align: 2px;
}

.card__sub {
  font-size: 0.8125rem;
  color: var(--text-3);
  line-height: 1.35;
}

.card__chevron {
  color: var(--text-3);
  flex-shrink: 0;
  transition: transform 0.25s ease, color 0.25s ease;
}

.card:hover .card__chevron {
  color: var(--accent-2);
  transform: translateX(3px);
}

/* Coming-soon card variant — muted, non-interactive */

.card--soon {
  opacity: 0.6;
  cursor: default;
}

.card--soon:hover {
  background: var(--bg-card);
  border-color: var(--border);
  transform: none;
}

/* Primary card variant — gradient fill, glow shadow */

.card--primary {
  background: var(--gradient-primary);
  border-color: transparent;
  box-shadow: 0 4px 24px var(--glow-strong);
}

.card--primary:hover {
  background: var(--gradient-primary);
  border-color: transparent;
  box-shadow: 0 8px 32px var(--glow-strong), 0 0 0 1px rgba(255,255,255,0.1) inset;
}

.card--primary .card__icon {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.2);
}

.card--primary .card__title {
  color: #fff;
  font-weight: 700;
}

.card--primary .card__sub {
  color: rgba(255, 255, 255, 0.85);
}

.card--primary .card__chevron {
  color: rgba(255, 255, 255, 0.9);
}

.card--primary:hover .card__chevron {
  color: #fff;
}

/* ── Footer ─────────────────────────────────────────────────────── */

footer {
  width: 100%;
  max-width: 600px;
  padding: 32px 20px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  z-index: 1;
}

.footer-social {
  display: flex;
  gap: 12px;
  align-items: center;
}

.footer-social a {
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  transition: color 0.2s, background 0.2s, border-color 0.2s, transform 0.2s;
}

.footer-social a:hover {
  color: var(--accent-2);
  background: var(--bg-card-hover);
  border-color: var(--border-2);
  transform: translateY(-2px);
}

.footer-meta {
  font-size: 0.75rem;
  color: var(--text-3);
  text-align: center;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-size: 0.75rem;
}

.footer-links a {
  color: var(--text-3);
  transition: color 0.2s;
}

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

/* ── Mobile tweaks ──────────────────────────────────────────────── */

@media (max-width: 480px) {
  main {
    padding: 32px 16px 20px;
  }

  .avatar-wrap {
    width: 112px;
    height: 112px;
  }

  .partner {
    font-size: 0.5625rem;
    padding: 5px 8px;
  }

  .card {
    padding: 14px 16px;
    gap: 12px;
  }

  .card__icon {
    width: 36px;
    height: 36px;
    font-size: 1rem;
  }

  .aurora-orb.indigo {
    width: 380px;
    height: 380px;
  }

  .aurora-orb.purple {
    width: 340px;
    height: 340px;
  }

  .aurora-orb.pink {
    width: 280px;
    height: 280px;
  }
}

/* ── Reduced motion ─────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .aurora-orb,
  .card,
  .card__chevron,
  .footer-social a {
    animation: none !important;
    transition: none !important;
  }
}
