/* ForeverHumans Toolkit — panels.css
   Editor page styling only. The panels themselves are painted on
   canvas with the streamer's theme colors — this file just lays out
   the workbench. */

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 24px 16px 48px;
  background: #0a0a0f;
  color: #f4f4f5;
  font-family: 'Segoe UI', system-ui, -apple-system, Arial, sans-serif;
  line-height: 1.45;
}

.page-head, .global-controls, .layout, .page-foot {
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
}

/* Sit above the fx.js backdrop canvas. */
.page-head, .global-controls, .layout, .page-foot {
  position: relative;
  z-index: 1;
}

.page-head h1 {
  margin: 0 0 8px;
  font-size: 28px;
  font-family: 'Permanent Marker', 'Arial Black', 'Franklin Gothic Heavy', sans-serif;
  font-weight: 400;
}
.lede { margin: 0 0 20px; color: #a1a1aa; max-width: 65ch; }
.lede strong { color: #f4f4f5; }

/* --- global controls --- */

.global-controls {
  background: #15151f;
  border: 1px solid #26263a;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 24px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.height-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-bottom: 10px;
}

.controls-label { font-weight: 700; }

.radio-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0a0a0f;
  border: 1px solid #26263a;
  border-radius: 999px;
  padding: 6px 12px;
  cursor: pointer;
}

.custom-height {
  width: 72px;
  background: #15151f;
  color: #f4f4f5;
  border: 1px solid #26263a;
  border-radius: 6px;
  padding: 4px 6px;
  font: inherit;
}
.custom-height:disabled { opacity: 0.45; }

.theme-note { margin: 6px 0 0; color: #a1a1aa; max-width: 75ch; }
.local-note { margin: 6px 0 0; color: #a1a1aa; font-size: 13px; }

/* --- layout --- */

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 24px;
  align-items: start;
}

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
}

.layout h2 { margin: 0 0 12px; font-size: 20px; }

/* --- editor cards (left) --- */

.panel-card {
  background: #15151f;
  border: 1px solid #26263a;
  border-radius: 12px;
  padding: 14px 16px 16px;
  margin-bottom: 16px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

/* Card glow + slight lift, fine pointers only (fx.css owns the
   reduced-motion kills for its own classes). */
@media (hover: hover) and (pointer: fine) {
  .panel-card:hover, .global-controls:hover {
    border-color: #39ff14;
    box-shadow: 0 0 22px rgba(57, 255, 20, 0.18);
    transform: translateY(-2px);
  }
  .preview-card:hover canvas {
    border-color: #39ff14;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), 0 0 22px rgba(57, 255, 20, 0.18);
  }
}

.panel-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.show-label { font-weight: 700; cursor: pointer; }
.show-label input { margin-right: 4px; }

.order-btns { display: inline-flex; gap: 6px; }

.mini-btn {
  background: #0a0a0f;
  color: #f4f4f5;
  border: 1px solid #33334d;
  border-radius: 6px;
  padding: 4px 10px;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}
.mini-btn:hover:not(:disabled) { border-color: #39ff14; }
.mini-btn:disabled { opacity: 0.35; cursor: default; }

.field { display: block; margin-bottom: 12px; }
.field-label { display: block; font-size: 13px; color: #a1a1aa; margin-bottom: 4px; }

.field-row { display: flex; gap: 12px; }
.field-icon { flex: 0 0 76px; }
.field-heading { flex: 1 1 auto; }

.icon-input, .heading-input, .text-input {
  width: 100%;
  background: #0a0a0f;
  color: #f4f4f5;
  border: 1px solid #26263a;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}
.icon-input { text-align: center; font-size: 18px; }
.text-input { resize: vertical; }
.icon-input:focus, .heading-input:focus, .text-input:focus, .custom-height:focus {
  outline: 2px solid #39ff14;
  outline-offset: 1px;
}

.color-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.color-label { flex: 0 0 86px; font-size: 13px; color: #a1a1aa; }
.color-input {
  width: 44px;
  height: 30px;
  padding: 0;
  border: 1px solid #26263a;
  border-radius: 6px;
  background: #0a0a0f;
  cursor: pointer;
}
.color-state { font-size: 13px; color: #a1a1aa; min-width: 56px; }

/* --- previews (right) --- */

.preview-col { position: sticky; top: 16px; }
@media (max-width: 900px) {
  .preview-col { position: static; }
}

.preview-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.preview-head h2 { margin: 0; }

.preview-note { color: #a1a1aa; font-size: 13px; margin: 8px 0 16px; }

.preview-card { margin-bottom: 20px; }
.preview-card canvas {
  display: block;
  width: 320px;
  max-width: 100%;
  border: 1px solid #26263a;
  border-radius: 4px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.grew-note {
  margin: 6px 0 0;
  font-size: 12px;
  color: #ffe600;
}

.download-btn, .download-all-btn {
  background: #39ff14;
  color: #0a0a0f;
  border: none;
  border-radius: 8px;
  padding: 8px 16px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.download-btn { margin-top: 8px; }
.download-btn, .download-all-btn {
  transition: filter 0.2s ease, box-shadow 0.2s ease;
}
.download-btn:hover, .download-all-btn:hover {
  filter: brightness(1.1);
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.35);
}

.empty-note { color: #a1a1aa; }

.page-foot { margin-top: 32px; color: #a1a1aa; font-size: 13px; }
