/* =========================================================
   Peoria County Government Plugin — Public Styles
   ========================================================= */

:root {
  --pcg-primary:    #1a3a5c;
  --pcg-secondary:  #c8972a;
  --pcg-accent:     #2e6da4;
  --pcg-light:      #f4f6f9;
  --pcg-border:     #d0d7de;
  --pcg-text:       #1e2330;
  --pcg-muted:      #5a6372;
  --pcg-success:    #1a7431;
  --pcg-radius:     6px;
  --pcg-shadow:     0 2px 8px rgba(0,0,0,0.08);
  --pcg-shadow-lg:  0 4px 20px rgba(0,0,0,0.12);
  --pcg-transition: all .2s ease;
}

/* ── Grid ─────────────────────────────────────────────── */
.pcg-grid {
  display: grid;
  gap: 24px;
  margin: 24px 0;
}
.pcg-grid-1 { grid-template-columns: 1fr; }
.pcg-grid-2 { grid-template-columns: repeat(2, 1fr); }
.pcg-grid-3 { grid-template-columns: repeat(3, 1fr); }
.pcg-grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
  .pcg-grid-3, .pcg-grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pcg-grid-2, .pcg-grid-3, .pcg-grid-4 { grid-template-columns: 1fr; }
}

/* ── Cards ────────────────────────────────────────────── */
.pcg-card {
  background: #fff;
  border: 1px solid var(--pcg-border);
  border-radius: var(--pcg-radius);
  overflow: hidden;
  box-shadow: var(--pcg-shadow);
  transition: var(--pcg-transition);
  display: flex;
  flex-direction: column;
}
.pcg-card:hover {
  box-shadow: var(--pcg-shadow-lg);
  transform: translateY(-2px);
}
.pcg-card-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}
.pcg-card-body {
  padding: 18px 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pcg-card-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pcg-primary);
  margin: 0 0 4px;
  line-height: 1.3;
}
.pcg-card-title a {
  color: inherit;
  text-decoration: none;
}
.pcg-card-title a:hover { color: var(--pcg-accent); }

/* ── Badges ───────────────────────────────────────────── */
.pcg-badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .03em;
  text-transform: uppercase;
  background: var(--pcg-primary);
  color: #fff;
  margin-bottom: 6px;
}
.pcg-badge-volunteer {
  background: var(--pcg-secondary);
  color: #fff;
}
.pcg-badge-active   { background: var(--pcg-success); }
.pcg-badge-inactive { background: #888; }

/* ── Buttons ──────────────────────────────────────────── */
.pcg-btn {
  display: inline-block;
  padding: 10px 20px;
  background: var(--pcg-primary);
  color: #fff !important;
  border: none;
  border-radius: var(--pcg-radius);
  font-size: .88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: var(--pcg-transition);
  margin-top: auto;
  align-self: flex-start;
}
.pcg-btn:hover { background: var(--pcg-accent); transform: translateY(-1px); }
.pcg-btn-sm    { padding: 6px 14px; font-size: .8rem; }
.pcg-btn-secondary { background: transparent; border: 2px solid var(--pcg-primary); color: var(--pcg-primary) !important; }
.pcg-btn-secondary:hover { background: var(--pcg-primary); color: #fff !important; }

/* ── Tables ───────────────────────────────────────────── */
.pcg-table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: var(--pcg-radius);
  box-shadow: var(--pcg-shadow);
}
.pcg-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .88rem;
  background: #fff;
}
.pcg-table thead th {
  background: var(--pcg-primary);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
}
.pcg-table thead th:first-child { border-radius: var(--pcg-radius) 0 0 0; }
.pcg-table thead th:last-child  { border-radius: 0 var(--pcg-radius) 0 0; }
.pcg-table tbody tr { border-bottom: 1px solid var(--pcg-border); transition: var(--pcg-transition); }
.pcg-table tbody tr:nth-child(even) { background: var(--pcg-light); }
.pcg-table tbody tr:hover { background: #e8f0fb; }
.pcg-table tbody td { padding: 11px 16px; color: var(--pcg-text); vertical-align: middle; }
.pcg-table a { color: var(--pcg-accent); }
.pcg-table .pcg-currency { font-family: 'Courier New', monospace; font-weight: 600; color: var(--pcg-success); }
.pcg-table .pcg-centered { text-align: center; }

/* ── Contact info ─────────────────────────────────────── */
.pcg-address, .pcg-phone, .pcg-website, .pcg-contact-info {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  margin: 0;
  font-size: .85rem;
  color: var(--pcg-muted);
}
.pcg-address .dashicons,
.pcg-phone .dashicons,
.pcg-website .dashicons,
.pcg-contact-info .dashicons {
  font-size: 15px;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--pcg-secondary);
}
.pcg-address a, .pcg-phone a, .pcg-website a { color: var(--pcg-accent); text-decoration: none; }
.pcg-address a:hover, .pcg-phone a:hover, .pcg-website a:hover { text-decoration: underline; }

