/* Event creation polish (2026-07-25) — hero section on public event page. */

.event-hero {
  position: relative;
  min-height: 320px;
  aspect-ratio: 16 / 9;
  max-height: 500px;
  background-color: #6c757d;
  background-size: cover;
  background-position: center;
  border-radius: 0.5rem;
  display: flex;
  align-items: flex-end;
  color: white;
  padding: 2rem;
  overflow: hidden;
}

/* Scrim. The hero background is an arbitrary uploaded photo, so white text on
   it is legible only by luck — a bright image erases the title entirely. The
   gradient is bottom-weighted because the content sits at the bottom edge. */
.event-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.62) 0%, rgba(0, 0, 0, 0.18) 40%, rgba(0, 0, 0, 0) 65%);
  pointer-events: none;
}

.event-hero-content {
  position: relative; /* sit above the scrim */
  z-index: 1;
  width: 100%;
}

.event-hero-title {
  color: white;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.event-hero-subtitle {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.event-hero-meta .badge {
  font-size: 0.9rem;
  padding: 0.4rem 0.75rem;
}

/* Datetime input styling polish (2026-07-25) — central event form. */

input[type="datetime-local"].form-control {
  padding: 0.375rem 0.75rem;
  cursor: pointer;
}

input[type="datetime-local"].form-control::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.7;
}

input[type="datetime-local"].form-control::-webkit-calendar-picker-indicator:hover {
  opacity: 1;
}

/* Datetime fields inside fieldset should have consistent width */
fieldset input[type="datetime-local"] {
  max-width: 300px;
}
