/**
 * ============================================================================
 * VYASU MEDICAL — BROWSE MEDICAL JOBS PORTAL STYLES
 * ============================================================================
 * Enterprise job matching directory for verified medical specialists.
 */

/* ==========================================================================
   HEADER (copied from healthcare-services.html, which itself copied it from
   index.html — kept identical here so every Vyasu Medical page matches)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: #FFFFFF;
  border-bottom: none;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.site-header.scrolled {
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  background: #FFFFFF;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}

.logo-box {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  font-size: 1.5rem;
  color: #111827;
  letter-spacing: -0.5px;
}

.logo-box img {
  height: 48px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 18px;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 600;
  color: #111827;
  position: relative;
  padding: 6px 0;
  text-decoration: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2.5px;
  background: #00C853;
  border-radius: 2px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-link:hover { color: #00C853; }
.nav-link:hover::after { width: 100%; }

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

header .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-size: 0.95rem;
  font-weight: 700;
  border-radius: 9999px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
  text-decoration: none;
}

.btn-ghost { background: transparent; color: #111827; border: 1px solid transparent; }
.btn-ghost:hover { color: #00C853; background: #E6FBF0; }

.btn-cyan { background: #00C853; color: #FFFFFF; box-shadow: 0 4px 14px rgba(0, 200, 83, 0.25); }
.btn-cyan:hover { background: #00B24A; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(11, 151, 186, 0.35); }

header .btn-dark { position: relative; overflow: hidden; background: #111827; color: #FFFFFF; }
header .btn-dark::after {
  content: '';
  position: absolute;
  top: 0; left: -75%;
  width: 40%; height: 100%;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.55) 50%, transparent 80%);
  transform: skewX(-20deg);
  animation: header-btn-glass-shine 3.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes header-btn-glass-shine { 0% { left: -75%; } 35% { left: 130%; } 100% { left: 130%; } }
header .btn-dark:hover { background: #000; transform: translateY(-2px); box-shadow: 0 8px 22px rgba(17, 24, 39, 0.28); }

.mobile-toggle { display: none; background: none; font-size: 1.4rem; color: #111827; cursor: pointer; border: none; }
.mobile-menu-panel { display: none; }

@media (max-width: 1023px) {
  .nav-menu { display: none; }
  .header-actions .btn { display: none; }
  .mobile-toggle { display: flex; align-items: center; justify-content: center; }
  .mobile-menu-panel {
    position: absolute;
    top: 100%; left: 0; right: 0;
    flex-direction: column;
    gap: 2px;
    background: #fff;
    border-top: 1px solid #E5E7EB;
    box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
    padding: 8px 24px 20px;
    max-height: calc(100vh - 80px);
    overflow-y: auto;
  }
  .mobile-menu-panel.open { display: flex; }
  .mobile-nav-link { padding: 14px 0; font-size: 0.95rem; font-weight: 600; color: #111827; border-bottom: 1px solid #F1F5F9; text-decoration: none; }
  .mobile-menu-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
  .mobile-menu-actions .btn { display: flex; width: 100%; }
}

@media (min-width: 1024px) {
  .mobile-menu-panel { display: none !important; }
}

.jobs-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}

/* Hero Section */
.jobs-hero {
  text-align: center;
  margin-bottom: 48px;
}

.jobs-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0, 184, 107, 0.08);
  border: 1px solid rgba(0, 184, 107, 0.25);
  color: #00B86B;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 30px;
  margin-bottom: 16px;
}

.jobs-hero-title {
  font-family: 'Manrope', sans-serif;
  font-size: 36px;
  font-weight: 800;
  color: #0B1930;
  letter-spacing: -0.02em;
  margin: 0 0 12px 0;
  line-height: 1.2;
}

