/* Maulud.net - Lowongan Kerja */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --bg: #f8fafc;
  --card: #ffffff;
  --text: #1e293b;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --success: #10b981;
  --warning: #f59e0b;
  --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
}

/* Nav */
nav {
  background: var(--card);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 100;
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}
.logo span { color: var(--text); }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color .2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--primary); }

.container { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: white;
  padding: 60px 0 50px;
  text-align: center;
}
.hero h1 { font-size: 2.2rem; margin-bottom: 12px; }
.hero p { font-size: 1.1rem; opacity: .9; max-width: 600px; margin: 0 auto; }

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: -24px;
  padding: 0 20px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}
.stat-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  border: 1px solid var(--border);
}
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: .85rem; color: var(--text-muted); margin-top: 4px; }

/* Filters */
.filters {
  padding: 30px 0 20px;
}
.filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.filter-bar input, .filter-bar select {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: .95rem;
  background: var(--card);
  flex: 1;
  min-width: 200px;
}
.filter-bar input:focus, .filter-bar select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}

/* Job Cards */
.job-list { padding: 0 0 40px; }
.job-grid {
  display: grid;
  gap: 16px;
}

.job-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all .2s;
  cursor: pointer;
}
.job-card:hover {
  border-color: var(--primary);
  box-shadow: 0 4px 16px rgba(37,99,235,.1);
  transform: translateY(-2px);
}
.job-card h2 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  color: var(--text);
}
.job-card .company {
  color: var(--primary);
  font-weight: 600;
  font-size: .9rem;
  margin-bottom: 10px;
}
.job-meta {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.job-meta span {
  font-size: .85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}
.job-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.tag {
  background: #eff6ff;
  color: var(--primary);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 500;
}
.tag.remote { background: #ecfdf5; color: #059669; }
.tag.fulltime { background: #fef3c7; color: #d97706; }
.tag.contract { background: #f3e8ff; color: #7c3aed; }
.tag.internship { background: #fce7f3; color: #db2777; }
.job-date {
  font-size: .8rem;
  color: var(--text-muted);
  margin-top: 10px;
}

/* Detail Page */
.article-header {
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: white;
  padding: 50px 0;
}
.article-header .back-link {
  color: rgba(255,255,255,.8);
  text-decoration: none;
  font-size: .9rem;
  display: inline-block;
  margin-bottom: 16px;
}
.article-header .back-link:hover { color: white; }
.article-header h1 { font-size: 2rem; margin-bottom: 16px; }
.article-meta {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  font-size: .9rem;
  opacity: .9;
}
.article-meta span { display: flex; align-items: center; gap: 6px; }
.article-tags { margin-top: 16px; }
.article-tags .tag { background: rgba(255,255,255,.15); color: white; }

.article-content {
  padding: 40px 0;
  max-width: 800px;
  margin: 0 auto;
}
.article-content h2 {
  font-size: 1.4rem;
  margin: 32px 0 12px;
  color: var(--text);
}
.article-content h3 {
  font-size: 1.15rem;
  margin: 24px 0 8px;
  color: var(--text);
}
.article-content p {
  margin-bottom: 16px;
  color: #475569;
}
.article-content ul, .article-content ol {
  margin: 12px 0 20px;
  padding-left: 24px;
  color: #475569;
}
.article-content li { margin-bottom: 8px; }

.apply-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  padding: 24px;
  margin: 32px 0;
}
.apply-box h3 { margin-top: 0; }
.apply-btn {
  display: inline-block;
  background: var(--primary);
  color: white;
  padding: 12px 28px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 600;
  margin-top: 12px;
  transition: background .2s;
}
.apply-btn:hover { background: var(--primary-dark); }

/* Related Jobs */
.related { padding-bottom: 40px; }
.related h3 { font-size: 1.3rem; margin-bottom: 16px; }

/* Footer */
footer {
  background: #1e293b;
  color: #94a3b8;
  padding: 40px 0;
  text-align: center;
}
footer a { color: var(--primary); text-decoration: none; }
footer p { margin-bottom: 8px; font-size: .9rem; }

/* 404 */
.error-page { text-align: center; padding: 100px 20px; }
.error-page h1 { font-size: 4rem; color: var(--primary); }
.error-page p { font-size: 1.1rem; color: var(--text-muted); margin: 16px 0; }
.error-page a { color: var(--primary); text-decoration: none; font-weight: 600; }

/* Responsive */
@media (max-width: 640px) {
  .hero h1 { font-size: 1.6rem; }
  .nav-links { gap: 12px; }
  .nav-links a { font-size: .85rem; }
  .filter-bar input, .filter-bar select { min-width: 100%; }
  .article-header h1 { font-size: 1.5rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

/* Simple JS enhancements */
.hidden { display: none; }
