/* ==========================================================================
   MyJobAlly — Brand tokens & base styles
   Colors extracted directly from the existing live homepage screenshot.
   ========================================================================== */

:root {
  /* Brand colors (pixel-sampled from screenshot) */
  --brand-pink: #F7356A;
  --brand-pink-light: #FB4179;
  --brand-pink-soft: #FDEBF0;   /* tint for subtle backgrounds/borders */
  --brand-blue: #77CBFB;
  --brand-navy: #222E39;        /* footer */
  --text-dark: #1C1E26;
  --text-body: #666666;
  --text-muted: #8A8F98;
  --border-light: #E5E7EB;
  --bg-page: #FFFFFF;
  --bg-alt: #FAFAFB;

  /* Type scale */
  --font-display: 'Poppins', 'Segoe UI', sans-serif;
  --font-body: 'Inter', 'Segoe UI', sans-serif;

  /* Spacing rhythm */
  --space-xs: 8px;
  --space-sm: 16px;
  --space-md: 24px;
  --space-lg: 48px;
  --space-xl: 80px;

  --radius-sm: 8px;
  --radius-md: 14px;
  --container-width: 1200px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-body);
  background: var(--bg-page);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text-dark);
  line-height: 1.2;
}

a {
  color: inherit;
  text-decoration: none;
}

img { max-width: 100%; display: block; }

button, input, select { font-family: inherit; font-size: inherit; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 var(--space-md);
}

/* Visible keyboard focus everywhere — accessibility floor */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--brand-blue);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-primary {
  background: var(--brand-pink);
  color: #fff;
}
.btn-primary:hover { box-shadow: 0 8px 20px rgba(247, 53, 106, 0.3); }

.btn-outline {
  background: transparent;
  border-color: var(--brand-pink);
  color: var(--brand-pink);
}
.btn-outline:hover { background: var(--brand-pink-soft); }

.btn-outline-white {
  background: transparent;
  border-color: #fff;
  color: #fff;
}
.btn-outline-white:hover { background: rgba(255,255,255,0.12); }

/* ==========================================================================
   Ad zones — fixed-size reserved containers (no layout shift)
   ========================================================================== */

.ad-zone {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: var(--space-lg) auto;
  overflow: hidden;
}

.ad-zone--leaderboard { width: 100%; max-width: 970px; height: 90px; }
.ad-zone--rectangle   { width: 100%; max-width: 300px; height: 250px; }
.ad-zone--banner       { width: 100%; max-width: 728px; height: 90px; }
.ad-zone--billboard    { width: 100%; max-width: 970px; height: 250px; }

/* Mobile ad sizing — added on request. A fixed desktop ad format (e.g.
   970×90) doesn't just need its width capped on a phone screen, it
   needs a genuinely different, real mobile-appropriate shape: squeezing
   a 970×90 leaderboard down to phone width at the same 90px height
   makes it comically thin. These are real, standard mobile ad sizes
   (320×50 Mobile Banner, 300×250 Medium Rectangle — the same rectangle
   already used at desktop size, since it's one of the few formats
   Google's own guidance treats as appropriate at both), not arbitrary
   scaled-down versions of the desktop units. */
@media (max-width: 900px) {
  .ad-zone--leaderboard,
  .ad-zone--banner {
    max-width: 320px;
    height: 50px;
  }
  .ad-zone--billboard {
    max-width: 300px;
    height: 250px;
  }
  .ad-zone--rectangle {
    max-width: 300px;
    height: 250px;
  }
}

/* ==========================================================================
   Accessibility utility
   ========================================================================== */
.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ==========================================================================
   Icon system — inline SVGs colored via currentColor, so they can be
   set to white, brand pink, or muted gray purely through CSS `color`.
   ========================================================================== */
.icon {
  display: inline-block;
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
  flex-shrink: 0;
}
.icon-fill { fill: currentColor; stroke: none; }
.icon-white { color: #fff; }
.icon-pink { color: var(--brand-pink); }
.icon-muted { color: var(--text-muted); }

/* Cookie consent banner — added on request. Loaded/shown via
   includes/footer.php + assets/js/cookie-consent.js, so it appears on
   every page without needing to be added individually anywhere else. */
.cookie-consent-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 9998;
  background: var(--brand-navy);
  color: #fff;
  padding: 18px 24px;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}
.cookie-consent-banner.show { display: flex; }
.cookie-consent-text {
  font-size: 13.5px;
  line-height: 1.6;
  max-width: 640px;
  color: #D6D9DD;
}
.cookie-consent-text a { color: var(--brand-blue); font-weight: 600; text-decoration: underline; }
.cookie-consent-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-consent-actions button {
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: none;
  white-space: nowrap;
}
.cookie-consent-accept { background: var(--brand-pink); color: #fff; }
.cookie-consent-accept:hover { background: var(--brand-pink-light); }
@media (max-width: 640px) {
  .cookie-consent-banner { flex-direction: column; align-items: stretch; text-align: center; }
  .cookie-consent-actions { justify-content: center; }
}
