/* Copyright (c) 2026, SCVGN / Michael
 * Licensed under the BSD 2-Clause License. See LICENSE in the project root.
 *
 * SCVGN Training — branding skeleton on top of Bootstrap 5.3.
 *
 * This is deliberately a skeleton, not a redesign: it names the SCVGN palette
 * once and styles the handful of classes the templates already use. base.html
 * sets data-bs-theme="dark", so these variables layer on Bootstrap's own dark
 * theme rather than fighting it.
 *
 * Nothing here may move into a template. The CSP is default-src 'self' with no
 * 'unsafe-inline', so an inline style= attribute or a <style> block is dropped
 * by the browser — quietly, in production, where nobody is watching.
 */

:root {
  --scvgn-accent: #4aa3df;
  --scvgn-accent-muted: #2c6f9b;
  --scvgn-surface: #17191c;
  --scvgn-surface-raised: #212429;
  --scvgn-text-muted: #9aa3ad;
  --scvgn-danger: #e5534b;
  --scvgn-warning: #d9a441;
  --scvgn-success: #57a773;
}

body {
  background-color: var(--scvgn-surface);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  flex: 1 0 auto;
  max-width: 60rem;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1rem 3rem;
}

nav {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 0.75rem 1rem;
  background-color: var(--scvgn-surface-raised);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

nav a {
  color: var(--scvgn-accent);
  text-decoration: none;
  font-weight: 600;
}

nav a:hover,
nav a:focus {
  color: var(--scvgn-accent-muted);
  text-decoration: underline;
}

footer {
  flex-shrink: 0;
  padding: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--scvgn-text-muted);
  font-size: 0.875rem;
  text-align: center;
}

/* --- flashed messages --------------------------------------------------- */

.flashes {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
}

.flash {
  padding: 0.625rem 0.875rem;
  margin-bottom: 0.5rem;
  border-left: 4px solid var(--scvgn-accent);
  border-radius: 0.25rem;
  background-color: var(--scvgn-surface-raised);
}

.flash-error,
.flash-danger {
  border-left-color: var(--scvgn-danger);
}

.flash-warning {
  border-left-color: var(--scvgn-warning);
}

.flash-success {
  border-left-color: var(--scvgn-success);
}

/* --- form and field feedback -------------------------------------------- */

.error,
.field-error {
  display: block;
  color: var(--scvgn-danger);
  font-size: 0.875rem;
}

.hint {
  display: block;
  color: var(--scvgn-text-muted);
  font-size: 0.875rem;
}

/* --- page furniture ------------------------------------------------------ */

/* Draft/published and similar one-word states. */
.status {
  display: inline-block;
  padding: 0.125rem 0.5rem;
  border-radius: 0.75rem;
  background-color: var(--scvgn-surface-raised);
  color: var(--scvgn-text-muted);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* "which course/lesson am I inside" breadcrumb line above a form. */
.context {
  color: var(--scvgn-text-muted);
  margin-bottom: 1rem;
}

.license-notice {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--scvgn-text-muted);
  font-size: 0.875rem;
}

/* --- lesson player ------------------------------------------------------- */

#lesson-video {
  width: 100%;
  max-height: 70vh;
  background-color: #000;
  border-radius: 0.375rem;
}

.progress-toggle {
  margin: 1rem 0;
}

.attachment-list {
  padding-left: 1.25rem;
}
