@import url('/crewelo/fonts/fonts.css');

/* Crewelo Acid Lime + Black semantic design tokens. */
:root {
  --crewelo-color-brand-primary: #b6f23a;
  --crewelo-color-brand-primary-hover: #96d51d;
  --crewelo-color-brand-primary-active: #73aa10;
  --crewelo-color-brand-primary-soft: #e8fbc2;
  --crewelo-color-brand-primary-tint: #f3fde0;
  --crewelo-color-ink: #151515;
  --crewelo-color-ink-soft: #202020;
  --crewelo-color-ink-raised: #2b2b29;
  --crewelo-color-background-page: #f8f8f3;
  --crewelo-color-background-surface: #fff;
  --crewelo-color-background-subtle: #f1f2ed;
  --crewelo-color-text-secondary: #484a45;
  --crewelo-color-text-muted: #797c74;
  --crewelo-color-border-default: #dfe1da;
  --crewelo-color-border-strong: #c8cbc2;
  --crewelo-color-border-dark: #343432;
  --crewelo-color-status-success: #2f9e44;
  --crewelo-color-status-warning: #d88a00;
  --crewelo-color-status-error: #d73a3a;
  --crewelo-color-status-info: #3276d2;
  --crewelo-font-display: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --crewelo-font-ui: "Inter", Geist, ui-sans-serif, system-ui, sans-serif;
  --crewelo-radius-xs: 6px;
  --crewelo-radius-sm: 8px;
  --crewelo-radius-md: 12px;
  --crewelo-radius-lg: 16px;
  --crewelo-radius-xl: 20px;
  --crewelo-radius-pill: 999px;
  --crewelo-shadow-sm: 0 1px 2px rgba(21, 21, 21, .06);
  --crewelo-shadow-md: 0 8px 24px rgba(21, 21, 21, .08);
  --crewelo-motion-fast: 120ms;
  --crewelo-motion-normal: 180ms;
  --crewelo-motion-slow: 280ms;
  --crewelo-ease-standard: cubic-bezier(.2, .8, .2, 1);
}

