/* ═══════════════════════════════════════════════════════════
   Fiji Jobs – Main Stylesheet
   Primary: #1e6091 (ocean blue)
   Accent:  #f77f00 (sunset orange)
   Green:   #2a9d8f (tropical teal)
═══════════════════════════════════════════════════════════ */

:root {
  --primary:    #1e6091;
  --primary-dk: #155273;
  --primary-lt: #e8f4fd;
  --accent:     #f77f00;
  --accent-lt:  #fff3e0;
  --teal:       #2a9d8f;
  --teal-lt:    #e0f5f3;
  --dark:       #1a1a2e;
  --muted:      #6c757d;
  --border:     #e9ecef;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 2px 16px rgba(0,0,0,.07);
  --shadow-md:  0 4px 28px rgba(0,0,0,.12);
  --transition: .2s ease;
}

* { box-sizing: border-box; }

body {
  font-family: 'Poppins', sans-serif;
  color: #333;
  background: #f5f7fb;
  line-height: 1.6;
}

/* ── Typography ─────────────────────────────────────────── */
h1,h2,h3,h4,h5,h6 { font-weight: 700; color: var(--dark); }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--accent); }

/* ── Top bar ────────────────────────────────────────────── */
.topbar {
  background: var(--primary-dk);
  font-size: .8rem;
  padding: 4px 0;
}

/* ── Navbar ─────────────────────────────────────────────── */
.main-navbar {
  background: var(--primary) !important;
  box-shadow: 0 2px 12px rgba(0,0,0,.2);
  padding: 10px 0;
}

