/* Gooey Navigation Styles */
.gooey-navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 20px 0;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(13, 20, 33, 0.95);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(42, 52, 65, 0.3);
}

.gooey-navbar.scrolled {
  padding: 15px 0;
  background: rgba(13, 20, 33, 0.98);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
}

.gooey-nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* Логотип */
.gooey-logo {
  display: flex;
  align-items: left;
  text-decoration: none;
  z-index: 2;
}

.gooey-logo-image {
  height: 80px;
  width: auto;
  max-width: 250px;
  object-fit: contain;
  transition: all 0.3s ease;
  border-radius: 8px;
  padding: 6px;
  
  /* Инверсия цветов для лучшей видимости */
  filter: invert(1) brightness(1.3) contrast(1.2);
  
 
}

.gooey-logo-image:hover {
  filter: invert(1) brightness(1.5) contrast(1.4);
  transform: scale(1.05);
  box-shadow: 0 0 25px rgba(74, 144, 226, 0.4);
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.25) 0%, rgba(0, 212, 170, 0.25) 100%);
}

/* Gooey Navigation */
.gooey-nav {
  position: relative;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #1E2A3A 0%, #2A3441 100%);
  border-radius: 50px;
  padding: 8px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  
  /* Применяем gooey фильтр */
  filter: url(#gooey);
}

.gooey-nav::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(74, 144, 226, 0.5) 0%, rgba(0, 212, 170, 0.5) 100%);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: xor;
}

/* Индикатор активного элемента */
.nav-indicator {
  position: absolute;
  height: 40px;
  background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
  border-radius: 25px;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
  z-index: 0;
  box-shadow: 
    0 4px 15px rgba(74, 144, 226, 0.4),
    0 0 20px rgba(74, 144, 226, 0.2);
}

/* Навигационные ссылки */
.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  padding: 12px 24px;
  color: #B8C5D1;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  border-radius: 25px;
  transition: all 0.3s ease;
  z-index: 1;
  white-space: nowrap;
  cursor: pointer;
}

.nav-link:hover {
  color: #FFFFFF;
  transform: translateY(-1px);
}

.nav-link.active {
  color: #FFFFFF;
  font-weight: 600;
}

/* Иконки для навигации */
.nav-link::before {
  content: '';
  width: 16px;
  height: 16px;
  margin-right: 8px;
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.7;
  transition: opacity 0.3s ease;
}

.nav-link:hover::before,
.nav-link.active::before {
  opacity: 1;
}

/* Иконки для каждой страницы */
.nav-link[href="/"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23FFFFFF' viewBox='0 0 24 24'%3E%3Cpath d='M10 20v-6h4v6h5v-8h3L12 3 2 12h3v8z'/%3E%3C/svg%3E");
}

.nav-link[href="/rating"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23FFFFFF' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.09 6.26L22 9.27l-5 4.87 1.18 6.88L12 17.77l-6.18 3.25L7 14.14 2 9.27l6.91-1.01L12 2z'/%3E%3C/svg%3E");
}


.nav-link[data-page="join"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='%23FFFFFF' viewBox='0 0 24 24'%3E%3Cpath d='M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}

/* Адаптивность */
@media (max-width: 768px) {
  .gooey-navbar {
    padding: 15px 0;
  }
  
  .gooey-nav-container {
    padding: 0 16px;
    flex-direction: column;
    gap: 16px;
  }
  
  .gooey-logo-image {
    height: 45px;
    max-width: 200px;
  }
  
  .gooey-nav {
    order: 2;
    width: 100%;
    justify-content: center;
  }
  
  .nav-link {
    padding: 10px 16px;
    font-size: 13px;
  }
  
  .nav-link::before {
    width: 14px;
    height: 14px;
    margin-right: 6px;
  }
}

@media (max-width: 480px) {
  .gooey-nav {
    flex-wrap: wrap;
    gap: 4px;
  }
  
  .nav-link {
    padding: 8px 12px;
    flex: 1;
    justify-content: center;
    min-width: 0;
  }
  
  .nav-link span {
    display: none;
  }
  
  .nav-link::before {
    margin-right: 0;
  }
}

/* Анимации */
@keyframes gooeyPulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

.nav-link.active {
  animation: gooeyPulse 2s ease-in-out infinite;
}

/* Эффект свечения при наведении */
.gooey-nav:hover {
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    0 0 40px rgba(74, 144, 226, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Плавное появление */
.gooey-navbar {
  animation: slideDown 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideDown {
  from {
    transform: translateY(-100%);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
