/*
 * style-guide.css
 *
 * Real, documented tokens from docs/styling/style-guide.md (extracted
 * directly from sistersclub.eu's own CSS custom properties — not a
 * placeholder/estimate). This file translates those tokens into CSS
 * custom properties on :root, then remaps Bootstrap 5's own variables to
 * them, plus a handful of small component classes the wireframes in
 * docs/phases/phase-0/ui-ux-design.md call for.
 *
 * Scope, per modules.md / style-guide.md: MEMBER-facing pages only
 * (templates/auth/, templates/member/). The admin portal (templates/admin/)
 * deliberately does NOT load this file — AdminLTE keeps its own default
 * chrome there, on purpose (style-guide.md: "an internal admin tool is
 * allowed to look like AdminLTE's own defaults").
 */

/* ---- Google Fonts: Raleway (headings) + Roboto (body) ---- */
@import url("https://fonts.googleapis.com/css2?family=Raleway:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap");

:root {
  /* ---- Brand ink / color palette (style-guide.md "Color palette") ---- */
  --sc-ink: #1b1b27;              /* --accent-color / --heading-color / --button-color / --link-color / --label-color */
  --sc-ink-light: #343440;        /* --accent-color-light */
  --sc-ink-dim: #01010d;          /* --accent-color-dim */
  --sc-body: #3c3939;             /* --body-color */
  --sc-body-muted: rgba(60, 57, 57, 0.5); /* --body-color-muted */
  --sc-bg: #ffffff;
  --sc-bg-alt: #f2f2f2;
  --sc-bg-subtle: #e5e5e5;
  --sc-shape-bg: #e1e1ea;         /* --shape-bg-color */
  --sc-line: #c7c7d0;             /* --line-color / --shape-border-color */
  --sc-on-dark: #ffffff;
  --sc-figure-placeholder: #a0aec0;

  /* ---- Typography ---- */
  --sc-font-heading: "Raleway", "Helvetica Neue", Arial, sans-serif;
  --sc-font-body: "Roboto", "Helvetica Neue", Arial, sans-serif;
  --sc-line-height-body: 1.6;
  --sc-line-height-heading: 1.25;

  /* ---- Components (style-guide.md "Components" table) ---- */
  --sc-radius-button: 0.375em;
  --sc-radius-card: 0.6em;
  --sc-radius-box: 0.35em;
  --sc-card-outline: 0 0 0 0.0625em rgba(230, 230, 230, 0.75); /* hairline outline, not a drop shadow */

  /* ---- Remap Bootstrap 5 variables (style-guide.md "Applying this to
     SistersClub Admin Portal's UI stack") ---- */
  --bs-primary: var(--sc-ink);
  --bs-primary-rgb: 27, 27, 39;
  --bs-link-color: var(--sc-ink);
  --bs-link-color-rgb: 27, 27, 39;
  --bs-link-hover-color: var(--sc-ink-light);
  --bs-link-hover-color-rgb: 52, 52, 64;
  --bs-body-color: var(--sc-body);
  --bs-body-bg: var(--sc-bg-alt);
  --bs-border-color: var(--sc-line);
  --bs-body-font-family: var(--sc-font-body);
  --bs-body-line-height: var(--sc-line-height-body);
  --bs-border-radius: var(--sc-radius-box);
  --bs-border-radius-sm: var(--sc-radius-box);
  --bs-border-radius-lg: var(--sc-radius-card);
}

body {
  font-family: var(--sc-font-body);
  color: var(--sc-body);
  background-color: var(--sc-bg-alt);
}

h1, h2, h3, h4, h5, h6,
.sc-heading {
  font-family: var(--sc-font-heading);
  font-weight: 400; /* hierarchy comes from size, not boldness, per style-guide.md */
  line-height: var(--sc-line-height-heading);
  color: var(--sc-ink);
}

a {
  color: var(--sc-ink);
}
a:hover {
  color: var(--sc-ink-light);
}

.sc-eyebrow {
  font-family: var(--sc-font-body);
  text-transform: uppercase;
  color: var(--sc-ink);
  letter-spacing: 0.04em;
  font-size: 0.8em;
}

/* ---- Buttons: 0.375em radius, ink-colored primary ---- */
.btn-primary,
.btn-primary:hover,
.btn-primary:focus {
  background-color: var(--sc-ink);
  border-color: var(--sc-ink);
}
.btn-primary:hover {
  background-color: var(--sc-ink-light);
  border-color: var(--sc-ink-light);
}
.btn-outline-primary {
  color: var(--sc-ink);
  border-color: var(--sc-ink);
}
.btn-outline-primary:hover {
  background-color: var(--sc-ink);
  border-color: var(--sc-ink);
}
.btn,
.form-control,
.form-select {
  border-radius: var(--sc-radius-button);
}

/* ---- Cards: hairline outline, no drop shadow, 0.6em radius ---- */
.sc-card {
  background: var(--sc-bg);
  border-radius: var(--sc-radius-card);
  box-shadow: var(--sc-card-outline);
  border: none;
  padding: 1.75rem;
}

/* ---- Brand header (wordmark block, per style-guide.md logo) ---- */
.sc-brandbar {
  background: var(--sc-bg);
  border-bottom: 1px solid var(--sc-line);
}
.sc-brandbar img.sc-logo {
  height: 34px;
  width: auto;
}

/* ---- Auth shell (shared by templates/auth/) ---- */
.sc-auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--sc-bg-alt);
  padding: 1.5rem;
}
.sc-auth-card {
  width: 100%;
  max-width: 420px;
}

/* ---- Small utility: muted helper text ---- */
.sc-muted {
  color: var(--sc-body-muted);
}

/* ---- Pending-confirmation notice (member profile email-change state) ---- */
.sc-pending-note {
  background: var(--sc-shape-bg);
  border-radius: var(--sc-radius-box);
  padding: 0.65rem 0.9rem;
  font-size: 0.9rem;
}
