/* BE-Aero web styles: the app's glass surface, type and controls, for a website.
   The surface recipe is the desktop's own (.widget in src/renderer/styles.css); on the web it
   may also blur what is behind it, which the desktop's transparent window cannot.

   Use with ../themes/themes.css: set data-theme="aero" (or any other preset) on <html> or on a
   section, and everything below follows it. Without a theme the default (Aero) applies. */

:root {
  /* Theme variables - the default theme, Aero. themes.css overrides these per [data-theme]. */
  --glass-rgb: 18, 24, 40;
  --glass-alpha: 0.55;
  --glass-border: 0.2;
  --glass-glow: 0.15;
  --accent: #38bdf8;
  --accent-rgb: 56, 189, 248;
  --text: #fafafa;
  --text-rgb: 250, 250, 250;
  --radius: 16px;

  /* Fixed tokens. */
  --aero-font: 'Segoe UI Variable Text', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', sans-serif;
  --aero-font-mono: Consolas, 'Cascadia Mono', ui-monospace, monospace;
  --aero-page: #020617;                       /* the dark slate behind everything */
  --aero-page-mid: #0f172a;
  --aero-text-dim: rgba(var(--text-rgb), 0.72);
  --aero-text-faint: rgba(var(--text-rgb), 0.5);
  --aero-ok: #34d399;
  --aero-warn: #fbbf24;
  --aero-danger: #f87171;
  --aero-space-1: 4px;  --aero-space-2: 8px;  --aero-space-3: 12px;
  --aero-space-4: 16px; --aero-space-5: 24px; --aero-space-6: 40px; --aero-space-7: 64px;
  --aero-shadow: 0 8px 24px 0 rgba(0, 0, 0, 0.35);
  --aero-shadow-raised: 0 12px 32px 0 rgba(0, 0, 0, 0.45);
}

/* ---- page */
.aero-page {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--aero-font);
  line-height: 1.55;
  background:
    radial-gradient(900px 600px at 15% -10%, rgba(var(--accent-rgb), 0.22), transparent 60%),
    radial-gradient(800px 600px at 100% 20%, rgba(129, 140, 248, 0.16), transparent 60%),
    linear-gradient(135deg, var(--aero-page), var(--aero-page-mid) 50%, var(--aero-page));
  background-attachment: fixed;
}
.aero-wrap { max-width: 1120px; margin: 0 auto; padding: 0 var(--aero-space-4); }

/* ---- type */
.aero-eyebrow { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
.aero-h1 { font-size: clamp(34px, 5.2vw, 60px); line-height: 1.06; font-weight: 600; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
.aero-h2 { font-size: clamp(24px, 3vw, 34px); line-height: 1.15; font-weight: 600; letter-spacing: -0.01em; margin: 0; text-wrap: balance; }
.aero-h3 { font-size: 18px; line-height: 1.3; font-weight: 600; margin: 0; }
.aero-lede { font-size: clamp(16px, 1.6vw, 19px); color: var(--aero-text-dim); max-width: 62ch; margin: 0; }
.aero-body { font-size: 15px; color: var(--aero-text-dim); margin: 0; max-width: 68ch; }
.aero-label { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--aero-text-faint); font-weight: 600; }
.aero-mono { font-family: var(--aero-font-mono); font-size: 13px; }
.aero-link { color: var(--accent); text-decoration: none; }
.aero-link:hover { text-decoration: underline; }

/* ---- the glass surface (the app's .widget) */
.aero-glass {
  position: relative;
  background-color: rgba(var(--glass-rgb), var(--glass-alpha));
  background-image: linear-gradient(135deg,
    rgba(255, 255, 255, var(--glass-glow)) 0%,
    rgba(255, 255, 255, 0) 40%,
    rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid rgba(255, 255, 255, var(--glass-border));
  border-radius: var(--radius);
  box-shadow:
    var(--aero-shadow),
    inset 0 1px 1px rgba(255, 255, 255, calc(var(--glass-border) * 2.5)),
    inset 0 -1px 2px rgba(0, 0, 0, 0.1);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  backdrop-filter: blur(18px) saturate(140%);
  color: var(--text);
}
.aero-card { padding: var(--aero-space-5); }
.aero-card--hover { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.aero-card--hover:hover { transform: translateY(-2px); box-shadow: var(--aero-shadow-raised), inset 0 1px 1px rgba(255, 255, 255, 0.6), inset 0 -1px 2px rgba(0, 0, 0, 0.1); }
/* A widget's small caps title, as in the app. */
.aero-widget-title { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600; color: var(--aero-text-dim); margin: 0 0 var(--aero-space-3); }

/* ---- controls */
.aero-btn {
  display: inline-flex; align-items: center; gap: var(--aero-space-2);
  font: 600 15px/1 var(--aero-font);
  padding: 13px 22px; border-radius: calc(var(--radius) * 0.75);
  border: 1px solid rgba(255, 255, 255, var(--glass-border));
  background: rgba(var(--glass-rgb), var(--glass-alpha)); color: var(--text);
  text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}
.aero-btn:hover { transform: translateY(-1px); background: rgba(var(--accent-rgb), 0.16); }
.aero-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.aero-btn--primary { background: var(--accent); border-color: transparent; color: #04121d; box-shadow: 0 6px 22px rgba(var(--accent-rgb), 0.35); }
.aero-btn--primary:hover { background: var(--accent); filter: brightness(1.08); }
.aero-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px;
  background: rgba(var(--accent-rgb), 0.14); border: 1px solid rgba(var(--accent-rgb), 0.4); color: var(--text);
}
.aero-chip--quiet { background: rgba(255, 255, 255, 0.05); border-color: rgba(255, 255, 255, 0.18); color: var(--aero-text-dim); }
.aero-kbd { font: 600 12px/1 var(--aero-font-mono); padding: 4px 7px; border-radius: 6px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.2); }
.aero-code { font-family: var(--aero-font-mono); font-size: 13px; padding: var(--aero-space-4); overflow-x: auto; white-space: pre; }

/* ---- layout helpers */
.aero-grid { display: grid; gap: var(--aero-space-4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.aero-stack > * + * { margin-top: var(--aero-space-4); }
.aero-row { display: flex; flex-wrap: wrap; gap: var(--aero-space-3); align-items: center; }
.aero-section { padding: var(--aero-space-7) 0; }
.aero-icon { width: 64px; height: 64px; border-radius: 22%; display: block; }
.aero-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.aero-table th, .aero-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); vertical-align: top; }
.aero-table th { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--aero-text-faint); font-weight: 600; }
.aero-table-wrap { overflow-x: auto; }

@media (prefers-reduced-motion: reduce) {
  .aero-btn, .aero-card--hover { transition: none; }
  .aero-btn:hover, .aero-card--hover:hover { transform: none; }
}
/* Light glass (the Frosted preset) needs dark page text only when the page itself is light;
   on the dark page above every preset keeps its own text colour. */
