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

@import "masonry.css";

/* Ad Cards Dynamic Sizing */
.auto-rows-max {
  grid-auto-rows: max-content;
}

/* Image carousel transitions */
.carousel-transition {
  transition: opacity 0.3s ease-in-out;
}

/* Flexible card heights */
.ad-card-flex {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.ad-card-content {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

/* Video controls styling */
video::-webkit-media-controls-panel {
  background-color: rgba(0, 0, 0, 0.8);
}

video::-webkit-media-controls-play-button,
video::-webkit-media-controls-volume-slider {
  filter: invert(1);
}

/* Toast slide-in animation */
@keyframes slide-in-right {
  from { opacity: 0; transform: translateX(100%); }
  to { opacity: 1; transform: translateX(0); }
}

.animate-slide-in {
  animation: slide-in-right 0.3s ease-out;
}

/* Line clamp for text truncation */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
