/* ========================================================
   OnlineJobs.site - Production Stylesheet
   Mobile-First, High-Performance, Microinteractions
   ======================================================== */

:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --accent: #10b981;
  --accent-light: #ecfdf5;
  --gold: #f59e0b;
  --gold-light: #fffbeb;
  --dark: #0f172a;
  --gray-900: #0f172a;
  --gray-800: #1e293b;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;
  --white: #ffffff;
  
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -4px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.04);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-full: 9999px;
  --transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--gray-700);
  background-color: var(--gray-50);
  line-height: 1.5;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Accessibility & Links */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition);
}

img, svg {
  display: block;
  max-width: 100%;
}

button, input, select, textarea {
  font: inherit;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ========================================================
   Header & Navigation
   ======================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--gray-200);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-text {
  font-size: 22px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.5px;
}

.logo-text span.brand-accent {
  color: var(--primary);
}

.logo-text span.brand-tld {
  color: var(--gray-500);
  font-size: 15px;
  font-weight: 600;
}

.nav-desktop {
  display: none;
  align-items: center;
  gap: 28px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
}

.nav-link:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lang-select {
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  outline: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 700;
  border-radius: var(--radius-md);
  border: none;
  cursor: pointer;
  transition: var(--transition);
  min-height: 44px;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-dark {
  background: var(--dark);
  color: var(--white);
}

.btn-dark:hover {
  background: var(--gray-800);
}

.btn-outline {
  background: var(--white);
  color: var(--gray-800);
  border: 1px solid var(--gray-200);
}

.btn-outline:hover {
  border-color: var(--gray-400);
  background: var(--gray-50);
}

.btn-fast-track {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: var(--white);
  font-size: 13px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
}

.btn-fast-track:hover {
  filter: brightness(1.05);
}

.mobile-toggle {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.mobile-toggle span {
  display: block;
  height: 2px;
  width: 100%;
  background: var(--gray-800);
  border-radius: 2px;
  transition: var(--transition);
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 20px;
  display: none;
  flex-direction: column;
  gap: 16px;
  z-index: 99;
  box-shadow: var(--shadow-lg);
}

.mobile-drawer.open {
  display: flex;
}

.mobile-drawer a {
  padding: 10px 0;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--gray-100);
}

/* ========================================================
   Hero Section
   ======================================================== */
.hero-section {
  padding: 60px 0 40px;
  text-align: center;
  background: radial-gradient(circle at 50% 0%, #eff6ff 0%, #f8fafc 70%);
  position: relative;
}

.live-counter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 1.8s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-title {
  font-size: 34px;
  font-weight: 900;
  color: var(--gray-900);
  line-height: 1.2;
  letter-spacing: -1px;
  margin-bottom: 16px;
}

.hero-title span.highlight {
  color: var(--primary);
  position: relative;
}

.hero-subtitle {
  font-size: 17px;
  color: var(--gray-600);
  max-width: 680px;
  margin: 0 auto 32px;
  line-height: 1.6;
}

/* Search Container */
.search-box-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-xl);
  border: 1px solid var(--gray-200);
  max-width: 860px;
  margin: 0 auto 24px;
}

.search-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  flex: 1;
}

.search-field input, .search-field select {
  border: none;
  background: transparent;
  width: 100%;
  font-size: 14px;
  color: var(--gray-800);
  outline: none;
}

/* Quick Filter Chips */
.quick-chips {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.chip-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
}

.chip-btn {
  padding: 6px 14px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition);
}

.chip-btn:hover, .chip-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ========================================================
   Trust Badges Bar
   ======================================================== */
.trust-bar {
  padding: 24px 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-800);
}

.trust-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ========================================================
   Job Board Section
   ======================================================== */
.jobs-section {
  padding: 60px 0;
}

.section-header {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
}

.section-title {
  font-size: 28px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -0.5px;
}

.section-sub {
  font-size: 15px;
  color: var(--gray-500);
}

/* Tab filter */
.tabs-bar {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 24px;
  scrollbar-width: none;
}
.tabs-bar::-webkit-scrollbar { display: none; }

.tab-btn {
  padding: 8px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--gray-200);
  background: var(--white);
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-600);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.tab-btn.active, .tab-btn:hover {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

/* Job Cards Grid */
.jobs-grid {
  display: grid;
  gap: 16px;
}

.job-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}

.job-card:hover {
  transform: translateY(-2px);
  border-color: var(--primary);
  box-shadow: var(--shadow-lg);
}

.job-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.job-role-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.job-title {
  font-size: 19px;
  font-weight: 700;
  color: var(--gray-900);
}

.company-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--gray-500);
}

.company-meta .verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--accent-light);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.job-salary-tag {
  text-align: right;
  flex-shrink: 0;
}

.salary-amount {
  font-size: 18px;
  font-weight: 800;
  color: var(--gray-900);
}

.salary-type {
  font-size: 11px;
  color: var(--gray-500);
  text-transform: uppercase;
}

.job-desc {
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
}

.job-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-pill {
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  background: var(--gray-100);
  color: var(--gray-700);
  border-radius: var(--radius-sm);
}

.job-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--gray-100);
}