body, .lg-marketing-body {
  font-family: var(--crewelo-font-ui, "Inter", ui-sans-serif, system-ui, sans-serif);
  color: var(--crewelo-color-ink, #151515);
  background: var(--crewelo-color-background-page, #f8f8f3);
  margin: 0;
  padding: 0;
}

/* Chunky Display Grotesk Headings (Matching Reference: Manrope ExtraBold 800, tight tracking, heavy stroke) */
:is(h1, h2, h3, h4, h5, h6, .crewelo-heading, .lg-hero-title, [data-role*="heading"], [data-role*="headline"], [data-role*="title"]):not([data-role*="subheading"]):not([data-role*="description"]) {
  font-family: var(--crewelo-font-display, 'Manrope', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  font-weight: 800;
  -webkit-text-stroke: 0.028em currentColor;
  letter-spacing: -0.045em;
}

[data-role^="annotation-"] {
  font-family: 'Caveat', cursive;
}

.crewelo-button { min-height: 48px; border: 1px solid transparent; border-radius: var(--crewelo-radius-sm); padding: 0 20px; font: 600 15px/20px var(--crewelo-font-ui); transition: background-color var(--crewelo-motion-normal) var(--crewelo-ease-standard), transform var(--crewelo-motion-fast) var(--crewelo-ease-standard), border-color var(--crewelo-motion-normal) var(--crewelo-ease-standard); display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; }
.crewelo-button:active { transform: translateY(1px); }
.crewelo-button:focus-visible, .crewelo-input:focus-visible { outline: 3px solid rgba(182, 242, 58, .35); outline-offset: 2px; }
.crewelo-button--primary { background: var(--crewelo-color-brand-primary); color: var(--crewelo-color-ink); }
.crewelo-button--primary:hover { background: var(--crewelo-color-brand-primary-hover); }
.crewelo-button--ink { background: var(--crewelo-color-ink); color: #fff; }
.crewelo-button--ink:hover { background: var(--crewelo-color-ink-raised); }
.crewelo-button--outline { background: transparent; border-color: var(--crewelo-color-border-strong); color: var(--crewelo-color-ink); }
.crewelo-button--outline:hover { background: var(--crewelo-color-background-subtle); border-color: var(--crewelo-color-ink); }
.crewelo-button--ghost { background: transparent; color: var(--crewelo-color-ink); }
.crewelo-button--ghost:hover { background: var(--crewelo-color-background-subtle); }
.crewelo-button--sm { min-height: 36px; padding: 0 14px; font-size: 13px; border-radius: 6px; }
.crewelo-input { min-height: 48px; border: 1px solid var(--crewelo-color-border-strong); border-radius: var(--crewelo-radius-sm); background: #fff; color: var(--crewelo-color-ink); padding: 0 14px; font: 400 16px/24px var(--crewelo-font-ui); }
.crewelo-input::placeholder { color: var(--crewelo-color-text-muted); }
.crewelo-highlight { background: var(--crewelo-color-brand-primary); color: var(--crewelo-color-ink); padding: 0 .08em; box-decoration-break: clone; }

/* Signature Connector Motif: ●—● */
.crewelo-connector { display: inline-flex; align-items: center; gap: 4px; vertical-align: middle; }
.crewelo-connector__node { width: 7px; height: 7px; border-radius: 50%; background: var(--crewelo-color-brand-primary); display: inline-block; }
.crewelo-connector__node--ink { background: var(--crewelo-color-ink); }
.crewelo-connector__node--white { background: #ffffff; }
.crewelo-connector__bar { width: 14px; height: 2px; background: var(--crewelo-color-brand-primary); display: inline-block; }
.crewelo-connector__bar--ink { background: var(--crewelo-color-ink); }

/* Application Shell: 240px dark sidebar, 64px top bar, 32px padding, 20-24px gaps */
.crewelo-app-layout { display: flex; min-height: 100vh; background: var(--crewelo-color-background-page); }
.crewelo-app-sidebar {
  width: 240px;
  min-width: 240px;
  background: var(--crewelo-color-ink);
  color: #fff;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--crewelo-color-border-dark);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 40;
}
.crewelo-app-sidebar__brand {
  height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--crewelo-color-border-dark);
  text-decoration: none;
  color: #fff;
}
.crewelo-app-sidebar__brand-name {
  font-family: var(--crewelo-font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.04em;
  color: #fff;
}
.crewelo-app-sidebar__section-title {
  font-family: var(--crewelo-font-display);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #797c74;
  padding: 20px 20px 8px;
}
.crewelo-app-sidebar__nav { list-style: none; margin: 0; padding: 0 8px; display: flex; flex-direction: column; gap: 2px; }
.crewelo-app-sidebar__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: var(--crewelo-radius-xs);
  color: #a1a1aa;
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: all var(--crewelo-motion-fast) var(--crewelo-ease-standard);
  position: relative;
}
.crewelo-app-sidebar__item:hover { color: #fff; background: var(--crewelo-color-surface-dark); }
.crewelo-app-sidebar__item.active {
  color: #fff;
  background: var(--crewelo-color-surface-dark-raised);
  font-weight: 700;
}
.crewelo-app-sidebar__item.active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  bottom: 6px;
  width: 3px;
  background: var(--crewelo-color-brand-primary);
  border-radius: 2px;
}
.crewelo-app-sidebar__badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--crewelo-color-surface-dark);
  color: var(--crewelo-color-brand-primary);
}

.crewelo-app-sidebar__footer {
  margin-top: auto;
  padding: 16px;
  border-top: 1px solid var(--crewelo-color-border-dark);
  display: flex;
  align-items: center;
  gap: 12px;
  background: #111;
}

.crewelo-app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.crewelo-app-topbar {
  height: 64px;
  background: #fff;
  border-bottom: 1px solid var(--crewelo-color-border-default);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 0;
  z-index: 30;
}
.crewelo-app-topbar__search {
  max-width: 380px;
  width: 100%;
  position: relative;
}
.crewelo-app-topbar__search input {
  width: 100%;
  height: 38px;
  border-radius: 8px;
  border: 1px solid var(--crewelo-color-border-default);
  padding: 0 12px 0 34px;
  font-size: 13.5px;
  background: var(--crewelo-color-background-subtle);
  color: var(--crewelo-color-ink);
}
.crewelo-app-topbar__search input:focus {
  background: #fff;
  outline: 2px solid var(--crewelo-color-brand-primary);
}
.crewelo-app-topbar__search svg {
  position: absolute;
  left: 10px;
  top: 11px;
  color: var(--crewelo-color-text-muted);
}
.crewelo-app-topbar__actions { display: flex; align-items: center; gap: 14px; }

.crewelo-app-content {
  padding: 32px;
  max-width: 1440px;
  width: 100%;
  margin: 0 auto;
}

/* Mobile Bottom Navigation: Home / Jobs / + / Messages / Profile */
.crewelo-mobile-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: 64px;
  background: var(--crewelo-color-ink);
  border-top: 1px solid var(--crewelo-color-border-dark);
  z-index: 100;
  padding: 0 12px;
}
.crewelo-mobile-bottom-nav__list {
  display: flex;
  align-items: center;
  justify-content: space-around;
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
}
.crewelo-mobile-bottom-nav__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #a1a1aa;
  text-decoration: none;
  font-size: 11px;
  font-weight: 500;
  padding: 6px 10px;
  transition: color var(--crewelo-motion-fast);
}
.crewelo-mobile-bottom-nav__item:hover, .crewelo-mobile-bottom-nav__item.active {
  color: #fff;
}
.crewelo-mobile-bottom-nav__item.active svg {
  stroke: var(--crewelo-color-brand-primary);
}
.crewelo-mobile-bottom-nav__fab {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--crewelo-color-brand-primary);
  color: var(--crewelo-color-ink);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(182, 242, 58, 0.4);
  transform: translateY(-8px);
  text-decoration: none;
}
.crewelo-mobile-bottom-nav__fab svg {
  stroke: var(--crewelo-color-ink);
  stroke-width: 2.5;
}

