/* ═══════════════════════════════════════════════════════════════════════════
   AYATICKETS Event Card V3 — Elevated Edition
   Scoped under `.aya-event-card-v3` body class.
   Key upgrades over V2:
     - Clear typography hierarchy (title dominates)
     - Structured date block on image
     - Icon-prefixed metadata lines
     - Organizer as subtle footer element
     - Better spacing rhythm (8px grid)
     - Refined hover micro-interactions
   ═══════════════════════════════════════════════════════════════════════════ */

/* ─── BASE CARD ───────────────────────────────────────────────────────────── */
.aya-event-card-v3 .card-event {
  position: relative;
  border-radius: 14px;
  border: 1px solid #ebebeb;
  background: #fff;
  overflow: hidden;
  max-width: none;
  display: flex;
  flex-direction: column;
  height: auto;
  transition: box-shadow 200ms ease, border-color 200ms ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.aya-event-card-v3 .card-event.shadow-sm {
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

/* Brand accent top-line */
.aya-event-card-v3 .card-event::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: #c3073f;
  opacity: 0;
  transition: opacity 280ms ease;
  z-index: 3;
}

/* ─── HOVER ───────────────────────────────────────────────────────────────── */
@media (hover: hover) and (pointer: fine) {
  .aya-event-card-v3 .card-event:hover {
    transform: none;
    border-color: rgba(195, 7, 63, 0.15);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
  }

  .aya-event-card-v3 .card-event:hover::after {
    opacity: 1;
  }

  .aya-event-card-v3 .card-event:hover .event-image img {
    transform: none;
  }

  .aya-event-card-v3 .card-event:hover h5 {
    color: #c3073f;
  }
}

/* ─── IMAGE AREA ──────────────────────────────────────────────────────────── */
.aya-event-card-v3 .card-event .event-image {
  position: relative;
  height: auto;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f0f0f0;
  border-radius: 0;
  flex-shrink: 0;
}

.aya-event-card-v3 .card-event .event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  aspect-ratio: 16 / 10;
  transition: transform 500ms cubic-bezier(0.22, 1, 0.36, 1);
}

/* Bottom gradient for readability */
.aya-event-card-v3 .card-event .event-image::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, transparent 0%, rgba(0,0,0,0.15) 100%);
  pointer-events: none;
  z-index: 1;
}

/* ─── DATE BADGE — Structured calendar block ──────────────────────────────── */
.aya-event-card-v3 .card-event .date-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  padding: 0;
  border-radius: 10px;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1px solid rgba(255,255,255,0.7);
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  z-index: 2;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.02em;
  color: rgba(0,0,0,0.8);
  text-align: center;
  min-width: 52px;
  overflow: hidden;
  line-height: 1.2;
  padding: 6px 10px;
}

/* Multi-date badge */
.aya-event-card-v3 .card-event .dates-available-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 10px;
  padding: 5px 10px;
  font-weight: 700;
  backdrop-filter: blur(12px) saturate(150%);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  background: rgba(195, 7, 63, 0.92);
  color: #fff;
  border-radius: 999px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 10px rgba(195,7,63,0.3);
  text-transform: lowercase;
}

.aya-event-card-v3 .card-event .dates-available-badge i {
  font-size: 9px;
}

/* ─── CONTENT AREA — Premium spacing ──────────────────────────────────────── */
.aya-event-card-v3 .card-event .info-wrap {
  padding: 16px 16px 14px;
  background: #fff;
  position: relative;
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
  min-height: 0;
}

/* ─── TITLE — Dominates the hierarchy ─────────────────────────────────────── */
.aya-event-card-v3 .card-event h5 {
  font-weight: 800;
  letter-spacing: -0.02em;
  font-size: 15px;
  line-height: 1.35;
  color: #111827;
  margin-bottom: 6px !important;
  transition: color 200ms ease;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 0;
  white-space: normal;
  text-overflow: unset;
}

/* ─── DATE LINE — Icon-prefixed, clear secondary ──────────────────────────── */
.aya-event-card-v3 .card-event .event-date-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  margin-bottom: 4px;
  padding-left: 0;
}

