/* ===================================================
   Curious Jobs - Main Stylesheet
   Replicates sandbox.wenguslives.com/curious-jobs
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap');

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

body {
  font-family: 'Open Sans', Arial, sans-serif;
  font-size: 13px;
  background: #e8e8e8;
  color: #333;
  min-height: 100vh;
}

a { color: #c06020; text-decoration: none; }
a:hover { text-decoration: underline; color: #a04010; }

/* ---- Header ---- */
#header {
  background: linear-gradient(180deg, #d0dce8 0%, #b8c8d8 40%, #c8d8e8 100%);
  border-bottom: 2px solid #a0b0c0;
  padding: 18px 20px 10px;
  position: relative;
  overflow: hidden;
}
#header::before, #header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 12px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 12'%3E%3Cpath d='M0,6 Q150,0 300,6 Q450,12 600,6 Q750,0 900,6 Q1050,12 1200,6 L1200,12 L0,12Z' fill='%23c8d8e8'/%3E%3C/svg%3E") repeat-x;
}
#site-title {
  font-size: 36px;
  font-weight: 700;
  color: #2a2a2a;
  letter-spacing: -1px;
  display: block;
  margin-bottom: 2px;
}
#site-tagline {
  color: #555;
  font-size: 12px;
  margin-bottom: 8px;
}

/* ---- Navigation ---- */
#nav {
  background: #f5f5f0;
  border-bottom: 1px solid #ccc;
  border-top: 1px solid #ddd;
  padding: 0 20px;
}
#nav ul { list-style: none; display: flex; gap: 0; }
#nav ul li a {
  display: block;
  padding: 8px 14px;
  color: #c06020;
  font-size: 12px;
  font-weight: 600;
  text-transform: lowercase;
  border-right: 1px solid #ddd;
  transition: background 0.15s;
}
#nav ul li:first-child a { border-left: 1px solid #ddd; }
#nav ul li a:hover, #nav ul li a.active { background: #e8e4d8; text-decoration: none; }

/* ---- Outer Wrapper ---- */
#outer {
  max-width: 1100px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid #bbb;
  border-top: none;
  min-height: 600px;
  display: flex;
}

