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

/* CrowdPulse Brand Colors */
:root {
  /* Primary = Gelb (Brand-Farbe, übernimmt Bulma Warning-Werte) */
  --bulma-primary-h: 42deg;
  --bulma-primary-s: 100%;
  --bulma-primary-l: 53%;
  --bulma-primary-invert: hsla(42deg, 100%, 8%, 1);
  --bulma-primary-light: hsla(42deg, 100%, 88%, 1);
  --bulma-primary-dark: hsla(42deg, 100%, 10%, 1);
  --bulma-primary-on-scheme-l: 23%;
  /* Warning = Orange (für echte Warnungen) */
  --bulma-warning-h: 30deg;
  --bulma-warning-s: 100%;
  --bulma-warning-l: 50%;
  --bulma-warning-invert: hsla(30deg, 100%, 8%, 1);
  --bulma-warning-light: hsla(30deg, 100%, 88%, 1);
  --bulma-warning-dark: hsla(30deg, 100%, 10%, 1);
  --bulma-warning-on-scheme-l: 23%;
  /* Focus-Farbe auf Primary setzen statt Bulma-Default blau */
  --bulma-link-h: var(--bulma-primary-h);
  --bulma-link-s: var(--bulma-primary-s);
  --bulma-link-l: var(--bulma-primary-l);
}

/* 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 {
  min-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 {
  min-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;
  border-bottom: 1px solid hsl(0, 0%, 21%);
}

/* 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;
}

/* Align spotlight button height with tags */
.message-item .button.is-small {
  height: 1.5rem;
  font-size: 0.75rem;
  padding-left: 0.5em;
  padding-right: 0.5em;
}


/* Counter pulse animation — triggered by Turbo Stream replace */
.counter-pulse {
  animation: counter-pulse 0.4s ease-in-out;
}

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

/* Floating Feedback Button — Bulma hat keine FAB-Komponente */
.feedback-fab {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 100;
  width: 3rem;
  height: 3rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease;
}

.feedback-fab:hover {
  transform: scale(1.1);
}

/* Archived event opacity — Bulma hat keinen Opazitaets-Helper */
.has-opacity-half {
  opacity: 0.6;
}

