/* ── AgentAtlas App CSS ──────────────────────────────────────────────
   Design tokens match the landing page exactly.
   All directory, profile, category, and industry pages live here.
   ─────────────────────────────────────────────────────────────────── */

:root {
  --bg: #0a0a0f;
  --bg-elevated: #12121a;
  --bg-card: #18182a;
  --fg: #e8e8ed;
  --fg-muted: #8a8a9a;
  --accent: #00e68a;
  --accent-dim: #00cc7a;
  --accent-glow: rgba(0, 230, 138, 0.12);
  --border: rgba(255, 255, 255, 0.06);
  --border-accent: rgba(0, 230, 138, 0.2);
  --radius: 12px;
  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'DM Sans', sans-serif;
}

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

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

/* ── APP NAV ─────────────────────────────────────────────────────── */
.app-nav {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 10, 15, 0.95);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 100;
}

.app-nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.logo-accent { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.nav-link {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 0.9rem;
  color: var(--fg-muted);
  transition: color 0.15s, background 0.15s;
}

.nav-link:hover {
  color: var(--fg);
  background: var(--bg-elevated);
}

.nav-cta {
  padding: 8px 18px;
  background: var(--accent);
  color: #000;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.875rem;
  transition: background 0.15s, transform 0.1s;
}

.nav-cta:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
}

/* ── DIRECTORY PAGE ───────────────────────────────────────────────── */
.dir-page {
  min-height: 100vh;
}

.dir-header {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 32px 24px;
}

.dir-header-inner {
  max-width: 1200px;
  margin: 0 auto;
}

.dir-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 6px;
}

.dir-subtitle {
  color: var(--fg-muted);
  font-size: 0.95rem;
}

.dir-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 32px;
  align-items: start;
}

@media (max-width: 768px) {
  .dir-body { grid-template-columns: 1fr; }
  .dir-sidebar { order: 2; }
  .dir-results { order: 1; }
}

/* ── SIDEBAR FILTERS ─────────────────────────────────────────────── */
.dir-sidebar {
  position: sticky;
  top: 65px;
}

.filter-form { display: flex; flex-direction: column; gap: 24px; }

.filter-group { display: flex; flex-direction: column; gap: 10px; }

.filter-label {
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--fg-muted);
  text-transform: uppercase;
}

.search-input-wrap {
  display: flex;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.filter-input {
  flex: 1;
  background: transparent;
  border: none;
  padding: 10px 14px;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 0.9rem;
  outline: none;
}

.filter-input::placeholder { color: var(--fg-muted); }

.search-btn {
  background: var(--accent);
  border: none;
  padding: 0 14px;
  color: #000;
  font-weight: 700;
  cursor: pointer;
  font-size: 1rem;
  transition: background 0.15s;
}

.search-btn:hover { background: var(--accent-dim); }

.filter-options { display: flex; flex-direction: column; gap: 4px; }

.filter-chip {
  padding: 7px 12px;
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--fg-muted);
  border: 1px solid transparent;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
}

.filter-chip:hover {
  background: var(--bg-elevated);
  color: var(--fg);
}

.filter-chip.active {
  background: var(--accent-glow);
  border-color: var(--border-accent);
  color: var(--accent);
}

.filter-chip-sm { font-size: 0.8rem; padding: 5px 10px; }

.chip-count {
  font-size: 0.75rem;
  color: var(--fg-muted);
  background: var(--border);
  padding: 1px 6px;
  border-radius: 100px;
}

/* ── SPECIALIST GRID ─────────────────────────────────────────────── */
.specialist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.specialist-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
  cursor: pointer;
}

.specialist-card:hover {
  border-color: var(--border-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(0, 230, 138, 0.06);
}

.card-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  position: relative;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
}

.card-meta { flex: 1; min-width: 0; }

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

.card-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.verified-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  background: var(--accent);
  color: #000;
  border-radius: 50%;
  font-size: 0.6rem;
  font-weight: 800;
  flex-shrink: 0;
}

.featured-tag {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 0.65rem;
  font-weight: 600;
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
  padding: 2px 7px;
  border-radius: 100px;
}

.availability-dot {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  color: var(--fg-muted);
  margin-top: 2px;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.availability-available .dot { background: var(--accent); }
.availability-limited .dot { background: #f59e0b; }
.availability-unavailable .dot { background: #6b7280; }

.card-headline {
  font-size: 0.9rem;
  color: var(--fg);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-type-badge {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  padding: 3px 10px;
  border-radius: 100px;
  width: fit-content;
}

.card-rate {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--fg);
}

.card-skills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.skill-tag {
  font-size: 0.75rem;
  padding: 3px 9px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--fg-muted);
}

.card-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding-top: 4px;
  border-top: 1px solid var(--border);
}

.stat {
  font-size: 0.78rem;
  color: var(--fg-muted);
}

/* ── EMPTY STATE ─────────────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 24px;
  color: var(--fg-muted);
}

.empty-icon { font-size: 2.5rem; margin-bottom: 16px; }

.empty-state h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--fg);
  margin-bottom: 8px;
}

.empty-state a { color: var(--accent); }

/* ── PAGINATION ──────────────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.page-btn {
  padding: 9px 20px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.875rem;
  transition: all 0.15s;
}

.page-btn:hover {
  border-color: var(--border-accent);
  color: var(--accent);
}

.page-info { color: var(--fg-muted); font-size: 0.875rem; }

/* ── PROFILE PAGE ────────────────────────────────────────────────── */
.profile-page {
  min-height: 100vh;
  padding: 40px 24px;
}

.profile-inner {
  max-width: 1100px;
  margin: 0 auto;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.875rem;
  color: var(--fg-muted);
  margin-bottom: 28px;
}

.breadcrumb a:hover { color: var(--accent); }
.bc-sep { opacity: 0.4; }

.profile-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}