/* ---- Left Sidebar ---- */
#sidebar-left {
  width: 220px;
  flex-shrink: 0;
  background: #4d4d4d;
  border-right: 1px solid #3a3a3a;
  padding: 0;
}
.sidebar-left-header {
  background: #444;
  color: #ddd;
  font-weight: 700;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 8px 10px;
  border-bottom: 1px solid #333;
}
.sidebar-left-list { list-style: none; padding: 6px 0; }
.sidebar-left-list li a {
  display: block;
  padding: 3px 10px;
  color: #c8844a;
  font-size: 12px;
  transition: background 0.12s;
}
.sidebar-left-list li a:hover { background: #3a3a3a; text-decoration: none; }
.sector-count { color: #aaa; font-size: 11px; }

/* ---- Main Content ---- */
#content {
  flex: 1;
  padding: 20px;
  min-width: 0;
  border-right: 1px solid #ddd;
}
#content h1 { font-size: 26px; color: #2a2a2a; margin-bottom: 12px; font-weight: 400; }
#content h2 { font-size: 20px; color: #2a2a2a; margin: 20px 0 10px; font-weight: 400; }
#content h3 { font-size: 15px; margin-bottom: 6px; }
#content p  { line-height: 1.6; margin-bottom: 10px; color: #444; }

/* News Block */
.news-block {
  background: #f9f9f5;
  border: 1px solid #e0ddd0;
  border-left: 4px solid #8aaa20;
  padding: 12px 16px;
  margin-bottom: 20px;
  border-radius: 2px;
}
.news-block h2 { margin-top: 0; font-size: 17px; color: #567e00; }
.news-block p { margin-bottom: 0; }

/* Job Cards on Browse / Sector page */
.job-card {
  border: 1px solid #e0ddd0;
  border-bottom: 2px solid #c8c0a0;
  padding: 12px 16px;
  margin-bottom: 14px;
  border-radius: 2px;
  background: #fdfdf8;
  transition: box-shadow 0.15s;
}
.job-card:hover { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }
.job-card h3 { font-size: 16px; margin-bottom: 4px; }
.job-card h3 a { color: #567e00; }
.job-card h3 a:hover { color: #345000; }
.job-card .job-meta { color: #888; font-size: 11px; margin-bottom: 6px; }
.job-card .job-excerpt { color: #555; font-size: 12px; line-height: 1.5; }
.job-card .job-sector-tag {
  display: inline-block;
  background: #567e00;
  color: #fff;
  font-size: 10px;
  padding: 2px 7px;
  border-radius: 10px;
  margin-top: 6px;
}

/* Single Job Detail */
.job-detail-header {
  border-bottom: 2px solid #e0ddd0;
  padding-bottom: 14px;
  margin-bottom: 20px;
}
.job-detail-header h1 { font-size: 28px; margin-bottom: 6px; }
.job-detail-meta { color: #888; font-size: 12px; }
.job-detail-meta span { margin-right: 14px; }

.job-field {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f0ede0;
  align-items: flex-start;
}
.job-field:last-child { border-bottom: none; }
.job-field-label {
  font-weight: 700;
  font-size: 12px;
  color: #567e00;
  min-width: 160px;
  flex-shrink: 0;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding-top: 1px;
}
.job-field-value { color: #444; font-size: 13px; line-height: 1.6; }

/* Search form */
.search-form { display: flex; gap: 6px; margin-bottom: 16px; }
.search-form input {
  flex: 1; padding: 7px 10px;
  border: 1px solid #ccc; border-radius: 3px;
  font-size: 13px; font-family: inherit;
}
.search-form input:focus { outline: none; border-color: #8aaa20; box-shadow: 0 0 0 2px rgba(138,170,32,0.15); }
.btn {
  padding: 7px 14px;
  border: none; border-radius: 3px;
  cursor: pointer; font-size: 12px;
  font-family: inherit; font-weight: 600;
  transition: background 0.15s;
}
.btn-green  { background: #567e00; color: #fff; }
.btn-green:hover  { background: #3d5c00; }
.btn-orange { background: #c06020; color: #fff; }
.btn-orange:hover { background: #a04010; }
.btn-red    { background: #c02020; color: #fff; margin-left:6px; }
.btn-red:hover    { background: #a00000; }
.btn-sm { font-size: 11px; padding: 4px 10px; }

/* ---- Right Sidebar ---- */
#sidebar-right {
  width: 200px;
  flex-shrink: 0;
  background: #f0f0e8;
  padding: 0;
}
.sidebar-right-widget { margin-bottom: 0; border-bottom: 1px solid #ddd; }
.sidebar-right-widget-header {
  background: #567e00;
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 7px 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.sidebar-right-widget-content { padding: 8px 10px; background: #a2bd22; }
.sidebar-right-widget-content ul { list-style: none; }
.sidebar-right-widget-content ul li {
  padding: 3px 0;
  border-bottom: 1px solid rgba(0,0,0,0.08);
}
.sidebar-right-widget-content ul li:last-child { border-bottom: none; }
.sidebar-right-widget-content ul li a {
  color: #1a2a00;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.sidebar-right-widget-content ul li a::before {
  content: '→';
  color: #3a5000;
  font-size: 11px;
  flex-shrink: 0;
}
.sidebar-right-widget-content ul li a:hover { color: #000; text-decoration: none; }
.sidebar-right-widget-content p { font-size: 12px; color: #1a2a00; margin: 0; }

/* Search widget */
.widget-search-content {
  padding: 8px 10px;
  background: #a2bd22;
}
.widget-search-content input {
  width: 100%; padding: 5px 8px;
  border: 1px solid #789000;
  border-radius: 3px;
  font-size: 12px; font-family: inherit;
  background: #f0f8d0;
}
.widget-search-content input:focus { outline: none; border-color: #567e00; }
.widget-search-content .btn {
  margin-top: 5px; width: 100%;
  background: #567e00; color: #fff;
  font-size: 11px;
}
.widget-search-content .btn:hover { background: #3d5c00; }

/* No results / empty state styling */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: #888;
}
.empty-state .empty-icon { font-size: 48px; margin-bottom: 10px; }
.empty-state h3 { color: #555; margin-bottom: 6px; }

/* About / contact blocks */
.page-text { line-height: 1.7; color: #444; }
.contact-card {
  background: #f9f9f5;
  border: 1px solid #e0ddd0;
  padding: 16px 20px;
  border-radius: 4px;
  margin-top: 16px;
}

/* Random job picker button */
.random-btn {
  display: inline-block;
  padding: 10px 22px;
  background: #8aaa20;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
  font-family: inherit;
  font-weight: 600;
  transition: background 0.15s, transform 0.1s;
  margin: 10px 0;
}
.random-btn:hover { background: #6a8a00; transform: translateY(-1px); }
.random-btn:active { transform: translateY(0); }

/* Pagination */
.pagination { display: flex; gap: 4px; margin-top: 20px; }
.pagination a, .pagination span {
  padding: 5px 11px;
  border: 1px solid #ccc;
  border-radius: 3px;
  font-size: 12px;
  color: #567e00;
  background: #fff;
  transition: background 0.1s;
}
.pagination a:hover { background: #f0f0e0; text-decoration: none; }
.pagination .current { background: #567e00; color: #fff; border-color: #567e00; }

/* Footer */
#footer {
  background: #444;
  color: #aaa;
  text-align: center;
  padding: 12px;
  font-size: 11px;
  border-top: 2px solid #333;
}
#footer a { color: #8aaa20; }

/* Utility */
.hidden { display: none !important; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mb-8 { margin-bottom: 8px; }

/* Alert / toast */
.toast {
  position: fixed; top: 20px; right: 20px;
  background: #567e00; color: #fff;
  padding: 10px 20px; border-radius: 4px;
  font-size: 13px; z-index: 9999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  animation: slideIn 0.2s ease;
}
.toast.error { background: #c02020; }
@keyframes slideIn { from { opacity:0; transform:translateX(20px); } to { opacity:1; transform:none; } }

/* Add job form */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-weight: 700; font-size: 12px; color: #567e00; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.3px; }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 8px 10px;
  border: 1px solid #ccc; border-radius: 3px;
  font-size: 13px; font-family: inherit;
  background: #fdfdf8;
  transition: border-color 0.15s;
}
.form-group textarea { resize: vertical; min-height: 80px; }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: #8aaa20;
  box-shadow: 0 0 0 2px rgba(138,170,32,0.15);
}
.form-note { font-size: 11px; color: #888; margin-top: 3px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.required { color: #c02020; }

/* Breadcrumb */
.breadcrumb { font-size: 11px; color: #888; margin-bottom: 14px; }
.breadcrumb a { color: #567e00; }
.breadcrumb span { margin: 0 5px; }
