/* Style Lab — shared base: reset + style switcher (theme-neutral) */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; }
img { max-width: 100%; }
#app { min-height: 100vh; }
button { font: inherit; cursor: pointer; }

/* ---- floating style switcher (fixed, consistent across themes) ---- */
.switcher {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.sw-btn {
  display: block;
  margin-left: auto;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  background: rgba(15, 18, 24, 0.92);
  color: #e6eaf0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
}
.sw-btn:hover { border-color: #7cc7f0; color: #7cc7f0; }
.sw-panel {
  position: absolute;
  right: 0;
  bottom: 52px;
  width: 200px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 18, 24, 0.96);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(10px);
  display: none;
}
.switcher.open .sw-panel { display: block; }
.sw-title {
  margin: 2px 8px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9aa4b2;
}
.sw-item {
  display: block;
  padding: 8px 10px;
  border-radius: 8px;
  color: #d6dce5;
  text-decoration: none;
  font-size: 13px;
}
.sw-item:hover { background: rgba(124, 199, 240, 0.12); color: #7cc7f0; }
.sw-item.on { color: #7cc7f0; font-weight: 700; }
.sw-item.on::before { content: "● "; font-size: 8px; vertical-align: 2px; }
.sw-gallery { border-top: 1px solid rgba(148, 163, 184, 0.25); margin-top: 6px; padding-top: 10px; }

/* ---- fixed social rail (left edge, wide screens) ---- */
.social-rail {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-family: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
.social-rail a {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 18, 24, 0.92);
  color: #d6dce5;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  transition: all 0.2s ease;
}
.social-rail a:hover {
  color: #7cc7f0;
  border-color: #7cc7f0;
  transform: translateX(3px);
}
@media (max-width: 1100px) {
  .social-rail { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .social-rail a { transition: none; }
}
