/* modals-toasts.css - Модальные окна и уведомления */

/* === МОДАЛЬНОЕ ОКНО "СКОРО" === */
.soon-modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.soon-modal.active {
  opacity: 1;
  pointer-events: all;
}

.soon-modal-backdrop {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.soon-modal-content {
  position: relative;
  width: 90%;
  max-width: 480px;
  background: linear-gradient(135deg, #1a1a1f 0%, #141419 100%);
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transform: scale(0.95);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.soon-modal.active .soon-modal-content {
  transform: scale(1);
}

.soon-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 24px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.soon-modal-header h3 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  color: #ffffff;
}

.soon-modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #888;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.soon-modal-close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.soon-modal-body {
  padding: 32px 24px;
  text-align: center;
}

.soon-modal-icon {
  font-size: 48px;
  margin-bottom: 16px;
}

.soon-modal-text {
  margin: 0;
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.7);
}

.soon-modal-footer {
  padding: 16px 24px 24px;
  display: flex;
  justify-content: center;
}

.soon-modal-btn {
  padding: 12px 32px;
  background: linear-gradient(135deg, #00d4ff 0%, #0099ff 100%);
  border: none;
  border-radius: 10px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 212, 255, 0.3);
}

.soon-modal-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 212, 255, 0.5);
}

.soon-modal-btn:active {
  transform: translateY(0);
}

/* === TOAST УВЕДОМЛЕНИЯ === */
.toast-container {
  position: fixed;
  top: 90px;
  right: 24px;
  z-index: 11000;
  display: flex;
  flex-direction: column;
  gap: 12px;
  pointer-events: none;
}

.toast {
  padding: 16px 20px;
  background: rgba(20, 20, 25, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  color: #ffffff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
  transform: translateX(400px);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: all;
  max-width: 320px;
  min-width: 260px;
}

.toast.show {
  transform: translateX(0);
  opacity: 1;
}

.toast-success {
  border-left: 4px solid #00ff87;
  background: linear-gradient(135deg, rgba(0, 255, 135, 0.1) 0%, rgba(20, 20, 25, 0.95) 100%);
}

.toast-error {
  border-left: 4px solid #ff4444;
  background: linear-gradient(135deg, rgba(255, 68, 68, 0.1) 0%, rgba(20, 20, 25, 0.95) 100%);
}

.toast-info {
  border-left: 4px solid #00d4ff;
  background: linear-gradient(135deg, rgba(0, 212, 255, 0.1) 0%, rgba(20, 20, 25, 0.95) 100%);
}

/* === ПОДСВЕТКА СЕКЦИИ === */
.section-highlight {
  animation: sectionHighlight 1s ease-out;
}

@keyframes sectionHighlight {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
  }
  50% {
    box-shadow: 0 0 40px 10px rgba(0, 212, 255, 0.3);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0, 212, 255, 0);
  }
}

/* === АДАПТИВНОСТЬ === */

/* Планшеты */
@media (max-width: 1024px) {
  .toast-container {
    top: 80px;
    right: 20px;
  }

  .toast {
    max-width: 280px;
    min-width: 240px;
    font-size: 13px;
    padding: 14px 18px;
  }

  .soon-modal-content {
    max-width: 420px;
  }
}

/* Мобильные */
@media (max-width: 768px) {
  .toast-container {
    top: 70px;
    right: 16px;
    left: 16px;
  }

  .toast {
    max-width: 100%;
    min-width: auto;
  }

  .soon-modal-content {
    width: 95%;
    max-width: 100%;
    margin: 16px;
  }

  .soon-modal-header {
    padding: 20px 20px 16px;
  }

  .soon-modal-header h3 {
    font-size: 18px;
  }

  .soon-modal-body {
    padding: 24px 20px;
  }

  .soon-modal-icon {
    font-size: 40px;
  }

  .soon-modal-text {
    font-size: 15px;
  }

  .soon-modal-footer {
    padding: 16px 20px 20px;
  }
}

/* Очень маленькие экраны */
@media (max-width: 480px) {
  .toast-container {
    top: 65px;
    right: 12px;
    left: 12px;
  }

  .toast {
    font-size: 12px;
    padding: 12px 16px;
  }

  .soon-modal-content {
    margin: 12px;
  }

  .soon-modal-header {
    padding: 16px 16px 12px;
  }

  .soon-modal-header h3 {
    font-size: 16px;
  }

  .soon-modal-body {
    padding: 20px 16px;
  }

  .soon-modal-icon {
    font-size: 36px;
    margin-bottom: 12px;
  }

  .soon-modal-text {
    font-size: 14px;
  }

  .soon-modal-footer {
    padding: 12px 16px 16px;
  }

  .soon-modal-btn {
    padding: 10px 24px;
    font-size: 14px;
  }
}

/* === ACCESSIBILITY === */
.soon-modal-close:focus,
.soon-modal-btn:focus {
  outline: 2px solid #00d4ff;
  outline-offset: 2px;
}

.soon-modal-close:focus:not(:focus-visible),
.soon-modal-btn:focus:not(:focus-visible) {
  outline: none;
}
