/*
 * v145-bundle.css
 * 5Tawzeef — V145 Site-wide Bundle
 * Covers: footer CTA, home hero, stepper, onboarding, job cards, employer stats
 * Loaded on every page via preload in layout.php
 */

/* ═══════════════════════════════════════════════
   FOOTER CTA STRIP
═══════════════════════════════════════════════ */
.v145-footer-cta-strip {
  background: linear-gradient(135deg, #0ea5e9 0%, #6366f1 100%);
  padding: 48px 0;
  margin-top: 40px;
}
.v145-footer-cta-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.v145-footer-cta-inner h2 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 6px;
}
.v145-footer-cta-inner p {
  font-size: 14px;
  color: rgba(255,255,255,.8);
  margin: 0;
}
.v145-footer-cta-btns {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.v145-footer-cta-btns a {
  padding: 10px 22px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: opacity .15s;
}
.v145-footer-cta-btns a:first-child {
  background: #fff;
  color: #0ea5e9;
}
.v145-footer-cta-btns a:last-child {
  background: rgba(255,255,255,.15);
  color: #fff;
  border: 2px solid rgba(255,255,255,.4);
}
.v145-footer-cta-btns a:hover { opacity: .85; }

/* Footer stats bar */
.v145-footer-stats-bar {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  padding: 20px 0;
}
.v145-footer-stats-inner {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}
.v145-footer-stats-inner > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}
.v145-footer-stats-inner strong {
  font-size: 20px;
  font-weight: 800;
  color: #0ea5e9;
}
.v145-footer-stats-inner span {
  font-size: 12px;
  color: #64748b;
}

/* ═══════════════════════════════════════════════
   HOME PERSONAL HERO
═══════════════════════════════════════════════ */
.v145-home-personal-hero {
  background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 28px;
  margin-bottom: 24px;
}
.v145-home-personal-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  justify-content: space-between;
  flex-wrap: wrap;
}
.v145-home-personal-greeting {
  font-size: 13px;
  color: #64748b;
  margin: 0 0 4px;
}
.v145-home-personal-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #0ea5e9;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
  flex-shrink: 0;
}
.v145-home-personal-cta:hover { background: #0284c7; }

/* ═══════════════════════════════════════════════
   EMPLOYER HERO / STATS
═══════════════════════════════════════════════ */
.v145-employer-hero-simple {
  background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
.v145-employer-hero-left h1 {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  margin: 0 0 8px;
}
.v145-employer-hero-left p {
  font-size: 13px;
  color: rgba(255,255,255,.8);
  margin: 0;
}
.v145-employer-hero-cta {
  display: inline-block;
  background: #fff;
  color: #0ea5e9;
  padding: 10px 22px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.v145-employer-stats-strip {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.v145-employer-stat {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 100px;
}
.v145-employer-stat strong {
  font-size: 22px;
  font-weight: 800;
  color: #0ea5e9;
}
.v145-employer-stat span {
  font-size: 11px;
  color: #64748b;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════
   LATEST JOB CARDS (Home)
═══════════════════════════════════════════════ */
.v145-latest-jobs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 24px;
}
.v145-latest-job-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: box-shadow .15s, border-color .15s;
}
.v145-latest-job-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.1);
  border-color: #93c5fd;
}

/* Country job count (jobs page) */
.v145-country-job-count {
  font-size: 12px;
  color: #64748b;
  font-weight: 600;
}

/* ═══════════════════════════════════════════════
   STEPPER (Job wizard / multi-step forms)
═══════════════════════════════════════════════ */
.v145-stepper-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 20px;
}
.v145-stepper-nav {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 8px 0;
}
.v145-stepper-nav::-webkit-scrollbar { display: none; }
.v145-stepper-progress {
  height: 4px;
  background: #e2e8f0;
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 24px;
}

/* Step indicator bubble */
.v145-step-bubble {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  background: #fff;
  color: #64748b;
  flex-shrink: 0;
  transition: all .2s;
}

.v145-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.v145-step-label {
  font-size: 11px;
  color: #64748b;
  white-space: nowrap;
  font-weight: 500;
}
.v145-step-subtitle {
  font-size: 11px;
  color: #94a3b8;
}
.v145-step-error {
  font-size: 11px;
  color: #ef4444;
  font-weight: 600;
  display: block;
  margin-top: 4px;
}

/* Step panels */
.v145-step-panel {
  display: none;
  animation: v145-fadeIn .2s ease;
}
.v145-step-panel.is-active { display: block; }
@keyframes v145-fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.v145-step-panel-inner {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 24px;
}
.v145-step-title {
  font-size: 18px;
  font-weight: 800;
  color: #1e293b;
  margin: 0 0 6px;
}
.v145-stepper-save-note {
  font-size: 12px;
  color: #64748b;
  text-align: center;
  margin-top: 12px;
}

/* Form grid used in steppers */
.v145-form-grid {
  display: grid;
  gap: 14px;
}

/* ═══════════════════════════════════════════════
   ONBOARDING OVERLAY
═══════════════════════════════════════════════ */
.v145-onboarding-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,.7);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.v145-onboarding-step {
  background: #fff;
  border-radius: 14px;
  padding: 32px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  text-align: center;
  position: relative;
}
.v145-onboarding-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0ea5e9;
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  margin: 0 auto 14px;
}
.v145-onboarding-steps {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
}
.v145-onboarding-steps > span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e2e8f0;
  display: block;
}
.v145-onboarding-steps > span.active { background: #0ea5e9; }
.v145-onboarding-skip {
  position: absolute;
  top: 14px;
  inset-inline-end: 16px;
  font-size: 12px;
  color: #94a3b8;
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px 8px;
}

/* ═══════════════════════════════════════════════
   JOB PREVIEW CARD
═══════════════════════════════════════════════ */
.v145-preview-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.v145-preview-card-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #94a3b8;
  font-weight: 600;
}
.v145-preview-job-title {
  font-size: 15px;
  font-weight: 800;
  color: #1e293b;
}
.v145-preview-job-meta {
  font-size: 12px;
  color: #64748b;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.v145-preview-desc {
  font-size: 12px;
  color: #64748b;
  line-height: 1.5;
}

/* AI tip inline (job wizard) */
.v145-ai-tip {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 12px;
  color: #1e40af;
  margin-top: 8px;
  line-height: 1.4;
}

/* Trust CTA */
.v145-trust-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #7c3aed;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: background .15s;
}
.v145-trust-cta:hover { background: #6d28d9; }

/* ═══════════════════════════════════════════════
   ANTI-COLLAPSE SAFETY NET
   Prevents any future CSS from collapsing v145 layout
═══════════════════════════════════════════════ */
.v145-resume-layout,
.v145-resume-topbar,
.v145-resume-sidebar,
.v145-resume-form-wrap {
  box-sizing: border-box;
}
.v145-resume-layout > * {
  min-width: 0;
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media (max-width: 768px) {
  .v145-footer-cta-inner { flex-direction: column; text-align: center; }
  .v145-footer-cta-btns  { justify-content: center; }
  .v145-employer-hero-simple { grid-template-columns: 1fr; }
  .v145-footer-stats-inner   { gap: 20px; }
  .v145-onboarding-step { padding: 24px 20px; }
}
