:root {
  --menu-bg: #1e1e1e;
  --menu-hover: #2a2a2a;
  --menu-active: #007acc;
  --menu-text: hsla(0,0%,100%,.411);
  --menu-text-active: #ffffff;
}
html {
  font-size: clamp(16px, 1vw + 12px, 22px);
  
}


/* Базовые стили */
body {
  margin: 0;
  font-family: sans-serif;
  color: #ddd;
  font-family: system-ui, sans-serif;
  /* background: linear-gradient(to bottom, #0A3139, #000000); */
  background: radial-gradient(circle at top right, #0A3139 0%, transparent 70%), radial-gradient(circle at bottom left, #0A3139 0%, transparent 70%), #000000;

  background-attachment: fixed;

  scrollbar-color: #999 transparent; 
}



/* Основное меню слева */
#sidebar {
  width: 220px;
  height: 100vh;
  position: fixed;
  left: 0;
  top: 0;
  overflow-y: auto;
  padding-top: 20px;
  background: rgba(0, 0, 0, 0.35); 
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px); 
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  /* box-shadow: inset 0 0 20px rgba(255,255,255,0.03); */
}



/* Подменю справа от основного */
#sub-sidebar {
  width: 240px;
  height: 100vh;
  position: fixed;
  left:0;
  top: 0;
  overflow-y: auto;
  padding-top: 20px; 
  background: rgba(0, 0, 0, 0.28); 
  backdrop-filter: blur(10px); 
  -webkit-backdrop-filter: blur(10px); 
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  
}

#sub-sidebar::-webkit-scrollbar {
  scrollbar-width: thin; 
  width: 1vw;
}


#sub-sidebar::-webkit-scrollbar-track {
  background: #1f1f1f;
}

#sub-sidebar::-webkit-scrollbar-thumb {
  background: #444;
  border-radius: 2px;
}

#sub-sidebar::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Основное меню */
#main-nav {
  /* background: var(--menu-bg); */
  padding: 20px 0;
  /* border-right: 1px solid #333; */
  position: relative;
}

#main-nav a {
  display: block;
  padding: 12px 20px;
  color: var(--menu-text);
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

#main-nav a,
#sub-nav a {
  transition: background 0.25s ease, color 0.25s ease;
}

#main-nav a.active,
#sub-nav a.active {
  color: #00eaff;
  text-shadow:
    0 0 6px #00eaff,
    0 0 12px #00eaff,
    0 0 18px #00aaff;
}

#main-nav a {
  position: relative;
  transition: color 0.5s ease, text-shadow 0.5s ease;
}

#main-nav a:hover {
  background: linear-gradient(to right,
  rgba(255, 255, 255, 0.05),
  rgba(255, 255, 255, 0)
);
  color: #ffffff;
  text-shadow: 0 0 6px rgba(255,255,255,0.6);
  /* box-shadow: 0 0 8px rgba(0, 170, 255, 0.4); */
}


#main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(to right,
    rgba(0, 170, 255, 0.25) 0%,
    rgba(0, 170, 255, 0.10) 40%,
    rgba(0, 170, 255, 0.00) 100%
  );
  border-radius: inherit;
  filter: blur(6px);
  opacity: 0; /* скрыто */ 
  transition: opacity 0.5s ease; /* плавное появление */
}

#main-nav a:hover::after{ 
  opacity: 1; 
}
/* Подменю */
#sub-nav {
  transition: max-height 0.35s ease;
  padding-bottom: 20px;
}

#sub-nav a {
  display: block;
  padding: 10px 25px;
  color: var(--menu-text);
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
  position: relative; 
  overflow: hidden;
  transition: color 0.5s ease, text-shadow 0.5s ease;
}

#sub-nav a:hover {
  color: #ffffff;
  text-shadow: 0 0 6px rgba(255,255,255,0.6);
}


#sub-nav a::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 140%;
  height: 140%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  color: white;
  background: radial-gradient(
    circle,
    rgba(0, 170, 255, 0.25) 0%,
    rgba(0, 170, 255, 0.10) 40%,
    rgba(0, 170, 255, 0.00) 70%
  );

  filter: blur(10px);
  opacity: 0; /* скрыто по умолчанию */ 
  transition: opacity 0.5s ease; /* плавное появление */ 
}

 #sub-nav a:hover::after { 
  opacity: 1; /* плавно проявляется */ 

}


#main-nav a,
#sub-nav a {
  position: relative;
}

