/* Обертка для центрирования логотипа */
.logo-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0 auto;
  padding: 20px 0;
}

/* Подключение кастомного шрифта */
@font-face {
  font-family: 'NeueMachina';
  src: url('https://static.tildacdn.com/37383531/NeueMachina-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
  font-display: block;
}

/* Основной контейнер логотипа */
.redaction-logo {
  position: relative;
  width: 200px;
  height: 200px;
  display: inline-block;
  cursor: pointer;
  margin: 0;
  visibility: hidden;
  animation: logo-appear 0.1s ease-in-out 0.5s forwards;
}

/* Основные кольца */
.outer-ring {
  position: absolute;
  width: 180px;
  height: 180px;
  border: 2px solid;
  border-image: linear-gradient(45deg, #00ff7f, #ff1493, #1e90ff, #ffa500) 1;
  border-radius: 50%;
  animation: rotate 20s linear infinite;
  top: 10px;
  left: 10px;
  will-change: transform;
  transform: translateZ(0);
}

.middle-ring {
  position: absolute;
  width: 140px;
  height: 140px;
  border: 1px dashed #444;
  border-radius: 50%;
  animation: rotate 15s linear infinite reverse;
  top: 30px;
  left: 30px;
  will-change: transform;
  transform: translateZ(0);
}

.inner-ring {
  position: absolute;
  width: 120px;
  height: 120px;
  background: radial-gradient(circle, rgba(26, 26, 26, 0.95) 0%, rgba(42, 42, 42, 0.9) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  backdrop-filter: blur(10px);
  box-shadow: 
    inset 0 0 15px rgba(0, 255, 127, 0.1),
    0 0 25px rgba(0, 0, 0, 0.3);
  top: 40px;
  left: 40px;
  transform: translateZ(0);
}

/* Текст логотипа с небольшим смещением вправо */
.logo-text {
  position: absolute;
  width: 100%;
  text-align: center;
  top: 50%;
  left: 2px; /* Сдвиг на 2px вправо */
  transform: translateY(-50%);
  z-index: 10;
  color: white;
  font-size: 16px;
  font-weight: 900;
  font-family: 'NeueMachina', sans-serif;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 
    0 0 8px rgba(0, 255, 127, 0.4),
    0 0 15px rgba(255, 20, 147, 0.3),
    0 0 20px rgba(30, 144, 255, 0.2);
  animation: text-glow 3s ease-in-out infinite alternate;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  padding: 0 10px;
  box-sizing: border-box;
}

/* Символы */
.symbol {
  position: absolute;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: bold;
  font-family: 'NeueMachina', sans-serif;
  box-shadow: 
    0 0 10px rgba(0, 0, 0, 0.3),
    inset 0 0 10px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  transition: transform 0.3s ease;
  will-change: transform;
  transform: translateZ(0);
}

.symbol-hash {
  background: linear-gradient(135deg, #00ff7f, #00e066);
  color: #1a1a1a;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  animation: symbol-pulse 2s ease-in-out infinite;
  animation-delay: 0s;
}

.symbol-asterisk {
  background: linear-gradient(135deg, #ff1493, #e6127a);
  color: white;
  right: -5px;
  top: 50%;
  transform: translateY(-50%) translateZ(0);
  animation: symbol-pulse 2s ease-in-out infinite;
  animation-delay: 0.5s;
}

.symbol-arrow {
  background: linear-gradient(135deg, #1e90ff, #1a7de6);
  color: white;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) translateZ(0);
  animation: symbol-pulse 2s ease-in-out infinite;
  animation-delay: 1s;
}

.symbol-minus {
  background: linear-gradient(135deg, #ffa500, #e6940a);
  color: white;
  left: -5px;
  top: 50%;
  transform: translateY(-50%) translateZ(0);
  animation: symbol-pulse 2s ease-in-out infinite;
  animation-delay: 1.5s;
}

/* Орбитальные элементы */
.orbital {
  position: absolute;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  animation: orbit 8s linear infinite;
  will-change: transform;
  transform: translateZ(0);
}

.orbital-1 {
  background: #00ff7f;
  top: 25px;
  left: 50%;
  transform-origin: 0 75px;
  animation-delay: 0s;
}

.orbital-2 {
  background: #ff1493;
  top: 25px;
  left: 50%;
  transform-origin: 0 60px;
  animation-delay: 2s;
}

.orbital-3 {
  background: #1e90ff;
  top: 25px;
  left: 50%;
  transform-origin: 0 90px;
  animation-delay: 4s;
}

.orbital-4 {
  background: #ffa500;
  top: 25px;
  left: 50%;
  transform-origin: 0 105px;
  animation-delay: 6s;
}

/* Энергетические волны */
.energy-wave {
  position: absolute;
  border: 1px solid;
  border-radius: 50%;
  animation: wave-expand 4s ease-out infinite;
  will-change: transform, opacity;
  transform: translateZ(0);
}

.wave-1 {
  width: 160px;
  height: 160px;
  border-color: rgba(0, 255, 127, 0.3);
  animation-delay: 0s;
  top: 20px;
  left: 20px;
}

.wave-2 {
  width: 170px;
  height: 170px;
  border-color: rgba(255, 20, 147, 0.3);
  animation-delay: 1s;
  top: 15px;
  left: 15px;
}

.wave-3 {
  width: 180px;
  height: 180px;
  border-color: rgba(30, 144, 255, 0.3);
  animation-delay: 2s;
  top: 10px;
  left: 10px;
}

/* Световые эффекты */
.glow-effect {
  position: absolute;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(0, 255, 127, 0.1) 0%,
    rgba(255, 20, 147, 0.1) 25%,
    rgba(30, 144, 255, 0.1) 50%,
    rgba(255, 165, 0, 0.1) 75%,
    transparent 100%
  );
  animation: glow-rotate 10s linear infinite;
  top: 10px;
  left: 10px;
  will-change: transform;
  transform: translateZ(0);
}

/* Анимации */
@keyframes logo-appear {
  from { visibility: hidden; }
  to { visibility: visible; }
}

@keyframes rotate {
  from { transform: rotate(0deg) translateZ(0); }
  to { transform: rotate(360deg) translateZ(0); }
}

@keyframes text-glow {
  0% { 
    text-shadow: 
      0 0 8px rgba(0, 255, 127, 0.4),
      0 0 15px rgba(255, 20, 147, 0.3),
      0 0 20px rgba(30, 144, 255, 0.2);
  }
  100% { 
    text-shadow: 
      0 0 15px rgba(0, 255, 127, 0.7),
      0 0 25px rgba(255, 20, 147, 0.5),
      0 0 35px rgba(30, 144, 255, 0.4);
  }
}

@keyframes symbol-pulse {
  0%, 100% { 
    transform: scale(1) translateZ(0); 
    box-shadow: 
      0 0 10px rgba(0, 0, 0, 0.3),
      inset 0 0 10px rgba(255, 255, 255, 0.1);
  }
  50% { 
    transform: scale(1.1) translateZ(0); 
    box-shadow: 
      0 0 15px rgba(0, 0, 0, 0.4),
      inset 0 0 15px rgba(255, 255, 255, 0.2);
  }
}

.symbol-hash { transform-origin: center; }
.symbol-asterisk { transform-origin: center; }
.symbol-arrow { transform-origin: center; }
.symbol-minus { transform-origin: center; }

@keyframes orbit {
  from { transform: rotate(0deg) translateZ(0); }
  to { transform: rotate(360deg) translateZ(0); }
}

@keyframes wave-expand {
  0% {
    transform: scale(0.9) translateZ(0);
    opacity: 0.8;
  }
  50% {
    opacity: 0.4;
  }
  100% {
    transform: scale(1.1) translateZ(0);
    opacity: 0;
  }
}

@keyframes glow-rotate {
  from { transform: rotate(0deg) scale(1) translateZ(0); }
  50% { transform: rotate(180deg) scale(1.05) translateZ(0); }
  to { transform: rotate(360deg) scale(1) translateZ(0); }
}

/* Hover эффекты */
.redaction-logo:hover .outer-ring {
  animation-duration: 10s;
}

.redaction-logo:hover .middle-ring {
  animation-duration: 8s;
}

.redaction-logo:hover .symbol {
  transform: scale(1.1) translateZ(0);
}

.redaction-logo:hover .logo-text {
  animation-duration: 1.5s;
}

/* Responsive для мобильных устройств */
@media (max-width: 768px) {
  .redaction-logo {
    width: 150px;
    height: 150px;
  }
  
  .outer-ring {
    width: 135px;
    height: 135px;
    top: 7.5px;
    left: 7.5px;
  }
  
  .middle-ring {
    width: 105px;
    height: 105px;
    top: 22.5px;
    left: 22.5px;
  }
  
  .inner-ring {
    width: 90px;
    height: 90px;
    top: 30px;
    left: 30px;
  }
  
  .logo-text {
    font-size: 12px;
    letter-spacing: 1px;
  }
  
  .symbol {
    width: 22px;
    height: 22px;
    font-size: 11px;
  }
  
  .wave-1 { width: 120px; height: 120px; top: 15px; left: 15px; }
  .wave-2 { width: 127px; height: 127px; top: 11.5px; left: 11.5px; }
  .wave-3 { width: 135px; height: 135px; top: 7.5px; left: 7.5px; }
  
  .glow-effect {
    width: 135px;
    height: 135px;
    top: 7.5px;
    left: 7.5px;
  }
}