/* trbexe.ml v4 counter strike source */

/* Оптимизированный импорт шрифтов в один поток */
@import url('https://fonts.googleapis.com/css2?family=Geologica:wght@400;600&family=JetBrains+Mono:wght@300;700&family=Jost:wght@400;600&display=swap');

html { color-scheme: light dark; } /* отвечает за тему в зависимости от системы */

body { 
  margin: 0 auto; 
  font-family: 'Geologica', sans-serif; 
  color: #ececec; 
  background-color: #1A1A1E;

  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    radial-gradient(circle at top center, #1b202b 0%, #0b0c0e 60%);

  background-size: 30px 30px, 30px 30px, 100% 100%;
  background-repeat: repeat, repeat, no-repeat;
  background-attachment: fixed;
}

/* --- ПРИЯТНЫЙ КАСТОМНЫЙ СКРОЛЛБАР --- */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: #1A1A1E;
}
::-webkit-scrollbar-thumb {
  background: #2a2d35;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #5865F2;
}

@media (prefers-color-scheme: light) {
  body {
    color: #1a1a1a; 
    background-color: #f0f2f5;
    background-image: 
      linear-gradient(rgba(0, 0, 0, 0.05) 1px, transparent 1px),
      linear-gradient(90deg, rgba(0, 0, 0, 0.05) 1px, transparent 1px),
      radial-gradient(circle at top center, #ffffff 0%, #e2e8f0 100%);
  }
  
  /* Светлая тема для дополнительных элементов */
  .card { background: rgba(255, 255, 255, 0.8) !important; color: #1a1a1a; }
  input[type="text"], input[type="password"] { 
    background: #fff !important; 
    color: #1a1a1a !important; 
    border-color: #ccc !important;
  }
}

::selection, ::-moz-selection {
  color: black;
  background: lime;
}

/* --- АНИМАЦИИ --- */

/* Плавное появление (без лагов и сдвига контента) */
@keyframes fadeInUp {
  0% {
    transform: translateY(30px);
    opacity: 0;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}
.fadeInUp-animation {
  animation: 0.6s fadeInUp cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Прогресс-бар на GPU */
@keyframes progress {
  0% { transform: scaleX(0); }
  100% { transform: scaleX(0.8); }
}

/* Лоадер */
@keyframes rotation {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Глитч */
@keyframes glitch {
  0% { text-shadow: 1px 0 0 red, -1px 0 0 cyan; }
  50% { text-shadow: -1px 0 0 red, 1px 0 0 cyan; }
  100% { text-shadow: 1px 0 0 red, -1px 0 0 cyan; }
}


/* --- КОМПОНЕНТЫ И ПРИЯТНЫЕ ЦВЕТА --- */

button {
  font-family: 'Geologica', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  
  background: linear-gradient(180deg, #2a2d35 0%, #1e2025 100%);
  color: white;
  
  border: 1px solid #3a3d45; /* Пофикшен синтаксис */
  border-radius: 6px;
  padding: 12px 28px;
  
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

button:hover {
  border-color: #5865F2;
  color: white;
  box-shadow: 0 0 15px rgba(88, 101, 242, 0.4);
  transform: translateY(-2px);
}

/* Поля ввода (Инпуты) */
input[type="text"], input[type="password"] {
  font-family: 'JetBrains Mono', monospace;
  background: rgba(30, 32, 37, 0.8);
  border: 1px solid #333;
  color: #ececec;
  padding: 12px 16px;
  border-radius: 6px;
  font-size: 14px;
  transition: all 0.2s ease;
  outline: none;
  width: 100%;
  max-width: 300px;
  box-sizing: border-box;
}
input[type="text"]:focus, input[type="password"]:focus {
  border-color: lime;
  box-shadow: 0 0 10px rgba(0, 255, 0, 0.15);
}

/* Карточки (Контейнеры с эффектом стекла) */
.card {
  background: rgba(32, 34, 37, 0.6);
  border: 1px solid rgba(88, 101, 242, 0.2);
  border-radius: 8px;
  padding: 20px;
  margin: 15px 0;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.card:hover {
  border-color: #5865F2;
  transform: translateY(-2px);
}

/* Бейджи статусов */
.badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-family: 'JetBrains Mono', monospace;
  font-weight: bold;
  letter-spacing: 0.5px;
}
.badge.green { background: rgba(0, 255, 0, 0.1); color: lime; border: 1px solid lime; }
.badge.red { background: rgba(255, 0, 0, 0.1); color: #ff3333; border: 1px solid #ff3333; }
.badge.blue { background: rgba(88, 101, 242, 0.1); color: #5865F2; border: 1px solid #5865F2; }

/* Размытый текст-спойлер (открывается при наведении) */
.secret-spoiler {
  background: #333;
  color: transparent;
  filter: blur(4px);
  cursor: help;
  transition: all 0.2s ease;
}
.secret-spoiler:hover {
  background: transparent;
  color: inherit;
  filter: blur(0);
}

/* Бесконечный крутилка-лоадер */
.css-loader {
  width: 24px;
  height: 24px;
  border: 3px solid #5865F2;
  border-bottom-color: transparent;
  border-radius: 50%;
  display: inline-block;
  animation: rotation 0.6s linear infinite;
}

/* Ломающийся текст */
.glitch-text {
  font-family: 'JetBrains Mono', monospace;
  position: relative;
  animation: glitch 1s linear infinite;
}

/* Всплывающее уведомление */
.toast-alert {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #202225;
  border-left: 4px solid lime;
  padding: 15px 25px;
  font-family: 'JetBrains Mono', monospace;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  z-index: 9999;
}


/* --- ЛОГОТИПЫ --- */

.textlogo {
  font-family: 'JetBrains Mono', sans-serif;
  font-size: 50px;
  text-shadow: -5px -5px 0px #5865F2;
  background: radial-gradient(#EB459E 1px, transparent 1px);
  background-size: 4px 4px;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: table;
}

/* Исправлено: тень возвращена в оригинальные -5px -5px */
.textlogo-small {
  font-family: 'JetBrains Mono', sans-serif;
  font-size: 24px; 
  text-shadow: -5px -5px 0px #5865F2; 
  background: radial-gradient(#EB459E 1px, transparent 1px);
  background-size: 4px 4px;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: table;
}

a {
  transition: all 0.2s ease;
}

a:hover {
  color: black;
  background: lime;
}


/* --- НАВБАР (С ускорением эффекта стекла) --- */

.navbar {
  background: rgba(50, 57, 63, 0.7);
  backdrop-filter: blur(12px); 
  -webkit-backdrop-filter: blur(12px);
  transform: translateZ(0); /* Фикс микрофризов при скролле */
  transition: all 0.3s ease;
  position: sticky; 
  top: 0;
  z-index: 1000;
  box-shadow: 0 4px 20px rgba(0,0,0,0.4);
  overflow: hidden;
}

.navbar a {
  float: left;
  display: inline-block; 
  color: #f2f2f2;
  text-align: center;
  text-decoration: none;
  font-size: 17px;
  border-radius: 28px; 
  margin: 4px 8px;
  padding: 10px 20px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.navbar a:hover {
  background-color: rgba(88, 101, 242, 0.15); 
  box-shadow: 0 4px 12px rgba(0,0,0, 0.1);
  transform: translateY(-1px);
  backdrop-filter: blur(12px); 
  -webkit-backdrop-filter: blur(12px);
  color: #fff; 
  outline: none;
}

.navbar a.active {
  background-color: #5865F2; 
  color: white;
  box-shadow: 0 2px 8px rgba(88, 101, 242, 0.4);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.navbar a.disabled {
  pointer-events: none;
  color: rgba(255, 255, 255, 0.3);
  border-radius: 28px;
  background: repeating-linear-gradient(
    45deg,
    rgba(24, 26, 29, 0.5),
    rgba(24, 26, 29, 0.5) 10px,
    rgba(32, 34, 37, 0.5) 10px,
    rgba(32, 34, 37, 0.5) 20px
  );
  opacity: 0.6;
}

.navbar a.disabled:hover {
  background: transparent;
  cursor: not-allowed;
}

.navbar .hamb {
  display: none;
}


/* --- АДАПТИВНОСТЬ (МЕДИА-ЗАПРОСЫ) --- */

@media screen and (max-width: 600px) {
  .navbar a:not(:first-child) { display: none; }
  .navbar a.hamb {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .navbar.mobile { position: relative; }
  .navbar.mobile a.icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .navbar.mobile a {
    float: none;
    display: block;
    text-align: left;
  }
}