/*
 * classable.css — Shared design tokens and component styles
 * Covers: design tokens, nav, CTA buttons, provider subnav,
 *         teal save bar, and footer.
 */

/* ═══════════════════════════════════
   Design tokens
═══════════════════════════════════ */
:root {
  --teal:       #0D7A6E;
  --teal-hover: #15A396;
  --teal-dark:  #0A5F56;
  --teal-light: #E6F5F4;
  --gray-900: #0F1117;
  --gray-700: #374151;
  --gray-600: #4B5563;
  --gray-500: #6B7280;
  --gray-400: #9CA3AF;
  --gray-300: #D1D5DB;
  --gray-200: #E5E7EB;
  --gray-100: #F3F4F6;
  --gray-50:  #F9FAFB;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --shadow-card: 0 1px 3px 0 rgb(0 0 0 / 0.08), 0 1px 2px -1px rgb(0 0 0 / 0.06);
}

/* ═══════════════════════════════════
   Nav — shared container
═══════════════════════════════════ */
.site-header {
  background: #fff;
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

/* ─── Wordmark ─── */
.wordmark {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  flex-shrink: 0;
}
.wordmark-icon {
  width: 30px;
  height: 30px;
  background: var(--teal);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.wordmark-text {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  letter-spacing: -0.3px;
}
.wordmark-text span { color: var(--teal); }

/* ─── Nav links ─── */
.nav-link {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: var(--radius-md);
  transition: background 0.12s, color 0.12s;
}
.nav-link:hover { background: var(--gray-100); color: var(--gray-900); }

.header-nav { display: flex; align-items: center; gap: 4px; }

/* ─── Provider account chip ─── */
.nav-provider-chip {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  background: var(--gray-100);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: background 0.12s;
}
.nav-provider-chip:hover { background: var(--gray-200); }

/* ─── Account dropdown ─── */
.account-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #fff;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.12);
  min-width: 210px;
  z-index: 200;
  overflow: hidden;
}
.nav-provider-chip:hover .account-dropdown,
.nav-provider-chip:focus-within .account-dropdown { display: block; }
.account-dropdown-section { padding: 6px 0; }
.account-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  transition: background 0.1s;
  white-space: nowrap;
}
.account-dropdown-item:hover { background: var(--gray-50); color: var(--gray-900); }
.account-dropdown-item.active { color: var(--teal); font-weight: 600; background: var(--teal-light); }
.account-dropdown-item svg { flex-shrink: 0; color: var(--gray-400); }
.account-dropdown-item.active svg { color: var(--teal); }
.account-dropdown-divider { height: 1px; background: var(--gray-100); }
.account-dropdown-footer { padding: 6px 0; }
.account-dropdown-signout {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--gray-500);
  text-decoration: none;
  transition: background 0.1s, color 0.1s;
}
.account-dropdown-signout:hover { background: var(--gray-50); color: var(--gray-900); }
.nav-avatar {
  width: 28px;
  height: 28px;
  background: var(--teal);
  border-radius: 50%;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.nav-verified-dot {
  width: 7px;
  height: 7px;
  background: #10B981;
  border-radius: 50%;
  border: 1.5px solid #fff;
  margin-left: -10px;
  margin-bottom: -12px;
  align-self: flex-end;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}

/* ═══════════════════════════════════
   Nav search bar
   Used on: filter-panel, detail-page, provider-profile
═══════════════════════════════════ */
.search-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0;
  background: #fff;
  border: 1.5px solid var(--gray-300);
  border-radius: 10px;
  overflow: hidden;
  max-width: 560px;
}
.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  padding: 0 14px;
  border-right: 1.5px solid var(--gray-300);
}
.search-input {
  border: none;
  outline: none;
  font-size: 14px;
  font-family: inherit;
  color: var(--gray-900);
  background: transparent;
  width: 100%;
  padding: 8px 0;
}
.search-location-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  min-width: 130px;
  color: var(--gray-500);
  font-size: 13px;
}
.search-btn {
  background: var(--teal);
  color: #fff;
  border: none;
  padding: 0 18px;
  align-self: stretch;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-family: inherit;
  border-radius: 0;
}
.search-btn:hover { background: var(--teal-hover); }

