/* Aurora ToolHub — command palette, quick dock, shortcuts */

.aurora-hub-trigger {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  border-radius: .65rem;
  border: 1px solid rgba(148, 163, 184, .22);
  background: rgba(148, 163, 184, .08);
  padding: .35rem .65rem;
  font-size: 11px;
  font-weight: 700;
  color: #cbd5e1;
  transition: .18s;
  white-space: nowrap;
}
.aurora-hub-trigger:hover {
  border-color: rgba(34, 211, 238, .5);
  color: #a5f3fc;
  background: rgba(34, 211, 238, .1);
}
body.studio-app .aurora-hub-trigger {
  border-color: rgba(30, 58, 103, .18);
  background: rgba(255, 255, 255, .12);
  color: #e8edf9;
}
body.studio-app .aurora-hub-trigger:hover {
  border-color: rgba(255, 122, 24, .5);
  color: #ffb877;
  background: rgba(255, 122, 24, .12);
}
body.nova-app .aurora-hub-trigger:hover {
  border-color: rgba(53, 226, 200, .5);
  color: #7ff3e4;
}
.aurora-hub-kbd {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: .15rem .35rem;
  border-radius: .3rem;
  background: rgba(0, 0, 0, .25);
  border: 1px solid rgba(255, 255, 255, .12);
}
body.studio-app .aurora-hub-kbd { background: rgba(16, 29, 54, .15); border-color: rgba(16, 29, 54, .12); color: #64748b; }

/* Command palette */
#auroraPalette {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 12vh 1rem 1rem;
  background: rgba(2, 6, 23, .62);
  backdrop-filter: blur(8px);
}
#auroraPalette.open { display: flex; }
.aurora-palette-box {
  width: min(560px, 96vw);
  max-height: min(70vh, 520px);
  display: flex;
  flex-direction: column;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, .2);
  background: rgba(15, 23, 42, .96);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9);
  overflow: hidden;
  animation: auroraHubIn .22s cubic-bezier(.22, 1, .36, 1);
}
body.studio-app .aurora-palette-box {
  background: rgba(255, 255, 255, .97);
  border-color: rgba(30, 58, 103, .14);
  color: #101d36;
}
#auroraPaletteInput {
  width: 100%;
  border: none;
  border-bottom: 1px solid rgba(148, 163, 184, .15);
  background: transparent;
  padding: 1rem 1.1rem;
  font-size: 15px;
  font-weight: 600;
  color: inherit;
  outline: none;
}
body.studio-app #auroraPaletteInput { border-color: rgba(30, 58, 103, .1); }
#auroraPaletteList {
  overflow-y: auto;
  padding: .5rem;
  flex: 1;
}
.aurora-palette-group {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #64748b;
  padding: .5rem .65rem .25rem;
}
.aurora-palette-item {
  display: flex;
  align-items: center;
  gap: .65rem;
  width: 100%;
  border: none;
  border-radius: .65rem;
  background: transparent;
  padding: .55rem .65rem;
  text-align: left;
  font-size: 13px;
  font-weight: 600;
  color: inherit;
  cursor: pointer;
  transition: .15s;
}
.aurora-palette-item:hover,
.aurora-palette-item.active {
  background: rgba(34, 211, 238, .12);
  color: #a5f3fc;
}
body.studio-app .aurora-palette-item:hover,
body.studio-app .aurora-palette-item.active {
  background: rgba(255, 122, 24, .1);
  color: #ea6606;
}
.aurora-palette-icon {
  width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: .45rem;
  background: rgba(148, 163, 184, .1);
  font-size: 14px;
  flex-shrink: 0;
}
.aurora-palette-label { flex: 1; min-width: 0; }
.aurora-palette-keys {
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  flex-shrink: 0;
}
.aurora-palette-empty {
  padding: 2rem;
  text-align: center;
  font-size: 12px;
  color: #64748b;
}