@media (max-width: 1023px) {
  .crewelo-app-sidebar { display: none; }
  .crewelo-app-topbar { padding: 0 16px; }
  .crewelo-app-content { padding: 20px 16px 84px; }
  .crewelo-mobile-bottom-nav { display: block; }
}

/* Card & Surface Tokens */
.crewelo-card {
  background: var(--crewelo-color-background-surface);
  border: 1px solid var(--crewelo-color-border-default);
  border-radius: var(--crewelo-radius-md);
  padding: 24px;
  box-shadow: var(--crewelo-shadow-sm);
  transition: transform var(--crewelo-motion-fast) var(--crewelo-ease-standard), box-shadow var(--crewelo-motion-normal);
}
.crewelo-card--dark {
  background: var(--crewelo-color-ink);
  color: #fff;
  border-color: var(--crewelo-color-border-dark);
}
.crewelo-card--interactive:hover {
  transform: translateY(-2px);
  box-shadow: var(--crewelo-shadow-md);
}

/* Opportunity & Job Feed Cards */
.crewelo-job-card {
  background: #fff;
  border: 1px solid var(--crewelo-color-border-default);
  border-radius: var(--crewelo-radius-md);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  transition: all var(--crewelo-motion-fast) var(--crewelo-ease-standard);
}
.crewelo-job-card:hover {
  border-color: var(--crewelo-color-ink);
  box-shadow: var(--crewelo-shadow-md);
}
.crewelo-job-card__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.crewelo-job-card__title {
  font-family: var(--crewelo-font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--crewelo-color-ink);
  margin: 0 0 4px;
}
.crewelo-job-card__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--crewelo-color-text-secondary);
}
.crewelo-job-card__price {
  font-family: var(--crewelo-font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--crewelo-color-ink);
}
.crewelo-job-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid var(--crewelo-color-border-default);
}
