/* ================================================================
   ZEEST BRIDGE — maps legacy Zeestlink markup to BizAI theme
   ================================================================ */

/* Remap design tokens for app.css components */
body.zeest-site {
  --purple: var(--violet);
  --purple-d: var(--violet-dark);
  --purple-l: var(--violet-tint);
  --teal: var(--green);
  --teal-d: #178f63;
  --ink: var(--ink);
  --ink-soft: var(--ink);
  --text: var(--ink);
  --muted: var(--ink-dim);
  --line: var(--line);
  --surface: var(--card);
  --bg: var(--bg);
  --mist: var(--violet-tint);
  --paper: var(--bg);
  --sand: var(--bg);
  --footer-bg: var(--bg);
  --font-display: 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --wide: 90rem;
  --content-max: 90rem;
  --radius: 9px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 3px rgba(20, 22, 43, 0.06);
  --shadow: 0 6px 20px rgba(20, 22, 43, 0.06);
  --shadow-md: 0 10px 24px rgba(20, 22, 43, 0.08);
  --shadow-lg: 0 16px 34px rgba(20, 22, 43, 0.12);
  background: var(--bg) !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 15.5px;
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}

body.zeest-site h1,
body.zeest-site h2,
body.zeest-site h3,
body.zeest-site h4,
body.zeest-site h5 {
  font-family: 'Inter', system-ui, sans-serif;
  letter-spacing: -0.01em;
}

body.zeest-site a { color: inherit; }
body.zeest-site a:hover { color: var(--violet); }

/* Header bridge */
body.zeest-site .site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  box-shadow: none;
  position: sticky;
  top: 0;
  z-index: 50;
}

body.zeest-site .site-header .hdr-inner,
body.zeest-site .site-header .nav-row {
  max-width: var(--page-max, 90rem);
  margin: 0 auto;
  padding: 18px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

@media (max-width: 640px) {
  body.zeest-site .site-header .hdr-inner,
  body.zeest-site .site-header .nav-row {
    padding: 18px;
  }
}

body.zeest-site .site-header .brand,
body.zeest-site .site-header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  color: var(--ink);
  text-decoration: none;
}

body.zeest-site .site-header .brand-logo {
  height: 44px;
  width: auto;
}

body.zeest-site .site-header .hdr-nav {
  display: flex;
  gap: 30px;
}

body.zeest-site .site-header .hdr-nav a {
  font-size: 14.5px;
  color: var(--ink-dim);
  font-weight: 500;
  text-decoration: none;
}

body.zeest-site .site-header .hdr-nav a:hover,
body.zeest-site .site-header .hdr-nav a.active {
  color: var(--ink);
  font-weight: 600;
}

body.zeest-site .site-header .hdr-actions,
body.zeest-site .site-header .nav-right {
  display: flex;
  align-items: center;
  gap: 22px;
}

body.zeest-site .site-header .btn-text,
body.zeest-site .site-header .login-link {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

body.zeest-site .site-header .btn-cta,
body.zeest-site .site-header .btn-dark {
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  border: none;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

body.zeest-site .site-header .btn-cta:hover,
body.zeest-site .site-header .btn-dark:hover {
  background: #0a0c18;
  color: #fff;
}

@media (max-width: 900px) {
  body.zeest-site .site-header .hdr-nav { display: none; }
}

/* Mobile menu */
body.zeest-site .mobile-menu {
  background: var(--card);
}
body.zeest-site .mm-nav a {
  color: var(--ink);
  font-weight: 500;
  font-size: 15px;
}

/* Footer bridge */
body.zeest-site .site-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
  color: var(--ink-dim);
  margin-top: 0;
}

body.zeest-site .ftr-inner,
body.zeest-site .foot-top {
  max-width: var(--page-max, 90rem);
  margin: 0 auto;
  padding: 48px 32px 32px;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr 1fr;
  gap: 32px;
}

@media (max-width: 900px) {
  body.zeest-site .ftr-inner,
  body.zeest-site .foot-top {
    grid-template-columns: 1fr 1fr;
    padding: 48px 18px 32px;
  }
}

body.zeest-site .ftr-col h4,
body.zeest-site .foot-col h5,
body.zeest-site .foot-col .foot-col-title {
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 700;
  margin: 0 0 16px;
}

body.zeest-site .ftr-col a,
body.zeest-site .foot-col a {
  font-size: 13.5px;
  color: var(--ink-dim);
  display: block;
  margin-bottom: 11px;
}

body.zeest-site .ftr-col a:hover,
body.zeest-site .foot-col a:hover {
  color: var(--ink);
}

body.zeest-site .ftr-brand p,
body.zeest-site .foot-brand p {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--ink-dim);
  max-width: 30ch;
}