/* Quick access dock */
#auroraQuickDock {
  position: fixed;
  z-index: 95;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: flex-end;
  gap: .4rem;
  max-width: calc(100vw - 1.5rem);
  pointer-events: none;
}
#auroraQuickDock > * { pointer-events: auto; }
.aurora-dock-main {
  display: flex;
  align-items: center;
  gap: .25rem;
  padding: .35rem .45rem;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, .2);
  background: rgba(15, 23, 42, .88);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .85);
}
body.studio-app .aurora-dock-main {
  background: rgba(255, 255, 255, .92);
  border-color: rgba(30, 58, 103, .14);
  box-shadow: 0 16px 40px -12px rgba(16, 29, 54, .25);
}
.aurora-dock-btn {
  width: 2.35rem;
  height: 2.35rem;
  display: grid;
  place-items: center;
  border: none;
  border-radius: 50%;
  background: transparent;
  font-size: 15px;
  cursor: pointer;
  transition: .18s;
  color: #cbd5e1;
}
body.studio-app .aurora-dock-btn { color: #334155; }
.aurora-dock-btn:hover {
  background: rgba(34, 211, 238, .15);
  color: #67e8f9;
  transform: translateY(-2px);
}
body.studio-app .aurora-dock-btn:hover {
  background: rgba(255, 122, 24, .12);
  color: #ea6606;
}
.aurora-dock-fab {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #22d3ee, #0891b2);
  color: #0f172a;
  font-size: 18px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 24px -6px rgba(34, 211, 238, .65);
  transition: .2s;
}
body.studio-app .aurora-dock-fab {
  background: linear-gradient(135deg, #ff7a18, #ff9b4d);
  color: #fff;
  box-shadow: 0 8px 24px -6px rgba(255, 122, 24, .55);
}
body.nova-app .aurora-dock-fab {
  background: linear-gradient(135deg, #35e2c8, #06a892);
}
.aurora-dock-fab:hover { transform: scale(1.06); }
.aurora-dock-expanded {
  display: none;
  flex-wrap: wrap;
  gap: .35rem;
  max-width: min(92vw, 360px);
  padding: .5rem;
  margin-bottom: .35rem;
  border-radius: 1rem;
  border: 1px solid rgba(148, 163, 184, .18);
  background: rgba(15, 23, 42, .94);
  backdrop-filter: blur(16px);
}
body.studio-app .aurora-dock-expanded {
  background: rgba(255, 255, 255, .96);
  border-color: rgba(30, 58, 103, .12);
}
#auroraQuickDock.expanded .aurora-dock-expanded { display: flex; }
.aurora-dock-chip {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border-radius: .55rem;
  border: 1px solid rgba(148, 163, 184, .16);
  background: rgba(148, 163, 184, .06);
  padding: .35rem .55rem;
  font-size: 11px;
  font-weight: 700;
  color: inherit;
  cursor: pointer;
  transition: .15s;
}
.aurora-dock-chip:hover {
  border-color: rgba(34, 211, 238, .45);
  background: rgba(34, 211, 238, .1);
}
body.studio-app .aurora-dock-chip:hover {
  border-color: rgba(255, 122, 24, .4);
  background: rgba(255, 122, 24, .08);
}

/* Shortcuts overlay */
#auroraShortcuts {
  position: fixed;
  inset: 0;
  z-index: 290;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(2, 6, 23, .65);
  backdrop-filter: blur(6px);
}
#auroraShortcuts.open { display: flex; }
.aurora-shortcuts-box {
  width: min(480px, 96vw);
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(148, 163, 184, .2);
  background: rgba(15, 23, 42, .96);
  animation: auroraHubIn .22s cubic-bezier(.22, 1, .36, 1);
}
body.studio-app .aurora-shortcuts-box {
  background: #fff;
  border-color: rgba(30, 58, 103, .12);
  color: #101d36;
}
.aurora-shortcuts-box h2 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: .75rem;
}
.aurora-shortcut-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: .4rem 0;
  font-size: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, .08);
}
.aurora-shortcut-row kbd {
  font-size: 10px;
  font-weight: 700;
  padding: .2rem .45rem;
  border-radius: .35rem;
  background: rgba(148, 163, 184, .12);
  border: 1px solid rgba(148, 163, 184, .2);
  white-space: nowrap;
}

@keyframes auroraHubIn {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to { opacity: 1; transform: none; }
}

@media (min-width: 1024px) {
  #auroraQuickDock { bottom: 1.25rem; }
}

@media (max-width: 640px) {
  .aurora-hub-trigger .aurora-hub-label { display: none; }
  #auroraQuickDock { bottom: .75rem; }
}
