﻿/* WaggleTails shelter events (phase 2, slice B): Manage Events cards and their confirmations, the host's event details,
   the attendee roster and the three-step event editor. Only the wt-event-* family (plus the one Font Awesome glyph no
   other sheet declares); colours come from wt-tokens.css. The status pills keep white text on a solid per-state fill, as
   CommunityEventPresentation draws them with fixed brand values on purpose (the themed teal would wash the white label
   out in dark mode), so the pills and the Date & Time disc take the theme-invariant --wt-fixed-* tokens. */

.fa-image::before { content: "\f03e"; }

/* Page root and head - ShelterEventsPage.xaml:13-28 (the count under the title, Create beside it) */
.wt-event-page {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.wt-event-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.wt-event-head__count {
  font-size: 13px;
  color: var(--wt-text-secondary);
}
.wt-event-head .wt-btn--compact {
  min-height: 42px;
  padding: 8px 18px;
  font-size: 14px;
}
.wt-event-empty__disc {
  background: var(--wt-gradient-mint);
  opacity: 1;
}

/* Cards - ShelterEventsPage.xaml:46-100 (142 px cover with the two pills, 15 px body, dimmed when past or cancelled) */
.wt-event-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
@media (min-width: 768px) {
  .wt-event-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: start;
  }
}
@media (min-width: 1200px) {
  .wt-event-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
.wt-event-card {
  display: flex;
  flex-direction: column;
}
.wt-event-card--inactive {
  opacity: .72;
}
.wt-event-card__media {
  position: relative;
  height: 142px;
  background: var(--wt-surface-muted);
}
.wt-event-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wt-event-card__media-status {
  position: absolute;
  top: 12px;
  left: 12px;
}
.wt-event-card__media-count {
  position: absolute;
  top: 12px;
  right: 12px;
}
.wt-event-card__body {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding: 15px;
}
.wt-event-card__pills {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.wt-event-card__title {
  font-weight: 600;
  font-size: 16px;
  line-height: 1.35;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-event-card__line {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 7px;
  align-items: start;
  font-size: 12px;
  color: var(--wt-text-secondary);
  overflow-wrap: anywhere;
}
.wt-event-card__line i {
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: var(--wt-primary);
}
.wt-event-card__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
  margin-top: 5px;
}
.wt-event-card__cancel {
  color: var(--wt-danger-accent);
}

/* Status and count pills - CommunityEventPresentation (white 11 px semibold on the state's fixed fill, identical in both
   themes: CommunityEventPresentation.cs:22-33); the count pill is glass */
.wt-event-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 9px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 11px;
  line-height: 1.3;
  color: #fff;
  white-space: nowrap;
}
.wt-event-pill--cancelled {
  background: var(--wt-fixed-red);
}
.wt-event-pill--past {
  background: var(--wt-fixed-gray-light);
}
.wt-event-pill--closed {
  background: var(--wt-fixed-gray);
}
.wt-event-pill--upcoming {
  background: var(--wt-fixed-green);
}
.wt-event-pill--today {
  background: var(--wt-fixed-teal);
}
.wt-event-pill--tomorrow {
  background: var(--wt-fixed-gold);
}
.wt-event-pill--count {
  background: var(--wt-glass);
  color: var(--wt-text);
}
.wt-event-pill--count i {
  font-size: 13px;
  color: var(--wt-primary);
}

/* Confirmation dialog - ShelterEventsPage.xaml:108-124 (centred title and message, the red accept over a muted cancel) */
.wt-event-confirm {
  width: min(100% - 32px, 390px);
}
.wt-event-confirm__body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 0;
  padding: 22px;
}
.wt-event-confirm__title {
  font-weight: 700;
  font-size: 21px;
  line-height: 1.3;
  text-align: center;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-event-confirm__text {
  font-size: 14px;
  line-height: 1.5;
  text-align: center;
  color: var(--wt-text-secondary);
}
.wt-event-confirm__body .wt-btn {
  min-height: 48px;
  border-radius: 24px;
}

/* Details - EventDetailsPage.xaml (264 px hero, tag chips, 24 px title, fact card, cancelled notice, section cards) */
.wt-event-pills {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.wt-event-hero {
  position: relative;
  aspect-ratio: 16 / 9;
  max-height: 480px;
  overflow: hidden;
  border-radius: var(--wt-radius-card);
  background: var(--wt-surface-muted);
}
.wt-event-hero img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wt-event-hero__placeholder {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 13px;
  color: var(--wt-text-secondary);
}
.wt-event-hero__placeholder i {
  font-size: 40px;
  color: var(--wt-text-muted);
}
.wt-event-hero__play {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  display: grid;
  place-items: center;
  border-radius: 32px;
  background: var(--wt-scrim);
  color: #fff;
  font-size: 24px;
  text-decoration: none;
}
.wt-event-hero__status {
  position: absolute;
  top: 16px;
  left: 16px;
}
.wt-event-hero__count {
  position: absolute;
  right: 16px;
  bottom: 16px;
}
.wt-event-hero .wt-event-pill {
  padding: 7px 12px;
  border-radius: 18px;
  font-size: 12px;
}
.wt-event-title {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.3;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-event-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.wt-event-actions__cancel {
  border-color: var(--wt-danger-accent);
  color: var(--wt-danger-accent);
}
.wt-event-facts {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
}
.wt-event-fact {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 12px;
  align-items: start;
}
.wt-event-fact__disc {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  color: #fff;
  font-size: 17px;
}
.wt-event-fact__disc--gold {
  /* EventDetailsPage.xaml:133: a fixed #EAB308 under the white glyph; the Location disc below is themed (:141) */
  background: var(--wt-fixed-gold);
}
.wt-event-fact__disc--teal {
  background: var(--wt-primary);
}
.wt-event-fact__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wt-event-fact__label {
  font-size: 12px;
  color: var(--wt-text-muted);
}
.wt-event-fact__value {
  font-weight: 700;
  font-size: 15px;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-event-fact__sub {
  font-size: 13px;
  color: var(--wt-text-secondary);
  overflow-wrap: anywhere;
}
.wt-event-notice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--wt-pill-red-bg);
  border-radius: var(--wt-radius-card);
  background: var(--wt-soft-danger-bg);
}
.wt-event-notice__glyph {
  font-size: 20px;
  line-height: 1.3;
}
.wt-event-notice__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wt-event-notice__title {
  font-weight: 700;
  font-size: 17px;
  color: var(--wt-pill-red-deep);
}
.wt-event-notice__body {
  font-size: 13px;
  line-height: 1.45;
  color: var(--wt-danger-accent);
}
.wt-event-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px;
}
.wt-event-section--gold {
  background: var(--wt-soft-gold-bg);
}
.wt-event-section--teal {
  background: var(--wt-soft-teal-bg);
}
.wt-event-section__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.wt-event-section__title {
  font-weight: 700;
  font-size: 18px;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-event-section__text {
  font-size: 14px;
  line-height: 1.5;
  color: var(--wt-text-secondary);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.wt-event-bullets {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.wt-event-bullets li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--wt-text-secondary);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.wt-event-bullets li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 3px;
  background: var(--wt-primary);
}
.wt-event-bullets--gold li::before {
  background: var(--wt-fixed-gold); /* EventDetailsPage.xaml:250 draws the dot as a fixed #EAB308 in both themes */
}
.wt-event-host {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  align-items: center;
  color: inherit;
  text-decoration: none;
}
.wt-event-host__avatar {
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 28px;
  background: var(--wt-surface-muted);
  color: var(--wt-text-muted);
  font-size: 22px;
}
.wt-event-host__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wt-event-host__text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.wt-event-host__name {
  font-weight: 700;
  font-size: 15px;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-event-host__role {
  font-size: 13px;
  color: var(--wt-text-muted);
}
.wt-event-going {
  display: flex;
  align-items: center;
  padding-right: 10px;
}
.wt-event-going__avatar,
.wt-event-going__more {
  width: 42px;
  height: 42px;
  margin-right: -10px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  border: 2px solid var(--wt-card);
  border-radius: 21px;
  background: var(--wt-surface-muted);
  color: var(--wt-text-muted);
  font-size: 16px;
}
.wt-event-going__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wt-event-going__more {
  background: var(--wt-primary);
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  text-decoration: none;
}
.wt-event-map {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  background: var(--wt-surface-muted);
}
.wt-event-map i {
  color: var(--wt-primary);
}
.wt-event-map__text {
  min-width: 0;
  font-size: 14px;
  color: var(--wt-text-body);
  overflow-wrap: anywhere;
}

/* Attendees - EventAttendeesPage.xaml (teal header card, two-column roster of 144 px photo cards) */
.wt-event-roster-head {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px;
  border-radius: var(--wt-radius-card);
  background: var(--wt-primary);
  color: #fff;
}
.wt-event-roster-head__caption {
  font-size: 12px;
  opacity: .9;
}
.wt-event-roster-head__title {
  font-weight: 700;
  font-size: 18px;
  overflow-wrap: anywhere;
}
.wt-event-roster-head__text {
  font-size: 13px;
  line-height: 1.45;
  opacity: .85;
}
.wt-event-roster {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
@media (min-width: 768px) {
  .wt-event-roster {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1200px) {
  .wt-event-roster {
    grid-template-columns: repeat(4, 1fr);
  }
}
.wt-event-attendee {
  display: flex;
  flex-direction: column;
}
.wt-event-attendee__photo {
  position: relative;
  height: 144px;
  display: grid;
  place-items: center;
  background: var(--wt-surface-muted);
  color: var(--wt-text-muted);
  font-size: 32px;
}
.wt-event-attendee__photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wt-event-attendee__type {
  position: absolute;
  top: 10px;
  right: 10px;
  padding: 4px 10px;
  border-radius: 14px;
  background: var(--wt-glass);
  color: var(--wt-text);
  font-weight: 700;
  font-size: 11px;
}
.wt-event-attendee__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px;
}
.wt-event-attendee__name {
  font-weight: 700;
  font-size: 15px;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-event-attendee__breed {
  font-size: 13px;
  color: var(--wt-text-secondary);
  overflow-wrap: anywhere;
}
.wt-event-attendee__age {
  font-size: 12px;
  color: var(--wt-text-muted);
}

/* Editor - ShelterEventEditorPage.xaml (three-step progress, the green intro, the 17 px form cards, type cards with a
   glyph, the two time inputs side by side, the 190 px cover tile, the preview card and the green ready banner) */
.wt-event-progress__fill {
  height: 100%;
  border-radius: var(--wt-radius-pill);
  background: var(--wt-gradient-brand);
  transition: width 160ms ease-out;
}
.wt-event-progress__fill[data-step="1"] { width: 33.34%; }
.wt-event-progress__fill[data-step="2"] { width: 66.67%; }
.wt-event-progress__fill[data-step="3"] { width: 100%; }
.wt-event-intro {
  padding: 14px;
  border: 1px solid var(--wt-pill-green-border);
  border-radius: 18px;
  background: var(--wt-soft-success-bg);
  font-size: 13px;
  line-height: 1.45;
  color: var(--wt-text-body);
}
.wt-event-form-card {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 17px;
}
.wt-event-types {
  gap: 8px;
}
.wt-event-types .wt-event-type {
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid var(--wt-border);
  text-align: left;
}
.wt-event-type__icon {
  flex-shrink: 0;
  width: 22px;
  font-size: 18px;
  text-align: center;
  color: var(--wt-primary);
}
.wt-event-types .wt-event-type .wt-choice__title {
  font-size: 12px;
}
.wt-event-types .wt-event-type.is-selected {
  border: 2px solid var(--wt-primary);
  background: var(--wt-selection-bg);
}
.wt-event-types .wt-event-type.is-selected .wt-choice__title,
.wt-event-types .wt-event-type.is-selected .wt-event-type__icon {
  color: var(--wt-selection-text);
}
.wt-event-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 400px) {
  .wt-event-times {
    grid-template-columns: 1fr;
  }
}
textarea.wt-event-textarea--tall {
  min-height: 130px;
}
.wt-event-hero__link {
  display: block;
  width: 100%;
  height: 100%;
}
/* QC 2026-10-21 ("cover image cropping is not showing the photo as how it will look in the mobile"): the adjust step exports
   16:9 and the tile was 100% x 190 px - a 3.8:1 band at desktop width that object-fit: cover re-cropped to a strip of the
   frame the shelter had chosen. The tile, the preview card's media and the details hero now keep the crop's own 16:9
   (the app's 190 px tile at phone width is within a few percent of it), so what was framed is what shows. */
.wt-event-cover {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 190px;
  overflow: hidden;
  border-radius: 18px;
  background: var(--wt-surface-muted);
}
.wt-event-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wt-event-cover--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
  border: 2px dashed var(--wt-outline);
  background: transparent;
  font-family: var(--wt-font);
  cursor: pointer;
}
.wt-event-cover--empty i {
  margin-bottom: 8px;
  font-size: 32px;
  color: var(--wt-text-muted);
}
.wt-event-cover__title {
  font-weight: 600;
  font-size: 13px;
  color: var(--wt-text-secondary);
}
.wt-event-cover__hint {
  font-size: 11px;
  color: var(--wt-text-muted);
}
.wt-event-cover__remove {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 16px;
  background: var(--wt-danger-accent);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.wt-event-cover__label {
  position: absolute;
  left: 8px;
  bottom: 8px;
  padding: 4px 8px;
  border-radius: 12px;
  background: var(--wt-scrim);
  color: #fff;
  font-size: 11px;
}
.wt-event-cover__input {
  display: none;
}
.wt-event-preview-banner {
  padding: 14px;
  border: 1px solid var(--wt-border);
  border-radius: 18px;
  background: var(--wt-soft-teal-bg);
  font-weight: 600;
  font-size: 13px;
  line-height: 1.45;
  color: var(--wt-text-body);
}
.wt-event-preview {
  display: flex;
  flex-direction: column;
}
.wt-event-preview__media {
  position: relative;
  aspect-ratio: 16 / 9;
  min-height: 190px;
  background: var(--wt-surface-muted);
}
.wt-event-preview__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wt-event-preview__spots {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 12px;
}
.wt-event-preview__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 17px;
}
.wt-event-preview__type {
  font-weight: 600;
  font-size: 11px;
}
.wt-event-preview__title {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  color: var(--wt-text);
  overflow-wrap: anywhere;
}
.wt-event-preview__when {
  font-size: 13px;
  color: var(--wt-text-secondary);
  overflow-wrap: anywhere;
}
.wt-event-preview__where {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 7px;
  align-items: start;
  font-size: 13px;
  color: var(--wt-text-secondary);
  overflow-wrap: anywhere;
}
.wt-event-preview__where i {
  font-size: 15px;
  line-height: 1.5;
  color: var(--wt-primary);
}
.wt-event-preview__text {
  width: 100%;
  font-size: 14px;
  line-height: 1.5;
  color: var(--wt-text-body);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.wt-event-preview__box {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
}
.wt-event-preview__box--gold {
  background: var(--wt-soft-gold-bg);
}
.wt-event-preview__box--teal {
  background: var(--wt-soft-teal-bg);
}
.wt-event-preview__box-title {
  font-weight: 600;
  font-size: 12px;
  color: var(--wt-text);
}
.wt-event-preview__box-text {
  font-size: 12px;
  line-height: 1.45;
  color: var(--wt-text-body);
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.wt-event-ready {
  padding: 13px;
  border: 1px solid var(--wt-pill-green-border);
  border-radius: 16px;
  background: var(--wt-soft-success-bg);
  font-size: 13px;
  line-height: 1.45;
  color: var(--wt-text-body);
}
