

/* ================================================================
Strategy.ai – Modules Gallery (HubSpot-safe, no admin UI)
---------------------------------------------------------------
This version removes:
- Top page header/editor controls
- Progress dashboard
- Prompt Playground
- Export JSON button (admin-only features hidden)

It also:
- Hard-codes typography and buttons via Strategy.ai-prefixed classes
to avoid inheriting HubSpot SAI defaults.
- Keeps search/filter/sort and module objectives.
- Keeps a "How to get around" preview area (no login required).
- Provides a hidden admin JSON editor (Ctrl/Cmd+Shift+E or ?admin=1)
for swapping placeholder text/images/links.
================================================================ */

:root {
  --bg: #0b1020; --su rface: #121733; --muted: #8ea0bd; --text: #333; --accent: #5dd0ff; --accent-2: #7c67ff;
  --ok: #3ddc97; --ring: rgba(93, 208, 255, 0.5); --radius: 16px;
}

html, body { height: 100%; }
body { margin: 0;} /* BEN: removed  background: radial-gradient(1200px 600px at 20% -10%, #1a2152, transparent 60%), linear-gradient(#0b1020, #0b1020); */

/* --- SAI Typography (explicit classes; no defaults) --- */
.sai-wrap { max-width: 1200px; margin: 0 auto; padding: 24px; color: var(--text); font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, "Noto Sans"; }
.sai-eyebrow { display: none; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; font-size: 12px; font-weight: 600; margin: 24px 0 6px; } /* BEN: hiding this content since we use our own banner. */
.sai-h1 { margin: 0 0 6px; font-weight: 800; letter-spacing: 0.1px; line-height: 1.15; font-size: clamp(24px, 3.6vw, 36px); color: var(--text); }
.sai-h2 { margin: 18px 0 8px; font-weight: 800; letter-spacing: 0.1px; line-height: 1.2; font-size: clamp(18px, 2.6vw, 24px); color: var(--text); }
.sai-h3 { margin: 6px 0 4px; font-weight: 700; letter-spacing: 0.1px; line-height: 1.2; font-size: 20px; color: var(--text); }
.sai-p  { margin: 8px 0; color: #333; font-size: 16px; line-height: 1.5; }
#courseLede.sai-p { display: none; margin-bottom: 20px; } /* BEN: hiding this item since we use our own banner. // added because missing 'search' fields resulted in bad spacing. */
#courseTitle.sai-h1 { display: none; } /* BEN: hiding this item since we use our own banner. */
.sai-muted { color: var(--muted); font-size: 12px; }

/* --- Cards & layout --- */
.sai-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(370px, 1fr)); align-items: stretch;} /* BEN: Changed from 270px */
.sai-card-inner {
  display: grid;
  grid-template-rows: auto auto 1fr auto auto; /* BEN: removed third consecutive 'auto' since we are currently hiding the card badge */
  height: 100%;
  gap: 10px;
}
.sai-card { position: relative; ; border-radius: var(--radius); /* BEN: changed grid-template-rows from (auto auto 1fr) */
  padding: 14px 14px 0px;; background: #fff; /* BEN: changed from rgba(255,255,255,0.04), rgba(255,255,255,0.02) */
  border: 1px solid rgba(255,255,255,0.08); color: var(--text);
  box-shadow: 0 4px 16px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.04); 
}
.sai-card p[data-desc] {
  align-self:flex-start;
}
.sai-card > details.sai-details {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;

  /* Ensure it visually attaches to the card */
  background: #fff;
  border-radius: 0 0 var(--radius) var(--radius);
  border-top: none;

  /* So expanding does NOT push grid rows */
  z-index: 10;
  padding-bottom: 10px;
}
.sai-thumb { width: 100%; aspect-ratio: 16/9; border-radius: 12px; overflow: hidden; background: #0e1330; display: grid; place-items: center; }
.sai-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sai-badge { display: none; width: fit-content; transform: translateX(-8px); background: rgba(14,19,48,0.2); backdrop-filter: blur(6px); color: #333; font-weight: 700; font-size: 12px; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(255,255,255,0.12); } /* BEN: hidden since badge isn't needed atm -- removed position: absolute; top: 12px; left: 12px; */

/* --- Inputs (explicit) --- */
.sai-input, .sai-select { width: 100%; padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.14); background: rgba(18,23,51,0.6); color: var(--text);
  outline: none; box-shadow: 0 0 0 0 var(--ring); font-size: 16px; }
.sai-input:focus, .sai-select:focus { box-shadow: 0 0 0 3px var(--ring); }

.sai-toolbar { display: none; grid-template-columns: 1fr auto auto; gap: 12px; margin: 6px 0 18px; align-items: center; } /* BEN: turned off this module component via removal of display: grid; */

/* --- Buttons (explicit states; no inheritance) --- */
.sai-btn-row {
  padding-bottom: 60px;
  padding-top: 8px;
}
.sai-btn { --bg: rgba(18,23,51,0.6); --fg: var(--text); --bd: rgba(255,255,255,0.14);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 12px;
  border-radius: 10px; border: 1px solid var(--bd); background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 14px; text-decoration: none; cursor: pointer; user-select: none;
  transition: filter .15s ease, transform .06s ease; }
.sai-btn:hover { filter: brightness(1.08); text-decoration: none; font-weight:700 !important; color: #fff; }
.sai-btn:active { transform: translateY(1px); }
.sai-btn:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; font-weight:700 !important; color: #fff; }
.sai-btn:focus { outline-offset: 2px; font-weight:700 !important; color: #fff; }
.sai-btn[disabled] { opacity: .55; cursor: not-allowed; }

.sai-btn--primary { --bg: linear-gradient(90deg, var(--accent-2), var(--accent)); --fg: #fff; --bd: transparent; border: none; }
.sai-btn--ghost   { --bg: transparent; --fg: var(--text); --bd: rgba(255,255,255,0.18); display: none;}
.sai-btn--subtle  { --bg: rgba(255,255,255,0.04); --fg: var(--text); --bd: rgba(255,255,255,0.08); }

/* --- Collapsible --- */
.sai-details { border-top: 1px dashed rgba(255,255,255,0.14); margin-top: 4px; }
.sai-collapsible { border: 1px solid rgba(255,255,255,0.12); border-radius: 12px; overflow: hidden; grid-column: 1 / -1; }
.sai-collapsible summary { list-style: revert; cursor: pointer; padding: 10px 12px; background: rgba(255,255,255,0.04); font-weight: 800; }
.sai-collapsible[open] summary { background: linear-gradient(270deg, rgba(93, 208, 255, .3), rgba(124, 103, 255, .3)); color: #333 }
.sai-collapsible summary::-webkit-details-marker { display: none; }
.sai-objectives { padding: 10px 12px 10px 30px; margin: 0;}
.sai-objectives li { margin: 6px 0; color: #333; font-size: 16px; }

.sai-footer { color: var(--muted); font-size: 12px; text-align: center; padding: 22px 0 10px; } /* BEN change padding back to 22px 0 10px */

/* --- Modal JSON Editor (admin only) --- */
.sai-modal { position: fixed; inset: 0; display: none; place-items: center; background: rgba(4,6,16,0.7); z-index: 50; }
.sai-modal.show { display: grid; }
.sai-panel { width: min(920px, 92vw); height: min(640px, 85vh); background: #0d1330; border-radius: 16px; border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 30px 80px rgba(0,0,0,0.5); display: grid; grid-template-rows: auto 1fr auto; overflow: hidden; color: var(--text); }
.sai-editor { width: 100%; height: 100%; background: #070a1d; color: #daf1ff; border: none; outline: none; padding: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }
.sai-panel header, .sai-panel footer { background: rgba(255,255,255,0.03); padding: 12px 16px; display: flex; gap: 8px; align-items: center; justify-content: space-between; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

