/* Overlay-only specular rim. Does not replace tab fill, padding, or type. */

.specular-button {
  position: relative;
}

.specular-button__fx {
  position: absolute;
  inset: -8px;
  pointer-events: none;
  z-index: 1;
}

.specular-button__fx canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.specular-button__label {
  position: relative;
  z-index: 2;
}

.zones-folder-tab.specular-button {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  border-radius: 10px;
}

.zones-folder-tab.specular-button .specular-button__label {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.zones-folder-tabs:has(.specular-button) {
  padding: 8px 8px 10px;
}

/* Selection is text color only. Frame stays put; specular shine is the highlight. */
.app--alpha .zones-folder-tab.specular-button:hover {
  background: rgba(8, 10, 14, 0.35);
  border-color: rgba(255, 255, 255, 0.15);
}

.app--alpha .zones-folder-tab.specular-button.is-active {
  background: rgba(8, 10, 14, 0.35);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  .specular-button__fx {
    display: none;
  }
}
