/* Dev-only floating theme switcher for view pages.
   Shown on localhost or when ?dev=1 is in the URL — never to public users. */

.mm-dev-switcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: #2a2a2a;
}

.mm-dev-switcher__toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: none;
  border-radius: 999px;
  background: rgba(20, 20, 28, 0.92);
  color: #f6efd9;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.mm-dev-switcher__toggle:hover { background: rgba(30, 30, 40, 0.96); }
.mm-dev-switcher__toggle::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(135deg, #d4a853 0%, #8a6a2f 100%);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18);
}

.mm-dev-switcher__panel {
  display: none;
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  width: 280px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.30);
}
.mm-dev-switcher--open .mm-dev-switcher__panel { display: block; }

.mm-dev-switcher__title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #6b6b6b;
  margin: 2px 4px 10px;
}

.mm-dev-switcher__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.mm-dev-switcher__opt {
  position: relative;
  display: block;
  border: 2px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  background: #f6f4ef;
  text-align: left;
  padding: 0;
  transition: border-color 0.12s ease, transform 0.12s ease;
}
.mm-dev-switcher__opt:hover { transform: translateY(-1px); border-color: #c8b07a; }
.mm-dev-switcher__opt--active {
  border-color: #d4a853;
  box-shadow: 0 0 0 2px rgba(212, 168, 83, 0.30);
}

.mm-dev-switcher__swatch {
  display: block;
  height: 56px;
  background-size: cover;
  background-position: center;
}
.mm-dev-switcher__name {
  display: block;
  padding: 6px 8px;
  font-size: 11px;
  font-weight: 600;
  color: #2a2a2a;
  background: #fff;
}

.mm-dev-switcher__copy {
  margin-top: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  background: #f6f4ef;
  font-size: 11px;
  color: #444;
  cursor: pointer;
}
.mm-dev-switcher__copy:hover { background: #ece8de; }