body.zeest-site .ftr-bottom,
body.zeest-site .foot-bottom {
  border-top: 1px solid var(--line);
  padding: 18px 32px;
  text-align: center;
  font-size: 12.5px;
  color: var(--ink-dim);
}

body.zeest-site .ftr-social a,
body.zeest-site .foot-social a {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--card);
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dim);
  margin-right: 10px;
}

/* Buttons */
body.zeest-site .btn-primary,
body.zeest-site .btn-violet {
  background: var(--violet) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 9px !important;
  padding: 10px 18px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

body.zeest-site .btn-primary:hover,
body.zeest-site .btn-violet:hover {
  background: var(--violet-dark) !important;
}

body.zeest-site .btn-ghost,
body.zeest-site .btn-outline {
  background: var(--card) !important;
  color: var(--ink) !important;
  border: 1px solid var(--line) !important;
  border-radius: 9px !important;
  padding: 10px 18px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
}

body.zeest-site .btn-ghost:hover,
body.zeest-site .btn-outline:hover {
  border-color: var(--ink-dim) !important;
}

/* Cards */
body.zeest-site .card,
body.zeest-site .side-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: none;
}

/* Search bar legacy → theme search-row */
body.zeest-site .dual-search-bar,
body.zeest-site .search-row {
  display: flex;
  gap: 10px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 6px;
  box-shadow: 0 6px 20px rgba(20, 22, 43, 0.04);
  max-width: 100%;
}

body.zeest-site .dual-search-bar .dsb-field,
body.zeest-site .search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  font-size: 14px;
  border-right: 1px solid var(--line);
  border-radius: 0;
  min-width: 0;
}

body.zeest-site .dual-search-bar .dsb-field:last-of-type,
body.zeest-site .search-field:last-of-type {
  border-right: none;
}

body.zeest-site .dual-search-bar .dsb-field input,
body.zeest-site .search-field input {
  border: none;
  background: transparent;
  font: inherit;
  font-size: 14px;
  padding: 0;
  box-shadow: none;
  outline: none;
  width: 100%;
}

body.zeest-site .dual-search-bar .dsb-btn {
  background: var(--violet);
  border-radius: 9px;
  margin: 2px;
  padding: 12px 24px;
  font-weight: 600;
}

body.zeest-site .dual-search-bar .dsb-divider { display: none; }

body.zeest-site .search-field input {
  border: none;
  background: transparent;
  flex: 1;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  outline: none;
  min-width: 0;
  padding: 0;
  box-shadow: none;
}

body.zeest-site .search-field input::placeholder {
  color: var(--ink-dim);
}

body.zeest-site .search-row button.btn-violet,
body.zeest-site .search-row .btn-violet {
  flex-shrink: 0;
}

body.zeest-site .cat-icon i {
  font-size: 21px;
}

body.zeest-site .stat-icon i {
  font-size: 18px;
  color: var(--violet);
}

body.zeest-site .reco-item {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 560px) {
  body.zeest-site .search-row {
    flex-direction: column;
  }
  body.zeest-site .search-field {
    border-right: none !important;
    border-bottom: 1px solid var(--line);
  }
}

