/* ═════════════════════════════════════════════════════════════════════
   BHARAT SAVING — JOBS BOARD STYLESHEET (REGAL GOLD & BLACK EDITION)
   Matches website design tokens, cards, modals, and responsive layout
   ═════════════════════════════════════════════════════════════════════ */

/* Reconnecting Floating Banner */
.reconnect-banner {
  display: none;
  background: #FEF3C7;
  border-bottom: 2px solid #F59E0B;
  color: #92400E;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  text-align: center;
  align-items: center;
  justify-content: center;
  gap: 8px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

/* Pulsating Realtime Status Indicator */
.realtime-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #FFFFFF;
  border: 1.5px solid rgba(212, 175, 55, 0.4);
  border-radius: 9999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 700;
  color: #000000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  position: relative;
}

.pulse-dot.green {
  background: #10B981;
  box-shadow: 0 0 0 rgba(16, 185, 129, 0.4);
  animation: pulseGreen 2s infinite;
}

.pulse-dot.amber {
  background: #F59E0B;
  box-shadow: 0 0 0 rgba(245, 158, 11, 0.4);
  animation: pulseAmber 1.5s infinite;
}

@keyframes pulseGreen {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

@keyframes pulseAmber {
  0% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.7); }
  70% { box-shadow: 0 0 0 7px rgba(245, 158, 11, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 158, 11, 0); }
}

/* App Download Banner on /jobs */
.jobs-app-banner {
  background: linear-gradient(135deg, #0A0A0A 0%, #1A1A1A 100%);
  border: 2px solid #D4AF37;
  border-radius: 20px;
  padding: 24px 28px;
  margin: 32px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15), 0 0 20px rgba(212, 175, 55, 0.15);
}

.jobs-app-content {
  display: flex;
  align-items: center;
  gap: 18px;
}

.jobs-app-icon {
  width: 54px;
  height: 54px;
  background: #FBF4E4;
  border: 2px solid #D4AF37;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  flex-shrink: 0;
}

.jobs-app-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 4px 0;
}

.jobs-app-desc {
  font-size: 13px;
  color: #CCCCCC;
  margin: 0;
  max-width: 520px;
}

.jobs-app-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #D4AF37;
  color: #000000;
  font-size: 13.5px;
  font-weight: 800;
  padding: 12px 22px;
  border-radius: 9999px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(212, 175, 55, 0.35);
  white-space: nowrap;
}

.jobs-app-btn:hover {
  background: #DFB76C;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.5);
}

/* Filter Bar */
.jobs-filter-panel {
  background: #FFFFFF;
  border: 1.5px solid rgba(212, 175, 55, 0.35);
  border-radius: 18px;
  padding: 20px 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  margin-bottom: 28px;
}

.jobs-filter-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 12px;
  align-items: center;
}

@media (max-width: 992px) {
  .jobs-filter-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 576px) {
  .jobs-filter-grid {
    grid-template-columns: 1fr;
  }
}

.jobs-search-wrap {
  position: relative;
}

.jobs-search-wrap input {
  width: 100%;
  padding: 11px 14px 11px 38px;
  border-radius: 10px;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  font-size: 13.5px;
  font-family: var(--font-body);
  box-sizing: border-box;
  background: #FAFAFA;
  transition: all 0.2s;
}

.jobs-search-wrap input:focus {
  outline: none;
  border-color: #D4AF37;
  background: #FFFFFF;
  box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.2);
}

.jobs-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: #888;
  pointer-events: none;
}

.jobs-filter-select {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  font-size: 13px;
  font-family: var(--font-body);
  background: #FAFAFA;
  color: #000;
  box-sizing: border-box;
  cursor: pointer;
  transition: all 0.2s;
}

.jobs-filter-select:focus {
  outline: none;
  border-color: #D4AF37;
  background: #FFF;
}

.jobs-refresh-btn {
  background: #FBF4E4;
  border: 1.5px solid #D4AF37;
  color: #8C6D1F;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
  white-space: nowrap;
}

.jobs-refresh-btn:hover {
  background: #D4AF37;
  color: #000;
}

.jobs-refresh-btn.rotating svg {
  animation: spin 0.6s linear infinite;
}

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

/* Job Cards Grid */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}

@media (max-width: 480px) {
  .jobs-grid {
    grid-template-columns: 1fr;
  }
}

