/*
 * 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.
 */

.nav-item {
  background: transparent;
  /* transition: all 0.1s ease; */
}

.nav-item:hover {
  background: linear-gradient(180deg, #2F3137 4.41%, #2B2C32 60.71%);
  border: 1px solid #393A42;
}

.nav-item-active {
  background: linear-gradient(180deg, #2F3137 4.41%, #2B2C32 60.71%);
  border: 1px solid #393A42;
  position: relative;
}

.nav-item-active::before {
  content: '';
  position: absolute;
  width: 3px;
  height: 20px;
  left: -12px;
  top: calc(50% - 10px);
  background: #F3612D;
  border-radius: 0px 2px 2px 0px;
}

/* Custom background color */
/* TODO: Remove this once we have bg-background-light working using tailwind */
.bg-custom {
  background-color: #F8FAFB !important;
}

/* Custom styles for filters */
.filter-input {
  height: 36px !important;
}

.filter-save-link {
  color: #374151;
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
}

.filter-save-link:hover {
  color: #F3612D;
}

/* Custom styles for range slider */
.slider-styled {
  height: 8px !important;
}

.slider-styled .noUi-connect {
  background: #F3612D;
}

.slider-styled .noUi-handle {
  height: 16px;
  width: 16px;
  border-radius: 50%;
  background: #fff;
  border: 6px solid #F3612D;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  cursor: pointer;
}

.slider-styled .noUi-handle:before,
.slider-styled .noUi-handle:after {
  display: none;
}

.slider-styled .noUi-target {
  background: #E5E7EB;
  border: none;
  border-radius: 4px;
  box-shadow: none;
}

/* Loading state transitions */
.opacity-0 {
  opacity: 0;
  transition: opacity 0.2s ease-in-out;
}

/* Skeleton loading animation */
@keyframes pulse {
  0% {
    opacity: 1;
  }
  50% {
    opacity: .5;
  }
  100% {
    opacity: 1;
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Photo hover animations */
.photo-item {
  transition: transform 0.2s ease-out, box-shadow 0.2s ease-out;
  cursor: pointer;
}

.photo-item:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

.photo-item:active {
  transform: scale(0.98);
}

/* Bounce animation when hover ends */
@keyframes bounce-back {
  0% { transform: scale(1.05); }
  60% { transform: scale(0.98); }
  100% { transform: scale(1); }
}

.photo-item:not(:hover) {
  animation: bounce-back 0.3s ease-out;
}
