/**
 * AutoPilot Jobs Theme — Base Shared Styles
 *
 * Contains only: CSS custom properties, reset, font defaults,
 * and utility classes shared across ALL skins.
 * Layout and skin-specific styles live in skin-*.css files.
 *
 * @package AutoPilotJobsTheme
 * @since   1.0.0
 * @since   1.2.0 Reduced to base only; layout moved to skin CSS.
 */

/* ── Shared CSS Custom Properties ── */
:root {
  --apj-font:
    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --apj-font-var:
    "Inter var", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    sans-serif;
}

/* ── Box-sizing Reset ── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ── Body Font Defaults ── */
body {
  font-family: var(--apj-font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: 0;
}

@supports (font-variation-settings: normal) {
  body {
    font-family: var(--apj-font-var);
  }
}

/* ── SVG Icon Utility ── */
.apj-icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  vertical-align: -0.125em;
}

.apj-source-button .apj-icon {
  width: 1.1em;
  height: 1.1em;
}

/* ── Badge Utilities (shared, used by PHP helpers) ── */
.apj-badge {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.apj-badge-type {
  background: #eff6ff;
  color: #1d4ed8;
}

.apj-badge-remote {
  background: #ecfdf5;
  color: #047857;
}

/* ── Generic Navbar (non-job pages only) ── */
.apj-navbar {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
  padding: 0 20px;
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-bar .apj-navbar {
  top: 32px;
}

.apj-navbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}

.apj-navbar-brand {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
  text-decoration: none;
}

.apj-navbar-brand:hover {
  color: #2563eb;
}

.apj-navbar-links {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.apj-navbar-links a {
  font-size: 14px;
  color: #6b7280;
  text-decoration: none;
  font-weight: 500;
}

.apj-navbar-links a:hover {
  color: #111827;
}

/* ── Generic Footer (non-job pages only) ── */
.apj-footer {
  border-top: 1px solid #e5e7eb;
  background: #f9fafb;
  padding: 24px 20px;
  margin-top: 48px;
  text-align: center;
}

.apj-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  font-size: 13px;
  color: #6b7280;
}

.apj-footer-inner p {
  margin: 0;
}

/* ── WordPress Admin Bar Offset ── */
@media screen and (max-width: 782px) {
  .admin-bar .apj-navbar {
    top: 46px;
  }
}
