/* ==============================================================
   Empowered Careers — design system
   Source: /empowered-careers-design-specs.txt (April 2026)

   Class names mirror what the HTML already uses (.btn, .card,
   .nav, .page-title, etc.) so this stylesheet can replace the
   previous one without HTML rewrites. Variables provide a bridge
   for any code still referencing old tokens (--navy, --accent).
   ============================================================== */

:root {
  /* ---- Empowered Careers palette ---- */
  --black:            #111111;
  --white:            #FFFFFF;
  --lime:             #CCFF00;
  --lime-hover:       #BFEE00;
  --surface:          #F9F9F7;
  --border-light:     #E5E5E5;
  --border-dark:      #333333;
  --muted:            #999999;
  --body-text:        #666666;
  --dark-text:        #333333;
  --dark-surface:     #1E1E1E;
  --darker-surface:   #2A2A2A;
  --overlay-lime:       rgba(204, 255, 0, 0.06);
  --overlay-lime-active:rgba(204, 255, 0, 0.10);

  /* ---- Semantic aliases so old class names keep working ---- */
  --navy:             var(--black);
  --blue:             var(--black);
  --sky:              var(--black);
  --accent:           var(--lime);
  --gold:             var(--lime);
  --light:            var(--surface);
  --gray:             var(--muted);
  --gray-dark:        var(--body-text);
  --border:           var(--border-light);
  --green:            #5BA83A;
  --red:              #B93B3B;

  /* ---- Typography ---- */
  --font-display:     'Cormorant Garamond', Georgia, serif;
  --font-body:        'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  /* ---- Spacing ---- */
  --space-xs: 4px;
  --space-sm: 8px;
  --space-md: 12px;
  --space-lg: 16px;
  --space-xl: 24px;
  --space-2xl: 32px;
  --space-3xl: 48px;
  --space-4xl: 64px;

  /* ---- Radius (flat brand — sharp corners everywhere) ---- */
  --radius:    0;
  --radius-lg: 0;

  /* ---- Shadows — intentionally minimal, brand is flat ---- */
  --shadow:    none;
  --shadow-lg: none;
}

/* ==============================================================
   Import Google Fonts. We also ship a <link> tag in each HTML
   file for faster first paint, but the @import is a safety net.
   ============================================================== */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600&family=Montserrat:wght@300;400;500;600&display=swap');

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

html, body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--dark-text);
  min-height: 100vh;
  line-height: 1.7;
  font-size: 13px;
  font-weight: 400;
}

a { color: var(--black); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--black); opacity: 0.75; }

/* ==============================================================
   Typography
   ============================================================== */
h1, h2, h3, h4, h5, h6 { font-weight: 400; color: var(--black); }

.page-title {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--black);
  margin-bottom: 6px;
}
.page-sub {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--body-text);
  line-height: 1.7;
  margin-bottom: 28px;
  max-width: 560px;
}

/* Card titles use Montserrat, not the display serif */
.card h2 {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.5px;
  color: var(--black);
  margin-bottom: 4px;
  text-transform: none;
}

.hint {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 400;
  color: var(--body-text);
  line-height: 1.6;
}

/* Micro section tags — the uppercase accent labels used above
   card titles, stage labels, etc. */
.micro-label,
.page-sub .micro-label {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ==============================================================
   Navigation bar
   ============================================================== */
.nav {
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--black);
  text-decoration: none;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.nav-logo:hover { opacity: 1; }
.nav-logo::before {
  /* Circular mark, per spec: 32px circle, thin black border */
  content: "EC";
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--black);
  border-radius: 50%;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--black);
  background: var(--white);
}
/* Keep the decorative brand colors intact for the old markup that
   wrapped a piece of the logo in a span (e.g. "Res" + "<span class='tail'>Pilot</span>").
   The tail span used to be accent-colored; in the rebrand we drop
   the color and let the whole logo read uniformly black. */
.nav-logo .tail { color: inherit; }

.nav-links {
  margin-left: auto;
  display: flex;
  gap: 28px;
  align-items: center;
}
.nav-links a {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--body-text);
  text-decoration: none;
}
.nav-links a:hover { color: var(--black); opacity: 1; }
.nav-links a.active { color: var(--black); font-weight: 600; }

/* ==============================================================
   Layout
   ============================================================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px 64px;
}

/* ==============================================================
   Cards
   ============================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border-light);
  border-radius: 0;
  padding: 24px;
  box-shadow: none;
}

.card-active {
  border: 1.5px solid var(--black);
}
.card-lime {
  background: var(--lime);
  border: 1px solid var(--lime-hover);
}
.card-dark {
  background: var(--dark-surface);
  border: 1px solid var(--border-dark);
  color: var(--white);
  padding: 24px 20px;
}
.card-accent-rule {
  background: var(--white);
  border: 1px solid var(--border-light);
  border-left: 2px solid var(--black);
  padding: 8px 10px;
}

/* ==============================================================
   Forms
   ============================================================== */
