/* ===== Zepto Shop — Yumşaq animasiyalar (yalnız əlavə, heç nə silinmir) ===== */

/* ----- Hover keçidləri ----- */

.btn {
  position: relative;
  overflow: hidden;
}

.btn-primary::before,
.btn-wa::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(
    120deg,
    transparent 30%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 70%
  );
  transform: translateX(-120%);
  transition: transform 0.7s ease;
}

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover::before,
  .btn-wa:hover::before {
    transform: translateX(120%);
  }
}

.hero-actions .btn-primary::before {
  left: 14px;
  right: 14px;
}

.logo-img {
  transition: transform 0.35s ease;
}

@media (hover: hover) and (pointer: fine) {
  .logo:hover .logo-img {
    transform: scale(1.06) rotate(-3deg);
  }
}

.card-emoji,
.game-emoji {
  transition: transform 0.35s ease;
}

.game-emoji {
  transform-origin: left center;
}

@media (hover: hover) and (pointer: fine) {
  .card:hover .card-emoji {
    transform: translateY(-3px) scale(1.12) rotate(-5deg);
  }

  .game:hover .game-emoji {
    transform: scale(1.12) rotate(-5deg);
  }

  .feature:hover {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 255, 0.3);
    box-shadow: 0 14px 40px rgba(168, 85, 255, 0.14);
  }
}

@media (hover: none) and (pointer: coarse) {
  .btn-primary:active::before,
  .btn-wa:active::before {
    transform: translateX(120%);
  }

  .logo:active .logo-img {
    transform: scale(1.06) rotate(-3deg);
  }

  .card:active .card-emoji {
    transform: translateY(-3px) scale(1.12) rotate(-5deg);
  }

  .game:active .game-emoji {
    transform: scale(1.12) rotate(-5deg);
  }

  .feature:active {
    transform: translateY(-4px);
    border-color: rgba(168, 85, 255, 0.3);
    box-shadow: 0 14px 40px rgba(168, 85, 255, 0.14);
  }
}

.feature {
  transition:
    transform 0.25s ease,
    border-color 0.25s ease,
    box-shadow 0.25s ease;
}

/* ----- Açılış və görünmə animasiyaları ----- */

@media screen {
  @keyframes zFade {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  @keyframes zFadeUp {
    from { opacity: 0; transform: translateY(18px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes zFadeDown {
    from { opacity: 0; transform: translateY(-14px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes zNavDrop {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  @keyframes zGradShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
  }

  @keyframes zPulse {
    0% {
      box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0.45);
    }
    70% {
      box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4), 0 0 0 16px rgba(37, 211, 102, 0);
    }
    100% {
      box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4), 0 0 0 0 rgba(37, 211, 102, 0);
    }
  }

  @keyframes zFloat {
    0%, 100% { transform: translate3d(0, 0, 0); }
    50% { transform: translate3d(30px, 24px, 0); }
  }

  /* Səhifə və başlıq */
  body {
    animation: zFade 0.5s ease;
  }

  .header {
    animation: zFadeDown 0.6s ease backwards;
  }

  /* Giriş hissəsi: ardıcıl görünmə */
  .hero-badge { animation: zFadeUp 0.7s ease backwards 0.1s; }
  .hero-title { animation: zFadeUp 0.7s ease backwards 0.2s; }
  .hero-sub { animation: zFadeUp 0.7s ease backwards 0.3s; }
  .hero-actions { animation: zFadeUp 0.7s ease backwards 0.4s; }
  .stat:nth-child(1) { animation: zFadeUp 0.7s ease backwards 0.5s; }
  .stat:nth-child(2) { animation: zFadeUp 0.7s ease backwards 0.6s; }
  .stat:nth-child(3) { animation: zFadeUp 0.7s ease backwards 0.7s; }

  .grad-text {
    background-size: 200% auto;
    animation: zGradShift 7s ease-in-out infinite;
  }

  /* Bölmə başlıqları, geri düyməsi, əlaqə bloku */
  .section-head { animation: zFadeUp 0.6s ease backwards; }
  .info-contact { animation: zFadeUp 0.6s ease backwards 0.2s; }

  /* Kartlar, kateqoriyalar, üstünlüklər, FAQ: ardıcıl görünmə */
  :is(.cards, .games, .features-grid, .faq-list) > * {
    animation: zFadeUp 0.6s ease backwards 0.45s;
  }

  :is(.cards, .games, .features-grid, .faq-list) > :nth-child(1) { animation-delay: 0.05s; }
  :is(.cards, .games, .features-grid, .faq-list) > :nth-child(2) { animation-delay: 0.1s; }
  :is(.cards, .games, .features-grid, .faq-list) > :nth-child(3) { animation-delay: 0.15s; }
  :is(.cards, .games, .features-grid, .faq-list) > :nth-child(4) { animation-delay: 0.2s; }
  :is(.cards, .games, .features-grid, .faq-list) > :nth-child(5) { animation-delay: 0.25s; }
  :is(.cards, .games, .features-grid, .faq-list) > :nth-child(6) { animation-delay: 0.3s; }
  :is(.cards, .games, .features-grid, .faq-list) > :nth-child(7) { animation-delay: 0.35s; }
  :is(.cards, .games, .features-grid, .faq-list) > :nth-child(8) { animation-delay: 0.4s; }

  /* FAQ cavabı açılanda */
  .faq-item[open] > p {
    animation: zFadeUp 0.35s ease;
  }

  /* Mobil menyu */
  @media (max-width: 768px) {
    .nav.active {
      animation: zNavDrop 0.28s ease;
    }

    .nav.active a {
      animation: zFadeUp 0.35s ease backwards;
    }

    .nav.active a:nth-child(1) { animation-delay: 0.03s; }
    .nav.active a:nth-child(2) { animation-delay: 0.06s; }
    .nav.active a:nth-child(3) { animation-delay: 0.09s; }
    .nav.active a:nth-child(4) { animation-delay: 0.12s; }
    .nav.active a:nth-child(5) { animation-delay: 0.15s; }
  }

  /* Arxa fon işığı: yalnız kompüterdə (mobil performans üçün) */
  @media (min-width: 769px) {
    .glow-1 { animation: zFloat 16s ease-in-out infinite; }
    .glow-2 { animation: zFloat 20s ease-in-out infinite reverse; }
  }
}
