/* ── Create Event — Left Panel: Style Controls ──────────────────────────── */
/* Font picker, accent colour, soundtrack row                               */

/* Section label (matches right-side section titles) */
.style-section-label {
  font: 600 10px/1 'DM Sans', sans-serif;
  letter-spacing: 1.8px; color: rgba(255,255,255,0.56);
  text-transform: uppercase; margin-bottom: 12px;
  display: block;
}

/* ── Font tile grid — 3-column, readable preview ── */
.font-tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 4px;
  width: 100%;
}
.font-tile {
  position: relative;
  width: 100%;
  min-height: 64px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 10px 4px 8px;
  box-sizing: border-box;
}
.font-tile:hover {
  border-color: rgba(255,255,255,0.28);
  background: rgba(255,255,255,0.09);
  transform: translateY(-1px);
}
.font-tile:active { transform: translateY(0); transition-duration: 60ms; }
.font-tile.selected {
  background: rgba(255,255,255,0.92);
  border-color: rgba(255,255,255,0.85);
}
.font-tile-preview {
  font-size: 18px;
  line-height: 1;
  color: rgba(255,255,255,0.82);
  pointer-events: none;
  letter-spacing: -0.01em;
}
.font-tile.selected .font-tile-preview { color: rgba(10,10,18,0.88); }
.font-tile-name {
  font: 400 9px/1 'DM Sans', sans-serif;
  letter-spacing: 0.3px;
  color: rgba(255,255,255,0.32);
  pointer-events: none;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  padding: 0 4px;
}
.font-tile.selected .font-tile-name { color: rgba(10,10,18,0.50); }
.font-current-label {
  font: 400 10px/1 'DM Sans', sans-serif;
  color: rgba(255,255,255,0.45);
}
.font-current-label.is-default {
  text-decoration: none;
}

/* ── Accent Color ── */
.accent-header-row {
  display: flex; align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.accent-header-left { display: flex; align-items: center; gap: 6px; }
.accent-title { font: 600 11px/1 'DM Sans',sans-serif; letter-spacing: 1.8px; text-transform: uppercase; color: rgba(255,255,255,0.56); }
.accent-hex {
  font: 400 11px/1 'DM Sans',sans-serif;
  color: rgba(255,255,255,0.56); letter-spacing: 0.3px;
}
.accent-caret {
  width: 20px; height: 20px; border-radius: 4px;
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,0.42); display: flex; align-items: center;
  justify-content: center; transition: transform 0.18s, color 0.12s;
}
.accent-caret:hover { color: rgba(255,255,255,0.76); }
.accent-caret.collapsed { transform: rotate(180deg); }

/* Dark card container */
.accent-card {
  background: var(--bg-overlay);
  border-radius: 16px;
  padding: 14px;
  margin-bottom: 8px;
}
.color-swatches {
  display: flex; align-items: center;
  gap: 7px;
}
.c-swatch {
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; flex-shrink: 0;
  outline: 3px solid transparent;
  outline-offset: 2px;
  transition: transform 0.12s, outline-color 0.12s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
}
.c-swatch:hover { transform: scale(1.1); }
.c-swatch.active { outline-color: rgba(255,255,255,0.85); }
.c-rainbow {
  width: 32px; height: 32px; border-radius: 50%;
  cursor: pointer; flex-shrink: 0; position: relative;
  background: conic-gradient(red,yellow,lime,cyan,blue,magenta,red);
  box-shadow: 0 1px 3px rgba(0,0,0,0.25);
  transition: transform 0.12s;
}
.c-rainbow:hover { transform: scale(1.1); }
/* ── Custom colour picker popup ── */
.c-color-popup {
  display: none;
  position: fixed;
  width: 220px;
  background: #1A1A26;
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  padding: 12px;
  z-index: 9999;
  box-shadow: 0 8px 32px rgba(0,0,0,0.65);
  box-sizing: border-box;
}
.c-color-popup.open { display: block; }
.ccp-row-label {
  font: 600 9px/1 'DM Sans', sans-serif;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.36);
  margin-bottom: 6px;
}
/* Wrapper holds strip + floating thumb */
.ccp-strip-wrap {
  position: relative;
  height: 20px;
  margin-bottom: 4px;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.ccp-hue-strip,
.ccp-light-strip,
.ccp-sat-strip {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: linear-gradient(to right,#f00,#ff0,#0f0,#0ff,#00f,#f0f,#f00);
}
/* Draggable thumb — white circle overlaid on the strip */
.ccp-thumb {
  position: absolute;
  top: 50%;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.55);
  transform: translate(-50%, -50%);
  pointer-events: none;
  transition: left 0.04s linear;
}
.ccp-bottom {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 10px;
}
.ccp-preview {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(255,255,255,0.20);
}
.ccp-hex-input {
  flex: 1;
  min-width: 0;
  height: 28px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 7px;
  color: rgba(255,255,255,0.85);
  font: 500 12px/1 'DM Mono', 'Courier New', monospace;
  padding: 0 7px;
  text-transform: uppercase;
  outline: none;
}
.ccp-hex-input:focus { border-color: rgba(255,255,255,0.32); }
.ccp-apply-btn {
  height: 28px;
  padding: 0 12px;
  background: rgba(255,255,255,0.14);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: 7px;
  color: rgba(255,255,255,0.90);
  font: 600 11px/1 'DM Sans', sans-serif;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.12s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.ccp-apply-btn:hover  { background: rgba(255,255,255,0.22); }
.ccp-apply-btn:active { background: rgba(255,255,255,0.30); }
.c-light {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.10);
  border: 1.5px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; flex-shrink: 0;
  transition: transform 0.12s, background 0.12s;
}
.c-light:hover { transform: scale(1.1); background: rgba(255,255,255,0.16); }

/* No flyer state */
.color-noflyer {
  font: 400 11px/1.5 'DM Sans',sans-serif;
  color: rgba(255,255,255,0.35);
  text-align: center; padding: 4px 0;
}


/* ── Section hint text ── */
.ps-section-hint {
  font: 400 11px/1.3 'DM Sans', sans-serif;
  color: rgba(255,255,255,0.32);
  margin-top: 3px;
}

/* ── Completion dot ── */
.ps-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.16);
  flex-shrink: 0;
  transition: background 0.2s;
}
.ps-dot.filled {
  background: rgba(255,255,255,0.80);
}

/* ── Theme section divider ── */
.ps-theme-divider {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 16px 0 12px;
  flex-shrink: 0;
}
.ps-theme-divider::before,
.ps-theme-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.08);
}
.ps-theme-divider span {
  font: 600 9px/1 'DM Sans', sans-serif;
  letter-spacing: 1.8px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.25);
  white-space: nowrap;
}

/* ── Soundtrack row ── */
.spotify-row { gap: 10px; cursor: pointer; padding: 10px 0; }
.spotify-track-info { flex: 1; }
.spotify-name { font: 500 13px/1 'DM Sans',sans-serif; color: var(--text-primary); }
.spotify-artist { font: 400 11px/1 'DM Sans',sans-serif; color: rgba(255,255,255,0.68); margin-top: 3px; }
.spotify-clear { border:none;background:transparent;cursor:pointer;color:rgba(255,255,255,0.50);font-size:15px;line-height:1;padding:2px 4px;border-radius:4px;transition:color 0.12s;flex-shrink:0; }
.spotify-clear:hover { color: var(--text-primary); }
