/* ===== JOB POST PAGE ===== */

.navbar {
  position: sticky;
  top: 0;
  z-index: 200;
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

/* User dropdown */
.user-dropdown { position: relative; }
.user-dropdown-trigger {
  display: flex; align-items: center; gap: 8px;
  cursor: pointer; background: none; border: none;
  font-family: inherit; padding: 4px 8px; border-radius: 8px;
  transition: background 0.18s;
}
.user-dropdown-trigger:hover { background: #f5f5f5; }
.user-avatar-sm {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ff6b5b);
  color: #fff; font-weight: 800; font-size: 0.78rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.user-dropdown-trigger svg { color: var(--text-2); transition: transform 0.2s; }
.user-dropdown.open .user-dropdown-trigger svg { transform: rotate(180deg); }
.user-dropdown-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 210px; background: var(--bg);
  border: 1.5px solid var(--border); border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  padding: 6px; z-index: 300;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.2s, visibility 0.2s, transform 0.2s;
}
.user-dropdown.open .user-dropdown-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.user-dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: 8px; font-size: 0.88rem;
  font-weight: 500; color: var(--text); text-decoration: none; transition: background 0.15s;
}
.user-dropdown-item:hover { background: #f5f5f5; }
.user-dropdown-item svg { color: var(--text-2); flex-shrink: 0; }
.user-dropdown-divider { height: 1px; background: var(--border); margin: 6px 0; }
.user-dropdown-logout { color: var(--accent) !important; }
.user-dropdown-logout svg { color: var(--accent) !important; }
.mob-divider { height: 1px; background: var(--border); margin: 8px 16px; }

/* ===== PAGE HEADER ===== */
.jp-header {
  background: var(--bg);
  border-bottom: 1.5px solid var(--border);
  padding: 20px 0 0;
}

.jp-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 20px;
  flex-wrap: wrap;
}

.jp-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.jp-back {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid var(--border);
  color: var(--text-2);
  text-decoration: none;
  transition: border-color 0.18s, color 0.18s;
  flex-shrink: 0;
}
.jp-back:hover { border-color: var(--text); color: var(--text); }

.jp-header-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.03em;
}
.jp-header-sub {
  font-size: 0.82rem;
  color: var(--text-2);
  margin-top: 1px;
}

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

/* Step tabs */
.jp-steps {
  display: flex;
  overflow-x: auto;
  gap: 0;
  scrollbar-width: none;
  border-top: 1.5px solid var(--border);
}
.jp-steps::-webkit-scrollbar { display: none; }

.jp-step {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-2);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: color 0.18s, border-color 0.18s;
  position: relative;
  top: 1px;
}
.jp-step:hover { color: var(--text); }
.jp-step.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
  font-weight: 600;
}
.jp-step.done { color: var(--text); }
.jp-step.done .jp-step-num {
  background: #10b981;
  color: #fff;
}
.jp-step.done .jp-step-num::after {
  content: '✓';
  font-size: 0.65rem;
}
.jp-step.done .jp-step-num span { display: none; }

.jp-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--bg-3);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.18s, color 0.18s;
}
.jp-step.active .jp-step-num {
  background: var(--accent);
  color: #fff;
}

/* ===== LAYOUT ===== */
.jp-page {
  background: var(--bg-2);
  min-height: calc(100vh - 130px);
  padding: 28px 0 60px;
}

.jp-layout {
  display: grid;
  grid-template-columns: 1fr 296px;
  gap: 20px;
  align-items: start;
}

/* ===== STEP CONTENT ===== */
.jp-step-content { display: none; }
.jp-step-content.active { display: block; }

/* Section card */
.jp-section {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 24px;
  margin-bottom: 16px;
}
.jp-section:last-of-type { margin-bottom: 0; }

.jp-section-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.jp-section-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(232,68,58,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.jp-section-icon svg { color: var(--accent); }

.jp-section-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.02em;
}
.jp-section-sub {
  font-size: 0.8rem;
  color: var(--text-2);
  margin-top: 1px;
}

/* ===== FORM ELEMENTS ===== */
.jp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.jp-form-row.single { grid-template-columns: 1fr; }
.jp-form-row.triple { grid-template-columns: 1fr 1fr 1fr; }

