/* =====================================================
   Deep Human Interviews — Animations
   Плавные, тёплые анимации для уютной атмосферы
   ===================================================== */

/* ----- Keyframes ----- */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes glow {
  0%, 100% {
    filter: brightness(1);
    box-shadow: 0 0 10px rgba(196, 164, 132, 0.3);
  }
  50% {
    filter: brightness(1.1);
    box-shadow: 0 0 20px rgba(196, 164, 132, 0.5);
  }
}

/* ----- Animation Classes ----- */
.animate-fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.animate-fade-in-up {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-fade-in-down {
  animation: fadeInDown 0.6s ease forwards;
}

.animate-scale-in {
  animation: scaleIn 0.5s ease forwards;
}

/* Staggered animations */
.animate-stagger > * {
  opacity: 0;
  animation: fadeInUp 0.5s ease forwards;
}

.animate-stagger > *:nth-child(1) { animation-delay: 0.1s; }
.animate-stagger > *:nth-child(2) { animation-delay: 0.2s; }
.animate-stagger > *:nth-child(3) { animation-delay: 0.3s; }
.animate-stagger > *:nth-child(4) { animation-delay: 0.4s; }
.animate-stagger > *:nth-child(5) { animation-delay: 0.5s; }

/* ----- Scroll Reveal ----- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ----- Hover Effects ----- */
.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.hover-glow {
  transition: box-shadow var(--transition-base);
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(196, 164, 132, 0.4);
}

.hover-scale {
  transition: transform var(--transition-base);
}

.hover-scale:hover {
  transform: scale(1.02);
}

/* ----- Button Breathing Effect ----- */
.btn--breathing {
  animation: pulse 3s ease-in-out infinite;
}

.btn--breathing:hover {
  animation: none;
}

/* =====================================================
   Christmas Popup Styles
   Интерактивный поп-ап с картинкой игрушек
   ===================================================== */

/* Popup Overlay */
.popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(10, 20, 15, 0.95);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.popup-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

/* Popup Container */
.popup {
  background: linear-gradient(180deg, #1a2a20 0%, #0f1a14 100%);
  border-radius: var(--radius-xl);
  padding: var(--space-xl);
  max-width: 480px;
  width: 100%;
  text-align: center;
  position: relative;
  transform: scale(0.9);
  transition: transform 0.4s ease;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}

.popup--image {
  padding: var(--space-lg);
}

@media (min-width: 481px) {
  .popup--image {
    padding: var(--space-xl);
  }
}

.popup-overlay.is-visible .popup {
  transform: scale(1);
}

/* Popup Close Button */
.popup__close {
  position: absolute;
  top: var(--space-sm);
  right: var(--space-sm);
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 28px;
  transition: all var(--transition-fast);
  z-index: 10;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
}

.popup__close:hover {
  color: #FFFFFF;
  background: rgba(0, 0, 0, 0.5);
}

/* Popup Content */
.popup__title {
  font-family: var(--font-heading);
  font-size: var(--fs-xl);
  color: #FFFFFF;
  margin-bottom: var(--space-xs);
}

@media (min-width: 481px) {
  .popup__title {
    font-size: var(--fs-2xl);
  }
}

.popup__subtitle {
  color: rgba(255, 255, 255, 0.7);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-lg);
}

@media (min-width: 481px) {
  .popup__subtitle {
    font-size: var(--fs-base);
  }
}

/* Image Container with Hotspots */
.popup__image-container {
  position: relative;
  width: 100%;
  max-width: 420px;
  margin: 0 auto var(--space-lg);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.popup__image {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-lg);
}

/* Toy Hotspots - Glowing Star Points */
.toy-hotspot {
  position: absolute;
  width: 36px;
  height: 36px;
  border: none;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 215, 0, 0.9) 30%, rgba(255, 180, 0, 0.6) 50%, transparent 70%);
  cursor: pointer;
  border-radius: 50%;
  transition: all 0.3s ease;
  transform: translate(-50%, -50%);
}

/* Pulsing star glow animation */
@keyframes starPulse {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 15px rgba(255, 215, 0, 0.8), 
                0 0 30px rgba(255, 215, 0, 0.5),
                0 0 45px rgba(255, 180, 0, 0.3);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.2);
    box-shadow: 0 0 25px rgba(255, 215, 0, 1), 
                0 0 50px rgba(255, 215, 0, 0.7),
                0 0 75px rgba(255, 180, 0, 0.4);
  }
}