/* ═══════════════════════════════════
   CTA Buttons — Log in / Sign up
═══════════════════════════════════ */
.btn-login {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-700);
  background: none;
  border: 1.5px solid var(--gray-300);
  padding: 7px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: inherit;
  transition: border-color 0.15s, color 0.15s;
}
.btn-login:hover { border-color: var(--teal); color: var(--teal); }

.btn-signup {
  display: inline-block;
  line-height: 1;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  background: var(--teal);
  border: 1.5px solid transparent;
  padding: 7px 14px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.15s;
}
.btn-signup:hover { background: var(--teal-hover); }

/* ═══════════════════════════════════
   Provider sub-nav (gray bar)
   Used on: provider-dashboard, program-editor
═══════════════════════════════════ */
.provider-subnav {
  background: #374151;
  position: sticky;
  top: 56px;
  z-index: 99;
  box-shadow: 0 1px 4px rgb(0 0 0 / 0.15);
}
.provider-subnav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.dash-nav {
  display: flex;
  align-items: stretch;
  gap: 0;
  height: 100%;
}
.dash-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color 0.12s, border-color 0.12s;
  white-space: nowrap;
}
.dash-nav-link:hover { color: #fff; }
.dash-nav-link.active { color: #fff; font-weight: 600; border-bottom-color: #fff; }

/* ═══════════════════════════════════
   Teal save bar
   Used on: provider-dashboard, program-editor
═══════════════════════════════════ */
.save-bar {
  position: sticky;
  top: 100px;
  z-index: 90;
  background: var(--teal);
  box-shadow: 0 2px 8px rgb(0 0 0 / 0.18);
}
.save-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.save-bar-status {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 500;
}
.save-bar-actions { display: flex; gap: 8px; }

.save-bar .btn-save {
  background: #fff;
  color: var(--teal);
  font-size: 13px;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  font-family: inherit;
  transition: opacity 0.15s;
}
.save-bar .btn-save:hover { opacity: 0.9; }

.save-bar .btn-preview {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.35);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
}
.save-bar .btn-preview:hover { background: rgba(255, 255, 255, 0.25); }

/* ═══════════════════════════════════
   Footer
═══════════════════════════════════ */
.site-footer {
  background: #0F1117;
  padding: 40px 24px 32px;
}
.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer-brand { display: flex; flex-direction: column; gap: 4px; }
.footer-wordmark { font-size: 16px; font-weight: 800; color: #fff; letter-spacing: -0.3px; }
.footer-wordmark span { color: var(--teal-light); }
.footer-tagline { font-size: 12px; color: rgba(255, 255, 255, 0.4); font-style: italic; }
.footer-links { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 13px; color: rgba(255, 255, 255, 0.55); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: #fff; }
.footer-copy { font-size: 12px; color: rgba(255, 255, 255, 0.35); white-space: nowrap; }

/* ═══════════════════════════════════
   Breadcrumb
   Used on: detail-page, provider-profile, program-editor
   Note: program-editor overrides max-width/padding inline
         since its breadcrumb is inside a content container
═══════════════════════════════════ */
.breadcrumb {
  max-width: 1280px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-500);
}
.breadcrumb a { color: var(--gray-500); text-decoration: none; }
.breadcrumb a:hover { color: var(--teal); }
.breadcrumb-sep { color: var(--gray-300); }
.breadcrumb-current { color: var(--gray-700); font-weight: 500; }

/* ═══════════════════════════════════
   Filter section
   Shared base between filter-panel and provider-profile
   Page-specific sidebar shell (.filter-sidebar) stays per-page
═══════════════════════════════════ */
.filter-section {
  padding: 16px;
  border-bottom: 1px solid var(--gray-100);
}
.filter-section:last-child { border-bottom: none; }
.filter-section-title {
  font-size: 11px;
  font-weight: 700;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}
