/**
 * BLACKKZ mirror — жеңіл мобильді адаптация + жұмсақ анимациялар.
 * Түпнұсқа дизайнды бұзбай: тек қосымша полировка.
 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
}

/* Кескіндер контейнерден шықпасын */
#__next img,
#__next video {
  max-width: 100%;
  height: auto;
}

/* Сілтемелер мен батырмалар — жұмсақ реакция */
#__next a,
#__next button {
  transition:
    color 0.22s ease,
    opacity 0.22s ease,
    transform 0.22s ease,
    box-shadow 0.22s ease,
    filter 0.22s ease;
}

#__next a:active,
#__next button:active {
  transform: scale(0.98);
}

/* Негізгі контент — жеңіл кіру анимациясы */
@keyframes mirror-fade-up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#__next main {
  animation: mirror-fade-up 0.55s ease-out both;
}

/* Карталар / торлар — hover-да елеулі емес көтерілу */
@media (hover: hover) and (pointer: fine) {
  #__next main a[class*="border"]:hover,
  #__next main [class*="group"]:hover img {
    transition: transform 0.35s ease, filter 0.35s ease;
  }
}

/* Мобиль: навигация мен контент тығыздығын аздап босату */
@media screen and (max-width: 699px) {
  #__next nav {
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }

  #__next .boundsXS\:px-6,
  #__next [class*="px-6"] {
    scroll-padding-top: env(safe-area-inset-top, 0);
  }

  /* Ұсақ экранда мәтін өлшемін аздап шектеу — қатты өзгертпейміз */
  #__next h1,
  #__next h2 {
    word-break: break-word;
    hyphens: auto;
  }
}

/* Кіші планшет / үлкен телефон */
@media screen and (min-width: 480px) and (max-width: 899px) {
  #__next main {
    animation-duration: 0.45s;
  }
}

/* Админка: баннер / сілтемелер (mirror-site-chrome.js) */
.mirror-site-banner {
  position: sticky;
  top: 0;
  z-index: 99998;
  box-sizing: border-box;
  width: 100%;
  padding: 0.55rem 1rem;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.45;
  background: rgba(18, 18, 20, 0.92);
  color: #eee;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.mirror-site-banner a {
  color: #ff9a5c;
}

.mirror-site-footer-links {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 99997;
  box-sizing: border-box;
  padding: 0.4rem 0.75rem calc(0.4rem + env(safe-area-inset-bottom, 0));
  text-align: center;
  font-size: 0.8rem;
  line-height: 1.4;
  background: rgba(12, 12, 14, 0.92);
  color: #ccc;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
}

.mirror-site-footer-links a {
  color: #ff9a5c;
  margin: 0 0.35rem;
}

body:has(#mirror-footer-links) {
  padding-bottom: 2.75rem;
}