label {
  display: block;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 8px;
  color: var(--black);
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="file"],
textarea,
select {
  width: 100%;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 400;
  color: var(--dark-text);
  background: var(--white);
  border: 1px solid var(--border-light);
  border-radius: 0;
  padding: 12px 14px;
  line-height: 1.5;
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: var(--black);
  border-width: 1.5px;
  /* Shift padding 0.5px to compensate for the thicker border, so
     the field doesn't appear to "grow" on focus */
  padding: 11.5px 13.5px;
}

textarea { min-height: 160px; line-height: 1.6; }
textarea.rich { min-height: 200px; }
textarea.jd { min-height: 320px; }

select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath fill='none' stroke='%23111' stroke-width='1.5' d='M1 1l4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

/* File upload drop zone */
.file-drop {
  display: block;
  border: 1px dashed var(--border-light);
  background: var(--white);
  padding: 22px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.file-drop:hover,
.file-drop.dragover {
  border-color: var(--black);
  background: var(--surface);
}
.file-drop .big {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--black);
}
.file-drop .sm {
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
  letter-spacing: 0.5px;
}
.file-drop.has-file {
  border-style: solid;
  border-color: var(--black);
  background: var(--lime);
}
.file-drop.has-file .big { color: var(--black); }
.file-drop input[type="file"] { display: none; }

/* "— or paste the text —" divider */
.field-split {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 20px 0;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
}
.field-split::before, .field-split::after {
  content: "";
  height: 1px;
  background: var(--border-light);
}

/* Password field show/hide toggle */
.password-wrap { position: relative; }
.password-wrap input { padding-right: 56px; }
.password-toggle {
  position: absolute;
  right: 6px; top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--body-text);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  border-radius: 0;
}
.password-toggle:hover { color: var(--black); }
.password-toggle:focus {
  outline: none; color: var(--black);
  box-shadow: 0 0 0 1px var(--black);
}

.match-hint {
  margin-top: 6px;
  font-size: 10px;
  letter-spacing: 0.3px;
  color: var(--muted);
  text-transform: none;
  font-weight: 400;
}
.match-hint.ok  { color: var(--black); }
.match-hint.bad { color: var(--red); }

/* ==============================================================
   Buttons
   ============================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 12px 28px;
  border: none;
  border-radius: 0;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  text-decoration: none;
  line-height: 1.2;
}

/* Primary = black background, lime text (EC primary) */
.btn-primary {
  background: var(--black);
  color: var(--lime);
  border: 1px solid var(--black);
}
.btn-primary:hover { background: var(--darker-surface); color: var(--lime); opacity: 1; }
.btn-primary:disabled {
  background: var(--border-light); color: var(--muted);
  cursor: not-allowed; border-color: var(--border-light);
}

/* Lime / CTA style — use with class="btn btn-lime" */
.btn-lime {
  background: var(--lime);
  color: var(--black);
  border: 1px solid var(--lime);
  letter-spacing: 1.5px;
}
.btn-lime:hover { background: var(--lime-hover); color: var(--black); opacity: 1; }

/* Secondary = outline on light */
.btn-secondary {
  background: transparent;
  color: var(--black);
  border: 1px solid var(--border-light);
  font-weight: 500;
  letter-spacing: 1.5px;
}
.btn-secondary:hover { border-color: var(--black); background: var(--surface); opacity: 1; }

/* Outline on dark background */
.btn-outline-dark {
  background: transparent;
  color: var(--white);
  border: 1px solid #555555;
  font-weight: 500;
  letter-spacing: 1.5px;
}
.btn-outline-dark:hover { border-color: var(--white); }

.btn-lg { padding: 14px 32px; font-size: 11px; }

/* ==============================================================
   Builder layout (two column)
   ============================================================== */
.builder-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) { .builder-grid { grid-template-columns: 1fr; } }

.submit-row {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 28px;
}

/* ==============================================================
   Loader / spinner
   ============================================================== */
