/* Основной виджет - скрыт на больших экранах */
.social-widget {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 1000;
  display: none; /* По умолчанию скрыт */
}

/* Показываем виджет только на экранах до 1200px */
@media (max-width: 1199.98px) {
  .social-widget {
      display: block;
  }
}

/* Кнопка виджета */
button.widget-button {
  width: 65px;
  height: 65px;
  background-color: #2a488b;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: none;
  position: relative;
  overflow: hidden;
  outline:none;
  animation: pulse 2s infinite;
}

/* Анимация пульсации */
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(42, 72, 139, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(42, 72, 139, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(42, 72, 139, 0);
  }
}

button.widget-button:focus {
  outline:none;
}
button.widget-button:hover {
  background-color: #3a68db;
  outline:none;
  animation: none;
}

button.widget-button:hover svg {
  transform: scale(1.1);
}

button.widget-button svg {
  width: 32px;
  height: 32px;
  fill: #fff;
  transition: transform 0.3s ease;
}

button.widget-button:hover svg {
  transform: scale(1.1);
}

/* Иконка закрытия (крестик) */
.close-icon {
  position: absolute;
  width: 32px;
  height: 32px;
  opacity: 0;
  /* transform: rotate(-45deg); */
  transition: all 0.3s ease;
}

/* Состояние открытого виджета */
button.widget-button.active {
  background-color: #ff4444;
  animation: none;
}

button.widget-button.active:hover {
  background-color: #ff6666;
}

button.widget-button.active .close-icon {
  opacity: 1;
}

button.widget-button.active svg {
  opacity: 0;
  transform: scale(0);
}

button.widget-button.active .close-icon svg {
  opacity: 1;
  transform: none;
}

/* Контейнер с ссылками */
.social-links {
  position: absolute;
  bottom: 70px;
  left: 0;
  display: none;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(10px);
  animation: slideUp 0.4s ease;
  min-width: 250px;
  border: 1px solid rgba(42, 72, 139, 0.1);
}

.social-links.active {
  display: flex;
}

.social-links a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
  transition: all 0.3s ease;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  gap:7px 
}

.social-links a:hover {
  transform: translateX(5px);
  background: rgba(42, 72, 139, 0.1);
  color: #2a488b;
}

.social-links img {
  width: 32px;
  height: 32px;
  margin-right: 12px;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.social-links a:hover img {
  transform: scale(1.1);
}

/* Анимации */
@keyframes slideUp {
  from {
      opacity: 0;
      transform: translateY(20px);
  }
  to {
      opacity: 1;
      transform: translateY(0);
  }
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
  /* .social-widget {
      bottom: 20px;
      left: 20px;
  } */

  /* button.widget-button {
      width: 56px;
      height: 56px;
  } */

  button.widget-button svg {
      width: 30px;
      height: 30px;
  }

  .social-links {
      bottom: 66px;
      left: 0;
      padding: 15px;
      min-width: 220px;
  }

  .social-links a {
      font-size: 13px;
      padding: 6px 10px;
  }

  .social-links img {
      width: 28px;
      height: 28px;
      margin-right: 10px;
  }
}

@media (max-width: 480px) {
  /* .social-widget {
      bottom: 15px;
      left: 15px;
  } */

  .social-links {
      min-width: 200px;
      padding: 12px;
  }
}

/* Для очень маленьких экранов */
@media (max-width: 360px) {
  .social-links {
      min-width: 180px;
  }
  
  .social-links img {
      margin-right: 0;
  }
}