.jobs-hero-subtitle {
  font-size: 16px;
  color: #64748B;
  max-width: 680px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Search and Filters Section */
.jobs-filter-panel {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(11, 25, 48, 0.03);
  margin-bottom: 36px;
}

.search-input-row {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.search-field-wrap {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
}

.search-field-icon {
  position: absolute;
  left: 16px;
  color: #94A3B8;
  pointer-events: none;
}

.search-field-input {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #0B1930;
  outline: none;
  transition: all 0.2s;
  box-sizing: border-box;
}

.search-field-input:focus {
  border-color: #00B86B;
  box-shadow: 0 0 0 3px rgba(0, 184, 107, 0.12);
}

.filter-select {
  padding: 12px 16px;
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  font-size: 14px;
  font-family: inherit;
  color: #0B1930;
  outline: none;
  background: #FFFFFF;
  min-width: 170px;
  cursor: pointer;
  box-sizing: border-box;
}

.filter-select:focus {
  border-color: #00B86B;
}

/* Filter Pills */
.filter-pills-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-pill-label {
  font-size: 12px;
  font-weight: 700;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-right: 4px;
}

.job-pill {
  border: 1px solid #E2E8F0;
  background: #F8FAFC;
  color: #475569;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.18s;
  user-select: none;
}

.job-pill:hover {
  background: #EDF2F7;
  color: #0B1930;
}

.job-pill.active {
  background: #00B86B;
  border-color: #00B86B;
  color: #FFFFFF;
}

/* Results Count Bar */
.results-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.results-count {
  font-size: 14px;
  font-weight: 700;
  color: #0B1930;
}

.results-count span {
  color: #00B86B;
}

/* Job Cards List */
.jobs-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.job-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
  padding: 28px;
  box-shadow: 0 2px 8px rgba(11, 25, 48, 0.03);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.job-card:hover {
  transform: translateY(-2px);
  border-color: #CBD5E1;
  box-shadow: 0 10px 24px rgba(11, 25, 48, 0.06);
}

.job-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.job-header-left {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.job-specialty-pill {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #00B86B;
  background: rgba(0, 184, 107, 0.08);
  border: 1px solid rgba(0, 184, 107, 0.25);
  padding: 3px 10px;
  border-radius: 12px;
}

.job-title {
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #0B1930;
  margin: 0;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.job-company {
  font-size: 13px;
  color: #64748B;
  font-weight: 500;
}

.job-compensation-badge {
  text-align: right;
  flex-shrink: 0;
}

.comp-rate {
  font-family: 'Manrope', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: #00B86B;
  line-height: 1.1;
}

.comp-type {
  font-size: 11px;
  color: #94A3B8;
  font-weight: 600;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Metadata Row */
.job-meta-row {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 13px;
  color: #475569;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.meta-item svg {
  color: #94A3B8;
}

.meta-divider {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #CBD5E1;
}

/* Requirements & Tags */
.job-card-middle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid #F1F5F9;
}

.job-req-text {
  font-size: 13px;
  color: #64748B;
  line-height: 1.5;
}

.job-req-text strong {
  color: #334155;
}

.job-tags-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.tag-badge {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  background: #F1F5F9;
  padding: 4px 10px;
  border-radius: 6px;
}

/* Job Action Row */
.job-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 12px;
  border-top: 1px solid #F1F5F9;
}

.posted-date {
  font-size: 12px;
  color: #94A3B8;
}

.apply-btn {
  background: #00B86B;
  color: #FFFFFF;
  border: 1.5px solid #00B86B;
  font-size: 13px;
  font-weight: 700;
  padding: 9px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s;
  font-family: inherit;
}

.apply-btn:hover {
  background: #009D5B;
  border-color: #009D5B;
}

.btn-applied {
  background: #F1F5F9 !important;
  color: #00B86B !important;
  border-color: #CBD5E1 !important;
  cursor: default !important;
  pointer-events: none;
  font-weight: 700;
}

/* No Results State */
.jobs-empty-state {
  text-align: center;
  padding: 60px 24px;
  color: #64748B;
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 16px;
}

.jobs-empty-state svg {
  color: #CBD5E1;
  margin-bottom: 16px;
}

.jobs-empty-state p {
  font-size: 15px;
  font-weight: 600;
  margin: 0;
}

/* Application Confirmation Modal Overlay */
.app-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 25, 48, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  box-sizing: border-box;
}

.app-modal-overlay.is-visible {
  display: flex;
}

@keyframes scaleUpModal {
  from {
    opacity: 0;
    transform: scale(0.94);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

.app-modal-close-btn {
  background: #0B1930;
  color: #FFFFFF;
  border: none;
  font-size: 14px;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: 10px;
  cursor: pointer;
  width: 100%;
  font-family: inherit;
}

.app-modal-close-btn:hover {
  background: #17284A;
}

/* Application Confirmation Modal */
.app-modal-box {
  background: #FFFFFF;
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  padding: 36px;
  text-align: center;
  box-shadow: 0 24px 48px rgba(11, 25, 48, 0.18);
  border: 1px solid #E2E8F0;
  animation: scaleUpModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.app-modal-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 184, 107, 0.1);
  color: #00B86B;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}

.app-modal-title {
  font-family: 'Manrope', sans-serif;
  font-size: 22px;
  font-weight: 800;
  color: #0B1930;
  margin: 0 0 10px 0;
}

.app-modal-desc {
  font-size: 14px;
  color: #64748B;
  line-height: 1.6;
  margin: 0 0 24px 0;
}

.verified-credential-preview {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 16px;
  text-align: left;
  margin-bottom: 24px;
  font-size: 13px;
}

.verified-credential-preview .preview-row {
  display: flex;
  justify-content: space-between;
  padding: 4px 0;
}

.verified-credential-preview .preview-row strong {
  color: #0B1930;
}

@media (max-width: 768px) {
  .search-input-row {
    flex-direction: column;
  }
  .job-card-top {
    flex-direction: column;
  }
  .job-compensation-badge {
    text-align: left;
  }
}
