/* ── job.html 전용 스타일 v5 — Dark Forest Edition ── */

/* ── 페이지 히어로 오버라이드 ── */
.page-hero {
  background: linear-gradient(135deg, #0A1A40 0%, #0E2060 50%, #1A3070 100%) !important;
}
[data-theme="dark"] .page-hero {
  background: linear-gradient(135deg, #060C18 0%, #0A1228 50%, #0E1A38 100%) !important;
}
.hero-stat .n { color: #93C5FD !important; }

/* ── 메인 레이아웃 — 2컬럼 그리드 ── */
.main {
  max-width: 1120px; margin: 0 auto; padding: 28px 24px 60px;
  display: grid; grid-template-columns: 1fr 260px; gap: 24px; align-items: start;
}
.job-content-wrap { min-width: 0; }
/* toolbar */
.job-toolbar { display: flex !important; align-items: center !important; gap: 10px !important; margin-bottom: 12px !important; flex-wrap: nowrap !important; }
.job-cat-tabs { display: flex !important; flex-wrap: nowrap !important; overflow-x: auto !important; gap: 6px !important; flex: 1 !important; min-width: 0 !important; scrollbar-width: none !important; }
.job-cat-tabs::-webkit-scrollbar { display: none !important; }
.job-cat-tabs .cat-tab { flex-shrink: 0 !important; }
.notice-bar { margin-bottom: 16px; }

.job-sidebar {
  display: flex; flex-direction: column; gap: 14px;
  position: sticky; top: 88px;
}

/* side-card 스타일 */
.side-card {
  background: var(--bg-card); border-radius: var(--radius);
  box-shadow: var(--shadow-sm); border: 1px solid var(--border);
  overflow: hidden; padding: 18px 18px 16px;
  transition: background 0.3s;
}
.side-card h3 {
  font-size: 14px; font-weight: 700; color: var(--text-dark); margin-bottom: 8px;
}
.side-card p {
  font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 12px;
}
.side-write-btn {
  display: block; width: 100%; padding: 10px;
  background: var(--green-main); color: white;
  font-size: 13px; font-weight: 700; border: none; border-radius: 8px;
  cursor: pointer; font-family: 'Noto Sans KR', sans-serif;
  transition: all 0.15s; text-align: center;
}
[data-theme="dark"] .side-write-btn { color: #0C1710; }
.side-write-btn:hover { background: var(--green-mid); }

.guide-list {
  padding-left: 0; list-style: none;
  display: flex; flex-direction: column; gap: 7px;
}
.guide-list li {
  font-size: 12px; color: var(--text-muted); line-height: 1.5;
  padding-left: 14px; position: relative;
}
.guide-list li::before {
  content: '·'; position: absolute; left: 2px; color: var(--green-main); font-weight: 700;
}

/* ── 필터 바 ── */
.filter-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; flex-wrap: wrap; }
.filter-select {
  padding: 7px 12px; height: 36px; border: 1px solid var(--green-border);
  border-radius: 8px; font-size: 13px; color: var(--text-mid);
  background: var(--bg-elevated); cursor: pointer;
  font-family: 'Noto Sans KR', sans-serif; outline: none;
}
.filter-select option { background: var(--bg-card); }

/* ── 구인구직 카드 ── */
.job-list { display: flex; flex-direction: column; gap: 10px; }

.job-card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--green-border); box-shadow: var(--shadow-sm);
  padding: 20px 22px; cursor: pointer; transition: all 0.2s;
  display: flex; gap: 18px; align-items: flex-start;
}
.job-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--green-border-bright);
}