.posted-date {
  font-size: 12px;
  color: var(--gray-500);
}

.job-actions {
  display: flex;
  gap: 8px;
}

/* ========================================================
   Fast-Track Candidate Pass Section
   ======================================================== */
.pass-section {
  padding: 60px 0;
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
  color: var(--white);
  border-radius: var(--radius-lg);
  margin: 30px 20px;
}

.pass-inner {
  display: flex;
  flex-direction: column;
  gap: 32px;
  align-items: center;
  text-align: center;
  padding: 0 20px;
}

.pass-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
  border: 1px solid rgba(16, 185, 129, 0.4);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.pass-title {
  font-size: 32px;
  font-weight: 900;
  line-height: 1.2;
}

.pass-title span {
  color: #38bdf8;
}

.pass-sub {
  font-size: 16px;
  color: var(--gray-300);
  max-width: 600px;
  margin: 0 auto;
}

.pass-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-lg);
  padding: 30px;
  max-width: 480px;
  width: 100%;
  backdrop-filter: blur(8px);
}

.pass-price {
  font-size: 46px;
  font-weight: 900;
  color: var(--white);
  margin-bottom: 8px;
}

.pass-price strike {
  font-size: 20px;
  color: var(--gray-400);
  margin-left: 8px;
}

.pass-perks {
  list-style: none;
  text-align: left;
  margin: 20px 0 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  font-size: 14px;
  color: var(--gray-200);
}

.pass-perks li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pass-perks li svg {
  color: #34d399;
  flex-shrink: 0;
}

/* ========================================================
   Comparison Section
   ======================================================== */
.compare-section {
  padding: 60px 0;
}

.compare-table-wrapper {
  overflow-x: auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200);
  box-shadow: var(--shadow-sm);
}

.compare-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}

.compare-table th, .compare-table td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--gray-100);
}

.compare-table th {
  background: var(--gray-50);
  font-weight: 700;
  color: var(--gray-900);
}

.compare-table th.highlight-col, .compare-table td.highlight-col {
  background: var(--primary-light);
  font-weight: 600;
  color: var(--primary-dark);
}

/* ========================================================
   Process ("How It Works")
   ======================================================== */
.process-section {
  padding: 60px 0;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  margin-top: 36px;
}

.step-card {
  padding: 24px;
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  position: relative;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}

.step-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.step-desc {
  font-size: 14px;
  color: var(--gray-600);
}

/* ========================================================
   Keyword / Category Cluster (Programmatic SEO)
   ======================================================== */
.seo-cluster-section {
  padding: 60px 0;
  background: var(--gray-50);
}

.cluster-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 30px;
}

.cluster-col h4 {
  font-size: 15px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 12px;
  border-bottom: 2px solid var(--primary);
  padding-bottom: 6px;
  display: inline-block;
}

.cluster-col ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cluster-col li a {
  font-size: 13px;
  color: var(--gray-600);
}

.cluster-col li a:hover {
  color: var(--primary);
  text-decoration: underline;
}

/* ========================================================
   FAQ Section
   ======================================================== */
.faq-section {
  padding: 60px 0;
  background: var(--white);
}

.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 800px;
  margin: 30px auto 0;
}

.faq-item {
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 18px 20px;
  background: var(--white);
  border: none;
  text-align: left;
  font-size: 15px;
  font-weight: 700;
  color: var(--gray-900);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-answer {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--gray-600);
  line-height: 1.6;
  display: none;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

/* ========================================================
   Footer
   ======================================================== */
.site-footer {
  background: var(--dark);
  color: var(--gray-400);
  padding: 50px 0 30px;
  font-size: 13px;
}

.footer-top {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--gray-800);
}

.footer-bottom {
  padding-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

/* ========================================================
   Modals & Popups
   ======================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.65);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.modal-overlay.active {
  display: flex;
}

.modal-content {
  background: var(--white);
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 28px;
  position: relative;
  box-shadow: var(--shadow-xl);
  max-height: 90vh;
  overflow-y: auto;
}

.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  font-size: 24px;
  color: var(--gray-400);
  cursor: pointer;
}

.modal-close:hover {
  color: var(--gray-800);
}

.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 6px;
}

.modal-sub {
  font-size: 13px;
  color: var(--gray-500);
  margin-bottom: 20px;
}

.form-group {
  margin-bottom: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gray-800);
}

.form-group input, .form-group select, .form-group textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-sm);
  font-size: 14px;
  outline: none;
}

.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--primary);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toast {
  background: var(--dark);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  animation: slideIn 0.3s ease;
}

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

/* ========================================================
   Desktop Media Queries (>= 768px, >= 1024px)
   ======================================================== */
@media (min-width: 768px) {
  .nav-desktop {
    display: flex;
  }
  .mobile-toggle {
    display: none;
  }
  .hero-title {
    font-size: 52px;
  }
  .search-form {
    flex-direction: row;
  }
  .trust-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .section-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
  }
  .steps-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .cluster-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .footer-top {
    flex-direction: row;
    justify-content: space-between;
  }
  .footer-bottom {
    flex-direction: row;
    justify-content: space-between;
  }
}