.brand-icon {
  width: 42px; height: 42px;
  background: rgba(255,255,255,.15);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; color: #fff;
  border: 1px solid rgba(255,255,255,.25);
}
.brand-name { font-size: 1.3rem; font-weight: 800; color: #fff; letter-spacing: -.3px; }
.brand-tag  { font-size: .65rem; text-transform: uppercase; letter-spacing: 1.5px; color: rgba(255,255,255,.6); }
.navbar-brand { padding: 0; }

.main-navbar .nav-link {
  color: rgba(255,255,255,.85) !important;
  font-weight: 500;
  font-size: .9rem;
  padding: 6px 14px !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
  background: rgba(255,255,255,.15);
  color: #fff !important;
}

.btn-accent {
  background: var(--accent);
  color: #fff !important;
  font-weight: 600;
  border: none;
  padding: 8px 18px;
  border-radius: 8px;
  transition: var(--transition);
}
.btn-accent:hover { background: #e06c00; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(247,127,0,.4); }

.user-avatar-sm {
  width: 28px; height: 28px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: .75rem; color: #fff;
}

.nav-notif { padding: 5px 10px !important; border-radius: 8px !important; }

/* ── Hero Section ───────────────────────────────────────── */
.hero {
  background: linear-gradient(135deg, var(--primary-dk) 0%, var(--primary) 50%, #168aad 100%);
  padding: 90px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}
.hero-subtitle { color: rgba(255,255,255,.8); font-size: 1.1rem; }
.hero-stats { gap: 24px; }
.hero-stat {
  text-align: center;
  color: rgba(255,255,255,.9);
}
.hero-stat strong { display: block; font-size: 1.8rem; font-weight: 800; color: var(--accent); }
.hero-stat span   { font-size: .8rem; text-transform: uppercase; letter-spacing: 1px; opacity: .7; }
/* Hero slider */
.hero-slide { display: none; }
.hero-slide.active { display: block; }
.hero-image-bg {
  position: absolute; inset: 0; z-index: 1;
  background-size: cover; background-position: center top;
  opacity: .35;
}
.hero-dots {
  position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 10;
}
.hero-dot {
  width: 10px; height: 10px; border-radius: 50%; border: 2px solid rgba(255,255,255,.7);
  background: transparent; cursor: pointer; padding: 0; transition: .2s;
}
.hero-dot.active { background: #fff; border-color: #fff; }

/* ── Search Box ─────────────────────────────────────────── */
.search-box {
  background: #fff;
  border-radius: 16px;
  padding: 8px 8px 8px 8px;
  box-shadow: var(--shadow-md);
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.search-box .form-control,
.search-box .form-select {
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: .9rem;
  padding: 10px 14px;
  min-width: 0;
}
.search-box .form-control:focus,
.search-box .form-select:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(30,96,145,.12);
}
.search-box .btn-search {
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 24px;
  font-weight: 600;
  white-space: nowrap;
  transition: var(--transition);
}
.search-box .btn-search:hover { background: var(--primary-dk); transform: translateY(-1px); }

/* ── Section titles ─────────────────────────────────────── */
.section-title { font-size: 1.6rem; font-weight: 800; }
.section-subtitle { color: var(--muted); }
.section-badge {
  display: inline-block;
  background: var(--primary-lt);
  color: var(--primary);
  font-size: .75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 8px;
}

/* ── Job Card ───────────────────────────────────────────── */
.job-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 22px;
  transition: var(--transition);
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.job-card:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
}
.job-card .btn-save-job { position: relative; z-index: 2; }
.job-card.featured { border-left: 4px solid var(--accent); }
.featured-badge {
  position: absolute; top: 12px; right: 12px;
  width: 28px; height: 28px;
  background: var(--accent); color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem;
  box-shadow: 0 2px 6px rgba(0,0,0,.15);
}

.company-logo {
  width: 52px; height: 52px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: var(--primary-lt);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--primary); font-weight: 700;
  flex-shrink: 0;
}
.company-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 10px; }

.job-title {
  font-size: 1rem; font-weight: 700;
  color: var(--dark);
  margin-bottom: 2px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.job-title:hover { color: var(--primary); }
.job-company { font-size: .85rem; color: var(--muted); font-weight: 500; }

.job-meta {
  display: flex; flex-wrap: wrap; gap: 10px;
  margin: 10px 0;
  font-size: .8rem; color: var(--muted);
}
.job-meta i { color: var(--primary); width: 14px; }

.job-card-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: .8rem;
}
.deadline-badge {
  background: #fff3f3; color: #c00;
  padding: 2px 8px; border-radius: 20px; font-size: .72rem;
}
.deadline-badge.ok { background: #f0fff4; color: #166534; }

.app-count {
  font-size: .72rem;
  color: var(--muted);
}
.app-count.few {
  color: var(--teal);
  font-weight: 600;
}

/* ── Category Cards ─────────────────────────────────────── */
.cat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  color: inherit;
  display: block;
}
.cat-card:hover {
  border-color: var(--primary);
  background: var(--primary-lt);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  color: var(--primary);
}
.cat-icon {
  width: 56px; height: 56px;
  background: var(--primary-lt);
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  font-size: 1.4rem;
  color: var(--primary);
  transition: var(--transition);
}
.cat-card:hover .cat-icon { background: var(--primary); color: #fff; }
.cat-card h6 { font-size: .85rem; font-weight: 600; margin: 0; }
.cat-count { font-size: .75rem; color: var(--muted); margin-top: 2px; }

/* ── Employer Plans ─────────────────────────────────────── */
.plan-card {
  background: #fff;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  transition: var(--transition);
  position: relative;
}
.plan-card.popular {
  border-color: var(--primary);
  box-shadow: 0 8px 32px rgba(30,96,145,.15);
}
.plan-badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--primary); color: #fff;
  font-size: .75rem; font-weight: 700;
  padding: 4px 16px; border-radius: 20px;
  white-space: nowrap;
}
.plan-price {
  font-size: 2.6rem; font-weight: 800;
  color: var(--primary);
  line-height: 1;
  margin: 16px 0 4px;
  display: flex; align-items: center; justify-content: center; gap: 2px;
}
.plan-price .plan-cur { font-size: 1.1rem; font-weight: 700; line-height: 1; }
.plan-price span:not(.plan-cur) { font-size: .9rem; font-weight: 400; color: var(--muted); }
.plan-features { list-style: none; padding: 0; margin: 20px 0; text-align: left; }
.plan-features li { padding: 6px 0; font-size: .9rem; display: flex; gap: 10px; }
.plan-features li i { color: var(--teal); width: 16px; flex-shrink: 0; margin-top: 2px; }

