/* ATLAS — общая оболочка: боковая панель + ширина контента */
@import url("./nav-icons.css?v=20261015ap");
@import url("./sidebar-panel.css?v=20261018a");

:root {
  --atlas-content-max: 1520px;
  --atlas-page-gutter: 1.75rem;
  --atlas-sidebar-w: 11.25rem;
  --atlas-shell-bg: rgba(4, 12, 20, 0.98);
  --atlas-shell-bg-end: rgba(2, 6, 12, 0.96);
  --atlas-shell-line: rgba(61, 231, 255, 0.16);
  --atlas-shell-accent: #3de7ff;
  --atlas-shell-accent-soft: rgba(61, 231, 255, 0.06);
  --atlas-shell-accent-border: rgba(61, 231, 255, 0.28);
  --atlas-shell-ink: #06101a;
  --atlas-shell-sand: #e8eef4;
  --atlas-shell-mist: #9eb6c9;
  --atlas-shell-font-display: "Orbitron", system-ui, sans-serif;
}

body.atlas-shell {
  padding-left: var(--atlas-sidebar-w);
  box-sizing: border-box;
}

.atlas-sidebar {
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 60;
  width: var(--atlas-sidebar-w);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1.1rem 0.7rem 1.25rem;
  box-sizing: border-box;
  background:
    linear-gradient(90deg, transparent 0%, rgba(61, 231, 255, 0.05) 100%),
    linear-gradient(180deg, var(--atlas-shell-bg) 0%, var(--atlas-shell-bg-end) 100%);
  border-right: 1px solid rgba(61, 231, 255, 0.22);
  box-shadow:
    inset -1px 0 0 rgba(61, 231, 255, 0.06),
    6px 0 28px rgba(0, 0, 0, 0.28);
}

.atlas-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  text-decoration: none;
  flex-shrink: 0;
}

.atlas-brand--side {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  width: 100%;
  padding: 0.55rem 0.35rem;
  text-align: center;
}

.atlas-brand--side .atlas-logo {
  width: 60px;
  height: 60px;
  display: block;
  transform-origin: center;
  filter: drop-shadow(0 0 10px rgba(61, 231, 255, 0.35));
  animation: atlas-logo-live 4.2s ease-in-out infinite;
}

.atlas-brand--side strong {
  font-family: var(--atlas-shell-font-display);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  font-weight: 600;
}

@keyframes atlas-logo-live {
  0%,
  100% {
    transform: translateY(0) scale(1);
    filter: drop-shadow(0 0 10px rgba(61, 231, 255, 0.32)) drop-shadow(0 0 22px rgba(240, 192, 32, 0.12));
  }
  50% {
    transform: translateY(-4px) scale(1.04);
    filter: drop-shadow(0 0 18px rgba(61, 231, 255, 0.55)) drop-shadow(0 0 36px rgba(240, 192, 32, 0.22));
  }
}

.atlas-toolbar {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  min-width: 0;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.atlas-nav-btn {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  color: var(--atlas-shell-sand);
  text-decoration: none;
  font-family: var(--atlas-shell-font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.62rem 0.7rem;
  border: 1px solid rgba(61, 231, 255, 0.1);
  border-radius: 8px;
  background: linear-gradient(
    145deg,
    rgba(61, 231, 255, 0.1) 0%,
    rgba(20, 60, 80, 0.14) 48%,
    rgba(61, 231, 255, 0.05) 100%
  );
  transition:
    color 0.28s ease,
    background 0.28s ease,
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease;
}

.atlas-nav-btn:hover,
.atlas-nav-btn:focus-visible {
  color: #f4fcff;
  background: linear-gradient(
    108deg,
    rgba(40, 120, 150, 0.2) 0%,
    rgba(180, 236, 255, 0.34) 42%,
    rgba(240, 250, 255, 0.18) 58%,
    rgba(61, 231, 255, 0.14) 100%
  );
  border-color: rgba(200, 240, 255, 0.38);
  box-shadow:
    0 0 0 1px rgba(200, 240, 255, 0.16),
    0 0 18px rgba(61, 231, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
  outline: none;
  transform: translateX(4px);
}

.atlas-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.75rem 1rem;
  padding: 0.85rem 1.5rem;
  background: linear-gradient(180deg, rgba(2, 6, 12, 0.88) 0%, rgba(2, 6, 12, 0.35) 70%, transparent 100%);
  box-sizing: border-box;
}

.atlas-topbar-end {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem 1rem;
  margin-left: auto;
  min-width: 0;
}

@media (prefers-reduced-motion: reduce) {
  .atlas-brand--side .atlas-logo {
    animation: none !important;
    transform: none !important;
    filter: drop-shadow(0 0 10px rgba(61, 231, 255, 0.35));
  }
}

/* Мобильная панель — shared/sidebar-panel.css */