.toy-hotspot {
  animation: starPulse 1.5s ease-in-out infinite;
}

.toy-hotspot:hover {
  transform: translate(-50%, -50%) scale(1.5);
  box-shadow: 0 0 40px rgba(255, 215, 0, 1), 
              0 0 70px rgba(255, 215, 0, 0.8),
              0 0 100px rgba(255, 180, 0, 0.5);
}

/* Position star points in center of each toy */
/* 1. Glass ball with house - центр шара */
.toy-hotspot--ball {
  top: 42%;
  left: 13%;
  animation-delay: 0s;
}

/* 2. Red rocking horse - центр туловища */
.toy-hotspot--red-horse {
  top: 68%;
  left: 28%;
  animation-delay: 0.3s;
}

/* 3. Carousel - центр карусели */
.toy-hotspot--carousel {
  top: 42%;
  left: 50%;
  animation-delay: 0.6s;
}

/* 4. Beige rocking horse - центр туловища */
.toy-hotspot--beige-horse {
  top: 62%;
  left: 68%;
  animation-delay: 0.9s;
}

/* 5. Small christmas tree - центр ёлки */
.toy-hotspot--tree {
  top: 52%;
  left: 87%;
  animation-delay: 1.2s;
}

/* Selected state - big explosion glow */
@keyframes selectedGlow {
  0% {
    transform: translate(-50%, -50%) scale(1);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.8), 
                0 0 60px rgba(255, 215, 0, 0.5);
  }
  50% {
    transform: translate(-50%, -50%) scale(2);
    box-shadow: 0 0 60px rgba(255, 215, 0, 1), 
                0 0 100px rgba(255, 215, 0, 0.8),
                0 0 150px rgba(255, 180, 0, 0.5);
  }
  100% {
    transform: translate(-50%, -50%) scale(2.5);
    opacity: 0;
  }
}

.toy-hotspot.is-selected {
  animation: selectedGlow 0.8s ease-out forwards;
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 215, 0, 1) 40%, transparent 70%);
}

.toy-hotspot.is-glowing {
  background: radial-gradient(circle, rgba(255, 255, 255, 1) 0%, rgba(255, 215, 0, 0.8) 50%, transparent 70%);
}

/* Hide other toys when one is selected */
.popup__image-container.has-selected .toy-hotspot:not(.is-selected) {
  opacity: 0;
  pointer-events: none;
}

/* Popup Hint */
.popup__hint {
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--fs-sm);
  margin-bottom: var(--space-sm);
}

/* Gift Message */
.popup__gift {
  display: none;
  animation: fadeInUp 0.5s ease;
}

.popup__gift.is-visible {
  display: block;
}

.popup__gift-text {
  font-family: var(--font-heading);
  font-size: var(--fs-md);
  color: #FFFFFF;
  line-height: 1.7;
  font-style: italic;
  margin-bottom: var(--space-xl);
  padding: var(--space-lg);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-md);
  border-left: 3px solid #D4AF37;
}

@media (min-width: 481px) {
  .popup__gift-text {
    font-size: var(--fs-lg);
  }
}

.popup__gift-btn {
  background: linear-gradient(135deg, #D4AF37 0%, #B8860B 100%);
  color: #FFFFFF;
  padding: var(--space-md) var(--space-2xl);
  border-radius: var(--radius-full);
  font-weight: 600;
  transition: all var(--transition-base);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.popup__gift-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.4);
}

/* Snowflakes Background */
.popup__snowflakes {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

@keyframes snowfall {
  0% {
    transform: translateY(-10px) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    transform: translateY(500px) rotate(360deg);
    opacity: 0;
  }
}

.snowflake {
  position: absolute;
  color: rgba(255, 255, 255, 0.4);
  font-size: 14px;
  animation: snowfall linear infinite;
}

.snowflake:nth-child(1) { left: 10%; animation-duration: 8s; animation-delay: 0s; }
.snowflake:nth-child(2) { left: 25%; animation-duration: 10s; animation-delay: 1s; }
.snowflake:nth-child(3) { left: 40%; animation-duration: 9s; animation-delay: 2s; }
.snowflake:nth-child(4) { left: 55%; animation-duration: 11s; animation-delay: 0.5s; }
.snowflake:nth-child(5) { left: 70%; animation-duration: 8.5s; animation-delay: 1.5s; }
.snowflake:nth-child(6) { left: 85%; animation-duration: 10.5s; animation-delay: 2.5s; }