/* ── How it works ───────────────────────────────────────── */
.step-card { text-align: center; }
.step-num {
  width: 60px; height: 60px;
  background: var(--primary);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; font-weight: 800;
  color: #fff;
  margin: 0 auto 16px;
  box-shadow: 0 4px 16px rgba(30,96,145,.3);
}
.step-icon {
  width: 72px; height: 72px;
  background: var(--primary-lt);
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; color: var(--primary);
  margin: 0 auto 16px;
}

/* ── Sidebar Filters ────────────────────────────────────── */
.filter-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 16px;
}
.filter-card h6 { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--primary); margin-bottom: 12px; }

/* ── Dashboard ──────────────────────────────────────────── */
.dash-sidebar {
  background: #fff;
  border-right: 1px solid var(--border);
  min-height: 100vh;
}
.dash-nav .nav-link {
  color: #444;
  font-size: .9rem;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  display: flex; align-items: center; gap: 10px;
  transition: var(--transition);
  font-weight: 500;
}
.dash-nav .nav-link i { width: 18px; text-align: center; color: var(--muted); }
.dash-nav .nav-link:hover,
.dash-nav .nav-link.active {
  background: var(--primary-lt);
  color: var(--primary);
}
.dash-nav .nav-link.active i { color: var(--primary); }

.stat-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  border: 1px solid var(--border);
  display: flex; align-items: center; gap: 16px;
}
.stat-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}
.stat-icon.blue   { background: var(--primary-lt); color: var(--primary); }
.stat-icon.orange { background: var(--accent-lt);  color: var(--accent); }
.stat-icon.teal   { background: var(--teal-lt);    color: var(--teal); }
.stat-icon.red    { background: #fff0f0;            color: #dc3545; }
.stat-value { font-size: 1.8rem; font-weight: 800; color: var(--dark); line-height: 1; }
.stat-label { font-size: .8rem; color: var(--muted); margin-top: 2px; }

/* ── Tables ─────────────────────────────────────────────── */
.table-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden;
}
.table-card .table { margin: 0; }
.table-card .table th {
  background: #f8f9fa;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding: 12px 16px;
}
.table-card .table td { padding: 12px 16px; vertical-align: middle; font-size: .9rem; }

/* ── Forms ──────────────────────────────────────────────── */
.form-label { font-weight: 600; font-size: .875rem; margin-bottom: 5px; }
.form-control, .form-select {
  border-radius: var(--radius-sm) !important;
  border: 1.5px solid var(--border) !important;
  font-size: .9rem !important;
  padding: 10px 14px !important;
  transition: var(--transition);
}
.form-control:focus, .form-select:focus {
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(30,96,145,.1) !important;
}

