/**
 * LiquidStack Mobile Scroll Button
 * =================================
 * فایل مستقل استایل دکمه فلش پایین (فقط موبایل و تبلت)
 * بدون تغییر در lqd-stack.css
 */

/* مخفی در دسکتاپ */
@media (min-width: 1025px) {
  .scroll-btn-wrapper {
    display: none !important;
  }
}

/* نمایش و استایل در موبایل/تبلت */
@media (max-width: 1024px) {
  .scroll-btn-wrapper {
    position: absolute !important;
    bottom: 10% !important;
    left: 50% !important;
    transform: translateX(-50%) !important;
    z-index: 2147483647 !important;
    pointer-events: auto !important;
    display: block;
    width: auto;
  }

  .scroll-btn-wrapper a {
    position: relative;
    width: 60px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-decoration: none;
    color: #ffffff;
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    transition: opacity 0.3s ease;
    cursor: pointer !important;
    -webkit-user-select: none;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    z-index: 999999 !important;
    pointer-events: auto !important;
    touch-action: manipulation !important;
  }

  .scroll-btn-wrapper a:active {
    opacity: 0.6;
  }

  /* فلش CSSی */
  .scroll-btn-wrapper a span {
    position: static !important;
    width: 20px;
    height: 20px;
    margin: 0 !important;
    border-left: 2px solid #ffffff;
    border-bottom: 2px solid #ffffff;
    transform: rotate(-45deg);
    animation: lqd-scroll-bounce 1.5s infinite;
    box-sizing: border-box;
    pointer-events: none !important;
  }

  @keyframes lqd-scroll-bounce {
    0% {
      transform: rotate(-45deg) translate(0, 0);
      opacity: 0;
    }
    50% {
      opacity: 1;
    }
    100% {
      transform: rotate(-45deg) translate(-14px, 14px);
      opacity: 0;
    }
  }
}