.jp-field { display: flex; flex-direction: column; gap: 6px; }

.jp-label {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text);
}
.jp-label span {
  font-weight: 400;
  color: var(--text-2);
  font-size: 0.78rem;
  margin-left: 4px;
}

.jp-input,
.jp-select,
.jp-textarea {
  width: 100%;
  padding: 0 14px;
  height: 42px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color 0.18s;
  box-sizing: border-box;
}
.jp-input:focus,
.jp-select:focus { border-color: var(--accent); }

.jp-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
  cursor: pointer;
}

.jp-textarea {
  height: auto;
  padding: 12px 14px;
  resize: vertical;
  line-height: 1.6;
}

.jp-input-hint {
  font-size: 0.78rem;
  color: var(--text-2);
  margin-top: 2px;
}

/* Char counter */
.jp-char-count {
  font-size: 0.75rem;
  color: var(--text-2);
  text-align: right;
  margin-top: 4px;
}

/* Salary row */
.jp-salary-row {
  display: grid;
  grid-template-columns: 1fr 1fr 110px;
  gap: 12px;
  margin-bottom: 10px;
}

.jp-salary-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.jp-salary-toggle-label {
  font-size: 0.85rem;
  color: var(--text-2);
  cursor: pointer;
}

/* Toggle switch */
.jp-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.jp-toggle input { opacity: 0; width: 0; height: 0; position: absolute; }
.jp-toggle-slider {
  position: absolute;
  inset: 0;
  background: #d1d5db;
  border-radius: 22px;
  cursor: pointer;
  transition: background 0.2s;
}
.jp-toggle-slider::before {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  left: 3px;
  top: 3px;
  transition: transform 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.jp-toggle input:checked + .jp-toggle-slider { background: var(--accent); }
.jp-toggle input:checked + .jp-toggle-slider::before { transform: translateX(18px); }

/* Checkboxes */
.jp-check-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.jp-check-grid.cols3 { grid-template-columns: 1fr 1fr 1fr; }

.jp-check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.jp-check-item:hover { border-color: var(--accent); }
.jp-check-item input { display: none; }

.jp-checkmark {
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  border-radius: 5px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.jp-check-item input:checked ~ .jp-checkmark {
  background: var(--accent);
  border-color: var(--accent);
}
.jp-check-item input:checked ~ .jp-checkmark::after {
  content: '';
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg) translate(-1px, -1px);
  display: block;
}
.jp-check-item input:checked ~ .jp-check-label {
  color: var(--text);
  font-weight: 600;
}

.jp-check-label {
  font-size: 0.87rem;
  color: var(--text-2);
  transition: color 0.15s;
}

/* Skills tag input */
.jp-tags-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  min-height: 46px;
  transition: border-color 0.18s;
  cursor: text;
}
.jp-tags-wrap:focus-within { border-color: var(--accent); }

.jp-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 12px;
  background: rgba(232,68,58,0.1);
  color: var(--accent);
  border-radius: 20px;
  font-size: 0.83rem;
  font-weight: 500;
}
.jp-tag-del {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: rgba(232,68,58,0.2);
  border: none;
  cursor: pointer;
  font-size: 0.7rem;
  color: var(--accent);
  padding: 0;
  transition: background 0.15s;
}
.jp-tag-del:hover { background: rgba(232,68,58,0.4); }

.jp-tag-input {
  border: none;
  outline: none;
  font-family: inherit;
  font-size: 0.87rem;
  color: var(--text);
  background: transparent;
  flex: 1;
  min-width: 120px;
}

/* Divider */
.jp-divider {
  height: 1px;
  background: var(--border);
  margin: 20px 0;
}

/* Radio group */
.jp-radio-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.jp-radio-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.18s, background 0.18s;
}
.jp-radio-item input { display: none; }
.jp-radio-item:hover { border-color: var(--accent); }