.loader {
  display: none;
  text-align: center;
  padding: 48px 20px;
}
.loader.active { display: block; }
.loader .spinner {
  width: 40px;
  height: 40px;
  border: 2px solid var(--border-light);
  border-top-color: var(--black);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loader .msg {
  color: var(--body-text);
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

/* ==============================================================
   Alerts
   ============================================================== */
.alert {
  padding: 14px 18px;
  border-radius: 0;
  font-size: 12px;
  letter-spacing: 0.3px;
  margin-bottom: 16px;
  background: var(--surface);
  color: var(--dark-text);
  border: 1px solid var(--border-light);
  border-left: 2px solid var(--black);
}
.alert-error {
  background: var(--white);
  color: var(--red);
  border: 1px solid var(--border-light);
  border-left: 2px solid var(--red);
}

/* ==============================================================
   Result page
   ============================================================== */
.result-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}
@media (max-width: 900px) { .result-grid { grid-template-columns: 1fr; } }

.synopsis h3 {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin: 20px 0 8px;
  color: var(--muted);
}
.synopsis h3:first-child { margin-top: 0; }

.keyword-chips { display: flex; flex-wrap: wrap; gap: 6px; }

.chip {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.3px;
  padding: 4px 10px;
  border-radius: 0;
  background: var(--white);
  border: 1px solid var(--border-light);
  color: #555555;
}
.chip.added  { background: var(--lime); border-color: var(--black); color: var(--black); font-weight: 600; }
.chip.missing { background: var(--white); color: var(--red); border-color: var(--red); }

.ats-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 4px;
}
.ats-score .n {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 500;
  color: var(--black);
  line-height: 1;
}
.ats-score .d {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.download-row { display: flex; flex-direction: column; gap: 8px; margin-top: 16px; }

/* ==============================================================
   Resume preview
   ============================================================== */
.resume-doc {
  background: var(--white);
  padding: 40px 48px;
  border: 1px solid var(--border-light);
  border-radius: 0;
  color: var(--black);
  font-family: Calibri, 'Segoe UI', Tahoma, sans-serif;
  font-size: 11pt;
  line-height: 1.4;
}
.resume-doc .resume-name {
  text-align: center;
  font-size: 18pt;
  font-weight: 700;
  margin-bottom: 4px;
  letter-spacing: 0;
}
.resume-doc .resume-contact { text-align: center; font-size: 10pt; color: #333; }
.resume-doc .resume-headline { text-align: center; font-size: 12pt; font-weight: 700; margin-top: 10px; }
.resume-doc .resume-subheadline { text-align: center; font-size: 10pt; font-style: italic; color: #444; }
.resume-doc .resume-section {
  text-transform: uppercase;
  font-size: 11pt;
  font-weight: 700;
  margin-top: 18px;
  padding-bottom: 3px;
  border-bottom: 1px solid #888;
  letter-spacing: 0.05em;
}
.resume-doc p { margin: 6px 0; }
.resume-doc ul { margin: 4px 0 6px 18px; }
.resume-doc li { margin-bottom: 3px; }
.resume-doc .role { margin-bottom: 12px; }
.resume-doc .role-header {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  gap: 12px;
}
.resume-doc .role-title { font-style: italic; }
.resume-doc .role-summary { margin: 4px 0; }
.resume-doc .sep { color: #888; }

/* ==============================================================
   Home / resume list
   ============================================================== */
.resume-list { display: flex; flex-direction: column; gap: 0; margin-top: 18px; }

.resume-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 16px;
  align-items: center;
  padding: 18px 20px;
  border: 1px solid var(--border-light);
  border-radius: 0;
  background: var(--white);
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s;
  /* Stack rows so they share borders visually */
  margin-top: -1px;
}
.resume-row:first-child { margin-top: 0; }
.resume-row:hover { border-color: var(--black); background: var(--surface); }
.resume-row .title {
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  color: var(--black);
  letter-spacing: 0.2px;
}
.resume-row .meta {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: 0.5px;
}
.resume-row .score {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 500;
  color: var(--black);
  line-height: 1;
}

.empty {
  text-align: center;
  padding: 64px 24px;
  color: var(--body-text);
}
.empty .big {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 400;
  color: var(--black);
  margin-bottom: 8px;
}

/* ==============================================================
   Stat / metric display (reusable)
   ============================================================== */
.stat .n {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  color: var(--black);
  line-height: 1;
}
.stat .l {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-top: 4px;
  text-transform: uppercase;
}

/* ==============================================================
   Section label / badge components
   ============================================================== */
.tag-black {
  display: inline-block;
  background: var(--black);
  color: var(--lime);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.5px;
  padding: 4px 12px;
  text-transform: uppercase;
  border-radius: 0;
}
.tag-lime {
  display: inline-block;
  background: var(--lime);
  color: var(--black);
  font-family: var(--font-body);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 2.5px;
  padding: 4px 12px;
  text-transform: uppercase;
  border-radius: 0;
}

/* ==============================================================
   Progress bar (score bars)
   ============================================================== */
.progress {
  height: 4px;
  width: 100%;
  background: var(--border-light);
  border-radius: 0;
  margin-top: 4px;
}
.progress > .fill {
  height: 4px;
  background: var(--black);
  border-radius: 0;
}
.progress.dark > .fill { background: var(--lime); }
