/* ============================================
   POPUPS STYLES
   Cookie consent and 18+ age verification
   ============================================ */

/* Overlay для блокировки прокрутки */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(5px);
  z-index: 9998;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Контейнер попапа */
.popup-container {
  background: var(--card-bg, #fff);
  border-radius: 24px;
  padding: 48px 40px;
  max-width: 520px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.1);
  transform: scale(0.95) translateY(30px);
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  position: relative;
  z-index: 9999;
}

.popup-overlay.active .popup-container {
  transform: scale(1) translateY(0);
}

/* Заголовок попапа */
.popup-header {
  text-align: center;
  margin-bottom: 24px;
}

.popup-icon {
  width: 100px;
  height: 100px;
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
  border-radius: 20px;
  padding: 12px;
}

.popup-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.popup-title {
  font-size: 30px;
  font-weight: 700;
  color: var(--text-primary, #000);
  margin-bottom: 16px;
  line-height: 1.3;
  letter-spacing: -0.5px;
}

.popup-description {
  font-size: 16px;
  color: var(--text-secondary, #555);
  line-height: 1.7;
  margin-bottom: 0;
  font-weight: 400;
}

/* Кнопки попапа */
.popup-buttons {
  display: flex;
  gap: 12px;
  margin-top: 32px;
  flex-wrap: wrap;
}

.popup-button {
  flex: 1;
  min-width: 140px;
  padding: 14px 24px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

.popup-button-primary {
  background: var(--button-bg, hsl(94 100% 35%));
  color: var(--button-text, #000);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.popup-button-primary:hover {
  background: var(--button-hover-bg, hsl(94 100% 50%));
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.popup-button-secondary {
  background: transparent;
  color: var(--text-primary, #000);
  border: 2px solid var(--input-border, #d1d5db);
}

.popup-button-secondary:hover {
  background: var(--text-muted, #666);
  color: var(--always-white, #fff);
  border-color: var(--text-muted, #666);
}

.popup-button-link {
  background: transparent;
  color: var(--text-primary, #000);
  text-decoration: underline;
  padding: 8px 16px;
  min-width: auto;
}

.popup-button-link:hover {
  color: var(--button-bg, hsl(94 100% 35%));
}

/* Специфичные стили для попапа 18+ */
.popup-age-verification .popup-container {
  background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
  border: 2px solid rgba(0, 0, 0, 0.05);
}

.popup-age-verification .popup-buttons {
  flex-direction: column;
  gap: 16px;
}

.popup-age-verification .popup-button {
  width: 100%;
  padding: 16px 24px;
  font-size: 17px;
}

.popup-age-verification .popup-icon {
  background: linear-gradient(135deg, rgba(255, 87, 34, 0.1) 0%, rgba(255, 152, 0, 0.1) 100%);
}

/* Адаптивность */
@media (max-width: 768px) {
  .popup-container {
    padding: 30px 24px;
    max-width: 95%;
  }

  .popup-title {
    font-size: 24px;
  }

  .popup-description {
    font-size: 14px;
  }

  .popup-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
  }

  .popup-buttons {
    flex-direction: column;
  }

  .popup-button {
    width: 100%;
    min-width: auto;
  }
}

/* Блокировка прокрутки body когда попап открыт */
body.popup-open {
  overflow: hidden;
  position: fixed;
  width: 100%;
}