/* Provider cards → feat-card (mockup exact) */
body.zeest-site a.feat-card,
body.zeest-site .feat-card {
  background: var(--card) !important;
  border: 1px solid var(--line) !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  text-decoration: none !important;
  color: inherit !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  box-shadow: none !important;
  padding: 0 !important;
  gap: 0 !important;
  min-width: 0 !important;
  position: relative !important;
  transform: none;
}

body.zeest-site a.feat-card:hover,
body.zeest-site .feat-card:hover {
  box-shadow: 0 10px 24px rgba(20, 22, 43, 0.07) !important;
  transform: translateY(-2px) !important;
  border-color: var(--line) !important;
  color: inherit !important;
}

body.zeest-site a.provider-card,
body.zeest-site .provider-card:not(.feat-card) {
  /* legacy cards only — feat-card wins */
}

body.zeest-site a.feat-card::before,
body.zeest-site .feat-card::before,
body.zeest-site a.feat-card .zl-card-v2__stripe,
body.zeest-site a.feat-card .pc-cover,
body.zeest-site a.feat-card .pc-body,
body.zeest-site a.feat-card .pc-footer,
body.zeest-site a.feat-card .pc-chips {
  display: none !important;
}

body.zeest-site a.feat-card .feat-photo,
body.zeest-site .feat-card .feat-photo {
  height: 150px !important;
  position: relative !important;
  background: inherit !important;
  border-radius: 0 !important;
}

body.zeest-site a.feat-card .feat-body {
  display: flex !important;
  flex-direction: column !important;
  padding: 14px 16px 16px !important;
}

body.zeest-site .providers-grid,
body.zeest-site .feat-grid {
  display: grid !important;
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 20px !important;
  align-items: stretch !important;
  margin-top: 30px;
}

@media (max-width: 1100px) {
  body.zeest-site .providers-grid,
  body.zeest-site .feat-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

@media (max-width: 820px) {
  body.zeest-site .providers-grid,
  body.zeest-site .feat-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}

@media (max-width: 520px) {
  body.zeest-site .providers-grid,
  body.zeest-site .feat-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Category / sector tiles */
body.zeest-site .sector-sq-card,
body.zeest-site .cat-card,
body.zeest-site .cat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  transition: box-shadow 0.15s, transform 0.15s;
}

body.zeest-site .sector-sq-card:hover,
body.zeest-site .cat-card:hover {
  box-shadow: 0 10px 24px rgba(20, 22, 43, 0.07);
  transform: translateY(-2px);
}

body.zeest-site .sector-grid,
body.zeest-site .cat-grid,
body.zeest-site .sector-grid-sm {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}

/* Page headers — replace gradient hero with clean section */
body.zeest-site .dir-header,
body.zeest-site .zl-hero {
  background: var(--card) !important;
  border-bottom: 1px solid var(--line);
  padding: 32px 0 !important;
  color: var(--ink) !important;
}

body.zeest-site .dir-header::before,
body.zeest-site .zl-hero::before { display: none !important; }

body.zeest-site .dir-header__title,
body.zeest-site .dir-header h1 {
  color: var(--ink) !important;
  font-size: clamp(24px, 3vw, 32px) !important;
  font-weight: 800 !important;
  max-width: none !important;
}

body.zeest-site .dir-header__title em { color: var(--violet) !important; font-style: normal; }

body.zeest-site .dir-header__lead,
body.zeest-site .dir-header__eyebrow {
  color: var(--ink-dim) !important;
}

body.zeest-site .dir-header__eyebrow::before { display: none; }

body.zeest-site .dir-header .breadcrumb-nav a,
body.zeest-site .dir-header .breadcrumb-nav span {
  color: var(--ink-dim) !important;
}

body.zeest-site .dir-header .dual-search-bar {
  box-shadow: 0 6px 20px rgba(20, 22, 43, 0.04);
}

body.zeest-site .dir-bar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 6px 20px rgba(20, 22, 43, 0.04);
  margin: -20px auto 24px;
  max-width: calc(var(--page-max, 90rem) - 64px);
  padding: 14px 20px;
}