.job-card {
  background: #FFFFFF;
  border: 1.5px solid rgba(212, 175, 55, 0.3);
  border-radius: 18px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  position: relative;
}

.job-card:hover {
  transform: translateY(-4px);
  border-color: #D4AF37;
  box-shadow: 0 16px 36px rgba(212, 175, 55, 0.16), 0 6px 12px rgba(0, 0, 0, 0.06);
}

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

.job-company-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.job-company-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #FBF4E4;
  border: 1px solid #D4AF37;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.job-company-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #000000;
  display: flex;
  align-items: center;
  gap: 4px;
}

.verified-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #10B981;
  color: #FFF;
  font-size: 9px;
  font-weight: 900;
}

.job-posted-time {
  font-size: 11.5px;
  color: #888888;
}

/* Status Badges */
.job-status-badge {
  font-size: 11.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 9999px;
  white-space: nowrap;
}

.job-status-badge.open {
  background: #DCFCE7;
  color: #15803D;
  border: 1px solid #86EFAC;
}

.job-status-badge.filled {
  background: #FEF3C7;
  color: #92400E;
  border: 1px solid #FCD34D;
}

.job-status-badge.closed {
  background: #FEE2E2;
  color: #991B1B;
  border: 1px solid #FCA5A5;
}

.job-card-title {
  font-family: var(--font-display);
  font-size: 17.5px;
  font-weight: 800;
  color: #000000;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.job-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.job-pill {
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 6px;
}

.job-pill.category {
  background: #F3F4F6;
  color: #374151;
}

.job-pill.type {
  background: #E0E7FF;
  color: #3730A3;
}

.job-pill.location {
  background: #FBF4E4;
  color: #8C6D1F;
}

.job-salary-box {
  background: #FAFAFA;
  border: 1px dashed rgba(212, 175, 55, 0.4);
  border-radius: 8px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.salary-val {
  font-size: 13.5px;
  font-weight: 800;
  color: #000000;
}

.job-card-desc {
  font-size: 13px;
  color: #555555;
  line-height: 1.5;
  margin: 0 0 16px 0;
  flex-grow: 1;
}

/* Progress Bar */
.job-progress-section {
  background: #F9FAFB;
  border-radius: 10px;
  padding: 10px 12px;
  margin-bottom: 16px;
}

.job-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 11.5px;
  color: #666;
  margin-bottom: 6px;
}

.job-progress-track {
  width: 100%;
  height: 8px;
  background: #E5E7EB;
  border-radius: 9999px;
  overflow: hidden;
}

.job-progress-fill {
  height: 100%;
  border-radius: 9999px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.job-progress-fill.open {
  background: linear-gradient(90deg, #D4AF37 0%, #DFB76C 100%);
}

.job-progress-fill.filled {
  background: linear-gradient(90deg, #F59E0B 0%, #10B981 100%);
}

/* Action Buttons */
.job-card-actions {
  display: flex;
  gap: 10px;
}

.job-btn-secondary {
  flex: 1;
  background: #FFFFFF;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  color: #000000;
  font-size: 13px;
  font-weight: 700;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.job-btn-secondary:hover {
  border-color: #D4AF37;
  color: #D4AF37;
  background: #FBF4E4;
}

.job-btn-primary {
  flex: 1.2;
  background: #D4AF37;
  border: none;
  color: #000000;
  font-size: 13px;
  font-weight: 800;
  padding: 10px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s;
  text-align: center;
}

.job-btn-primary:hover {
  background: #DFB76C;
  transform: translateY(-1px);
}

/* Live Toast Notification */
.jobs-live-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #000000;
  border: 1.5px solid #D4AF37;
  color: #FFFFFF;
  padding: 14px 20px;
  border-radius: 12px;
  font-size: 13.5px;
  font-weight: 700;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3), 0 0 20px rgba(212, 175, 55, 0.3);
  z-index: 9999;
  transform: translateY(100px);
  opacity: 0;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 380px;
  pointer-events: none;
}

.jobs-live-toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Modal */
.job-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.job-modal-card {
  background: #FFFFFF;
  border: 1.5px solid #D4AF37;
  border-radius: 20px;
  width: 100%;
  max-width: 640px;
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
  animation: modalFadeIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: scale(0.95); }
  to { opacity: 1; transform: scale(1); }
}