.auth-card {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--shadow-md);
  padding: 40px;
  max-width: 520px;
  width: 100%;
}
.auth-wrap {
  min-height: 100vh;
  background: linear-gradient(135deg, var(--primary-dk) 0%, #168aad 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 30px 16px;
}

.role-card {
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  cursor: pointer;
  transition: var(--transition);
  text-align: center;
}
.role-card:hover, .role-card.selected {
  border-color: var(--primary);
  background: var(--primary-lt);
}
.role-card.selected { box-shadow: 0 0 0 3px rgba(30,96,145,.15); }
.role-card i { font-size: 2rem; margin-bottom: 10px; }

/* ── Badges ─────────────────────────────────────────────── */
.badge { font-weight: 600; font-size: .73rem; letter-spacing: .2px; }
.status-badge {
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .75rem;
  font-weight: 600;
  display: inline-block;
}
.status-active    { background: #d4edda; color: #155724; }
.status-pending   { background: #fff3cd; color: #856404; }
.status-suspended { background: #f8d7da; color: #721c24; }
.status-expired   { background: #e9ecef; color: #6c757d; }

/* ── Credit / pricing chips ─────────────────────────────── */
.credit-chip {
  background: var(--accent-lt);
  color: var(--accent);
  border: 1.5px solid #ffc97a;
  border-radius: 8px;
  padding: 12px 20px;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}
.credit-chip:hover, .credit-chip.selected {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.credit-chip .qty { font-size: 1.4rem; font-weight: 800; }
.credit-chip .price { font-size: .8rem; margin-top: 2px; }

/* ── Job detail page ─────────────────────────────────────── */
.job-detail-header {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 30px;
}
.company-logo-lg {
  width: 80px; height: 80px;
  border-radius: 14px;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; color: var(--primary);
  background: var(--primary-lt);
  flex-shrink: 0;
  overflow: hidden;
}
.company-logo-lg img { width: 100%; height: 100%; object-fit: contain; }
.job-info-list { list-style: none; padding: 0; margin: 0; }
.job-info-list li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.job-info-list li:last-child { border-bottom: 0; }
.job-info-list li i { color: var(--primary); width: 18px; margin-top: 2px; }

.apply-sidebar {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
  position: sticky;
  top: 80px;
}

/* ── Testimonials ───────────────────────────────────────── */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 24px;
}
.testimonial-card blockquote { font-style: italic; color: #555; margin: 12px 0; }
.testimonial-card cite { font-weight: 600; font-size: .85rem; }

/* ── Alert banners ──────────────────────────────────────── */
.promo-banner {
  background: linear-gradient(90deg, var(--accent), #ffb347);
  color: #fff;
  border-radius: var(--radius);
  padding: 20px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}

/* ── Tags ───────────────────────────────────────────────── */
.tag {
  display: inline-block;
  background: var(--primary-lt);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 500;
  margin: 2px;
}

/* ── Footer ─────────────────────────────────────────────── */
.main-footer { background: #0d2137; margin-top: 60px; }
.footer-top  { padding: 50px 0 30px; }
.footer-bottom {
  background: rgba(0,0,0,.2);
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-heading {
  color: #fff;
  font-size: .85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 14px;
}
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 8px; font-size: .85rem; color: rgba(255,255,255,.55); }
.footer-links a { color: rgba(255,255,255,.55); transition: var(--transition); }
.footer-links a:hover { color: var(--accent); }
.footer-social {
  width: 36px; height: 36px;
  background: rgba(255,255,255,.08);
  border-radius: 8px;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.6);
  font-size: .9rem;
  transition: var(--transition);
}
.footer-social:hover { background: var(--accent); color: #fff; }

/* ── Ad Slots ───────────────────────────────────────────── */
.ad-slot {
  width: 100%;
  text-align: center;
  overflow: hidden;
}
.ad-slot-sitewide-footer {
  background: #f5f7fb;
  border-top: 1px solid var(--border);
}

/* ── Animations ─────────────────────────────────────────── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp .5s ease forwards; }

/* ── Utilities ──────────────────────────────────────────── */
.card-hover {
  transition: var(--transition);
}
.card-hover:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }

.text-primary-custom { color: var(--primary) !important; }
.text-accent { color: var(--accent) !important; }
.bg-primary-lt { background: var(--primary-lt) !important; }
.rounded-custom { border-radius: var(--radius) !important; }

.btn-primary {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}
.btn-primary:hover { background: var(--primary-dk) !important; border-color: var(--primary-dk) !important; }

.breadcrumb { font-size: .85rem; }
.breadcrumb-item + .breadcrumb-item::before { color: var(--muted); }

/* ── Loading skeleton ───────────────────────────────────── */
.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; }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { padding: 50px 0 40px; }
  .auth-card { padding: 28px 20px; }
  .job-detail-header { padding: 20px; }
  .search-box { border-radius: 12px; }
}
