/* Charcoal Slate Theme - Matching intentsolutions.io */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Global link reset - prevents Safari blue links */
a {
  color: inherit;
  text-decoration: none;
}

body {
  background: #18181B; /* zinc-900 */
  color: #FAFAFA; /* zinc-50 */
  min-height: 100vh;
  padding: 40px 16px;
  display: flex;
  justify-content: center;
}

.container {
  width: 100%;
  max-width: 680px;
}

/* Profile Header - Centered */
.profile {
  text-align: center;
  margin-bottom: 32px;
}

.avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 12px;
  border: 2px solid #27272A; /* zinc-800 */
}

.profile h1 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #FAFAFA; /* zinc-50 */
}

.tagline {
  font-size: 15px;
  color: #A1A1AA; /* zinc-400 */
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Links Section */
.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Legacy n8n styling - now handled by .links + .links */

.section-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #71717A; /* zinc-500 */
  margin: 0;
}

/* Section Header with optional link */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
  padding: 8px 0;
  text-decoration: none;
  border-bottom: 1px solid #27272A; /* zinc-800 */
}

a.section-header {
  cursor: pointer;
  transition: border-color 0.15s;
}

a.section-header:hover {
  border-color: #52525B; /* zinc-600 */
}

a.section-header:hover .section-label {
  color: #A1A1AA; /* zinc-400 */
}

.section-header i {
  font-size: 14px;
  color: #52525B; /* zinc-600 */
  transition: color 0.15s;
}

a.section-header:hover i {
  color: #A1A1AA; /* zinc-400 */
}

/* Contribution count badge in section header */
.contribution-count {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 10px;
  background: #14532D; /* green-900 */
  color: #86EFAC; /* green-300 */
}

/* Contributions footer - smaller links */
.contributions-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 16px;
  background: #1F1F23; /* slightly darker */
  border-radius: 8px;
  margin-top: 4px;
}

.contrib-other {
  font-size: 12px;
  color: #71717A; /* zinc-500 */
  text-decoration: none;
  padding: 4px 10px;
  background: #27272A; /* zinc-800 */
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
}

.contrib-other:hover {
  color: #A1A1AA; /* zinc-400 */
  background: #3F3F46; /* zinc-700 */
}

/* Add spacing between sections */
.links + .links {
  margin-top: 32px;
}

/* Link Item Card */
.link-item {
  background: #27272A; /* zinc-800 */
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
  border: 1px solid transparent;
}

.link-item:hover {
  background: #3F3F46; /* zinc-700 */
  border-color: #52525B; /* zinc-600 */
}

.link-item:active {
  transform: scale(0.98);
}

/* Link Row - Tap Target */
.link-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  min-height: 64px;
  cursor: pointer;
  user-select: none;
}

.link-item.simple {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  min-height: 56px;
  text-decoration: none;
}

/* Icon */
.link-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #3F3F46; /* zinc-700 */
  border-radius: 10px;
  font-size: 18px;
  color: #A1A1AA; /* zinc-400 */
}

/* Text */
.link-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.link-title {
  font-size: 15px;
  font-weight: 600;
  color: #FAFAFA; /* zinc-50 */
}

.link-desc {
  font-size: 13px;
  color: #A1A1AA; /* zinc-400 */
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Badge */
.link-badge {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.badge {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 10px;
  white-space: nowrap;
}

.badge.stars {
  background: #422006; /* amber-950 */
  color: #FCD34D; /* amber-300 */
}

.badge.private {
  background: #3F3F46; /* zinc-700 */
  color: #A1A1AA; /* zinc-400 */
}

.badge.contrib {
  background: #14532D; /* green-900 */
  color: #86EFAC; /* green-300 */
}

.expand-icon {
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 300;
  color: #71717A; /* zinc-500 */
}

/* Expanded Content */
.link-expand {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease-out;
}

.link-expand.open {
  max-height: 500px;
}

.link-expand > * {
  padding-left: 16px;
  padding-right: 16px;
}

.expand-desc {
  font-size: 14px;
  color: #A1A1AA; /* zinc-400 */
  line-height: 1.5;
  padding-top: 4px;
  padding-bottom: 12px;
  border-top: 1px solid #3F3F46; /* zinc-700 */
}

.expand-list {
  list-style: none;
  padding-bottom: 12px;
}

.expand-list li {
  font-size: 13px;
  color: #A1A1AA; /* zinc-400 */
  padding: 3px 0 3px 16px;
  position: relative;
}

.expand-list li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: #71717A; /* zinc-500 */
  font-size: 11px;
}

.expand-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding-bottom: 12px;
}

