/* ===== Reset & Base ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

:root {
  --sky-blue: #3D8DE0;
  --sky-blue-dark: #2E86D8;
  --lemon-green: #8ED14F;
  --lemon-green-dark: #7BC23C;
  --navy: #0F1B2D;
  --navy-soft: #1B2A3D;
  --gray-text: #5F6B7A;
  --gray-light: #7A8699;
  --border-light: #E7EDF3;
  --bg-hero-top: #EAF4FE;
  --bg-hero-bottom: #DCEEFC;
  --white: #FFFFFF;
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
}

html, body {
  width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  color: var(--navy);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

.app {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
  background: var(--white);
}

img, svg { display: block; }

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

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* ===== Header ===== */
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 8px;
  background: var(--bg-hero-top);
}

.logo {
  display: flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 30px;
  line-height: 1;
}

.logo-foye { color: var(--sky-blue); }
.logo-j { color: var(--lemon-green); }
.logo-bs { color: var(--lemon-green); }

.logo-briefcase {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--sky-blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 0 1px;
}

.logo-briefcase svg {
  width: 15px;
  height: 15px;
}

.menu-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(15, 27, 45, 0.1);
  flex-shrink: 0;
}

.menu-btn svg {
  width: 22px;
  height: 22px;
}

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 8px 24px 220px;
  background: linear-gradient(180deg, var(--bg-hero-top) 0%, var(--bg-hero-bottom) 100%);
  overflow: hidden;
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 44px;
  line-height: 1.08;
  letter-spacing: -0.5px;
  max-width: 65%;
}

.hero-dark { color: var(--navy); }
.hero-blue { color: var(--sky-blue); }

.hero-sub {
  margin-top: 14px;
  font-size: 18px;
  font-weight: 500;
  color: var(--navy-soft);
}

.hero-sub .emoji { font-size: 18px; }

.hero-desc {
  margin-top: 12px;
  max-width: 78%;
  font-size: 15px;
  line-height: 1.55;
  color: var(--gray-text);
}

/* ---- Hero art ---- */
.hero-art {
  position: absolute;
  top: 0;
  right: -60px;
  width: 340px;
  height: 420px;
  pointer-events: none;
}

.globe {
  position: absolute;
  top: 130px;
  right: -70px;
  width: 320px;
  height: 320px;
}

.pin {
  position: absolute;
  top: 100px;
  right: 90px;
  width: 90px;
  height: 112px;
  filter: drop-shadow(0 8px 10px rgba(15, 27, 45, 0.18));
}

.plane {
  position: absolute;
  top: 55px;
  left: 30px;
  width: 46px;
  height: 46px;
  transform: rotate(10deg);
}

.dash-path {
  position: absolute;
  top: 30px;
  left: -10px;
  width: 260px;
  height: 190px;
}

.cloud {
  position: absolute;
  width: 90px;
  height: 54px;
  opacity: 0.9;
}

.cloud-1 { top: 65px; right: 30px; width: 70px; }
.cloud-2 { top: 165px; left: -10px; width: 60px; opacity: 0.85; }
.cloud-3 { top: 250px; right: -20px; width: 80px; }

/* ===== Search Card ===== */
.search-card {
  position: relative;
  margin: -195px 20px 0;
  background: var(--white);
  border-radius: 24px;
  padding: 22px 20px 18px;
  box-shadow: 0 20px 50px rgba(15, 27, 45, 0.12);
  z-index: 2;
}

.input-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1.5px solid var(--border-light);
  border-radius: 14px;
  margin-bottom: 12px;
  background: var(--white);
}

.input-icon {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.input-icon-blue { background: #E9F2FD; }
.input-icon svg { width: 18px; height: 18px; }

.input-field input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font-body);
  font-size: 15.5px;
  font-weight: 500;
  color: var(--navy);
  background: transparent;
  min-width: 0;
}

.input-field input::placeholder {
  color: #9AA5B4;
  font-weight: 400;
}

.chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.search-actions {
  display: flex;
  gap: 10px;
  margin-top: 6px;
  margin-bottom: 18px;
}

.btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 10px;
  border-radius: 14px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 14.5px;
  white-space: nowrap;
}

.btn svg { width: 17px; height: 17px; flex-shrink: 0; }

.btn-primary {
  background: var(--lemon-green);
  color: var(--navy);
}

.btn-outline {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--lemon-green);
}

.trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-size: 13px;
  color: var(--gray-text);
  font-weight: 500;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.check-badge {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--lemon-green-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.check-badge svg { width: 10px; height: 10px; }

.dot { color: var(--lemon-green-dark); font-size: 8px; }

/* ===== Sections ===== */
.section {
  padding: 28px 20px 4px;
}

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--navy);
}

.view-all {
  font-size: 14px;
  font-weight: 600;
  color: var(--sky-blue);
}

