* { margin: 0; padding: 0; box-sizing: border-box; }
:root { --bg: #0a0a0a; --card: #141414; --card-hover: #1a1a1a; --border: #222; --text: #e0e0e0; --muted: #888; --accent: #8b5cf6; --accent-dark: #7c3aed; }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; background: var(--bg); color: var(--text); line-height: 1.6; }
a { color: var(--accent); text-decoration: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }

/* Nav */
.navbar { background: #111; border-bottom: 1px solid var(--border); padding: 0.8rem 0; position: sticky; top: 0; z-index: 100; }
.nav-content { display: flex; align-items: center; justify-content: space-between; }
.logo { font-size: 1.4rem; font-weight: 700; color: var(--text); }
.logo span { color: var(--accent); }
.nav-links a { color: var(--muted); margin-left: 1.5rem; transition: color .2s; }
.nav-links a:hover { color: var(--accent); }

/* Hero */
.hero { background: linear-gradient(135deg, #111 0%, #1a1025 100%); padding: 3rem 0; text-align: center; border-bottom: 1px solid var(--border); }
.hero h1 { font-size: 2.2rem; margin-bottom: 0.5rem; }
.hero p { color: var(--muted); margin-bottom: 1.5rem; }

/* Search */
.search-form { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; max-width: 800px; margin: 0 auto; }
.search-input { flex: 1; min-width: 200px; padding: 0.75rem 1rem; background: #1a1a1a; border: 1px solid var(--border); border-radius: 8px; color: var(--text); font-size: 1rem; }
.search-input:focus { outline: none; border-color: var(--accent); }
.search-select { padding: 0.75rem; background: #1a1a1a; border: 1px solid var(--border); border-radius: 8px; color: var(--text); }
.btn { padding: 0.75rem 1.5rem; border: none; border-radius: 8px; cursor: pointer; font-size: 1rem; font-weight: 600; transition: all .2s; }
.btn-primary { background: var(--accent); color: white; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-lg { padding: 1rem 2rem; font-size: 1.1rem; }

/* Stats */
.stats { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; flex-wrap: wrap; }
.stat-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.5rem; text-align: center; min-width: 100px; }
.stat-num { display: block; font-size: 1.5rem; font-weight: 700; color: var(--accent); }

/* Layout */
.main-content { display: flex; gap: 2rem; padding: 2rem 0; }
.sidebar { width: 250px; flex-shrink: 0; }
.sidebar h3 { color: var(--accent); margin-bottom: 0.5rem; margin-top: 1.5rem; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 1px; }
.sidebar h3:first-child { margin-top: 0; }
.cat-list { list-style: none; }
.cat-list li a { display: flex; justify-content: space-between; padding: 0.4rem 0.5rem; color: var(--muted); border-radius: 6px; transition: all .2s; font-size: 0.9rem; }
.cat-list li a:hover, .cat-list li a.active { background: var(--card); color: var(--accent); }
.cat-list li a span { color: var(--muted); font-size: 0.8rem; }
.job-list { flex: 1; min-width: 0; }
.job-list h2 { margin-bottom: 1rem; }

/* Job Cards */
.jobs-grid { display: flex; flex-direction: column; gap: 0.75rem; }
.job-card { display: block; background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 1.2rem; transition: all .2s; }
.job-card:hover { background: var(--card-hover); border-color: var(--accent); transform: translateY(-1px); }
.job-card-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.job-title { font-size: 1.1rem; color: var(--text); }
.job-company { color: var(--muted); margin: 0.3rem 0; font-size: 0.95rem; }
.job-meta { display: flex; gap: 1rem; color: var(--muted); font-size: 0.85rem; flex-wrap: wrap; margin-top: 0.5rem; }
.job-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid var(--border); }
.source-badge { background: #1a1025; color: var(--accent); padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.75rem; font-weight: 500; border: 1px solid rgba(139,92,246,0.2); }
.posted-date { color: var(--muted); font-size: 0.8rem; }

/* Badge */
.badge { padding: 0.25rem 0.7rem; border-radius: 20px; font-size: 0.75rem; font-weight: 600; white-space: nowrap; }
.badge-full-time { background: #065f46; color: #6ee7b7; }
.badge-part-time { background: #713f12; color: #fcd34d; }
.badge-contract { background: #7c2d12; color: #fdba74; }
.badge-other { background: #333; color: #aaa; }

/* Results */
.results-count { color: var(--muted); margin-top: 1rem; }

/* Pagination */
.pagination { display: flex; gap: 0.5rem; margin-top: 2rem; flex-wrap: wrap; }
.page-btn { padding: 0.5rem 0.8rem; background: var(--card); border: 1px solid var(--border); border-radius: 6px; color: var(--muted); }
.page-btn:hover, .page-btn.active { background: var(--accent); color: white; border-color: var(--accent); }

/* Detail */
.detail-page { padding: 2rem 0; }
.back-link { color: var(--muted); display: inline-block; margin-bottom: 1rem; }
.back-link:hover { color: var(--accent); }
.detail-card { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 2rem; }
.detail-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; margin-bottom: 1.5rem; }
.detail-header h1 { font-size: 1.6rem; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 1.5rem; color: var(--muted); margin-bottom: 2rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--border); }
.detail-desc { margin-bottom: 2rem; }
.detail-desc h3 { margin-bottom: 0.5rem; color: var(--accent); }
.detail-actions { margin-bottom: 1.5rem; }
.scraped-info { color: var(--muted); font-size: 0.8rem; }
.no-jobs { text-align: center; color: var(--muted); padding: 3rem; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 2rem 0; text-align: center; color: var(--muted); font-size: 0.85rem; margin-top: 3rem; }
.footer-content { max-width: 700px; margin: 0 auto; }
.footer-title { font-weight: 600; color: var(--text); margin-bottom: 0.5rem; }
.footer-sources { margin-bottom: 1rem; }
.footer-sources a { color: var(--accent); text-decoration: none; }
.footer-sources a:hover { text-decoration: underline; }
.footer-disclaimer { font-size: 0.75rem; color: rgba(255,255,255,0.35); line-height: 1.6; }
.footer-disclaimer a { color: var(--accent); text-decoration: none; }

/* Mobile */
@media (max-width: 768px) {
  .main-content { flex-direction: column; }
  .sidebar { width: 100%; order: 2; }
  .job-list { order: 1; }
  .hero h1 { font-size: 1.5rem; }
  .search-form { flex-direction: column; }
  .search-input, .search-select { width: 100%; }
  .stats { gap: 0.5rem; }
  .stat-card { min-width: 80px; padding: 0.7rem; }
  .detail-header { flex-direction: column; }
  .detail-meta { gap: 0.8rem; }
}
