/* ==========================================================================
   DEMO SETTINGS PANEL  (demo-only controls — theme + spinning-logo position)
   ========================================================================== */

/* --- Floating gear button (bottom-left, clear of #scrollUp on the right) --- */
#demo-settings-btn {
  position: fixed;
  left: 20px;
  bottom: 20px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: #1f2a37;
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  z-index: 99999;
  box-shadow: 0 8px 22px rgba(0,0,0,0.28);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .2s ease, background .2s ease;
}
#demo-settings-btn:hover { background: #2b3a4d; transform: translateY(-2px); }
#demo-settings-btn i { transition: transform .4s ease; }
#demo-settings-btn.open i { transform: rotate(90deg); }

/* --- Panel --- */
#demo-settings-panel {
  position: fixed;
  left: 20px;
  bottom: 84px;
  width: 264px;
  background: #ffffff;
  color: #1f2a37;
  border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
  z-index: 99999;
  padding: 18px 18px 16px;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
#demo-settings-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.ds-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.ds-head h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #1f2a37;
}
.ds-close {
  border: 0;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  color: #97a2ae;
  cursor: pointer;
  padding: 0 2px;
}
.ds-close:hover { color: #1f2a37; }

.ds-group { margin-bottom: 16px; }
.ds-group:last-of-type { margin-bottom: 6px; }
.ds-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #8a95a1;
  margin-bottom: 8px;
}

/* Segmented button rows */
.ds-seg {
  display: flex;
  gap: 6px;
}
.ds-seg.ds-seg-3 button { flex: 1; padding-left: 4px; padding-right: 4px; }
.ds-seg button {
  flex: 1;
  border: 1px solid #d9e0e7;
  background: #f5f7f9;
  color: #46525f;
  font-size: 13px;
  font-weight: 500;
  padding: 9px 10px;
  border-radius: 9px;
  cursor: pointer;
  transition: all .15s ease;
}
.ds-seg button:hover { border-color: #b9c4cf; }
.ds-seg button.active {
  background: #1f2a37;
  border-color: #1f2a37;
  color: #fff;
}

/* Reset button */
.ds-reset {
  width: 100%;
  margin-top: 4px;
  border: 1px solid #d9e0e7;
  background: #fff;
  color: #46525f;
  font-size: 13px;
  font-weight: 600;
  padding: 10px;
  border-radius: 9px;
  cursor: pointer;
  transition: all .15s ease;
}
.ds-reset:hover { background: #f1f4f8; border-color: #b9c4cf; }

.ds-note {
  margin: 12px 0 0;
  font-size: 11px;
  color: #a3adb8;
  text-align: center;
}

/* --- Spinning-logo position variants (override base .spinning-logo-container) ---
   The decorative circles are pseudo-elements of the emblem, so they move with it.
   Right/Bottom tuck the whole emblem partly under the hero edge. */
body.spin-right .spinning-logo-container {
  right: -110px;            /* tucked under the right wall */
}
body.spin-bottom .spinning-logo-container {
  top: auto;
  bottom: -110px;          /* tucked under the bottom wall */
  right: 80px;
  transform: none;
}

/* --- Number of circles around the emblem (default = 2, both shown) --- */
body.circles-1 .spinning-logo-container::before { display: none; }   /* keep the inner circle only */
body.circles-0 .spinning-logo-container::before,
body.circles-0 .spinning-logo-container::after  { display: none; }   /* no circles */

/* --- Circle colour: "slightly blue" instead of white --- */
body.circles-blue .spinning-logo-container::before { background: rgba(125,170,225,0.16); }
body.circles-blue .spinning-logo-container::after  { background: rgba(125,170,225,0.22); }

/* --- Alternative "grey" brand logo (taller — includes the animal circles) --- */
body.logo-alt .desktoplogo img,
body.logo-alt .smllogo img,
body.logo-alt .footer-info img {
  width: auto;
  height: 50px;
}

@media (max-width: 480px) {
  #demo-settings-panel { width: calc(100vw - 40px); }
}