/* ===== Categories ===== */
.categories-scroll {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.categories-scroll::-webkit-scrollbar { display: none; }

.category-card {
  flex: 0 0 auto;
  width: 132px;
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 16px;
  padding: 16px 14px;
  scroll-snap-align: start;
  box-shadow: 0 2px 10px rgba(15, 27, 45, 0.04);
}

.category-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.category-icon svg { width: 22px; height: 22px; }

.icon-blue { background: #3D8DE0; }
.icon-green { background: #8ED14F; }
.icon-yellow { background: #F5B93D; }
.icon-purple { background: #A05FE0; }
.icon-orange { background: #F08A4B; }

.category-name {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 4px;
  line-height: 1.25;
}

.category-count {
  display: block;
  font-size: 12.5px;
  color: var(--gray-light);
}

/* ===== Latest Jobs ===== */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.job-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--border-light);
  border-radius: 16px;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(15, 27, 45, 0.04);
}

.job-logo {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #16305C;
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.job-info { flex: 1; min-width: 0; }

.job-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 3px;
}

.job-company {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-text);
  margin-bottom: 8px;
}

.verified { width: 15px; height: 15px; }

.job-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray-light);
  font-weight: 500;
  flex-wrap: wrap;
}

.pin-sm { width: 14px; height: 14px; }

.meta-dot { color: var(--gray-light); }

.pill {
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
}

.pill-green {
  background: #EAF8DC;
  color: #5FA02A;
}

.job-side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 22px;
  flex-shrink: 0;
}

.bookmark-btn svg { width: 20px; height: 20px; }

.bookmark-btn.saved svg path {
  fill: var(--sky-blue);
  stroke: var(--sky-blue);
}

.job-time {
  font-size: 12px;
  color: var(--gray-light);
  white-space: nowrap;
}

.jobs-loading {
  text-align: center;
  color: var(--gray-light);
  font-size: 14px;
  padding: 30px 0;
}

.jobs-empty-home {
  text-align: center;
  padding: 40px 20px;
  background: var(--white);
  border: 1px dashed var(--border-light);
  border-radius: 16px;
  color: var(--gray-text);
  font-size: 14px;
}

.jobs-empty-home.hidden { display: none; }

.hidden { display: none !important; }

/* ===== Hamburger Menu ===== */
.menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 27, 45, 0.4);
  z-index: 150;
}

.menu-overlay.hidden { display: none; }

.menu-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: 80%;
  max-width: 320px;
  height: 100%;
  background: var(--white);
  padding: 0 16px 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  box-shadow: -10px 0 30px rgba(15, 27, 45, 0.15);
  overflow-y: auto;
}

.menu-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 8px 16px;
  position: sticky;
  top: 0;
  background: var(--white);
}

.menu-panel-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--navy);
}

.menu-x {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #EEF3F8;
  color: var(--gray-text);
  font-size: 20px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 8px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--navy);
  border-radius: 12px;
  transition: background 0.12s;
}

.menu-link:active { background: #F2F5F9; }

.menu-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.menu-icon svg { width: 17px; height: 17px; }

.menu-icon-blue { background: var(--sky-blue); }
.menu-icon-green { background: var(--lemon-green-dark); }
.menu-icon-gray { background: #9AA5B4; }

.menu-divider {
  height: 1px;
  background: var(--border-light);
  margin: 10px 8px;
}

/* ===== Bottom Nav ===== */
.bottom-spacer { height: 88px; }

.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100%;
  max-width: 520px;
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
  background: var(--white);
  border-top: 1px solid var(--border-light);
  box-shadow: 0 -6px 20px rgba(15, 27, 45, 0.06);
  z-index: 10;
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: #9AA5B4;
  font-size: 11px;
  font-weight: 600;
  flex: 1;
  padding: 6px 4px;
  border-radius: 14px;
  transition: background 0.15s, color 0.15s;
}

.nav-item svg {
  width: 22px;
  height: 22px;
  transition: transform 0.15s;
}

.nav-item.active {
  color: var(--sky-blue);
  background: #E9F2FD;
}

.nav-item.active svg {
  transform: translateY(-1px);
}

.nav-icon-wrap {
  position: relative;
  display: inline-flex;
}

.nav-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lemon-green-dark);
  border: 1.5px solid var(--white);
}

.nav-dot.dot-green { background: var(--lemon-green-dark); }
.nav-dot.dot-blue { background: var(--sky-blue); }
.nav-dot.dot-red { background: #E0483C; }

/* ===== Responsive ===== */
@media (min-width: 521px) {
  .app {
    box-shadow: 0 0 60px rgba(15, 27, 45, 0.08);
    min-height: 100vh;
  }
}

@media (max-width: 380px) {
  .hero-title { font-size: 38px; }
  .search-card { margin-top: -190px; }
}

@media (min-width: 700px) {
  body {
    background: #F2F5F9;
    padding: 24px 0;
  }
}
