/* ============ ROJGAR FUNNEL — Mobile-First Job Portal ============ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --primary: #1a73e8;
  --primary-dark: #1557b0;
  --accent: #ff6b00;
  --bg: #f0f4f8;
  --card: #ffffff;
  --text: #1a1a1a;
  --text-soft: #5f6368;
  --border: #dadce0;
  --success: #0f9d58;
  --danger: #ea4335;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

/* ---- Header ---- */
.header {
  background: var(--primary);
  color: #fff;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.header .logo {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.header .logo span { color: #ffd54f; }
.header .lang-toggle {
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* ---- Progress Bar ---- */
.progress-wrap {
  background: #e8eaed;
  height: 6px;
  width: 100%;
}
.progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--success), #34a853);
  transition: width 0.5s ease;
  border-radius: 0 3px 3px 0;
}

/* ---- Main Content ---- */
.container {
  flex: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 20px 16px 100px;
}

/* ---- Step Page ---- */
.step-card {
  background: var(--card);
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  margin-bottom: 16px;
}
.step-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}
.step-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  margin-bottom: 6px;
}
.step-title-hi {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-soft);
  margin-bottom: 20px;
}
.step-subtitle {
  font-size: 14px;
  color: var(--text-soft);
  margin-bottom: 20px;
}

/* ---- Option Buttons ---- */
.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.opt-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 20px 22px;
  background: #f8f9fa;
  border: 2px solid var(--border);
  border-radius: 14px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  text-decoration: none;
  min-height: 72px;
}
.opt-btn:hover, .opt-btn:active {
  border-color: var(--primary);
  background: #e8f0fe;
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(26,115,232,0.15);
}
.opt-btn .opt-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.opt-btn .opt-text {
  display: flex;
  flex-direction: column;
}
.opt-btn .opt-text .hi { font-size: 14px; color: var(--text-soft); margin-top: 2px; }

/* ---- Option Buttons (actual HTML classes) ---- */
.options-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 16px;
}
.option-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 22px 22px;
  background: #f8f9fa;
  border: 2px solid var(--border);
  border-radius: 14px;
  font-size: 18px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s;
  text-decoration: none;
  min-height: 76px;
}
.option-btn:hover, .option-btn:active {
  border-color: var(--primary);
  background: #e8f0fe;
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(26,115,232,0.18);
}
.option-emoji {
  font-size: 28px;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e8f0fe;
  border-radius: 12px;
}
.option-text {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.3;
}

/* ---- Options Grid (for states etc) ---- */
.options-grid .option-btn {
  flex-direction: column;
  text-align: center;
  padding: 18px 12px;
  gap: 10px;
  min-height: 80px;
  justify-content: center;
}
.options-grid .option-emoji {
  width: 42px;
  height: 42px;
  font-size: 24px;
}
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}

/* ---- Progress Bar (actual HTML classes) ---- */
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--success), #34a853);
  transition: width 0.5s ease;
  border-radius: 0 3px 3px 0;
}
.progress-bar {
  background: #e8eaed;
  height: 6px;
  width: 100%;
}

/* ---- Stats (actual HTML classes) ---- */
.stat-number {
  font-size: 22px;
  font-weight: 800;
  color: var(--success);
}

/* ---- Grid Buttons (for states etc) ---- */
.options-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.options-grid .opt-btn {
  flex-direction: column;
  text-align: center;
  padding: 18px 12px;
  gap: 10px;
  min-height: 80px;
  font-size: 16px;
}
.options-grid .opt-btn .opt-icon {
  width: 42px;
  height: 42px;
  font-size: 18px;
}

/* ---- Stats Banner ---- */
.stats-banner {
  display: flex;
  justify-content: space-around;
  background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
  border-radius: 12px;
  padding: 14px 10px;
  margin-bottom: 16px;
}
.stat-item {
  text-align: center;
}
.stat-num {
  font-size: 22px;
  font-weight: 800;
  color: var(--success);
}
.stat-label {
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 500;
}

