/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* PWA Test Button Dragging Styles */
[data-pwa-test-target="toggleButton"] {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  transition: all 0.2s ease;
}

[data-pwa-test-target="toggleButton"].dragging {
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
  z-index: 60 !important;
}

[data-pwa-test-target="toggleButton"]:active:not(.dragging) {
  transform: scale(0.95);
}

/* Prevent text selection during drag */
[data-pwa-test-target="toggleButton"] * {
  pointer-events: none;
}

/* Dropdown Menu Styles */
[data-dropdown-target="menu"] {
  transform-origin: top right;
  transition: all 0.2s ease-out;
}

[data-dropdown-target="menu"]:not(.hidden) {
  animation: dropdownFadeIn 0.2s ease-out;
}

@keyframes dropdownFadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(-10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* User Avatar Gradient Animation */
.user-avatar-gradient {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  background-size: 200% 200%;
  animation: gradientShift 3s ease infinite;
}

@keyframes gradientShift {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}

/* Horizontal Scroll Styles */
.scrollbar-hide {
  -ms-overflow-style: none;  /* Internet Explorer 10+ */
  scrollbar-width: none;  /* Firefox */
}

.scrollbar-hide::-webkit-scrollbar {
  display: none;  /* Safari and Chrome */
}

/* Smooth scrolling for horizontal scroll containers */
[data-horizontal-scroll-target="container"] {
  scroll-behavior: smooth;
}

/* Enhanced fade effects for horizontal scroll */
[data-horizontal-scroll-target="leftFade"],
[data-horizontal-scroll-target="rightFade"] {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* Enhanced scroll controls */
[data-enhanced-scroll-target="scrollButton"] {
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

[data-enhanced-scroll-target="scrollButton"]:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

[data-enhanced-scroll-target="scrollButton"]:active {
  transform: scale(0.95);
}

/* Focus styles for accessibility */
[data-enhanced-scroll-target="scrollButton"]:focus {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}