.aya-event-card-v3 .card-event .event-date-line::before {
  content: '\f073';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 11px;
  color: #c3073f;
  opacity: 0.7;
  flex-shrink: 0;
}

.aya-event-card-v3 .card-event .event-date-text {
  color: rgba(0,0,0,0.65);
  font-weight: 600;
}

.aya-event-card-v3 .card-event .dates-inline-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(195,7,63,0.06);
  border: 1px solid rgba(195,7,63,0.12);
  color: #c3073f;
  border-radius: 999px;
  white-space: nowrap;
}

.aya-event-card-v3 .card-event .dates-inline-badge i {
  font-size: 9px;
}

/* ─── VENUE — Icon-prefixed, tertiary ─────────────────────────────────────── */
.aya-event-card-v3 .card-event .venue {
  font-size: 12px;
  font-weight: 500;
  color: rgba(0,0,0,0.5) !important;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 4px;
}

.aya-event-card-v3 .card-event .venue::before {
  content: '\f3c5';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 10px;
  color: #c3073f;
  opacity: 0.5;
  flex-shrink: 0;
}

/* ─── ORGANIZER — Subtle, pushed down ─────────────────────────────────────── */
.aya-event-card-v3 .card-event .organizer {
  font-size: 11px;
  font-weight: 500;
  color: rgba(0,0,0,0.38) !important;
  padding-top: 0;
  margin-top: 0;
  margin-bottom: 4px;
  border-top: 0;
  display: flex;
  align-items: center;
  gap: 4px;
}

.aya-event-card-v3 .card-event .organizer::before {
  content: '\f1ad';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 10px;
  color: #c3073f;
  opacity: 0.55;
}

.aya-event-card-v3 .card-event .organizer .fw-bold {
  font-weight: 700 !important;
  color: rgba(0,0,0,0.55);
}

/* ─── URGENCY INDICATORS — Refined ────────────────────────────────────────── */
.aya-event-card-v3 .card-event .text-danger.small,
.aya-event-card-v3 .card-event .small.text-danger.mb-2 {
  font-size: 11px !important;
  font-weight: 700;
  color: #c3073f !important;
  padding: 0;
  margin-bottom: 4px !important;
  min-height: 0;
  display: flex;
  align-items: center;
  gap: 5px;
}

.aya-event-card-v3 .card-event .text-danger.small::before {
  content: '\f017';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  font-size: 10px;
}

.aya-event-card-v3 .card-event .text-warning.font-weight-bold {
  font-size: 11px !important;
  padding: 4px 8px;
  margin-bottom: 8px !important;
  min-height: 22px;
  border-radius: 6px;
  background: rgba(255,193,7,0.08);
  border: 1px solid rgba(255,193,7,0.15);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
}

/* Price sits under the last detail, same rhythm as the live cards */
.aya-event-card-v3 .card-event .d-flex.align-items-center.justify-content-between.mt-3 {
  margin-top: 8px !important;
  padding-top: 8px;
  border-top: 1px solid #ebebeb;
  gap: 8px;
  flex-shrink: 0;
}

/* Price badge — green (money signal), flat premium */
.aya-event-card-v3 .card-event .badge-price {
  background: #059669;
  color: #fff;
  border: 1px solid #047857;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  flex-shrink: 0;
}

.aya-event-card-v3 .card-event .badge-free {
  background: #059669;
  color: #fff;
  border: 1px solid #047857;
  border-radius: 8px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  flex-shrink: 0;
}

/* Status badges */
.aya-event-card-v3 .card-event .badge {
  border-radius: 8px;
  padding: 7px 14px;
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.01em;
}

.aya-event-card-v3 .card-event .badge-danger {
  background: #c3073f !important;
  border: none;
  color: #fff !important;
}

.aya-event-card-v3 .card-event .badge-secondary {
  background: #6b7280 !important;
  border: none;
  color: #fff !important;
}

.aya-event-card-v3 .card-event .badge-warning {
  background: rgba(245,158,11,0.1) !important;
  color: #92400e !important;
  border: 1px solid rgba(245,158,11,0.2);
}

