/* 🌟 РАСШИРЕННЫЕ СТИЛИ КРАСОТЫ ДЛЯ САМОЗАНЯТЫЕ.РФ */
/* Подключать после основного style.css */

/* === АНИМИРОВАННЫЙ ГРАДИЕНТНЫЙ ФОН === */
.hero-animated {
  background: linear-gradient(-45deg, #667eea, #764ba2, #f093fb, #f5576c);
  background-size: 400% 400%;
  animation: gradientShift 15s ease infinite;
  position: relative;
  overflow: hidden;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* === ПЛАВАЮЩИЕ ЧАСТИЦЫ === */
.hero-animated::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: radial-gradient(circle at 20% 80%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.1) 2px, transparent 2px),
    radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 100px 100px, 150px 150px, 80px 80px;
  animation: float 20s linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(0px) rotate(0deg);
  }
  100% {
    transform: translateY(-100px) rotate(360deg);
  }
}

/* === СВЕТЯЩИЕСЯ КНОПКИ === */
.btn-glow {
  position: relative;
  overflow: hidden;
  box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
  transition: all 0.3s ease;
}

.btn-glow::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s;
}

.btn-glow:hover::before {
  left: 100%;
}

.btn-glow:hover {
  box-shadow: 0 0 30px rgba(102, 126, 234, 0.6);
  transform: translateY(-3px) scale(1.05);
}

/* === НЕОНОВЫЕ ЭФФЕКТЫ === */
.btn-neon {
  border: 2px solid;
  background: transparent;
  text-shadow: 0 0 10px currentColor;
  box-shadow: inset 0 0 10px currentColor, 0 0 20px currentColor;
  animation: neonPulse 2s ease-in-out infinite alternate;
}

@keyframes neonPulse {
  from {
    box-shadow: inset 0 0 10px currentColor, 0 0 20px currentColor, 0 0 30px currentColor;
  }
  to {
    box-shadow: inset 0 0 15px currentColor, 0 0 30px currentColor, 0 0 40px currentColor;
  }
}

/* === СТЕКЛЯННЫЕ ЭФФЕКТЫ === */
.glass-card {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.glass-btn {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  transition: all 0.3s ease;
}

.glass-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

/* === ГРАДИЕНТНЫЕ ОБВОДКИ === */
.gradient-border {
  position: relative;
  background: white;
  border-radius: 15px;
}

.gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 2px;
  background: linear-gradient(135deg, #667eea, #764ba2, #f093fb);
  border-radius: inherit;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
}

/* === ПУЛЬСИРУЮЩИЕ АНИМАЦИИ === */
.pulse-glow {
  animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(102, 126, 234, 0.6);
  }
}

/* === УЛУЧШЕННЫЕ КАРТОЧКИ === */
.card-premium {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.7));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.5);
  position: relative;
  overflow: hidden;
}

.card-premium::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.card-premium:hover::before {
  left: 100%;
}

/* === SHIMMER ЭФФЕКТ === */
.shimmer {
  position: relative;
  overflow: hidden;
}

.shimmer::after {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    left: -100%;
  }
  100% {
    left: 100%;
  }
}

/* === АНИМИРОВАННАЯ НАВИГАЦИЯ === */
.nav-link-animated {
  position: relative;
  overflow: hidden;
}

.nav-link-animated::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #667eea, #764ba2);
  transition: width 0.3s ease;
}

.nav-link-animated:hover::after {
  width: 100%;
}

/* === МАГИЧЕСКИЕ ТЕНИ === */
.magic-shadow {
  box-shadow: 0 2px 10px rgba(102, 126, 234, 0.1), 0 8px 40px rgba(118, 75, 162, 0.1), 0 16px 80px
    rgba(240, 147, 251, 0.1);
  transition: all 0.3s ease;
}

.magic-shadow:hover {
  box-shadow: 0 4px 20px rgba(102, 126, 234, 0.2), 0 16px 60px rgba(118, 75, 162, 0.2), 0 32px 120px
    rgba(240, 147, 251, 0.2);
  transform: translateY(-10px);
}

/* === РАДУЖНЫЕ ЭФФЕКТЫ === */
.rainbow-text {
  background: linear-gradient(45deg, #ff0000, #ff7f00, #ffff00, #00ff00, #0000ff, #4b0082, #9400d3);
  background-size: 400% 400%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: rainbow 3s ease-in-out infinite;
}

@keyframes rainbow {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

/* === МОРФИНГ КНОПКИ === */
.btn-morph {
  border-radius: 50px;
  transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.btn-morph:hover {
  border-radius: 15px;
  transform: scale(1.1) rotate(2deg);
}

/* === ГОЛОГРАФИЧЕСКИЕ ЭФФЕКТЫ === */
.holographic {
  background: linear-gradient(45deg, #ff0080, #ff8c00, #40e0d0, #ff0080);
  background-size: 400% 400%;
  animation: holographic 4s ease-in-out infinite;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@keyframes holographic {
  0%,
  100% {
    background-position: 0% 50%;
  }
  25% {
    background-position: 100% 50%;
  }
  50% {
    background-position: 100% 100%;
  }
  75% {
    background-position: 0% 100%;
  }
}

/* === АДАПТИВНОСТЬ ДЛЯ ЭФФЕКТОВ === */
@media (max-width: 768px) {
  .hero-animated {
    animation-duration: 10s;
  }

  .btn-glow:hover {
    transform: translateY(-2px) scale(1.02);
  }

  .magic-shadow:hover {
    transform: translateY(-5px);
  }
}

/* === ОТКЛЮЧЕНИЕ АНИМАЦИЙ ДЛЯ ПОЛЬЗОВАТЕЛЕЙ С ОГРАНИЧЕННЫМИ ВОЗМОЖНОСТЯМИ === */
@media (prefers-reduced-motion: reduce) {
  .hero-animated,
  .btn-glow,
  .pulse-glow,
  .shimmer,
  .rainbow-text,
  .holographic {
    animation: none;
  }

  .btn-glow:hover,
  .magic-shadow:hover,
  .btn-morph:hover {
    transform: none;
  }
}
