/*

<!-- Стандартная бирюзовая -->
[aurora_video_modal src="https://auroralights.ru/lastest.mp4" text="▶️ Смотреть видео"]

<!-- Розовая/маджента -->
[aurora_video_modal src="https://auroralights.ru/lastest.mp4" text="▶️ Смотреть видео" class="aurora-video-btn magenta"]

<!-- Комбо-градиент (wow!) -->
[aurora_video_modal src="https://auroralights.ru/lastest.mp4" text="▶️ Смотреть видео" class="aurora-video-btn gradient"]

<!-- Тёмная с обводкой -->
[aurora_video_modal src="https://auroralights.ru/lastest.mp4" text="▶️ Смотреть видео" class="aurora-video-btn dark"]

<!-- Прозрачная с обводкой -->
[aurora_video_modal src="https://auroralights.ru/lastest.mp4" text="▶️ Смотреть видео" class="aurora-video-btn outline"]

*/

/* Обёртка видео */
.aurora-video-wrap { 
  max-width: 100%; 
  position: relative;
}

.aurora-video { 
  display: block; 
  width: 100%; 
  height: auto; 
  background: #000; 
  border-radius: 8px;
}

/* ============ КНОПКА С ФИРМЕННЫМИ ЦВЕТАМИ AURORA HUNTERS ============ */

/* Основная кнопка: бирюзовый градиент (cyan/teal) */
.aurora-video-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  
  /* Размеры и отступы */
  padding: 6px 18px;
  min-height: 40px;
  border: none;
  border-radius: 12px;
  
  /* Шрифт */
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  
  /* Фирменный бирюзовый градиент */
  background: linear-gradient(135deg, #3dd4cf 0%, #5de9e4 100%);
  color: #0a0e27;
  
  /* Курсор и переходы */
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  
  /* Убираем стандартные стили */
  outline: none;
  text-decoration: none;
  user-select: none;
  
  /* Позиционирование для псевдоэлементов */
  position: relative;
  overflow: hidden;
}

/* Иконка play (треугольник) через ::before */
.aurora-video-btn::before {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent currentColor;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

/* Эффект при hover - светлее и ярче */
.aurora-video-btn:hover {
  transform: translateY(-2px) scale(1.02);
  background: linear-gradient(135deg, #4ddfd9 0%, #6ff3ee 100%);
}

/* Анимация иконки при hover */
.aurora-video-btn:hover::before {
  transform: scale(1.1);
}

/* Эффект при нажатии */
.aurora-video-btn:active {
  transform: translateY(0) scale(0.98);
  transition: all 0.1s ease;
}

/* Эффект focus для доступности */
.aurora-video-btn:focus {
  box-shadow: 0 4px 15px rgba(61, 212, 207, 0.4), 0 0 0 3px rgba(61, 212, 207, 0.3);
}

/* Дополнительный блик при hover */
.aurora-video-btn::after {
  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 ease;
}

.aurora-video-btn:hover::after {
  left: 100%;
}

/* ============ АЛЬТЕРНАТИВНЫЕ ВАРИАНТЫ ============ */

/* Маджента/розовый градиент (как кнопка "Подписаться") */
.aurora-video-btn.magenta,
.aurora-video-btn.secondary {
  background: linear-gradient(135deg, #e83d8d 0%, #ff4d9f 100%);
  color: white;
}

.aurora-video-btn.magenta:hover,
.aurora-video-btn.secondary:hover {
  background: linear-gradient(135deg, #ff4da5 0%, #ff6daf 100%);
}

/* Комбинированный градиент: бирюзовый → маджента (эффектный!) */
.aurora-video-btn.gradient {
  background: linear-gradient(135deg, #3dd4cf 0%, #e83d8d 50%, #ff4d9f 100%);
  color: white;
}

.aurora-video-btn.gradient:hover {
  background: linear-gradient(135deg, #4ddfd9 0%, #ff4da5 50%, #ff6daf 100%);
}

/* Тёмный вариант (как фон вашего сайта) */
.aurora-video-btn.dark {
  background: linear-gradient(135deg, #0a0e27 0%, #1a1e3f 100%);
  color: #5de9e4;
  border: 2px solid #3dd4cf;
}

.aurora-video-btn.dark:hover {
  background: linear-gradient(135deg, #1a1e3f 0%, #2a2e4f 100%);
  border-color: #5de9e4;
}

/* Outline-вариант (прозрачный с обводкой) */
.aurora-video-btn.outline {
  background: transparent;
  color: #5de9e4;
  border: 2px solid #3dd4cf;
  box-shadow: none;
}

.aurora-video-btn.outline:hover {
  background: rgba(61, 212, 207, 0.1);
  border-color: #5de9e4;
}

/* ============ МОДАЛЬНОЕ ОКНО ============ */
.av-modal-backdrop {
  position: fixed; 
  inset: 0; 
  background: rgba(10, 14, 39, 0.9); /* темнее под стиль сайта */
  backdrop-filter: blur(8px);
  display: flex; 
  align-items: center; 
  justify-content: center; 
  z-index: 99999;
  opacity: 0;
  animation: fadeIn 0.3s ease forwards;
}

@keyframes fadeIn {
  to { opacity: 1; }
}

.av-modal {
  width: min(90vw, 960px); 
  background: linear-gradient(135deg, #0a0e27 0%, #1a1e3f 100%); 
  color: #fff; 
  border-radius: 16px;
  border: 1px solid rgba(61, 212, 207, 0.2);
  padding: 20px; 
  position: relative;
  transform: scale(0.9);
  animation: modalAppear 0.3s ease forwards;
}

@keyframes modalAppear {
  to { 
    transform: scale(1); 
  }
}

.av-modal video { 
  width: 100%; 
  height: auto; 
  display: block; 
  border-radius: 8px;
}

.av-modal-close {
  position: absolute; 
  top: 15px; 
  right: 20px; 
  color: #5de9e4; 
  font-size: 20px; 
  cursor: pointer;
  background: rgba(61, 212, 207, 0.1); 
  border: 1px solid rgba(61, 212, 207, 0.3);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: all 0.2s ease;
}

.av-modal-close:hover {
  background: rgba(61, 212, 207, 0.2);
  border-color: #5de9e4;
  transform: scale(1.1);
}

/* ============ АДАПТИВНОСТЬ ============ */
@media (max-width: 768px) {
  .aurora-video-btn {
    padding: 14px 20px;
    font-size: 14px;
    min-height: 50px;
  }
  
  .aurora-video-btn::before {
    border-width: 7px 0 7px 12px;
  }
  
  .av-modal {
    width: 95vw;
    margin: 10px;
    padding: 16px;
  }
}

/* ============ ДОПОЛНИТЕЛЬНЫЕ СТИЛИ ============ */
.aurora-video-error {
  background: linear-gradient(135deg, #2a0e1f 0%, #3a1e2f 100%);
  color: #ff4d9f;
  padding: 12px 16px;
  border-radius: 6px;
  border: 1px solid rgba(232, 61, 141, 0.3);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* Состояние loading для кнопки */
.aurora-video-btn.loading {
  cursor: wait;
  opacity: 0.7;
}

.aurora-video-btn.loading::before {
  border-color: transparent;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}
