/* ===== Design System ===== */
:root {
  --bg: hsl(210, 20%, 98%);
  --fg: hsl(215, 25%, 15%);
  --card: hsl(0, 0%, 100%);
  --card-fg: hsl(215, 25%, 15%);
  --primary: hsl(220, 70%, 55%);
  --primary-fg: hsl(0, 0%, 100%);
  --secondary: hsl(25, 95%, 55%);
  --secondary-fg: hsl(0, 0%, 100%);
  --accent: hsl(350, 80%, 58%);
  --accent-fg: hsl(0, 0%, 100%);
  --muted: hsl(215, 15%, 92%);
  --muted-fg: hsl(215, 10%, 45%);
  --border: hsl(215, 20%, 90%);
  --radius: 1rem;
  --gradient-blue: linear-gradient(135deg, hsl(220, 70%, 55%), hsl(230, 80%, 40%));
  --gradient-orange: linear-gradient(135deg, hsl(25, 95%, 55%), hsl(15, 85%, 45%));
  --shadow-card: 0 4px 24px -4px hsl(215 25% 15% / 0.08);
  --shadow-card-hover: 0 20px 40px -8px hsl(215 25% 15% / 0.15);
}

/* ===== Reset & Base ===== */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ===== Animations ===== */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

@keyframes slideIn {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

.pulse { animation: pulse 2s ease-in-out infinite; }

/* ===== Header ===== */
.header {
  position: relative;
  overflow: hidden;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.header-blob-blue {
  position: absolute;
  top: -96px; right: -96px;
  width: 256px; height: 256px;
  border-radius: 50%;
  background: var(--gradient-blue);
  opacity: 0.04;
}

.header-blob-orange {
  position: absolute;
  bottom: -64px; left: -64px;
  width: 192px; height: 192px;
  border-radius: 50%;
  background: var(--gradient-orange);
  opacity: 0.03;
}

.header-inner {
  position: relative;
  padding: 2rem 2rem 2.5rem;
}

.header-top {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.25rem;
  animation: fadeInUp 0.5s ease-out;
}

.header-logo-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: hsl(220, 70%, 55%, 0.1);
  color: var(--primary);
}

.logo {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.tagline {
  color: var(--muted-fg);
  font-size: 1rem;
  margin-left: 56px;
  margin-bottom: 1.5rem;
  animation: fadeInUp 0.5s ease-out 0.1s both;
}

/* Stats */
.stats-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  margin-left: 56px;
  animation: fadeInUp 0.5s ease-out 0.4s both;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stat-icon {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-icon-blue { background: hsl(220, 70%, 55%, 0.1); color: var(--primary); }
.stat-icon-orange { background: hsl(25, 95%, 55%, 0.1); color: var(--secondary); }
.stat-icon-light { background: hsl(220, 70%, 55%, 0.05); color: var(--primary); }

.stat-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.2;
}

.stat-label {
  font-size: 0.7rem;
  color: var(--muted-fg);
}

/* ===== Trust Badges ===== */
.trust-badges {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 760px;
  margin: 0 auto;
}

.trust-badge {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px hsl(215 25% 15% / 0.04);
  animation: fadeInUp 0.4s ease-out both;
}
.trust-badge:nth-child(1) { animation-delay: 0.3s; }
.trust-badge:nth-child(2) { animation-delay: 0.4s; }
.trust-badge:nth-child(3) { animation-delay: 0.5s; }

.trust-icon {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.trust-icon-green { background: hsl(145, 63%, 94%); color: hsl(145, 63%, 32%); }
.trust-icon-amber { background: hsl(38, 92%, 94%); color: hsl(38, 92%, 40%); }
.trust-icon-blue  { background: hsl(217, 91%, 94%); color: hsl(217, 91%, 45%); }

.trust-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--card-fg);
  line-height: 1.3;
}
.trust-desc {
  font-size: 0.72rem;
  color: var(--muted-fg);
}

/* ===== Pages & Transitions ===== */
.main {
  min-height: calc(100vh - 200px);
  padding: 2rem 0;
}

.page { display: none; }
.page.active {
  display: block;
  animation: fadeInUp 0.35s ease-out;
}

/* ===== Category Cards ===== */
.categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 900px;
  margin: 2.5rem auto 0;
}

.category-card {
  background: var(--card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all 0.3s ease;
  animation: slideIn 0.5s ease-out both;
}
.category-card:nth-child(1) { animation-delay: 0.1s; }
.category-card:nth-child(2) { animation-delay: 0.25s; }

.category-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-6px);
}

.card-image {
  position: relative;
  height: 176px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-fg);
}
.card-image-glare {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.15), transparent 50%);
}
.card-img{
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
    z-index: 0;
}

.remote-bg { background: var(--gradient-blue); }
.part-time-bg { background: var(--gradient-orange); }

.card-icon {
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.15));
}

