/* OkSure v0.3 (draft) - default look for every new project. Dark, techy, glass.
   Two layers: BASE (the page and its cards, calm) and POPUP (a highlighted window lifted over the base, blue-tinted).
   Copy this file into a project, then override only the variables that project needs. */
:root {
  color-scheme: dark;

  /* accent #40A1FB: text highlights, buttons, border start */
  --accent-rgb: 64 161 251;
  --accent: #40A1FB;
  --accent-hover: #70b8fc;
  --accent-dim: rgb(var(--accent-rgb) / 0.16);
  --accent-text: #04121f; /* text ON a solid accent button */

  /* page behind everything: almost black, with a faint cool glow so it is not flat */
  --bg: #04070b;
  --bg-gradient: radial-gradient(ellipse at 30% 0%, rgb(20 40 56 / 0.35), transparent 60%);

  /* surface gradient for every window, popup, panel and card: #193651 (top left) to #0A0F11 (bottom right) */
  --surface-1: #193651;
  --surface-2: #0A0F11;
  --surface: linear-gradient(135deg, var(--surface-1) 0%, var(--surface-2) 100%);

  /* BASE layer: dark glass cards */
  --glass-rgb: 12 18 24;
  --glass: rgb(var(--glass-rgb) / 0.80);
  --glass-2: rgb(20 28 36 / 0.85);
  --line: rgb(170 180 195 / 0.18);

  /* POPUP layer: blue-tinted, glowing */
  --popup-glow: 0 0 40px rgb(var(--accent-rgb) / 0.14), 0 20px 60px rgb(0 0 0 / 0.6);

  /* borders: #40A1FB (top left) to #000000 (bottom right) */
  --edge-1: #40A1FB;
  --edge-2: #000000;
  --edge: linear-gradient(135deg, var(--edge-1), var(--edge-2));

  /* text */
  --text: #e6e9ee;
  --dim: #8b93a0;
  --faint: #5a6270;
  --title-dim: #3f6678; /* big quiet page titles like SITES */

  /* status */
  --ok: #3ee6a0;
  --warn: #ffc247;
  --danger: #ff6a55;

  /* type: system fonts, no download */
  --sans: "Segoe UI", "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: Consolas, "SFMono-Regular", Menlo, monospace;
  --fs-s: 11px; --fs-m: 14px; --fs-l: 18px; --fs-xl: 26px;
  --tracking-head: 0.14em;
  --tracking-label: 0.16em;

  /* shape */
  --radius: 14px;
  --radius-s: 8px;
  --radius-btn: 12px; /* buttons: 10-14px, never fully round (no 999px) */
  --space: 8px; /* use multiples: 8, 16, 24, 32 */
}

/* ---- base ---- */
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--bg) var(--bg-gradient) no-repeat fixed; color: var(--text); font-family: var(--sans); font-size: var(--fs-m); line-height: 1.5; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: var(--tracking-head); }
h1 { font-size: var(--fs-xl); text-transform: uppercase; }
h2 { font-size: var(--fs-l); }
a { color: var(--accent); } a:hover { color: var(--accent-hover); }
code, pre, .mono { font-family: var(--mono); }
.dim { color: var(--dim); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* quiet page title (SITES) and small spaced meta line under it */
.page-title { color: var(--title-dim); letter-spacing: 0.3em; }
.meta { font-size: var(--fs-s); letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--dim); }

/* section label (NEXT UP, CODE, RECENTLY): small, spaced, accent */
.label { font-size: 12px; font-weight: 600; letter-spacing: var(--tracking-label); text-transform: uppercase; color: var(--accent); }
.label.alt { color: #f06fa0; } /* optional second label colour, e.g. DECISIONS NEEDED */

/* ---- BASE: card with accent-to-black border and a bright left edge ---- */
.card {
  position: relative; border: 1px solid transparent; border-radius: 12px; padding: 16px 18px;
  background: var(--surface) padding-box, var(--edge) border-box;
  box-shadow: inset 3px 0 0 var(--accent);
}

/* ---- POPUP: the highlighted layer lifted over the base ---- */
.popup {
  border: 1px solid transparent; border-radius: 16px; padding: 0; overflow: hidden;
  background: var(--surface) padding-box, var(--edge) border-box;
  box-shadow: var(--popup-glow);
}
/* inside a popup: sections are separated by thin lines, not boxes */
.popup .head { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.popup .cols { display: grid; grid-template-columns: 1fr 1fr; }
.popup .cols > * { padding: 20px 24px; }
.popup .cols > * + * { border-left: 1px solid var(--line); }
.popup .card { background: none; border: 0; box-shadow: none; padding: 0; }
@media (max-width: 700px) { .popup .cols { grid-template-columns: 1fr; } .popup .cols > * + * { border-left: 0; border-top: 1px solid var(--line); } }

/* ---- buttons: outlined, 12px radius; solid for the one main action ---- */
.btn { font: inherit; font-size: 13px; cursor: pointer; padding: 6px 16px; border-radius: var(--radius-btn); border: 1px solid var(--accent); background: transparent; color: var(--accent); letter-spacing: 0.04em; }
.btn:hover { background: var(--accent-dim); color: var(--accent-hover); }
.btn.quiet { border-color: var(--line); color: var(--text); }
.btn.quiet:hover { border-color: var(--accent); }
.btn.primary { background: var(--accent); color: var(--accent-text); font-weight: 600; box-shadow: 0 0 16px rgb(var(--accent-rgb) / 0.35); }
.btn.primary:hover { background: var(--accent-hover); }
.btn:disabled { opacity: 0.4; cursor: default; }
.btn.close { width: 36px; height: 36px; padding: 0; display: inline-grid; place-items: center; border-color: var(--line); color: var(--text); }

/* ---- segmented tabs (WORK | OVERVIEW | NOTES) ---- */
.tabs { display: inline-flex; padding: 3px; border-radius: 10px; border: 1px solid var(--line); background: rgb(0 0 0 / 0.3); }
.tabs button { font: inherit; font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); background: none; border: 0; padding: 6px 16px; border-radius: 8px; cursor: pointer; }
.tabs button.on { color: #fff; background: rgb(var(--accent-rgb) / 0.16); box-shadow: inset 0 0 0 1px rgb(var(--accent-rgb) / 0.4); }

/* ---- rows: task list, with round action chips ---- */
.row-item { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.chip { width: 24px; height: 24px; border-radius: 50%; border: 1px solid currentColor; display: inline-grid; place-items: center; font-size: 11px; flex: none; background: none; cursor: pointer; }
.chip.go { color: var(--accent); } .chip.ok { color: var(--ok); }

/* ---- inputs ---- */
input, textarea, select { font: inherit; color: var(--text); background: rgb(0 0 0 / 0.4); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 9px 12px; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-dim); }
input[type=checkbox] { accent-color: var(--accent); }

/* ---- small bits ---- */
.tag { display: inline-block; font-size: var(--fs-s); letter-spacing: 0.12em; text-transform: uppercase; padding: 2px 10px; border-radius: 999px; border: 1px solid currentColor; }
.tag.ok { color: var(--ok); } .tag.warn { color: var(--warn); } .tag.danger { color: var(--danger); } .tag.info { color: var(--accent); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