/* USSD code */
.aya-event-card-v3 .ussd-code {
  background: #111827;
  color: #fff;
  border: 1px solid #111827;
  border-radius: 8px;
  padding: 7px 12px;
  font-size: 11px;
  font-weight: 600;
  font-family: 'SF Mono', 'Menlo', 'Monaco', 'Consolas', monospace;
  letter-spacing: 0.03em;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.2s ease, border-color 0.2s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aya-event-card-v3 .ussd-code:hover {
  background: #374151;
  border-color: #374151;
  color: #fff;
  transform: none;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
  text-decoration: none;
}

/* ─── MOBILE ──────────────────────────────────────────────────────────────── */
@media (max-width: 767px) {
  .aya-event-card-v3 .card-event {
    border-radius: 12px;
  }

  .aya-event-card-v3 .card-event .event-image {
    height: auto;
    aspect-ratio: 16 / 9;
  }

  .aya-event-card-v3 .card-event .event-image img {
    aspect-ratio: 16 / 9;
  }

  .aya-event-card-v3 .card-event .info-wrap {
    padding: 12px 12px 10px;
  }

  .aya-event-card-v3 .card-event h5 {
    font-size: 14px;
    margin-bottom: 4px !important;
    min-height: 0;
  }

  .aya-event-card-v3 .card-event .date-badge {
    left: 8px;
    top: 8px;
    padding: 5px 8px;
    font-size: 10px;
    min-width: 46px;
  }

  .aya-event-card-v3 .card-event .event-date-line {
    font-size: 11.5px;
  }

  .aya-event-card-v3 .card-event .venue {
    font-size: 11px;
  }

  .aya-event-card-v3 .ussd-code {
    padding: 7px 12px;
    font-size: 11px;
  }
}

/* ─── LOADING SKELETON ────────────────────────────────────────────────────── */
.aya-event-card-v3 .card-event.loading .event-image {
  background: linear-gradient(90deg, #f0f0f0 25%, #e8e8e8 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: v3shimmer 1.5s infinite;
}

@keyframes v3shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Equal-height event cards — event grids only (never global Bootstrap .row) */
.aya-event-card-v3 .aya-v2-upcoming-grid > [class*="col-"],
.aya-event-card-v3 .row.events-grid > [class*="col-"],
.aya-event-card-v3 .events-grid .row > [class*="col-"],
.aya-event-card-v3 .aya-ev2-col,
.aya-event-card-v3 .aya-v2-scroll__item {
  display: flex;
}

.aya-event-card-v3 .aya-v2-upcoming-grid > [class*="col-"] > .card-event,
.aya-event-card-v3 .row.events-grid > [class*="col-"] > .card-event,
.aya-event-card-v3 .events-grid .row > [class*="col-"] > .card-event,
.aya-event-card-v3 .aya-ev2-col > .card-event,
.aya-event-card-v3 .aya-v2-scroll__item > .card-event {
  width: 100%;
}

.aya-event-card-v3 .aya-v2-scroll {
  align-items: flex-start;
}

.aya-event-card-v3 .aya-v2-upcoming-grid {
  row-gap: 1rem;
}

.aya-event-card-v3 .aya-v2-scroll__item {
  min-width: 280px;
  max-width: 320px;
}

/* Homepage Discover cards — mockup layout, homepage grid only */
.aya-event-card-v3 .aya-discover-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
  max-width: none;
  margin: 0;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 16, 20, 0.04);
}

.aya-event-card-v3 .aya-discover-card::after {
  display: none;
}

@media (hover: hover) and (pointer: fine) {
  body.aya-home-v2-page .aya-discover-card:hover,
  .aya-event-card-v3 .aya-discover-card:hover {
    transform: none;
    border-color: rgba(0, 0, 0, 0.14);
    box-shadow: 0 8px 22px rgba(16, 16, 20, 0.06);
  }

  .aya-event-card-v3 .aya-discover-card:hover .event-image img,
  .aya-event-card-v3 .aya-discover-card:hover h5 {
    transform: none;
    color: #111;
  }
}

.aya-event-card-v3 .aya-discover-card .event-image {
  aspect-ratio: 16 / 10;
  height: auto;
  border-radius: 0;
}

.aya-event-card-v3 .aya-discover-card .event-image::before,
.aya-event-card-v3 .aya-discover-card .event-image::after {
  display: none;
}