.card-badge {
  position: absolute;
  top: 16px; right: 16px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--primary-fg);
  font-size: 0.7rem;
  font-weight: 600;
  z-index: 2;
}

.card-count {
  position: absolute;
  bottom: 16px; left: 16px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.2);
  color: var(--primary-fg);
  font-size: 0.72rem;
  font-weight: 500;
  z-index: 2;
}

.card-content {
  padding: 1.5rem 2rem 2rem;
}

.card-content h2 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--card-fg);
  margin-bottom: 0.75rem;
}

.card-content p {
  color: var(--muted-fg);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  border: none;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  color: var(--primary-fg);
  transition: all 0.2s ease;
  font-family: inherit;
}
.btn:hover { transform: scale(1.02); }
.btn svg { transition: transform 0.2s; }
.btn:hover svg { transform: translateX(4px); }

.btn-blue { background: var(--gradient-blue); }
.btn-orange { background: var(--gradient-orange); }

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  color: var(--primary);
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  margin-bottom: 1.5rem;
  padding: 0;
  font-family: inherit;
  transition: gap 0.2s;
}
.btn-back:hover { gap: 10px; }

/* ===== Page Header ===== */
.page-header h1 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--fg);
  margin-bottom: 0.25rem;
}
.page-header p {
  color: var(--muted-fg);
  margin-bottom: 2rem;
}

/* ===== Job Cards Grid ===== */
.sl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

/* Job Card */
.sl-card {
  position: relative;
  background: var(--card);
  border-radius: 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border);
  padding-bottom: 12px;
  transition: all 0.3s ease;
  animation: slideIn 0.4s ease-out both;
}
.sl-card:hover {
  box-shadow: var(--shadow-card-hover);
  transform: translateY(-4px);
}

/* Hot badge */
.sl-hot-badge {
  position: absolute;
  top: 20px; right: 20px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  animation: pulse 1.5s ease-in-out infinite;
}

/* Banner */
.sl-banner {
  position: relative;
  margin: 12px 12px 0;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background-color: transparent!important;
}

.sl-ad-badge {
  position: absolute;
  top: 8px; left: 10px;
  font-size: 0.65rem;
  color: rgba(0,0,0,0.3);
  z-index: 2;
}

.sl-banner-inner {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sl-logo-wrap {
  width: 100%; height: 100%;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.sl-logo-wrap img {
  /* max-width: 100%; max-height: 100%;
  object-fit: contain; */
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
}

.sl-logo-text {
  font-size: 1.25rem;
  font-weight: 800;
  color: hsl(215, 25%, 25%);
}

/* Body */
.sl-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.sl-company-info {
  font-size: 0.75rem;
  color: var(--muted-fg);
  text-align: center;
  margin-bottom: 4px;
}

.sl-job-title {
  font-size: 1rem;
  color: var(--card-fg);
  font-weight: 700;
  text-align: center;
  margin-bottom: 16px;
}

.sl-perks {
  font-size: 0.8rem;
  color: var(--muted-fg);
  text-align: left;
  margin-bottom: 20px;
  line-height: 1.5;
  padding: 0 5px;
}

.sl-perk-item { display: block; margin-bottom: 3px; }
.sl-perks strong { color: var(--card-fg); font-weight: 700; }

/* Info rows */
.sl-rows {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.sl-row {
  display: flex;
  align-items: baseline;
  font-size: 0.9rem;
}

.sl-label { color: var(--muted-fg); white-space: nowrap; flex-shrink: 0; }
.sl-dots { flex: 1; border-bottom: 1px dotted var(--border); margin: 0 8px 4px; }
.sl-val { color: var(--card-fg); font-weight: 700; text-align: right; line-height: 1.3; }

/* Social proof */
.sl-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 0.75rem;
  color: var(--muted-fg);
}

/* CTA Button */
.sl-btn-wrap {
  display: flex;
  justify-content: center;
  margin-top: 16px;
}

.sl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 12px 48px;
  background: var(--accent);
  color: var(--accent-fg);
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px hsl(350 80% 58% / 0.2);
  font-family: inherit;
}
.sl-btn:hover {
  background: hsl(350, 80%, 52%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px hsl(350 80% 58% / 0.3);
}

/* ===== Footer ===== */
.footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--fg);
  padding: 2.5rem 0;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted-fg);
}
.footer-brand span {
  font-size: 0.85rem;
  font-weight: 600;
  color: hsl(210, 20%, 85%);
}

.footer-verified {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  color: var(--muted-fg);
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--muted-fg);
}

/* ===== Responsive ===== */
@media (max-width: 768px) {
  .container { padding: 0 1rem; }
  .trust-badges { grid-template-columns: 1fr; }
  .categories { grid-template-columns: 1fr; }
  .stats-row { margin-left: 0; flex-direction: column; gap: 0.75rem; }
  .tagline { margin-left: 0; }
  .sl-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .header-inner { padding: 1.5rem 1rem 2rem; }
}