/* ---- Results Page ---- */
.results-header {
  background: linear-gradient(135deg, var(--primary), #1557b0);
  color: #fff;
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
  text-align: center;
}
.results-header h2 { font-size: 24px; font-weight: 800; }
.results-header p { font-size: 14px; opacity: 0.9; margin-top: 6px; }
.results-header .match-count {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  padding: 4px 16px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  margin-top: 10px;
}

/* ---- Job Cards ---- */
.job-card {
  background: var(--card);
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 12px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.06);
  display: block;
  text-decoration: none;
  color: var(--text);
  transition: transform 0.15s;
  border-left: 4px solid var(--primary);
}
.job-card:active { transform: scale(0.98); }
.job-card .job-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}
.job-card .job-company {
  font-size: 13px;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.job-card .job-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.job-card .job-tag {
  background: #e8f0fe;
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
}
.job-card .job-tag.salary {
  background: #e6f4ea;
  color: var(--success);
}
.job-card .job-tag.urgent {
  background: #fce8e6;
  color: var(--danger);
}
.job-card .job-tag.location {
  background: #f3e8fd;
  color: #7c3aed;
}
.job-card .apply-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}
.job-card .deadline {
  font-size: 11px;
  color: var(--danger);
  font-weight: 600;
}
.job-card .apply-btn {
  background: var(--success);
  color: #fff;
  padding: 6px 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  border: none;
}

/* ---- Load More ---- */
.load-more {
  display: block;
  width: 100%;
  padding: 16px;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  margin: 16px 0;
  transition: background 0.2s;
}
.load-more:active { background: var(--primary-dark); }

/* ---- Ad Containers ---- */
.ad-slot {
  display: flex;
  justify-content: center;
  margin: 16px 0;
  min-height: 50px;
}
.ad-slot p {
  font-size: 9px;
  color: #bbb;
  text-align: center;
}

/* ---- Top Banner ---- */
.top-banner {
  background: linear-gradient(135deg, #ff6b00, #ff8f3a);
  color: #fff;
  padding: 12px 16px;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.4;
}
.top-banner .banner-icon {
  font-size: 20px;
  flex-shrink: 0;
}
.top-banner .banner-text {
  display: flex;
  flex-direction: column;
}
.top-banner .banner-text .banner-en {
  font-size: 14px;
  font-weight: 700;
}
.top-banner .banner-text .banner-hi {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.9;
}
.top-banner .banner-badge {
  background: #fff;
  color: #ff6b00;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 800;
  margin-left: 8px;
  animation: pulse-badge 1.5s ease-in-out infinite;
}
@keyframes pulse-badge {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

/* ---- Ticker / Marquee ---- */
.ticker {
  background: #fff3cd;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: #856404;
  overflow: hidden;
  white-space: nowrap;
}
.ticker span {
  display: inline-block;
  animation: ticker 15s linear infinite;
}
@keyframes ticker {
  0% { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ---- Trust Badges ---- */
.trust-bar {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 12px;
  font-size: 11px;
  color: var(--text-soft);
  font-weight: 500;
}
.trust-bar span { display: flex; align-items: center; gap: 4px; }

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding: 16px;
  font-size: 11px;
  color: #999;
  border-top: 1px solid var(--border);
  background: #fff;
}
.footer a { color: #666; text-decoration: none; margin: 0 6px; }

/* ---- Notification Popup ---- */
.notif-popup {
  position: fixed;
  bottom: 80px;
  left: 16px;
  right: 16px;
  background: #fff;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  z-index: 50;
  animation: slideUp 0.4s ease;
  max-width: 480px;
  margin: 0 auto;
}
.notif-popup .notif-icon {
  width: 36px;
  height: 36px;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
@keyframes slideUp {
  from { transform: translateY(100px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

/* ---- Responsive ---- */
@media (min-width: 768px) {
  .container { max-width: 560px; }
  .options-grid { grid-template-columns: 1fr 1fr 1fr; }
}
