
/* ---- Creative Expansion Lab: styles.css ---- */
/* Build stamp (change this line to force a visible diff in commits): 2026-02-27-01 */

/* ---- Fonts ---- */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=Share+Tech+Mono&display=swap");

/* ---- Base ---- */
:root{
  /* Surfaces */
  --bg0:#05070b;
  --bg1:#070b12;
  --bg2:#0a0f1a;

  /* Ink */
  --ink:#eaf0ff;
  --muted:rgba(234,240,255,.72);
  --faint:rgba(234,240,255,.52);

  /* Chrome + neon */
  --chrome1: rgba(255,255,255,.10);
  --chrome2: rgba(255,255,255,.06);
  --chrome3: rgba(255,255,255,.14);
  --edge: rgba(170,200,255,.18);

  --cyan: #35d6ff;
  --violet:#8a5cff;
  --mint:  #25ffb6;
  --amber: #ffbd3a;
  --red:   #ff3b4d;

  --radius: 16px;
  --shadow: 0 22px 60px rgba(0,0,0,.55);
  --max: 980px;

  /* ---- Chart sizing ---- */
  --chart-h: 320px;
  --chart-h-mobile: 320px;
}

*{ box-sizing:border-box; }
html, body{ height:100%; }

body{
  margin:0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--ink);

  /* cyber backdrop */
  background:
    radial-gradient(1200px 700px at 70% -10%, rgba(53,214,255,.18), transparent 60%),
    radial-gradient(1000px 650px at 10% 10%, rgba(138,92,255,.18), transparent 60%),
    radial-gradient(900px 600px at 60% 110%, rgba(37,255,182,.10), transparent 55%),
    linear-gradient(180deg, var(--bg2), var(--bg0));
  overflow-x:hidden;
}

/* subtle grid */
body::before{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.35;
  background:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at 50% 20%, rgba(0,0,0,1), rgba(0,0,0,.25) 60%, rgba(0,0,0,0) 85%);
}

/* scanline */
body::after{
  content:"";
  position:fixed;
  inset:0;
  pointer-events:none;
  opacity:.08;
  background: repeating-linear-gradient(
    180deg,
    rgba(255,255,255,.45) 0px,
    rgba(255,255,255,.45) 1px,
    transparent 2px,
    transparent 6px
  );
  mix-blend-mode: overlay;
}

/* ---- Header ---- */
header{
  position: sticky;
  top:0;
  z-index:10;

  backdrop-filter: blur(14px);
  background:
    linear-gradient(180deg, rgba(10,14,24,.85), rgba(10,14,24,.55));
  border-bottom: 1px solid rgba(150,190,255,.14);
  box-shadow: 0 10px 30px rgba(0,0,0,.35);
}

.bar{
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 16px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}

.title{ display:flex; flex-direction:column; gap:3px; }
.title strong{
  font-family: "Share Tech Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 16px;
  letter-spacing: .9px;
  text-transform: uppercase;
}
.title span{
  font-size: 12px;
  color: rgba(234,240,255,.65);
}

/* ---- Pills ---- */
.pill{
  font-size:12px;
  padding:7px 11px;
  border-radius: 999px;
  white-space:nowrap;

  color: rgba(234,240,255,.92);
  border: 1px solid rgba(170,200,255,.20);
  background:
    linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.04));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 10px 22px rgba(0,0,0,.25);
}

.timer{
  font-variant-numeric: tabular-nums;
  font-family: "Share Tech Mono", ui-monospace, monospace;
  letter-spacing:.2px;
}

/* ---- Main Layout ---- */
main{
  max-width: var(--max);
  margin: 18px auto 90px;
  padding: 0 16px;
}

/* ---- Cards (glass + chrome) ---- */
.card{
  position:relative;
  border-radius: var(--radius);
  padding: 20px;
  margin: 14px 0;

  color: var(--ink);
  background:
    radial-gradient(900px 300px at 30% 0%, rgba(53,214,255,.10), transparent 55%),
    radial-gradient(700px 280px at 80% 15%, rgba(138,92,255,.12), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.035));
  border: 1px solid rgba(170,200,255,.18);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.card::before{
  content:"";
  position:absolute;
  inset:-1px;
  border-radius: calc(var(--radius) + 1px);
  pointer-events:none;
  background: conic-gradient(
    from 180deg,
    rgba(53,214,255,.0),
    rgba(53,214,255,.20),
    rgba(138,92,255,.18),
    rgba(37,255,182,.14),
    rgba(53,214,255,.0)
  );
  filter: blur(18px);
  opacity:.45;
  z-index:-1;
}