.jp-radio-dot {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.jp-radio-item input:checked ~ .jp-radio-dot {
  border-color: var(--accent);
}
.jp-radio-item input:checked ~ .jp-radio-dot::after {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  display: block;
}
.jp-radio-item input:checked ~ .jp-radio-label {
  color: var(--text);
  font-weight: 600;
}
.jp-radio-label {
  font-size: 0.87rem;
  color: var(--text-2);
  transition: color 0.15s;
}

/* Perks grid */
.jp-perks-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

/* Step navigation */
.jp-step-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}
.jp-step-nav-right { display: flex; gap: 10px; }

/* Publish card (step 5) */
.jp-publish-summary {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 16px;
}

.jp-publish-summary-head {
  background: var(--bg-2);
  padding: 14px 20px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-2);
  border-bottom: 1px solid var(--border);
}

.jp-job-preview {
  padding: 20px;
}

.jp-preview-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 6px;
}
.jp-preview-company {
  font-size: 0.88rem;
  color: var(--text-2);
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.jp-preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}
.jp-preview-tag {
  padding: 4px 10px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-size: 0.78rem;
  color: var(--text-2);
  font-weight: 500;
}
.jp-preview-salary {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
}

/* Visibility row */
.jp-visibility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}
.jp-visibility-row:last-child { border-bottom: none; padding-bottom: 0; }
.jp-visibility-label { font-size: 0.88rem; font-weight: 500; color: var(--text); }
.jp-visibility-sub   { font-size: 0.78rem; color: var(--text-2); margin-top: 2px; }

/* Publish btn */
.jp-publish-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 12px;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s, transform 0.15s;
  margin-top: 20px;
}
.jp-publish-btn:hover { background: #c0392b; transform: translateY(-1px); }

/* ===== SIDEBAR ===== */
.jp-sidebar { position: sticky; top: 80px; }

.jp-sidebar-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 12px;
}
.jp-sidebar-card:last-child { margin-bottom: 0; }

.jp-sidebar-title {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 14px;
}

/* Progress checklist */
.jp-checklist { display: flex; flex-direction: column; gap: 8px; }

.jp-check-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.83rem;
}
.jp-check-row-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.jp-check-row.done .jp-check-row-icon { background: #dcfce7; color: #16a34a; }
.jp-check-row.todo .jp-check-row-icon { background: var(--bg-3); color: var(--text-2); }
.jp-check-row.done .jp-check-row-text { color: var(--text); }
.jp-check-row.todo .jp-check-row-text { color: var(--text-2); }

/* Progress bar */
.jp-progress-wrap { margin-bottom: 14px; }
.jp-progress-label {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  font-size: 0.82rem;
}
.jp-progress-pct { font-weight: 700; color: var(--accent); }
.jp-progress-bar {
  height: 6px;
  background: var(--bg-3);
  border-radius: 3px;
  overflow: hidden;
}
.jp-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), #ff6b5b);
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* Tips */
.jp-tips { display: flex; flex-direction: column; gap: 8px; }
.jp-tip {
  display: flex;
  gap: 8px;
  font-size: 0.81rem;
  color: var(--text-2);
  line-height: 1.5;
}
.jp-tip-icon { font-size: 0.95rem; flex-shrink: 0; margin-top: 1px; }

/* Tariff card */
.jp-tariff {
  background: linear-gradient(135deg, #1a1a1a, #2d2d2d);
  border-color: transparent;
}
.jp-tariff .jp-sidebar-title { color: #fff; }
.jp-tariff-sub {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.6);
  line-height: 1.5;
  margin-bottom: 14px;
}
.jp-tariff-btn {
  display: block;
  width: 100%;
  padding: 10px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background 0.18s;
}
.jp-tariff-btn:hover { background: #c0392b; }

/* ===== RESPONSIVE ===== */
@media (max-width: 900px) {
  .jp-layout { grid-template-columns: 1fr; }
  .jp-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .jp-sidebar-card { margin-bottom: 0; }
}
@media (max-width: 640px) {
  .jp-form-row { grid-template-columns: 1fr; }
  .jp-form-row.triple { grid-template-columns: 1fr; }
  .jp-salary-row { grid-template-columns: 1fr 1fr; }
  .jp-check-grid { grid-template-columns: 1fr; }
  .jp-perks-grid { grid-template-columns: 1fr 1fr; }
  .jp-sidebar { grid-template-columns: 1fr; }
}
