/* 05-link-hub — Personal Link Hub */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

:root {
  --bg: #F8FAFC;
  --primary: #2563EB;
  --cta: #F97316;
  --text: #0F172A;
  --text-muted: #64748B;
  --card: #FFFFFF;
  --border: #E2E8F0;
  --radius: 12px;
  --shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(15, 23, 42, 0.04);
  --shadow-hover: 0 4px 16px rgba(37, 99, 235, 0.12);
  --touch: 44px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--primary);
  color: #fff;
  text-decoration: none;
  border-radius: var(--radius);
  font-weight: 600;
}

.skip-link:focus { top: 1rem; }

/* Header */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.25rem;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 700;
  font-size: 1.05rem;
}

.logo svg { color: var(--primary); }

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: flex;
  align-items: center;
  min-height: var(--touch);
  padding: 0 1rem;
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  border-radius: var(--radius);
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover,
.nav-links a:focus-visible {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.08);
  outline: none;
}

.nav-links a[aria-current="page"] {
  color: var(--primary);
  background: rgba(37, 99, 235, 0.1);
  font-weight: 600;
}

.nav-toggle {
  display: none;
  min-width: var(--touch);
  min-height: var(--touch);
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text);
}

.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

main { min-height: calc(100vh - 60px - 100px); }

/* Profile card */
.profile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2rem;
  text-align: center;
  margin-bottom: 2rem;
}

.profile-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #7C3AED);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
  color: #fff;
  font-size: 2rem;
  font-weight: 700;
  border: 3px solid var(--bg);
  box-shadow: var(--shadow);
}

.profile-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.5rem;
}

.profile-handle {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}

.profile-bio {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
  max-width: 400px;
  margin-inline: auto;
}

/* Link cards */
.section-title {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 0 0 0.75rem;
}

.link-grid {
  display: grid;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.link-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: var(--touch);
  padding: 0.85rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.link-card:hover,
.link-card:focus-visible {
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
  outline: none;
}

.link-card svg {
  flex-shrink: 0;
  color: var(--primary);
}

.link-card__text { flex: 1; min-width: 0; }

.link-card__title {
  font-weight: 600;
  font-size: 0.95rem;
  margin: 0;
}

.link-card__desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.15rem 0 0;
}

.link-card__arrow {
  color: var(--text-muted);
  flex-shrink: 0;
}

.link-card--cta {
  background: var(--cta);
  border-color: var(--cta);
  color: #fff;
}

.link-card--cta svg,
.link-card--cta .link-card__arrow { color: #fff; }

.link-card--cta .link-card__desc { color: rgba(255,255,255,0.85); }

.link-card--cta:hover,
.link-card--cta:focus-visible {
  border-color: #EA580C;
  box-shadow: 0 4px 16px rgba(249, 115, 22, 0.3);
}

/* Category sections */
.category-block { margin-bottom: 2.5rem; }

.category-block h2 {
  font-size: 1.15rem;
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.category-block h2 svg { color: var(--primary); }

/* Stats */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.stat-value {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary);
  margin: 0;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin: 0.25rem 0 0;
}

/* Badges */
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  min-height: 32px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--primary);
}

.badge--orange {
  background: rgba(249, 115, 22, 0.08);
  border-color: rgba(249, 115, 22, 0.25);
  color: var(--cta);
}

/* Bio section */
.bio-section {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  margin-bottom: 2rem;
}

.bio-section h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
}

.bio-section p {
  margin: 0 0 1rem;
  color: var(--text-muted);
}

.bio-section p:last-child { margin-bottom: 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--card);
  padding: 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.site-footer p { margin: 0; }

@media (max-width: 600px) {
  .nav-toggle { display: flex; align-items: center; justify-content: center; }

  .nav-links {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--card);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem;
    display: none;
  }

  .nav-links.is-open { display: flex; }

  .stats-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