/* Контент */
#content {
  margin-left: 460px;
  padding: 40px;
  max-width: 900px;
  /* opacity: 1;
  transition: opacity 0.3s ease; */

  opacity: 0;
  transform: translateY(10px);
  filter: blur(4px);

  transition:
    opacity 0.35s ease,
    transform 0.35s ease,
    filter 0.35s ease;

}

#content.fade {
  opacity: 0;
}

#content.loaded {
  opacity: 1;
  transform: translateY(0);
  filter: blur(0);
}

/* === картинка === */

 img {
  /* opacity: 0; */
  /* transition: opacity 0.3s ease; */
  height: auto;
  width: 50%;
}

/* img.loaded {
  opacity: 1;
  background: none;
  border: none;
}  */

/* === картинка на весь экран === */

/* Оверлей */
#img-viewer {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  z-index: 9999;
}

/* Активное состояние */
#img-viewer.active {
  opacity: 1;
  pointer-events: auto;
}

/* Картинка в полноэкранном режиме */
#img-full {
  max-width: 90%;
  max-height: 90%;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(0,0,0,0.5);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

/* Анимация увеличения */
#img-viewer.active #img-full {
  transform: scale(1);
}
#img-viewer.active img{
  opacity: 1;
  transform: scale(1);

}

#img-viewer img {
  width: 80vw !important;
  height: auto !important;
  /* max-height: 90vh; */
  object-fit: contain;
  transform: scale(0.9);
  transition: transform 0.3s ease;

}

/* Крестик */
#img-close {
  position: absolute;
  top: 30px;
  right: 40px;
  font-size: 32px;
  color: white;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s ease;
}

#img-close:hover {
  opacity: 0.6;
}

#content img {
  opacity: 0;
  transition: opacity 0.3s ease;
}

#content img.loaded {
  opacity: 1;
}

/* линия которая бегает по меню */
#active-line {
  position: absolute;
  left: 0;
  width: 4px;
  background: linear-gradient(
    to bottom,
    #00eaff,
    #0088ff
  );
  box-shadow:
    0 0 8px #00eaff,
    0 0 16px #00eaff,
    0 0 24px #0088ff,
    inset 0 0 6px #00eaff;
  border-radius: 2px;
  transition: top 0.25s ease, height 0.25s ease;
  z-index: 1;
}




/* === блоки главного контента */
/* ------------------------------
   1. Главный заголовок страницы
------------------------------ */
h1 {
  font-weight: 700;
  margin-bottom: 25px;
  color: #ffffff;
  border-bottom: 2px solid rgba(255,255,255,0.1);
  padding-bottom: 10px;
}

/* ------------------------------
   2. Заголовки разделов
------------------------------ */
h2 {
  font-weight: 600;
  margin-top: 40px;
  margin-bottom: 15px;
  color: #00eaff;
}

/* ------------------------------
   3. Подзаголовки
------------------------------ */
h3 {
  font-weight: 500;
  margin-top: 25px;
  margin-bottom: 10px;
  color: #7ddfff;
}

/* ------------------------------
   4. Параграфы
------------------------------ */
p {
  line-height: 1.6;
  margin: 12px 0;
  color: #e0e0e0;
}

/* ------------------------------
   5. Списки
------------------------------ */
ul, ol {
  margin: 12px 0 12px 25px;
  line-height: 1.6;
  color: #dcdcdc;
}

/* расстояние между пунктами */
ul li,
ol li {
  margin-bottom:18px; /* можешь поставить 10–14px если хочешь больше */
  line-height: 1.6;   /* стандартная высота строк внутри li */
}

/* убираем отступ у последнего элемента */
ul li:last-child,
ol li:last-child {
  margin-bottom: 0;
}


/* ------------------------------
   6. Названия нод Unreal Engine
------------------------------ */
.node {
  display: inline-block;
  padding: 6px 12px;
  background: #00000015;
  border-radius: 3px;
  border-top: 6px solid #3aff855b; /* цвет полосы сверху */
  color: #d9f3ff;
  font-family: Consolas, monospace;
  margin: 4px 0;
  /* user-select: none; */
  box-shadow: 0 0 6px rgba(0, 170, 255, 0.4), inset 0 0 4px rgba(0, 170, 255, 0.2);
}

