/* ============================================================
   Gulf Job Wala — Custom CSS
   Tailwind ke upar extra styles
   ============================================================ */

/* ── Fonts ─────────────────────────────────────────────────── */
* { box-sizing: border-box; }

body {
  font-family: 'Poppins', 'Noto Sans Devanagari', sans-serif;
  scroll-behavior: smooth;
}

/* ── Hero Video Background ──────────────────────────────────── */
.hero-section {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0A1F44;
}

.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: 0.35;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10,31,68,0.92) 0%, rgba(10,31,68,0.75) 60%, rgba(29,91,255,0.3) 100%);
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* ── Search Bar ─────────────────────────────────────────────── */
.search-bar {
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.25);
  padding: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-bar input,
.search-bar select {
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  color: #1a1a1a;
}

.search-bar input::placeholder { color: #9ca3af; }

/* ── Job Card ───────────────────────────────────────────────── */
.job-card {
  background: white;
  border-radius: 12px;
  border: 1.5px solid #e5e7eb;
  padding: 20px;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.job-card:hover {
  border-color: #1D5BFF;
  box-shadow: 0 8px 32px rgba(29, 91, 255, 0.12);
  transform: translateY(-2px);
}

.job-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px;
  height: 100%;
  background: #1D5BFF;
  opacity: 0;
  transition: opacity 0.25s;
}

.job-card:hover::before { opacity: 1; }

.job-card.featured {
  border-color: #f59e0b;
  background: linear-gradient(to bottom right, #fffbeb, white);
}

.job-card.featured::before { background: #f59e0b; opacity: 1; }

.job-card.premium-card {
  border-color: #dc2626;
  background: linear-gradient(to bottom right, #fff5f5, white);
}

.badge-featured {
  background: #f59e0b;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-premium {
  background: #dc2626;
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.badge-new {
  background: #22c55e;
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 20px;
}

/* ── Stats Counter ──────────────────────────────────────────── */
.stat-counter {
  font-variant-numeric: tabular-nums;
}

/* ── Category Card ──────────────────────────────────────────── */
.category-card {
  background: white;
  border-radius: 12px;
  padding: 20px 16px;
  text-align: center;
  border: 1.5px solid #e5e7eb;
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}

.category-card:hover {
  border-color: #1D5BFF;
  background: #eff4ff;
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(29, 91, 255, 0.12);
}

.category-card .cat-icon {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, #eff4ff, #dce8ff);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  color: #1D5BFF;
  font-size: 20px;
  transition: all 0.25s;
}

.category-card:hover .cat-icon {
  background: #1D5BFF;
  color: white;
}

/* ── How it Works Steps ─────────────────────────────────────── */
.step-number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1D5BFF, #0A1F44);
  color: white;
  font-weight: 700;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  flex-shrink: 0;
}

/* ── Filters Sidebar ────────────────────────────────────────── */
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eff4ff;
  color: #1D5BFF;
  border: 1px solid #c7d9ff;
  border-radius: 20px;
  padding: 4px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}

.filter-chip:hover,
.filter-chip.active {
  background: #1D5BFF;
  color: white;
  border-color: #1D5BFF;
}

/* ── Forms ──────────────────────────────────────────────────── */
.form-input {
  width: 100%;
  border: 1.5px solid #d1d5db;
  border-radius: 8px;
  padding: 10px 14px;
  font-size: 14px;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: white;
  color: #1a1a1a;
}

.form-input:focus {
  outline: none;
  border-color: #1D5BFF;
  box-shadow: 0 0 0 3px rgba(29, 91, 255, 0.1);
}

.form-input.error {
  border-color: #dc2626;
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-label {
  display: block;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  margin-bottom: 5px;
}

.form-error {
  color: #dc2626;
  font-size: 12px;
  margin-top: 4px;
}

/* ── Buttons ────────────────────────────────────────────────── */
.btn-primary {
  background: #1D5BFF;
  color: white;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-primary:hover { background: #1547d4; }
.btn-primary:active { transform: scale(0.98); }

.btn-red {
  background: #E6212E;
  color: white;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.btn-red:hover { background: #c81e29; }

.btn-navy {
  background: #0A1F44;
  color: white;
  padding: 10px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-navy:hover { background: #0d2654; }

.btn-outline {
  background: transparent;
  color: #1D5BFF;
  padding: 9px 24px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 14px;
  border: 1.5px solid #1D5BFF;
  cursor: pointer;
  transition: all 0.2s;
}

.btn-outline:hover { background: #1D5BFF; color: white; }

/* ── Profile Completeness Bar ────────────────────────────────── */
.progress-bar {
  height: 8px;
  background: #e5e7eb;
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  background: linear-gradient(90deg, #1D5BFF, #22c55e);
  transition: width 0.8s ease;
}

/* ── Admin Sidebar ──────────────────────────────────────────── */
.admin-sidebar {
  background: #0A1F44;
  min-height: 100vh;
  width: 260px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 30;
  overflow-y: auto;
  transition: transform 0.3s;
}

.admin-sidebar .nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  color: #93a8c4;
  font-size: 14px;
  border-radius: 8px;
  margin: 2px 8px;
  transition: all 0.2s;
  text-decoration: none;
  cursor: pointer;
}

.admin-sidebar .nav-item:hover,
.admin-sidebar .nav-item.active {
  background: rgba(255,255,255,0.1);
  color: white;
}

.admin-sidebar .nav-item.active { background: rgba(29,91,255,0.3); }

.admin-content {
  margin-left: 260px;
  min-height: 100vh;
  background: #f4f6fb;
}

/* ── Pagination ─────────────────────────────────────────────── */
.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s;
  border: 1px solid #e5e7eb;
  background: white;
  color: #374151;
  text-decoration: none;
}

.pagination a:hover { border-color: #1D5BFF; color: #1D5BFF; }
.pagination span.current { background: #1D5BFF; color: white; border-color: #1D5BFF; }

/* ── Loading Spinner ────────────────────────────────────────── */
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e7eb;
  border-top-color: #1D5BFF;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 20px auto;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* ── Skeleton Loading ───────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 4px;
}

@keyframes shimmer {
  0%  { background-position: 200% 0; }
  100%{ background-position: -200% 0; }
}

/* ── Accordion (FAQ) ────────────────────────────────────────── */
.accordion-btn { cursor: pointer; }
.accordion-content { display: none; }
.accordion-content.open { display: block; }

/* ── Table ──────────────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.data-table th {
  background: #f8f9fc;
  color: #374151;
  font-weight: 600;
  padding: 12px 16px;
  text-align: left;
  border-bottom: 2px solid #e5e7eb;
  white-space: nowrap;
}

.data-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  color: #4b5563;
  vertical-align: middle;
}

.data-table tr:hover td { background: #f8f9fc; }

/* ── Country flags / Tags ────────────────────────────────────── */
.country-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #f0f4ff;
  color: #1D5BFF;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero-section { min-height: 100svh; }
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-content { margin-left: 0; }
  .search-bar { flex-direction: column; align-items: stretch; }
}

/* ── Scrollbar ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #c1c1c1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #a1a1a1; }

/* ── Utility ────────────────────────────────────────────────── */
.truncate-2 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.truncate-3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.text-navy  { color: #0A1F44; }
.text-royal { color: #1D5BFF; }
.bg-navy    { background-color: #0A1F44; }
.bg-royal   { background-color: #1D5BFF; }

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

.animate-fade-up {
  animation: fadeInUp 0.5s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-delay-3 { animation-delay: 0.3s; opacity: 0; }

/* ── Section headings ───────────────────────────────────────── */
.section-title {
  font-size: clamp(22px, 4vw, 30px);
  font-weight: 700;
  color: #0A1F44;
  line-height: 1.3;
}

.section-underline {
  width: 48px;
  height: 4px;
  background: #E6212E;
  border-radius: 2px;
  margin: 8px 0 0;
}