.aya-event-card-v3 .aya-discover-card .date-badge {
  top: 10px;
  left: 10px;
  min-width: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff;
  color: #111;
  border: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.2;
  text-align: left;
}

.aya-event-card-v3 .aya-discover-card .dates-available-badge {
  top: 10px;
  right: 10px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #1a1a1a;
  color: #fff;
  box-shadow: none;
  text-transform: none;
  font-size: 12px;
  font-weight: 600;
}

.aya-event-card-v3 .aya-discover-card .dates-available-badge i,
.aya-event-card-v3 .aya-discover-card .dates-inline-badge {
  display: none;
}

.aya-event-card-v3 .aya-discover-card .info-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0;
  padding: 14px 14px 12px;
  background: #fff;
}

.aya-event-card-v3 .aya-discover-card h5 {
  margin-bottom: 4px !important;
  color: #111;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  white-space: normal;
}

.aya-event-card-v3 .aya-discover-card .event-date-line {
  margin-bottom: 2px;
  font-size: 13px;
}

.aya-event-card-v3 .aya-discover-card .event-date-line::before,
.aya-event-card-v3 .aya-discover-card .venue::before,
.aya-event-card-v3 .aya-discover-card .organizer::before,
.aya-event-card-v3 .card-event.aya-discover-card .text-danger.small::before,
.aya-event-card-v3 .card-event.aya-discover-card .aya-discover-urgency::before {
  content: none !important;
}

.aya-event-card-v3 .aya-discover-card .event-date-text,
.aya-event-card-v3 .aya-discover-card .venue {
  color: #6b7280 !important;
  font-size: 13px;
  font-weight: 400;
}

.aya-event-card-v3 .aya-discover-card .venue {
  margin-bottom: 2px;
}

.aya-event-card-v3 .aya-discover-card .organizer {
  display: block;
  margin: 0;
  color: #6b7280 !important;
  font-size: 13px;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.aya-event-card-v3 .aya-discover-card .organizer .fw-bold {
  color: #374151;
  font-weight: 600 !important;
}

.aya-event-card-v3 .aya-discover-card .aya-discover-urgency {
  display: block;
  margin: 8px 0 0 !important;
  padding: 0;
  border: 0;
  background: none;
  color: #c3073f !important;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  min-height: 0;
}

.aya-event-card-v3 .aya-discover-card .d-flex.align-items-center.justify-content-between.mt-3.aya-card-foot {
  margin-top: auto !important;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  gap: 8px;
}

.aya-event-card-v3 .aya-discover-card .badge-price,
.aya-event-card-v3 .aya-discover-card .badge-free,
.aya-event-card-v3 .aya-discover-card .aya-card-foot .badge {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: #111 !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: -0.01em;
}

.aya-event-card-v3 .aya-discover-card .aya-card-foot .text-bg-danger {
  color: #c3073f !important;
}

.aya-event-card-v3 .aya-discover-card .aya-card-foot .text-bg-secondary,
.aya-event-card-v3 .aya-discover-card .aya-card-foot .text-bg-warning {
  color: #6b7280 !important;
}

.aya-event-card-v3 .aya-discover-card .aya-card-notifyHint {
  color: #c3073f;
  font-size: 12px;
  font-weight: 600;
}

.aya-event-card-v3 .aya-discover-card .ussd-code {
  position: relative;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: 58%;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  color: #6b7280;
  font-family: inherit;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0;
}

.aya-event-card-v3 .aya-discover-card .ussd-code:hover {
  background: transparent;
  border: 0;
  color: #111;
  box-shadow: none;
}

.aya-event-card-v3 .aya-v2-upcoming-grid > [class*="col-"]:has(.aya-discover-card),
.aya-event-card-v3 .aya-v2-scroll__item:has(.aya-discover-card) {
  display: flex;
}

.aya-event-card-v3 .aya-v2-scroll:has(.aya-discover-card) {
  align-items: stretch;
}

/* Organizer public profile event grids */
.aya-event-card-v3 .orgp-events > .aya-discover-card,
.aya-event-card-v3 .org-events-grid > .aya-discover-card {
  width: 100%;
  max-width: none;
  margin: 0;
}