@media (max-width: 900px) {
  .profile-layout { grid-template-columns: 1fr; }
}

.profile-header-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  display: flex;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 20px;
}

.profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 1px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.profile-title-block { flex: 1; }

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

.profile-name {
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.profile-verified-badge {
  background: rgba(0, 230, 138, 0.15);
  border: 1px solid var(--border-accent);
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}

.profile-featured-badge {
  background: rgba(245, 158, 11, 0.15);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #f59e0b;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 100px;
}

.profile-headline {
  font-size: 1.05rem;
  color: var(--fg-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.profile-badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.profile-type-badge {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  padding: 4px 12px;
  border-radius: 100px;
}

.availability-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.profile-location {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.profile-stats-row {
  display: flex;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 20px;
}

.profile-stat {
  flex: 1;
  background: var(--bg-elevated);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-stat-val {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
}

.profile-stat-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
}

.profile-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 14px;
  color: var(--fg);
}

.profile-bio {
  color: var(--fg-muted);
  line-height: 1.8;
  font-size: 0.95rem;
}

.skills-list { display: flex; flex-wrap: wrap; gap: 8px; }

.skill-chip {
  font-size: 0.85rem;
  padding: 6px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
}

.stack-chip {
  font-size: 0.85rem;
  padding: 6px 14px;
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  border-radius: 8px;
  color: var(--accent);
  font-weight: 500;
}

.industry-chip {
  font-size: 0.85rem;
  padding: 6px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg-muted);
  transition: all 0.15s;
}

.industry-chip:hover {
  border-color: var(--border-accent);
  color: var(--accent);
}

/* Contact Sidebar */
.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.contact-rate {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
}

.availability-badge-lg {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.contact-btn {
  width: 100%;
  padding: 13px;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: var(--radius);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
}

.contact-btn:hover {
  background: var(--accent-dim);
  transform: translateY(-1px);
}

.contact-note {
  font-size: 0.78rem;
  color: var(--fg-muted);
  text-align: center;
}

.contact-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--border);
  padding-top: 14px;
}

.contact-link {
  font-size: 0.875rem;
  color: var(--fg-muted);
  padding: 7px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: all 0.15s;
  display: block;
}

.contact-link:hover {
  color: var(--accent);
  border-color: var(--border-accent);
}

.share-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.share-label {
  font-size: 0.85rem;
  color: var(--fg-muted);
}

.share-btn {
  padding: 7px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--fg);
  font-size: 0.825rem;
  cursor: pointer;
  transition: all 0.15s;
}

.share-btn:hover { border-color: var(--border-accent); }

.profile-back {
  margin-top: 32px;
}

.back-link {
  font-size: 0.9rem;
  color: var(--fg-muted);
  transition: color 0.15s;
}

.back-link:hover { color: var(--accent); }

/* ── CATEGORY / INDUSTRY PAGES ───────────────────────────────────── */
.cat-page { min-height: 100vh; }

.cat-hero {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
  padding: 60px 24px;
  background: radial-gradient(ellipse 80% 50% at 50% -10%, rgba(0, 230, 138, 0.06), transparent);
}

.cat-hero-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.hero-badge {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid var(--border-accent);
  padding: 6px 16px;
  border-radius: 100px;
  margin-bottom: 20px;
}

.cat-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-bottom: 16px;
}

.cat-desc {
  font-size: 1.05rem;
  color: var(--fg-muted);
  line-height: 1.7;
  margin-bottom: 20px;
}

.cat-stats {
  font-size: 0.9rem;
  color: var(--fg-muted);
}

.cat-stats span {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 6px 16px;
  border-radius: 100px;
}

.industry-filter-strip {
  border-bottom: 1px solid var(--border);
  background: var(--bg-elevated);
  overflow-x: auto;
}

.industry-filter-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
}

.industry-filter-label {
  font-size: 0.8rem;
  color: var(--fg-muted);
  font-weight: 500;
  flex-shrink: 0;
}

.industry-filter-tag {
  font-size: 0.8rem;
  padding: 4px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--fg-muted);
  transition: all 0.15s;
  flex-shrink: 0;
}

.industry-filter-tag:hover {
  border-color: var(--border-accent);
  color: var(--accent);
}

.cat-body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px;
}

.other-categories {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 60px 24px;
}

.other-cat-inner { max-width: 1200px; margin: 0 auto; }

.other-cat-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 20px;
}

.other-cat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.other-cat-card {
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
  transition: all 0.15s;
}

.other-cat-card:hover {
  border-color: var(--border-accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* ── APP FOOTER ──────────────────────────────────────────────────── */
.app-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elevated);
  padding: 32px 24px;
}

.app-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
}

.footer-link {
  font-size: 0.85rem;
  color: var(--fg-muted);
  padding: 4px 10px;
  border-radius: 6px;
  transition: color 0.15s;
}

.footer-link:hover { color: var(--accent); }

.footer-copy {
  font-size: 0.8rem;
  color: var(--fg-muted);
  opacity: 0.6;
}

/* ── ERROR PAGE ──────────────────────────────────────────────────── */
.error-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px;
}

.error-code {
  font-family: var(--font-display);
  font-size: 5rem;
  font-weight: 700;
  color: var(--accent);
  opacity: 0.4;
  margin-bottom: 16px;
}

.error-msg {
  font-size: 1.2rem;
  color: var(--fg-muted);
  margin-bottom: 24px;
}

.error-link {
  display: inline-block;
  padding: 10px 24px;
  background: var(--accent);
  color: #000;
  border-radius: var(--radius);
  font-weight: 600;
  transition: background 0.15s;
}

.error-link:hover { background: var(--accent-dim); }
