/*
Theme Name: JobSearch Hub
Theme URI: https://example.com
Author: Your Organization
Author URI: https://example.com
Description: A job search theme with national, regional, state, metro, and remote job listings, an unemployment/benefits resource center, a job-market news feed, a curated job board directory, and a member forum. Every section is filterable by City, State, Region, Federal/National, or Remote.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: jobsearch-hub
Tags: custom-background, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: #1c2430;
  background: #f6f7f9;
  line-height: 1.55;
}
a { color: #1454b8; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
ul { padding-left: 1.2em; }

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

/* ---------- Header ---------- */
.site-header {
  background: #10233f;
  color: #fff;
  padding: 16px 0;
}
.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-branding a {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.site-branding p {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: #9db3d6;
}
.main-nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
}
.main-nav a {
  color: #e7edf7;
  padding: 8px 12px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.92rem;
}
.main-nav a:hover, .main-nav .current-menu-item a {
  background: rgba(255,255,255,0.12);
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, #14345e 0%, #1c5da8 100%);
  color: #fff;
  padding: 56px 0 64px;
  text-align: center;
}
.hero h1 { font-size: 2.4rem; margin: 0 0 12px; }
.hero p { font-size: 1.1rem; max-width: 640px; margin: 0 auto 28px; color: #d6e4f7; }

/* ---------- Cards / sections ---------- */
.section { padding: 48px 0; }
.section-title {
  font-size: 1.6rem;
  margin: 0 0 6px;
}
.section-sub { color: #5b6577; margin: 0 0 28px; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}
.card {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 1px 2px rgba(16,24,40,0.04);
}
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card h3 a { color: #10233f; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0; }
.tag {
  display: inline-block;
  background: #eaf1fd;
  color: #1454b8;
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 3px 9px;
  border-radius: 999px;
}
.tag.scope-remote { background: #e6f7ee; color: #0a7a41; }
.tag.scope-national { background: #fdeee6; color: #b5501b; }
.tag.scope-state { background: #f1eafd; color: #6a2fc7; }
.tag.scope-regional { background: #fff6d9; color: #9a7300; }
.tag.scope-metro { background: #e6f2fd; color: #1454b8; }

.meta-line { color: #667085; font-size: 0.85rem; }

/* ---------- Filter bar ---------- */
.filter-bar {
  background: #fff;
  border: 1px solid #e4e7ec;
  border-radius: 10px;
  padding: 18px;
  margin-bottom: 28px;
}
.filter-bar form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.filter-field { display: flex; flex-direction: column; gap: 4px; }
.filter-field label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; color: #667085; letter-spacing: 0.03em; }
.filter-field select, .filter-field input[type="text"], .filter-field input[type="search"] {
  padding: 9px 10px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  font-size: 0.92rem;
  min-width: 150px;
}
.filter-actions { display: flex; gap: 8px; }
.btn {
  display: inline-block;
  background: #1454b8;
  color: #fff;
  border: none;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.92rem;
  cursor: pointer;
}
.btn:hover { background: #0f3f8f; text-decoration: none; color: #fff; }
.btn.btn-ghost { background: transparent; color: #1454b8; border: 1px solid #1454b8; }
.active-filters { margin-top: 10px; font-size: 0.85rem; color: #475467; }
.active-filters a { color: #b5501b; font-weight: 700; }

/* ---------- Stars / ratings ---------- */
.stars { color: #f5a623; letter-spacing: 1px; font-size: 1rem; }

/* ---------- Forum ---------- */
.forum-topic-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #e4e7ec;
}
.forum-topic-row h3 { margin: 0 0 4px; font-size: 1.02rem; }
.forum-stats { text-align: right; color: #667085; font-size: 0.85rem; min-width: 110px; }
.forum-form input[type="text"], .forum-form select, .forum-form textarea {
  width: 100%;
  padding: 10px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  font-size: 0.95rem;
  margin-bottom: 12px;
}
.forum-form textarea { min-height: 140px; }
.notice {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 18px;
  font-size: 0.92rem;
}
.notice-success { background: #e6f7ee; color: #0a7a41; }
.notice-error { background: #fdeae6; color: #b5501b; }

/* ---------- Resources ---------- */
.resource-category-badge {
  display: inline-block;
  background: #10233f;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}

/* ---------- Footer ---------- */
.site-footer {
  background: #10233f;
  color: #b9c6de;
  padding: 40px 0;
  margin-top: 40px;
  font-size: 0.88rem;
}
.site-footer a { color: #d6e4f7; }
.footer-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin-bottom: 24px;
}
.footer-cols h4 { color: #fff; margin: 0 0 10px; font-size: 0.95rem; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding-top: 16px; font-size: 0.8rem; color: #7e8db2; }

/* ---------- Pagination ---------- */
.pagination { margin-top: 24px; display: flex; gap: 6px; flex-wrap: wrap; }
.pagination a, .pagination span {
  padding: 8px 12px;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  font-size: 0.88rem;
}
.pagination .current { background: #1454b8; color: #fff; border-color: #1454b8; }

/* ---------- Misc ---------- */
.empty-state { padding: 40px; text-align: center; color: #667085; background: #fff; border: 1px dashed #d0d5dd; border-radius: 10px; }
.badge-count { background: #eaf1fd; color: #1454b8; border-radius: 999px; padding: 2px 9px; font-size: 0.78rem; font-weight: 700; margin-left: 6px; }

@media (max-width: 700px) {
  .site-header .header-inner { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 1.8rem; }
}