body.zeest-site .site-content,
body.zeest-site .site-main {
  padding-top: 0;
}

body.zeest-site .wrap {
  max-width: var(--page-max, 90rem);
  margin: 0 auto;
  padding-left: var(--page-pad, clamp(18px, 2.5vw, 40px));
  padding-right: var(--page-pad, clamp(18px, 2.5vw, 40px));
  width: 100%;
}

@media (max-width: 640px) {
  body.zeest-site .wrap { padding-left: 18px; padding-right: 18px; }
}

/* Section labels */
body.zeest-site .section-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--violet);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body.zeest-site .section-title,
body.zeest-site .dir-section__head h2 {
  font-size: 26px;
  font-weight: 800;
  color: var(--ink);
}

body.zeest-site .section-sub,
body.zeest-site .dir-section__head p {
  color: var(--ink-dim);
  font-size: 15px;
}

/* Auth pages */
body.zeest-site .auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--bg);
  padding: 0;
}

@media (max-width: 900px) {
  body.zeest-site .auth-page { grid-template-columns: 1fr; }
}

body.zeest-site .auth-visual-side {
  background: linear-gradient(155deg, #6C5CE7, #5847D8 60%, #4436B8);
  color: #fff;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (max-width: 900px) {
  body.zeest-site .auth-visual-side { display: none; }
}

body.zeest-site .auth-form-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
}

body.zeest-site .auth-form-body {
  width: 100%;
  max-width: 400px;
}

body.zeest-site .auth-form input,
body.zeest-site .auth-form select,
body.zeest-site .auth-form textarea,
body.zeest-site input[type="text"],
body.zeest-site input[type="email"],
body.zeest-site input[type="password"],
body.zeest-site input[type="search"],
body.zeest-site select,
body.zeest-site textarea {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 14px;
  background: var(--card);
}

body.zeest-site .auth-heading,
body.zeest-site .auth-form-body h1 {
  font-size: 25px;
  font-weight: 800;
}

body.zeest-site .auth-sub {
  color: var(--ink-dim);
  font-size: 14.5px;
}

/* Tags / chips */
body.zeest-site .quick-cat-chip,
body.zeest-site .tag-pill,
body.zeest-site .meta-chip {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 6px 13px;
  border-radius: 20px;
  font-size: 13px;
  color: var(--ink);
  font-weight: 500;
}

body.zeest-site .quick-cat-chip:hover,
body.zeest-site .tag-pill:hover {
  border-color: var(--violet);
  color: var(--violet);
}

/* AI box */
body.zeest-site .home-ai-compact,
body.zeest-site .ai-banner {
  background: linear-gradient(120deg, var(--violet-tint), #F4F1FE);
  border-radius: 18px;
  border: none;
}

/* Tables */
body.zeest-site table {
  border-collapse: collapse;
  width: 100%;
}

body.zeest-site table th,
body.zeest-site table td {
  border-bottom: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  font-size: 14px;
}

body.zeest-site table th {
  font-weight: 600;
  color: var(--ink-dim);
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Status badges */
body.zeest-site .status-open,
body.zeest-site .success-text { color: var(--green); }
body.zeest-site .status-closed,
body.zeest-site .error { color: var(--red); }

/* Provider profile page legacy classes */
body.zeest-site .profile-hero,
body.zeest-site .provider-profile-header {
  padding: 22px 0 40px;
}

body.zeest-site .profile-tabs a.active,
body.zeest-site .tabs a.active {
  color: var(--violet);
  font-weight: 700;
  border-bottom: 2px solid var(--violet);
}

/* Dashboard / app shells (buyer, provider, affiliate) */
body.zeest-site .app-shell,
body.zeest-site .dash-top {
  background: transparent;
}

body.zeest-site .stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}

body.zeest-site .stat-value {
  font-weight: 800;
  color: var(--ink);
}

body.zeest-site .stat-label {
  color: var(--ink-dim);
  font-size: 13px;
}

/* Hide old revamp artifacts */
body.zeest-site .zl-public { /* noop */ }