/* ------------------------------
   7. Кнопки интерфейса
------------------------------ */
.ui-btn {
  display: inline-block;
  padding: 4px 10px;
  background: #1a1a1a;
  border: 1px solid #3a3a3a;
  border-radius: 6px;
  color: #e6e6e6;
  font-weight: 500;
  font-family: Consolas, monospace;
  box-shadow:
    0 2px 0 #000,
    inset 0 1px 0 rgba(255,255,255,0.1);
  /* user-select: none; */
  
}

/* ------------------------------
   8. Блоки кода
------------------------------ */
.code {
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 12px;
  border-radius: 6px;
  font-family: Consolas, monospace;
  white-space: pre-wrap;
  margin: 15px 0;
  color: #c8f7ff;
}

.image-block { 
  margin: 20px 0; 
} 
.image-block img { 
  max-width: 100%; 
  border-radius: 8px; 
  border: 1px solid rgba(255,255,255,0.1); 
  box-shadow: 0 0 12px rgba(0, 234, 255, 0.3); }

/* ------------------------------
   9. Предупреждение об устаревших данных
------------------------------ */
.warning-red {
  padding: 18px 20px;
  margin: 25px 0;
  border-radius: 8px;
  background: rgba(255, 60, 60, 0.12);
  border: 1px solid rgba(255, 100, 100, 0.25);
  color: #ffb3b3;
  line-height: 1.5;
  position: relative;
  padding-left: 55px;
  box-shadow:
    0 0 12px rgba(255, 60, 60, 0.25),
    inset 0 0 8px rgba(255, 60, 60, 0.15);
}

.warning-red::before {
  content: "⚠";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 26px;
  color: #ff6b6b;
  text-shadow: 0 0 8px rgba(255, 60, 60, 0.6);
  
}

/* ------------------------------
   10. Предупреждение об требование проверки и дополнений
------------------------------ */
.warning-yellow {
  padding: 18px 20px;
  margin: 25px 0;
  border-radius: 8px;

  background: rgba(255, 200, 60, 0.12);
  border: 1px solid rgba(255, 210, 100, 0.25);

  color: #ffe9b3;
  line-height: 1.5;
  position: relative;
  padding-left: 55px;

  box-shadow:
    0 0 12px rgba(255, 200, 60, 0.25),
    inset 0 0 8px rgba(255, 200, 60, 0.15);
}

.warning-yellow::before {
  content: "✎";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: #ffd86b;
  text-shadow: 0 0 8px rgba(255, 200, 60, 0.6);
}
/* ------------------------------
   11. Предупреждение об готовой информации
------------------------------ */
.warning-green {
  padding: 18px 20px;
  margin: 25px 0;
  border-radius: 8px;

  background: rgba(60, 255, 120, 0.12);
  border: 1px solid rgba(100, 255, 150, 0.25);



  color: #c7ffd9;
  line-height: 1.5;
  position: relative;
  padding-left: 55px;

  box-shadow:
    0 0 12px rgba(60, 255, 120, 0.25),
    inset 0 0 8px rgba(60, 255, 120, 0.15);
}

.warning-green::before {
  content: "✔";
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: #6bff9a;
  text-shadow: 0 0 8px rgba(60, 255, 120, 0.6);
}


/* Кнопка скрытия панели */
.sidebar-toggle {
  position: fixed;
  top: 15px;
  left: 20px; /* рядом с панелью */
  z-index: 9999;
  
  width: 32px;
  height: 32px;
  border-radius: 6px;

  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;

  backdrop-filter: blur(6px);
  cursor: pointer;

  transition: left 0.3s ease, background 0.3s ease;
}

/* Когда панель скрыта — кнопка смещается */
.sidebar-collapsed .sidebar-toggle {
  left: 20px;
}

/* Анимация боковой панели */
#sidebar {
  width: 240px;
  transition: transform 0.35s ease;
}

.sidebar-collapsed #sidebar {
  transform: translateX(-240px);
}

/* Чтобы контент смещался */
#sub-sidebar {
  transition: margin-left 0.35s ease;
  margin-left: 240px;
}

.sidebar-collapsed #sub-sidebar {
  margin-left: 0;
}





/* === adaptaiton === */

@media (max-width: 900px) {
  #sidebar {
    width: 160px;
  }

  #sub-sidebar {
    width: 180px;
    margin-left: 160px;
  }

  #content {
    margin-left: 340px; /* 160 + 180 */
  }
}

@media (max-width: 700px) {
  #sidebar {
    width: 130px;
  }

  #sub-sidebar {
    width: 150px;
    margin-left: 130px;
  }

  #content {
    margin-left: 270px;
  }
}

