/* ============================================================
   layout.css
   Page-level structure: header, main, grids, section spacing.
   No colours — only structural geometry.
   ============================================================ */

/* ── Page wrapper ── */
.page-wrap {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ── Header ── */
.site-header {
  text-align: center;
  padding: 52px 24px 36px;
  position: relative;
}

.site-header__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--color-border);
  background: var(--accent-light);
  color: var(--accent-mid);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--radius-pill);
  margin-bottom: 22px;
  border-color: rgba(108, 99, 255, 0.3);
}

.site-header__title {
  /* Gradient text defined in theme files via --grad-text */
  background: var(--grad-title);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 16px;
}

.site-header__subtitle {
  font-size: 17px;
  color: var(--color-muted);
  max-width: 520px;
  margin: 0 auto 28px;
}

/* ── Trust pills row ── */
.trust-row {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Theme toggle (top-right) ── */
.theme-toggle {
  position: absolute;
  top: 20px;
  right: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  display: flex;
  align-items: center;
  gap: 7px;
  cursor: pointer;
  font-size: 13px;
  color: var(--color-muted);
  transition: border-color var(--transition), color var(--transition);
}

.theme-toggle:hover {
  border-color: var(--accent);
  color: var(--color-text);
}

/* ── Main content ── */
main {
  flex: 1;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 20px 80px;
}

/* ── Input section ── */
.input-section {
  margin-bottom: 28px;
}

/* Two-column textarea grid */
.input-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

/* ── Action bar (button row) ── */
.action-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-bottom: 44px;
  flex-wrap: wrap;
}

/* ── Results section ── */
#results {
  display: none;
}

#results.visible {
  display: block;
}

/* Score + stats card */
.score-section {
  margin-bottom: 24px;
}

/* Two-column keyword lists */
.results-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 24px;
}

/* Full-width highlighted resume */
.highlight-section {
  margin-bottom: 24px;
}

/* Copy-all action row */
.copy-all-bar {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

/* ── How It Works section ── */
.how-section {
  border-top: 1px solid var(--color-border);
  padding-top: 52px;
  margin-top: 8px;
}

.how-section__title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 32px;
  color: var(--color-text);
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

/* ── Privacy bar ── */
.privacy-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 32px;
  padding: 13px 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface);
  font-size: 13px;
  color: var(--color-muted);
  text-align: center;
  flex-wrap: wrap;
}

.privacy-bar strong { color: var(--color-text); }

/* ── Site footer ── */
.site-footer {
  text-align: center;
  padding: 20px;
  font-size: 12px;
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
}

/* ── Responsive breakpoints ── */
@media (max-width: 740px) {
  .input-grid,
  .results-grid {
    grid-template-columns: 1fr;
  }

  .site-header {
    padding: 36px 16px 28px;
  }

  .theme-toggle {
    position: static;
    margin: 0 auto 16px;
    display: inline-flex;
  }

  .site-header {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .score-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
  }
}
