/* Smooth Marquee Slider Styles - Mobile Compatible */
.smooth-marquee-wrapper {
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.smooth-marquee-container {
  width: 100%;
  overflow: hidden;
  padding: 12px 0;
  position: relative;
  white-space: nowrap;
  box-sizing: border-box;
  margin: 0;
  border: none;
  background: #ffffff;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.smooth-marquee-content {
  display: inline-block;
  animation: smooth-scroll-left 25s linear infinite;
  will-change: transform;
  backface-visibility: hidden;
  perspective: 1000px;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.smooth-marquee-item {
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  font-weight: 500;
  color: #000000;
  margin-right: 0;
  display: inline-block;
  font-size: 18px;
  line-height: 1.4;
  padding-right: 40px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.smooth-marquee-separator {
  margin: 0 20px;
  font-weight: bold;
  opacity: 0.8;
}

/* Hover effects - only on non-touch devices */
@media (hover: hover) and (pointer: fine) {
  .smooth-marquee-container:hover .smooth-marquee-content {
    animation-play-state: paused;
  }
}

/* Touch devices - pause on tap */
.smooth-marquee-container.paused .smooth-marquee-content {
  animation-play-state: paused;
}

@keyframes smooth-scroll-left {
  0% {
    transform: translateX(100%);
  }
  100% {
    transform: translateX(-100%);
  }
}

/* Tablet Design */
@media (max-width: 1024px) {
  .smooth-marquee-item {
    font-size: 17px;
    padding-right: 35px;
  }

  .smooth-marquee-separator {
    margin: 0 18px;
  }
}

/* Mobile Design - Large phones */
@media (max-width: 768px) {
  .smooth-marquee-item {
    font-size: 16px;
    padding-right: 30px;
  }

  .smooth-marquee-separator {
    margin: 0 15px;
  }

  .smooth-marquee-container {
    padding: 10px 0;
  }

  .smooth-marquee-content {
    animation-duration: 20s;
  }
}

/* Mobile Design - Standard phones */
@media (max-width: 480px) {
  .smooth-marquee-item {
    font-size: 14px;
    padding-right: 25px;
    line-height: 1.3;
  }

  .smooth-marquee-separator {
    margin: 0 12px;
    font-size: 14px;
  }

  .smooth-marquee-container {
    padding: 8px 0;
  }

  .smooth-marquee-content {
    animation-duration: 18s;
  }
}

/* Mobile Design - Small phones */
@media (max-width: 360px) {
  .smooth-marquee-item {
    font-size: 13px;
    padding-right: 20px;
  }

  .smooth-marquee-separator {
    margin: 0 10px;
    font-size: 13px;
  }

  .smooth-marquee-container {
    padding: 6px 0;
  }

  .smooth-marquee-content {
    animation-duration: 16s;
  }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .smooth-marquee-item {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
}

/* Landscape orientation on mobile */
@media (max-width: 768px) and (orientation: landscape) {
  .smooth-marquee-container {
    padding: 6px 0;
  }

  .smooth-marquee-item {
    font-size: 15px;
  }
}

/* Fix for common WordPress theme conflicts */
.smooth-marquee-wrapper * {
  box-sizing: border-box;
}

.smooth-marquee-container::before,
.smooth-marquee-container::after {
  display: none;
}

/* Ensure no margin/padding inheritance */
.smooth-marquee-wrapper {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
}

/* Prevent text selection on mobile */
.smooth-marquee-item {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Accessibility improvements */
@media (prefers-reduced-motion: reduce) {
  .smooth-marquee-content {
    animation-duration: 60s;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .smooth-marquee-container {
    background: #1a1a1a;
  }

  .smooth-marquee-item {
    color: #ffffff;
  }
}