.card h1, .card h2, .card h3{
  margin: 0 0 10px;
  font-family: "Share Tech Mono", ui-monospace, monospace;
  letter-spacing:.6px;
  text-transform: uppercase;
}

.card h1{ font-size: 34px; line-height: 1.1; }
.card h2{ font-size: 20px; }
.card h3{ font-size: 15px; }

.muted{ color: var(--muted); }

/* ---- Form Layout ---- */
.row{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}
.row > *{ flex: 1; min-width: 240px; }

label{
  font-size:12px;
  color: rgba(234,240,255,.78);
  display:block;
  margin:10px 0 6px;
  letter-spacing:.25px;
  text-transform: uppercase;
  font-family: "Share Tech Mono", ui-monospace, monospace;
}

/* Inputs: dark chrome */
input[type="text"], input[type="number"], textarea, select{
  width:100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(170,200,255,.18);
  background:
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.22));
  color: var(--ink);
  outline:none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .08s ease;
}

input::placeholder, textarea::placeholder{ color: rgba(234,240,255,.38); }

input[type="text"]:focus,
input[type="number"]:focus,
textarea:focus,
select:focus{
  border-color: rgba(53,214,255,.55);
  box-shadow:
    0 0 0 3px rgba(53,214,255,.14),
    0 14px 30px rgba(0,0,0,.28);
}

textarea{
  min-height: 120px;
  resize: vertical;
}

.hr{
  height:1px;
  background: rgba(170,200,255,.14);
  margin: 14px 0;
}

/* ---- Notices ---- */
/*.notice{
  border-radius: 14px;
  padding: 12px 14px;
  color: rgba(234,240,255,.92);
  border: 1px solid rgba(255,189,58,.22);
  background:
    radial-gradient(700px 220px at 15% 0%, rgba(255,189,58,.14), transparent 55%),
    linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
}*/

.notice {
    background: #dffcff;
    border: 1px solid #0c0c0b;
    padding: 12px 14px;
    border-radius: 12px;
    color: #0c0c0b;
}

.notice strong{
  font-family: "Share Tech Mono", ui-monospace, monospace;
  letter-spacing:.4px;
  text-transform: uppercase;
}

/* ---- Buttons ---- */
.btns{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top: 10px;
  align-items:center;
}

button{
  border:0;
  border-radius: 12px;
  padding: 10px 14px;

  cursor:pointer;
  transition: transform .06s ease, filter .15s ease, opacity .15s ease, box-shadow .15s ease;
  letter-spacing: .3px;

  font-family: "Share Tech Mono", ui-monospace, monospace;
  text-transform: uppercase;
}

button:active{ transform: translateY(1px); }

.btn-primary{
  color: rgba(0,10,14,.95);
  background: linear-gradient(180deg, rgba(53,214,255,.95), rgba(53,214,255,.68));
  box-shadow:
    0 14px 30px rgba(53,214,255,.18),
    inset 0 1px 0 rgba(255,255,255,.30);
}
.btn-soft{
  color: rgba(234,240,255,.92);
  background: linear-gradient(180deg, rgba(255,255,255,.10), rgba(255,255,255,.05));
  border: 1px solid rgba(170,200,255,.18);
}
.btn-danger{
  color: rgba(255,255,255,.95);
  background: linear-gradient(180deg, rgba(255,59,77,.95), rgba(255,59,77,.65));
  box-shadow:
    0 14px 30px rgba(255,59,77,.14),
    inset 0 1px 0 rgba(255,255,255,.22);
}

/* Header outline buttons: chrome pills */
..btn-outline{
  background: transparent;
  border:1px solid rgba(255,255,255,.22);
  color:#fff;

  /* ✅ same size */
  height: 38px;
  min-width: 92px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  /* ✅ nice feel */
  transition: background-color .12s ease, border-color .12s ease, transform .06s ease, box-shadow .12s ease;
}

/* ✅ hover */
.btn-outline:hover{
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.35);
}

/* ✅ visible "pressed" moment */
.btn-outline:active{
  transform: translateY(1px);
}

/* ✅ persistent "pressed" state we toggle from JS */
.btn-outline.is-pressed{
  background: rgba(255,255,255,.18);
  border-color: rgba(255,255,255,.55);
  box-shadow: 0 0 0 2px rgba(255,255,255,.12) inset;
}