.job-company-logo {
  width: 52px; height: 52px; border-radius: 10px;
  background: var(--bg-elevated); border: 1px solid var(--green-border);
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.job-body { flex: 1; min-width: 0; }
.job-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.job-title { font-size: 15px; font-weight: 700; color: var(--text-dark); line-height: 1.35; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.job-company { font-size: 13px; color: var(--text-muted); margin-bottom: 8px; }

.job-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.job-tag {
  font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 8px;
  background: var(--bg-elevated); color: var(--text-muted);
  border: 1px solid var(--green-border);
}
.job-tag.type-full  { background: rgba(59,130,246,0.1);  color: #93C5FD; border-color: rgba(59,130,246,0.2); }
.job-tag.type-part  { background: rgba(34,197,94,0.1);   color: var(--green-bright); border-color: var(--green-border); }
.job-tag.type-free  { background: rgba(245,158,11,0.1);  color: #FCD34D; border-color: rgba(245,158,11,0.2); }
.job-tag.tag-hot    { background: rgba(249,115,22,0.1);  color: #FB923C; border-color: rgba(249,115,22,0.2); }

.job-info { display: flex; gap: 14px; flex-wrap: wrap; }
.job-info-item { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 4px; }

.job-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex-shrink: 0; }
.job-pay { font-size: 14px; font-weight: 700; color: var(--green-bright); white-space: nowrap; }
.job-date { font-size: 11px; color: var(--text-muted); }
.job-urgent { font-size: 10px; font-weight: 700; background: rgba(239,68,68,0.15); color: #FCA5A5; padding: 2px 8px; border-radius: 6px; }

/* 구직 카드 */
.seeker-card {
  background: var(--bg-card); border-radius: var(--radius);
  border: 1px solid var(--green-border); box-shadow: var(--shadow-sm);
  padding: 18px 20px; cursor: pointer; transition: all 0.2s;
}
.seeker-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--green-border-bright); }
.seeker-header { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.seeker-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--bg-elevated); border: 1px solid var(--green-border); display: flex; align-items: center; justify-content: center; font-size: 20px; flex-shrink: 0; }
.seeker-name { font-size: 15px; font-weight: 700; color: var(--text-dark); margin-bottom: 3px; }
.seeker-title { font-size: 12px; color: var(--text-muted); }
.seeker-desc { font-size: 13px; color: var(--text-mid); line-height: 1.6; margin-bottom: 10px; }
.seeker-skills { display: flex; gap: 5px; flex-wrap: wrap; }
.skill-tag { font-size: 11px; color: var(--green-bright); font-weight: 500; background: rgba(34,197,94,0.08); padding: 2px 8px; border-radius: 6px; border: 1px solid rgba(34,197,94,0.15); }

/* 빈 상태 */
.empty-state { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.empty-state .icon { font-size: 48px; margin-bottom: 12px; }
.empty-state p { font-size: 15px; margin-bottom: 8px; }

/* ── 사이드바 ── */
.tip-card {
  background: linear-gradient(135deg, #0E1F50, #1A2E6A);
  border: 1px solid rgba(59,130,246,0.2);
  border-radius: var(--radius); padding: 20px;
}
[data-theme="dark"] .tip-card {
  background: linear-gradient(135deg, #060C18, #0A1228);
  border-color: rgba(59,130,246,0.15);
}
.tip-card h4 { font-family: 'Playfair Display', serif; font-size: 15px; color: var(--text-dark); margin-bottom: 12px; }
.tip-list { display: flex; flex-direction: column; gap: 8px; }
.tip-list li { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: var(--text-muted); line-height: 1.5; list-style: none; }

.write-banner {
  background: linear-gradient(135deg, var(--green-dark), var(--green-mid));
  border-radius: var(--radius); padding: 20px; text-align: center;
}
[data-theme="dark"] .write-banner {
  background: linear-gradient(135deg, #080F0A, #0F2A16);
  border: 1px solid var(--green-border);
}
.write-banner h4 { font-family: 'Playfair Display', serif; font-size: 15px; color: var(--text-dark); margin-bottom: 6px; }
.write-banner p { font-size: 12px; color: var(--text-muted); margin-bottom: 14px; }
.write-banner-btn {
  display: block; width: 100%; background: var(--green-vivid); color: var(--btn-on-green);
  font-size: 14px; font-weight: 700; padding: 10px; border-radius: 8px;
  border: none; cursor: pointer; font-family: 'Noto Sans KR', sans-serif; transition: all 0.15s;
}
.write-banner-btn:hover { background: var(--green-bright); }

@media (max-width: 900px) {
  .main { padding: 16px 16px 40px !important; grid-template-columns: 1fr !important; width: 100% !important; }
  .job-sidebar { display: none !important; }
}
@media (max-width: 768px) {
  .page-hero { padding: 16px 16px 14px !important; }
  .page-hero h1 { font-size: 20px !important; }
  .job-card { flex-direction: column; gap: 12px; }
  .job-meta { flex-direction: row; align-items: center; }
  .job-title { font-size: 13px !important; }
  .job-body { min-width: 0; }
  .job-meta-grid { grid-template-columns: repeat(4, 1fr) !important; }
  .job-meta-contact { grid-column: span 2 !important; }
}
