/* Golden Gate OS — shell polish
   Opaque app content, selection rings, status bars, dock badges.
   Glass stays on floating chrome; content panes stay solid. */

:root {
  --gg-content-bg: #1c1c1e;
  --gg-content-bg-elevated: #2c2c2e;
  --gg-status-h: 24px;
  --gg-selection-ring: color-mix(in srgb, var(--accent) 55%, transparent);
}

html[data-theme="light"] {
  --gg-content-bg: #ffffff;
  --gg-content-bg-elevated: #f5f5f7;
}

/* App bodies — opaque, not glass (Launchpad keeps its blur overlay) */
.gg-app:not(.gg-launchpad) {
  background: var(--gg-content-bg);
}

.gg-app .gg-main,
.gg-app .gg-scroll,
.gg-app [data-content] {
  background: var(--gg-content-bg);
}

/* Selection rings — soft, concentric with control radii */
.gg-list-item.active,
.gg-finder-icon.selected,
.gg-finder-list tr.selected td,
.gg-trash-item.selected {
  outline: none;
}

.gg-list-item:focus-visible,
.gg-finder-icon:focus-visible,
.gg-icon-btn:focus-visible,
.gg-btn:focus-visible,
.gg-launchpad-app:focus-visible,
.dock-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Launchpad's keyboard focus uses the same conformal hover plate. */
.gg-launchpad-app:focus-visible {
  outline: none;
}

.gg-list-item.active {
  box-shadow: inset 0 0 0 1px var(--gg-selection-ring);
}

.gg-finder-sidebar .gg-list-item.active {
  box-shadow: none;
}

/* Status bars */
.gg-status-bar,
.gg-finder-status,
.gg-app-status {
  height: var(--gg-status-h);
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 12px;
  font-size: 11px;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--gg-content-bg) 92%, black 8%);
}

html[data-theme="light"] .gg-status-bar,
html[data-theme="light"] .gg-finder-status,
html[data-theme="light"] .gg-app-status {
  background: var(--gg-content-bg-elevated);
}

/* Dock notification badges */
.dock-item {
  position: relative;
}

.dock-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  z-index: 2;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: var(--danger, #ff453a);
  border: 1.5px solid color-mix(in srgb, var(--gg-content-bg) 30%, transparent);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  pointer-events: none;
  transform-origin: center;
  animation: none;
  opacity: 1;
  transform: scale(1);
}

.dock-badge:empty,
.dock-badge[data-count="0"] {
  display: none;
}

.dock-badge.dot {
  min-width: 9px;
  width: 9px;
  height: 9px;
  padding: 0;
  top: 0;
  right: 0;
  font-size: 0;
}

@keyframes gg-badge-in {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* Control hover/active polish (transform / opacity only for motion) */
.gg-chip:hover,
.gg-seg button:hover {
  opacity: 0.92;
}

.gg-chip:active,
.gg-seg button:active {
  transform: scale(0.96);
}

/* Concentric inner radii helper */
.gg-app .gg-card,
.gg-app .gg-panel {
  border-radius: calc(var(--window-radius, 16px) - 6px);
}