button:hover{ filter: brightness(1.05); }
button:disabled{
  opacity:.5;
  cursor:not-allowed;
  transform:none;
  filter:none;
}

/* ---- Progress ---- */
.progress{
  height:8px;
  background: rgba(255,255,255,.10);
  border-radius:999px;
  overflow:hidden;
  border: 1px solid rgba(170,200,255,.14);
}
.progress > div{
  height:100%;
  width:0%;
  background:
    linear-gradient(90deg, rgba(53,214,255,.85), rgba(138,92,255,.75));
  transition: width .2s ease;
  box-shadow: 0 0 18px rgba(53,214,255,.20);
}

/* ---- Simple status colors ---- */
.good{ color: var(--mint); font-weight:800; }
.warn{ color: var(--amber); font-weight:800; }
.bad{  color: var(--red); font-weight:800; }

/* ---- Tables ---- */
table{ width:100%; border-collapse:collapse; }
th, td{
  padding:10px;
  border-bottom:1px solid rgba(170,200,255,.14);
}
th{
  text-align:left;
  font-size:12px;
  color: rgba(234,240,255,.78);
  font-family: "Share Tech Mono", ui-monospace, monospace;
  text-transform: uppercase;
}

/* ---- Totals ---- */
.totals{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}
.total-box{
  border: 1px solid rgba(170,200,255,.18);
  border-radius: 14px;
  padding: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
}
.total-box .n{
  font-size: 30px;
  font-weight: 900;
  font-family: "Share Tech Mono", ui-monospace, monospace;
  letter-spacing:.6px;
}
.total-box .t{
  font-size: 12px;
  color: var(--muted);
}

/* Hide old KPI grids if present */
.kpi.is-hidden{ display:none !important; }
.totals.is-hidden{ display:none !important; }

/* ---- KPI (if used elsewhere) ---- */
.kpi{
  display:grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap:10px;
}
.kpi .box{
  border: 1px solid rgba(170,200,255,.16);
  border-radius: 14px;
  padding: 10px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
}
.kpi .box .n{
  font-size: 22px;
  font-weight: 900;
  font-family: "Share Tech Mono", ui-monospace, monospace;
}
.kpi .box .t{
  font-size: 12px;
  color: var(--muted);
}

/* ---- Charts ---- */
.chart-wrap{
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(170,200,255,.16);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.03));
}

.chart-wrap h3{ margin: 0 0 8px; }

.chart-canvas{
  width: 100% !important;
  height: var(--chart-h) !important;
  display:block;
}

.chart-wrap canvas{
  width: 100% !important;
  height: 100% !important;
}

/* Keep Results charts compact if you want */
#resultsCard .chart-wrap{
  height: 210px;
  overflow: hidden;
}
#resultsCard .chart-canvas{
  height: 160px !important;
  max-height: 160px !important;
}

/* ---- Responsive ---- */
@media (max-width: 900px){
  .kpi{ grid-template-columns: repeat(2, minmax(0,1fr)); }
  .row > *{ min-width: 200px; }
  .totals{ grid-template-columns: 1fr; }
}

@media (max-width: 520px){
  .bar{ flex-direction:column; align-items:flex-start; }
  .btns button{ width:100%; }
  #backBtn, #nextBtn{ width:100%; }
}

/* ---- Modal overlay ---- */
/*
.modal{
  display:none;
  position:fixed;
  inset:0;
  z-index:9999;
  background: rgba(0,0,0,.75);
  backdrop-filter: blur(4px);
  align-items:center;
  justify-content:center;
  padding:18px;
}
.modal[aria-hidden="false"]{ display:flex; }*/

/* ---- Preview thumbnail (must stay small) ---- */
.preview-thumb{
  display:block;
  width: 240px;     /* change size here */
  max-width: 100%;
  height: auto;
  cursor: pointer;
  border-radius: 12px;
}

/* ---- Electric cyan links (no underline) ---- */
.preview-actions .button,
.preview-actions .button:visited,
.button.primary,
.button.primary:visited {
  color: #00eaff !important;   /* electric cyan */
  text-decoration: none !important;
}

.preview-actions .button:hover,
.button.primary:hover {
  color: #5ff6ff !important;   /* brighter hover */
  text-decoration: none !important;
}

/* ---- Remove underline/line styling from these links ---- */
.preview-actions .button,
.button.primary{
  text-decoration: none !important;
  border-bottom: 0 !important;
  background-image: none !important;
}

