@import url('/static/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: #52554d;
  --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: "Manrope", ui-sans-serif, system-ui, sans-serif;
  --crewelo-font-body: "Manrope", 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);
  --crewelo-ease-press: cubic-bezier(.2, .65, .3, 1);
  --crewelo-focus-ring: 0 0 0 3px rgba(182, 242, 58, .28);
}

body, .lg-marketing-body {
  font-family: var(--crewelo-font-body, "Manrope", 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-press), border-color var(--crewelo-motion-normal) var(--crewelo-ease-standard), box-shadow var(--crewelo-motion-fast) var(--crewelo-ease-standard), color var(--crewelo-motion-fast) 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) scale(.985); }
.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-input { transition: border-color var(--crewelo-motion-fast) var(--crewelo-ease-standard), box-shadow var(--crewelo-motion-fast) var(--crewelo-ease-standard), background-color var(--crewelo-motion-fast) var(--crewelo-ease-standard); }
.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;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}
.crewelo-app-sidebar__badge {
  margin-left: auto;
  font-size: 11px;
  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 48px 64px 48px;
  max-width: 1440px;
  width: 100%;
  box-sizing: border-box;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .crewelo-app-content {
    padding: 24px 24px 80px 24px;
  }
}

@media (max-width: 480px) {
  .crewelo-app-content {
    padding: 16px 16px 80px 16px;
  }
}

/* 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(0, 0, 0, 0.22);
  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);
}

/* Shared interaction language: quick acknowledgement, clear state, no looping motion. */
@media (hover: hover) and (pointer: fine) {
  .crewelo-button:not(:disabled):not([aria-disabled="true"]):hover {
    transform: translateY(-1px);
    box-shadow: var(--crewelo-shadow-sm);
  }
  .crewelo-button--primary:not(:disabled):hover {
    box-shadow: 0 3px 10px rgba(115, 170, 16, .18);
  }
  .crewelo-button--ink:not(:disabled):hover {
    box-shadow: 0 3px 10px rgba(21, 21, 21, .16);
  }
  .crewelo-button:not(:disabled):not([aria-disabled="true"]):active {
    transform: translateY(1px) scale(.985);
    box-shadow: none;
  }
  .crewelo-input:hover:not(:focus):not(:disabled) {
    border-color: var(--crewelo-color-text-muted);
  }
  .crewelo-app-sidebar__item:hover svg,
  .crewelo-mobile-bottom-nav__item:hover svg {
    transform: translateY(-1px);
  }
  .crewelo-app-sidebar__brand:hover .crewelo-app-sidebar__brand-name {
    color: var(--crewelo-color-brand-primary);
  }
}

.crewelo-button:focus-visible,
.crewelo-input:focus-visible,
.crewelo-app-sidebar__item:focus-visible,
.crewelo-mobile-bottom-nav__item:focus-visible,
.crewelo-mobile-bottom-nav__fab:focus-visible {
  outline: 2px solid var(--crewelo-color-brand-primary-active);
  outline-offset: 3px;
  box-shadow: var(--crewelo-focus-ring);
}
.crewelo-input:focus-visible {
  border-color: var(--crewelo-color-ink);
  background-color: var(--crewelo-color-background-surface);
}
.crewelo-button:disabled,
.crewelo-button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .56;
  box-shadow: none;
  transform: none;
}
.crewelo-button[aria-busy="true"] {
  cursor: progress;
  color: color-mix(in srgb, currentColor 72%, transparent);
}
.crewelo-button[aria-busy="true"] > * { pointer-events: none; }
.crewelo-app-sidebar__item,
.crewelo-mobile-bottom-nav__item,
.crewelo-app-sidebar__brand,
.crewelo-mobile-bottom-nav__fab,
.crewelo-app-sidebar__item svg,
.crewelo-mobile-bottom-nav__item svg {
  transition: color var(--crewelo-motion-fast) var(--crewelo-ease-standard),
    background-color var(--crewelo-motion-fast) var(--crewelo-ease-standard),
    border-color var(--crewelo-motion-fast) var(--crewelo-ease-standard),
    transform var(--crewelo-motion-fast) var(--crewelo-ease-press),
    box-shadow var(--crewelo-motion-fast) var(--crewelo-ease-standard);
}
.crewelo-mobile-bottom-nav__fab:active { transform: translateY(-7px) scale(.96); }
.crewelo-card--interactive,
.crewelo-job-card { transition: transform var(--crewelo-motion-fast) var(--crewelo-ease-press), border-color var(--crewelo-motion-fast) var(--crewelo-ease-standard), box-shadow var(--crewelo-motion-normal) var(--crewelo-ease-standard); }
.crewelo-card--interactive:active,
.crewelo-job-card:active { transform: translateY(0) scale(.995); }

@media (prefers-reduced-motion: reduce) {
  .crewelo-button,
  .crewelo-input,
  .crewelo-app-sidebar__item,
  .crewelo-mobile-bottom-nav__item,
  .crewelo-app-sidebar__brand,
  .crewelo-mobile-bottom-nav__fab,
  .crewelo-app-sidebar__item svg,
  .crewelo-mobile-bottom-nav__item svg,
  .crewelo-card--interactive,
  .crewelo-job-card {
    transition-duration: 1ms;
  }
  .crewelo-button:active,
  .crewelo-mobile-bottom-nav__fab:active,
  .crewelo-card--interactive:hover,
  .crewelo-job-card:hover,
  .crewelo-card--interactive:active,
  .crewelo-job-card:active {
    transform: none;
  }
}
