/* Check ATS Score — page styles
 * Loaded by /check-ats-score.html
 */

/* Sidebar is intentionally omitted on this page — collapse the page grid
 * so main fills the whole viewport instead of leaving the 280px column blank. */
.page-wrap.page-full { grid-template-columns: 1fr; gap: 0; }
.page-wrap.page-full > main { padding-right: 0; }

.ats-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 18px;
  margin-top: 14px;
}
@media (max-width: 960px) {
  .ats-layout { grid-template-columns: 1fr; }
}

/* ─── Drop zone ────────────────────────────────────────────── */
.ats-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px;
}
.ats-drop {
  border-style: dashed;
  border-color: #B6C0CC;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.ats-drop:hover, .ats-drop.is-drag {
  border-color: var(--brand);
  background: var(--brand-light, #E8F1FA);
}
.ats-drop-inner svg {
  color: var(--brand);
  margin-bottom: 10px;
}
.ats-drop-title {
  margin: 4px 0 4px;
  font-size: 16px;
  color: var(--ink);
  font-weight: 600;
}
.ats-drop-sub {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2);
}
.ats-drop-tip {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--ink-3);
  font-style: italic;
}
.ats-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--brand);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
}

/* ─── Paste fallback ──────────────────────────────────────── */
.ats-or {
  margin-top: 12px;
  font-size: 13px;
}
.ats-or summary {
  cursor: pointer;
  color: var(--ink-2);
  font-weight: 600;
  padding: 8px 0;
}
.ats-or textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  margin-top: 8px;
  resize: vertical;
}
.ats-btn {
  padding: 9px 16px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 6px;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  margin-top: 8px;
}
.ats-btn:hover { border-color: var(--brand); color: var(--brand); }
.ats-btn.primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  font-weight: 600;
}
.ats-btn.primary:hover { background: #16385A; color: #fff; }
.ats-btn:disabled { opacity: 0.55; cursor: not-allowed; }

.ats-status {
  margin-top: 10px;
  font-size: 12px;
  color: var(--ink-2);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  min-height: 18px;
}
.ats-status.err { color: #B91C1C; font-weight: 600; }
.ats-status.ok  { color: #0B7A2C; font-weight: 600; }

/* ─── Result panel ────────────────────────────────────────── */
.ats-results { display: flex; flex-direction: column; gap: 14px; }

.ats-score-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: center;
}
.ats-score-ring {
  position: relative;
  width: 120px;
  height: 120px;
}
.ats-score-ring svg { width: 100%; height: 100%; }
.ats-score-num {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 700;
  color: var(--ink);
}
.ats-score-num small {
  font-size: 12px;
  color: var(--ink-3);
  margin-left: 2px;
  font-weight: 500;
}
.ats-score-label {
  font-size: 17px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 4px;
}
.ats-score-meta {
  font-size: 12px;
  color: var(--ink-2);
  line-height: 1.5;
}
.ats-score-meta b { color: var(--ink); }

/* ─── Tabs ────────────────────────────────────────────────── */
.ats-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  gap: 4px;
}
.ats-tab {
  background: none;
  border: 1px solid transparent;
  border-bottom: 0;
  padding: 9px 14px;
  font: inherit;
  font-size: 13px;
  color: var(--ink-2);
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  margin-bottom: -1px;
}
.ats-tab:hover { color: var(--brand); }
.ats-tab.on {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
  font-weight: 600;
}
.ats-tab-pane { display: none; padding-top: 14px; }
.ats-tab-pane.on { display: block; }

/* ─── Check list ──────────────────────────────────────────── */
.ats-checks {
  list-style: none;
  padding: 0;
  margin: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  overflow: hidden;
}
.ats-checks li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  align-items: flex-start;
}
.ats-checks li:last-child { border-bottom: 0; }
.ats-check-icon {
  display: inline-flex;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}
.ats-check-icon.pass { background: #D6F5E1; color: #0B7A2C; }
.ats-check-icon.warn { background: #FFE9C2; color: #8A5A00; }
.ats-check-icon.fail { background: #FBDDD8; color: #B91C1C; }
.ats-check-label {
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.5;
}
.ats-check-label b { font-weight: 600; }
.ats-check-detail {
  font-size: 12px;
  color: var(--ink-2);
  margin-top: 3px;
  line-height: 1.5;
}
.ats-check-pts {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink-3);
  white-space: nowrap;
  margin-top: 1px;
}

/* ─── Grammar issues ──────────────────────────────────────── */
.ats-grammar-meta {
  font-size: 13px;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 10px 14px;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.ats-grammar-meta .ats-grammar-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--ink-2);
  cursor: pointer;
}
.ats-issues {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ats-issue {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
}
.ats-issue-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  flex-wrap: wrap;
  gap: 6px;
}
.ats-issue-cat {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: #fff;
  background: var(--brand);
  padding: 2px 8px;
  border-radius: 999px;
}
.ats-issue-cat.warn  { background: #C77B00; }
.ats-issue-cat.style { background: #5C5C7B; }
.ats-issue-msg {
  font-size: 13.5px;
  color: var(--ink);
  margin-bottom: 6px;
  line-height: 1.5;
}
.ats-issue-ctx {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  color: var(--ink-2);
  background: #F4F6F8;
  padding: 6px 10px;
  border-radius: 4px;
  word-break: break-word;
}
.ats-issue-ctx mark {
  background: #FFE17A;
  color: var(--ink);
  padding: 0 2px;
  border-radius: 2px;
}
.ats-issue-fix {
  margin-top: 6px;
  font-size: 12px;
  color: var(--ink-2);
}
.ats-issue-fix b { color: #0B7A2C; }

/* ─── Extracted text view ─────────────────────────────────── */
.ats-extracted {
  background: #1A2332;
  color: #E8ECF1;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.5;
  padding: 14px;
  border-radius: var(--r-md);
  max-height: 480px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
}

.ats-empty {
  text-align: center;
  color: var(--ink-3);
  padding: 30px 14px;
  font-size: 13px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: var(--r-md);
}