/* ── Single taxing body page ──────────────────────────── */
.pcg-single-header {
  background: var(--pcg-primary);
  color: #fff;
  padding: 40px;
  border-radius: var(--pcg-radius);
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
}
.pcg-single-header::before {
  content: '';
  position: absolute;
  right: -40px; top: -40px;
  width: 200px; height: 200px;
  background: rgba(255,255,255,.05);
  border-radius: 50%;
}
.pcg-single-header h1 { margin: 0 0 8px; font-size: 2rem; }
.pcg-single-header .pcg-badge { background: var(--pcg-secondary); }
.pcg-single-meta { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 16px; }
.pcg-single-meta a { color: rgba(255,255,255,.85); text-decoration: none; }
.pcg-single-meta a:hover { color: #fff; }

.pcg-section {
  background: #fff;
  border: 1px solid var(--pcg-border);
  border-radius: var(--pcg-radius);
  padding: 28px;
  margin-bottom: 24px;
  box-shadow: var(--pcg-shadow);
}
.pcg-section-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--pcg-primary);
  border-bottom: 2px solid var(--pcg-secondary);
  padding-bottom: 10px;
  margin: 0 0 20px;
}
.pcg-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}
.pcg-meta-item { display: flex; flex-direction: column; gap: 3px; }
.pcg-meta-label {
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--pcg-muted);
}
.pcg-meta-value { font-size: .95rem; color: var(--pcg-text); font-weight: 500; }

/* ── Empty state ──────────────────────────────────────── */
.pcg-empty {
  text-align: center;
  padding: 40px;
  color: var(--pcg-muted);
  font-style: italic;
  background: var(--pcg-light);
  border-radius: var(--pcg-radius);
  border: 1px dashed var(--pcg-border);
}

/* ── Search / Filter bar ──────────────────────────────── */
.pcg-filter-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  padding: 16px 20px;
  background: var(--pcg-light);
  border: 1px solid var(--pcg-border);
  border-radius: var(--pcg-radius);
  margin-bottom: 24px;
}
.pcg-filter-bar input,
.pcg-filter-bar select {
  padding: 8px 12px;
  border: 1px solid var(--pcg-border);
  border-radius: 4px;
  font-size: .9rem;
  color: var(--pcg-text);
  background: #fff;
}
.pcg-filter-bar input { flex: 1; min-width: 200px; }

/* ── Staff table — salary status styles ─────────────────────────────── */
.pcg-staff-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 12px 16px;
  background: var(--pcg-light, #f4f6f9);
  border: 1px solid var(--pcg-border, #d0d7de);
  border-radius: var(--pcg-radius, 6px) var(--pcg-radius, 6px) 0 0;
  margin-bottom: -1px;
  font-size: .85rem;
}
.pcg-staff-summary-item        { color: var(--pcg-text, #1e2330); }
.pcg-staff-summary-item--has   { color: var(--pcg-success, #1a7431); }
.pcg-staff-summary-item--missing { color: #b02a37; }
.pcg-staff-summary-divider     { color: var(--pcg-border, #d0d7de); font-size: 1.1rem; }
.pcg-staff-summary-foia        { font-size: .82rem; font-weight: 600; color: var(--pcg-accent, #2e6da4); }
.pcg-staff-summary-foia:hover  { text-decoration: underline; }

/* Rows without salary data — subtle tint */
.pcg-staff-row--no-salary td {
  background: #fffbf4;
}
.pcg-staff-row--no-salary:hover td {
  background: #fff5e0 !important;
}

/* "Not on record" badge in table cells */
.pcg-salary-missing {
  vertical-align: middle;
}
.pcg-badge-missing {
  display: inline-block;
  padding: 2px 8px;
  background: #f0f0f0;
  color: #888;
  border: 1px dashed #ccc;
  border-radius: 3px;
  font-size: .72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  white-space: nowrap;
}
.pcg-foia-request-link {
  display: block;
  font-size: .72rem;
  color: var(--pcg-accent, #2e6da4);
  margin-top: 3px;
  white-space: nowrap;
}
.pcg-foia-request-link:hover { text-decoration: underline; }

/* Footer FOIA notice below staff table */
.pcg-staff-foia-notice {
  font-size: .82rem;
  color: var(--pcg-muted, #5a6372);
  padding: 10px 16px;
  background: var(--pcg-light, #f4f6f9);
  border: 1px solid var(--pcg-border, #d0d7de);
  border-top: none;
  border-radius: 0 0 var(--pcg-radius, 6px) var(--pcg-radius, 6px);
  margin-top: -1px;
}
.pcg-staff-foia-notice a { color: var(--pcg-accent, #2e6da4); }