.tag {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 4px;
}

.tag.tech {
  background: #1E3A5F; /* blue-900 muted */
  color: #7DD3FC; /* sky-300 */
}

.tag.agent {
  background: #14532D; /* green-900 */
  color: #86EFAC; /* green-300 */
}

.expand-link {
  display: inline-block;
  font-size: 13px;
  font-weight: 500;
  color: #60A5FA; /* blue-400 */
  padding-bottom: 16px;
  text-decoration: none;
}

.expand-link:hover {
  text-decoration: underline;
  color: #93C5FD; /* blue-300 */
}

/* Socials */
.socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 32px;
}

.social-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #27272A; /* zinc-800 */
  border-radius: 50%;
  color: #A1A1AA; /* zinc-400 */
  font-size: 20px;
  transition: transform 0.15s, background 0.15s, color 0.15s;
}

.social-icon:hover {
  transform: scale(1.1);
  background: #3F3F46; /* zinc-700 */
  color: #FAFAFA; /* zinc-50 */
}

/* Contact CTA */
.contact-cta {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid #27272A; /* zinc-800 */
  text-align: center;
}

.contact-cta.top {
  margin-top: 0;
  margin-bottom: 32px;
  padding-top: 0;
  border-top: none;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  min-height: 48px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
}

.btn:link,
.btn:visited,
.btn:hover,
.btn:active {
  text-decoration: none !important;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus {
  outline: 2px solid #60A5FA; /* blue-400 */
  outline-offset: 2px;
}

.btn:focus:not(:focus-visible) {
  outline: none;
}

.btn-primary {
  background: #E4E4E7 !important; /* zinc-200 */
  color: #18181B !important; /* zinc-900 */
  border: none;
}

.btn-primary:link,
.btn-primary:visited,
.btn-primary:active {
  background: #E4E4E7 !important;
  color: #18181B !important;
}

.btn-primary:hover {
  background: #FAFAFA !important; /* zinc-50 */
  color: #18181B !important; /* zinc-900 */
}

.btn-secondary {
  background: transparent !important;
  color: #E4E4E7 !important; /* zinc-200 */
  border: 1px solid #52525B !important; /* zinc-600 */
}

.btn-secondary:link,
.btn-secondary:visited,
.btn-secondary:active {
  background: transparent !important;
  color: #E4E4E7 !important;
}

.btn-secondary:hover {
  background: #27272A !important; /* zinc-800 */
  border-color: #71717A !important; /* zinc-500 */
  color: #E4E4E7 !important; /* zinc-200 */
}

/* Footer */
footer {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid #27272A; /* zinc-800 */
  text-align: center;
  font-size: 14px;
  color: #71717A; /* zinc-500 */
  line-height: 1.6;
}

footer a {
  color: #A1A1AA; /* zinc-400 */
  text-decoration: none;
}

footer a:hover {
  color: #FAFAFA; /* zinc-50 */
  text-decoration: underline;
}

.copyright {
  margin-top: 8px;
  font-size: 12px;
  color: #52525B; /* zinc-600 */
}

.copyright a {
  color: #71717A; /* zinc-500 */
}

.copyright a:hover {
  color: #A1A1AA; /* zinc-400 */
}

/* Mobile */
@media (max-width: 480px) {
  body {
    padding: 24px 12px;
  }

  .avatar {
    width: 80px;
    height: 80px;
  }

  .profile h1 {
    font-size: 22px;
  }

  .link-row,
  .link-item.simple {
    padding: 12px 14px;
    gap: 12px;
  }

  .link-icon {
    width: 36px;
    height: 36px;
    font-size: 16px;
  }

  .link-title {
    font-size: 14px;
  }

  .link-desc {
    font-size: 12px;
  }

  .socials {
    gap: 12px;
  }

  .social-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .cta-buttons {
    flex-direction: column;
    gap: 12px;
  }

  .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
    padding: 14px 24px;
  }
}
