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

/* Smooth Scroll for Anchor Links */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

/* Event Card Styles */

.event-card {
  position: relative;
}

.event-card-actions {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  z-index: 10;
  display: flex;
  gap: 0.5rem;
}

.event-card-content {
  height: 170px;
}

.event-card-banner {
  height: 80px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  border-radius: 6px 6px 0 0;
}

.event-card-info {
  height: 90px;
}

.event-card-tags {
  gap: 0.5rem;
}

/* Event Name Link */
.event-name-link {
  text-decoration: none;
  display: block;
}

.event-name-link h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: color 0.2s;
}

.event-name-link:hover h2 {
  color: #3273dc !important;
  text-decoration: underline;
}

/* Message List Styles */

.message-item {
  word-break: break-word;
}

/* Keep spotlight button inline in metadata row */
.message-item form {
  display: inline;
}

/* Navbar burger color fix for dark theme */
.navbar.is-dark .navbar-burger {
  color: white;
}

/* Use Case Cards equal height */
.use-case-box {
  width: 100%;
}

/* Demo Video */
.demo-video {
  border-radius: 8px;
}

/* Slideshow Fade Transition */
.slideshow-container {
  position: relative;
}

.slideshow-container [data-slideshow-target="slide"] {
  transition: opacity 0.6s ease;
}

.slideshow-container [data-slideshow-target="slide"].is-hidden {
  display: block !important;
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
}

/* Hero Slideshow */
.hero-slide {
  width: 100%;
  border-radius: 8px;
}

/* Lightbox */
.lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  cursor: pointer;
}

.lightbox-overlay img {
  max-width: 90vw;
  max-height: 90vh;
  border-radius: 8px;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  padding: 1rem;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  opacity: 1;
}

.lightbox-prev {
  left: 1rem;
}

.lightbox-next {
  right: 1rem;
}

/* How It Works Images */
.how-it-works-img {
  border-radius: 8px;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  cursor: pointer;
}

/* Spotlight Button Pulse Animation (active state) */
.message-item .button.is-warning {
  animation: pulse-star 1.5s ease-in-out infinite;
}

@keyframes pulse-star {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.15); }
}

