/* event-cards.css — Canonical event card + card stack styles
   Single source of truth for card appearance sitewide.
   NO page-specific or section-specific overrides. */

/* ═══════════════════════════════════════════════════════════════
   Days Away sash on thumbnail
   ═══════════════════════════════════════════════════════════════ */

.one-day-sash {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  width: auto;
  height: auto;
  max-width: 120px;
  max-height: 120px;
  pointer-events: none;
}

.event-card-horizontal:hover .one-day-sash {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════
   Card wrapper (outer)
   ═══════════════════════════════════════════════════════════════ */

.event-card-wrapper {
  display: flex;
  flex-direction: column;
  width: 200px;
  max-width: 200px;
  min-width: 0;
  overflow: hidden;
  position: relative;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(94,94,161,0.5), 0 0 4px rgba(94,94,161,0.3);
  background: white;
}

/* ═══════════════════════════════════════════════════════════════
   Card (inner layout)
   ═══════════════════════════════════════════════════════════════ */

.event-card-horizontal {
  border-radius: 0;
  overflow: hidden;
  width: 100%;
  display: flex;
  flex-direction: column;
  background: white;
}

/* ═══════════════════════════════════════════════════════════════
   Host name bar (top of card, above image)
   ═══════════════════════════════════════════════════════════════ */

.card-host-name {
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #333;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 6px 6px 4px;
  background: #fff;
  line-height: 1.2;
  cursor: default;
}

.card-host-name:hover {
  color: #5E5EA1;
  cursor: pointer;
}

.card-host-btn {
  display: block;
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 6px 8px;
  line-height: 1.2;
  cursor: pointer;
  background: linear-gradient(180deg, #f5d98a 0%, #d4a855 40%, #b8912e 100%);
  color: #0a0a0a;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.4);
  text-shadow: 0 1px 1px rgba(255,255,255,0.3);
  transition: all 0.2s;
}

.card-host-btn:hover {
  background: linear-gradient(180deg, #ffe5a0 0%, #e4b865 40%, #c8a13e 100%);
  box-shadow: 0 3px 6px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.5);
}

/* When host name bar is present, remove top border-radius from image */
.event-card-horizontal .card-host-name + .event-link .event-image-wrapper,
.event-card-horizontal .card-host-name + a .event-image-wrapper,
.event-card-horizontal .card-host-btn + .event-link .event-image-wrapper,
.event-card-horizontal .card-host-btn + a .event-image-wrapper {
  border-radius: 0;
}

/* ═══════════════════════════════════════════════════════════════
   Image wrapper
   ═══════════════════════════════════════════════════════════════ */

.event-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

.event-card-horizontal .event-link {
  display: block;
  text-decoration: none;
  height: auto;
  min-height: 0;
  max-height: none;
  overflow: visible;
}

.event-card-horizontal .event-image-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px 12px 0 0;
  overflow: hidden;
  background: #E6E6F8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-card-horizontal .event-image-wrapper > img:not(.one-day-sash) {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 0;
  background: #E6E6F8;
}

.event-card-horizontal .event-image-wrapper > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  border-radius: 12px;
}

.event-card-horizontal .event-image-wrapper video.event-thumb-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* ═══════════════════════════════════════════════════════════════
   Event info section — #E6E6F8 background
   ═══════════════════════════════════════════════════════════════ */

.event-card-horizontal .event-info {
  background: #E6E6F8;
  padding: 8px 8px 2px 8px;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: visible;
  text-align: left;
  font-size: 16px;
  flex: 1;
}

.event-card-horizontal .event-name {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 0;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-card-horizontal .event-date-time {
  font-size: 14px;
  color: #5E5EA1;
  font-weight: 600;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-card-horizontal .event-type-badge {
  display: inline-block;
  background: #5E5EA1;
  color: white;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 4px;
  white-space: nowrap;
}

/* Contact section */
.event-card-horizontal .event-contact-section {
  min-height: auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.event-card-horizontal .event-venue,
.event-card-horizontal .event-site,
.event-card-horizontal .event-timezone,
.event-card-horizontal .event-location,
.event-card-horizontal .event-url,
.event-card-horizontal .event-contact {
  font-size: 14px;
  color: #666;
  margin-bottom: 1px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-card-horizontal .event-url a {
  color: #5E5EA1;
  text-decoration: none;
}

.event-card-horizontal .event-url a:hover {
  text-decoration: underline;
}

.event-card-horizontal .event-location {
  min-height: 1.2em;
}

.event-card-horizontal .event-start-date {
  font-size: 14px;
  font-weight: 700;
  color: #888;
  margin-bottom: 3px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.event-card-horizontal .event-venue {
  font-weight: 600;
  color: #333;
}

.event-card-horizontal .event-contact {
  display: none;
}

/* ═══════════════════════════════════════════════════════════════
   Description text — 4 lines, clamped
   ═══════════════════════════════════════════════════════════════ */

.event-card-horizontal .event-description-text {
  font-size: 14px;
  font-style: italic;
  color: #555;
  line-height: 1.4;
  margin-top: 4px;
  margin-bottom: 0;
  padding-top: 4px;
  padding-bottom: 0;
  overflow: hidden;
  border-top: 1px solid #eee;
  flex: 1 1 auto;
}

.event-card-horizontal .event-description-text .description-content {
  display: -webkit-box;
  -webkit-line-clamp: 5;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}

.event-card-horizontal .event-description-text.has-actions .description-content {
  -webkit-line-clamp: 3;
}

.event-card-horizontal .event-description-text .read-more-link {
  display: none;
}

/* Blank placeholder for events without description */
.description-placeholder {
  flex: 1 1 auto;
  margin-top: 4px;
  border-top: 1px solid transparent;
  padding-top: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   Card action row (More Info / Buy Now)
   ═══════════════════════════════════════════════════════════════ */

.card-action-row {
  display: flex;
  gap: 6px;
  padding: 6px 8px 8px 8px;
  margin-top: auto;
  background: #E6E6F8;
}

/* Collapse row when both slots are placeholders */
.card-action-row:has(.card-action-placeholder + .card-action-placeholder) {
  display: none;
}

.card-action-btn {
  flex: 1 1 0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
  padding: 5px 4px;
  border-radius: 6px;
  line-height: 1.2;
  transition: background 0.2s, box-shadow 0.2s;
}

.card-more-info {
  background: linear-gradient(180deg, #7a7abf 0%, #5E5EA1 40%, #4a4a85 100%);
  color: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.card-more-info:hover {
  background: linear-gradient(180deg, #8e8ed0 0%, #6e6eb5 40%, #5a5a95 100%);
  box-shadow: 0 3px 6px rgba(0,0,0,0.25);
}

.card-buy-now {
  background: linear-gradient(180deg, #f5d98a 0%, #d4a855 40%, #b8912e 100%);
  color: #0a0a0a;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.4);
  text-shadow: 0 1px 1px rgba(255,255,255,0.3);
}

.card-buy-now:hover {
  background: linear-gradient(180deg, #ffe5a0 0%, #e4b865 40%, #c8a13e 100%);
  box-shadow: 0 3px 6px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.5);
}

/* Invisible placeholder keeps layout consistent */
.card-action-placeholder {
  visibility: hidden;
}

/* ═══════════════════════════════════════════════════════════════
   Buttons below card
   ═══════════════════════════════════════════════════════════════ */

.event-buttons-outside {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 2px 0;
}

.event-buttons-outside:empty {
  display: none;
}

.event-buttons-outside .event-link-small {
  flex: 1 1 auto;
  min-width: 100px;
  text-align: center;
  padding: 4px 6px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: #f0f0f0;
  color: #333;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), 0 1px 2px rgba(0, 0, 0, 0.1);
}

.event-buttons-outside .event-link-small.soon {
  flex: 1 1 100%;
  background: #E890B0;
  color: white;
}

.event-buttons-outside .event-link-small:hover {
  background: #e0e0e0;
}

.event-buttons-outside .event-link-small.primary {
  background: #5E5EA1;
  color: white;
}

.event-buttons-outside .event-link-small.primary:hover {
  background: #4e4e91;
}

.event-buttons-outside .event-link-small.buy {
  background: #d4a855;
  color: white;
}

.event-buttons-outside .event-link-small.buy:hover {
  background: #c49745;
}

.event-buttons-outside .event-link-small.soon:hover {
  background: #D87098;
}

.event-buttons-outside .event-link-small.past {
  flex: 1 1 100%;
  background: #888888;
  color: white;
}

.event-buttons-outside .event-link-small.past:hover {
  background: #777777;
}

.event-buttons-outside .event-link-small.commission-indicator {
  flex: 0 0 5px;
  min-width: 5px;
  width: 5px;
  background: #2d6a2d;
  padding: 8px 0;
  cursor: default;
  border-radius: 4px;
}

.event-buttons-outside .event-link-small.commission-indicator:hover {
  background: #2d6a2d;
}

/* Buttons inside card bottom */
.event-card-horizontal .event-buttons-bottom {
  display: flex;
  gap: 4px;
  padding: 8px;
  border-top: 1px solid #eee;
  margin-top: auto;
}

.event-card-horizontal .event-link-small {
  flex: 1;
  text-align: center;
  padding: 6px 8px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: #f0f0f0;
  color: #333;
}

.event-card-horizontal .event-link-small.with-subtext {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 8px;
}

.event-card-horizontal .event-link-small .btn-subtext {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #E74C3C;
  margin-top: 1px;
}

.event-card-horizontal .event-link-small:hover {
  background: #e0e0e0;
}

.event-card-horizontal .event-link-small.primary {
  background: #5E5EA1;
  color: white;
}

.event-card-horizontal .event-link-small.primary:hover {
  background: #4e4e91;
}

.event-card-horizontal .event-link-small.buy {
  background: #d4a855;
  color: white;
}

.event-card-horizontal .event-link-small.buy:hover {
  background: #c49745;
}

.event-card-horizontal .event-link-small.expired {
  background: #E74C3C;
  color: white;
}

.event-card-horizontal .event-link-small.expired:hover {
  background: #C0392B;
}

.event-card-horizontal .event-link-small.soon {
  background: #333333;
  color: white;
}

.event-card-horizontal .event-link-small.soon:hover {
  background: #1a1a1a;
}

/* ═══════════════════════════════════════════════════════════════
   More Info button (gold gradient)
   ═══════════════════════════════════════════════════════════════ */

.event-more-info-btn {
  display: inline-block;
  background: linear-gradient(180deg, #f5d98a 0%, #d4a855 40%, #b8912e 100%);
  color: #0a0a0a;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2), inset 0 1px 0 rgba(255,255,255,0.4);
  text-shadow: 0 1px 1px rgba(255,255,255,0.3);
  text-align: center;
  flex: 1 1 auto;
  min-width: 100px;
}

.event-more-info-btn:hover {
  background: linear-gradient(180deg, #ffe5a0 0%, #e4b865 40%, #c8a13e 100%);
  box-shadow: 0 3px 6px rgba(0,0,0,0.25), inset 0 1px 0 rgba(255,255,255,0.5);
}

/* ═══════════════════════════════════════════════════════════════
   Flag button (admin)
   ═══════════════════════════════════════════════════════════════ */

.event-flag-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 100;
  background: #e74c3c;
  border: none;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  padding: 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.2s;
  pointer-events: auto;
  box-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

.event-flag-btn:hover {
  background: #c0392b;
  transform: scale(1.15);
}

.event-flag-btn svg {
  stroke: white;
  stroke-width: 3;
}

/* ═══════════════════════════════════════════════════════════════
   Special card states
   ═══════════════════════════════════════════════════════════════ */

/* Past event — recessed */
.event-card-wrapper.past-event .event-card-horizontal {
  background: #ebebeb;
  border-color: #bbb;
  opacity: 0.85;
}

/* Omitted event */
.event-card-wrapper.omitted-event {
  background: #f5f5f5;
  border: 2px dashed #999;
  border-radius: 8px;
  padding: 20px;
  text-align: center;
}

.omitted-event-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.omitted-event-name {
  font-size: 14px;
  font-weight: 700;
  color: #333;
  padding: 10px 15px;
  background: #e0e0e0;
  border-radius: 6px;
  cursor: default;
}

.omitted-event-status {
  font-size: 14px;
  font-weight: 600;
  color: #888;
  text-transform: none;
  letter-spacing: 0.5px;
  font-style: italic;
  line-height: 1.4;
}

/* Description issue (banned keywords) */
.event-card-wrapper.description-issue {
  background: #fff5f5;
  border: 2px solid #e74c3c;
  border-radius: 8px;
  padding: 12px 16px;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.2);
}

.event-card-wrapper.description-issue .omitted-event-name {
  color: #c0392b;
}

.event-card-wrapper.description-issue .omitted-event-status {
  color: #e74c3c;
  font-style: normal;
}

/* Not approved — red border */
.event-card-wrapper.not-approved {
  border: 3px solid #e74c3c;
  border-radius: 8px;
  box-shadow: 0 0 8px rgba(231, 76, 60, 0.4);
}

/* Status reason box */
.status-reason-box {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 4px;
  padding: 8px 12px;
  margin-top: 8px;
  font-size: 14px;
  color: #856404;
  line-height: 1.4;
}

.status-reason-box strong {
  color: #664d03;
}

/* Red border explanation (superadmin only) */
.red-border-reason {
  background: #fdecea;
  border: 1px solid #e74c3c;
  border-radius: 4px;
  padding: 6px 12px;
  margin-top: 8px;
  font-size: 13px;
  color: #c0392b;
  line-height: 1.4;
}

/* Empty placeholder card */
.event-card-horizontal.empty-card {
  opacity: 0.3;
}

/* ═══════════════════════════════════════════════════════════════
   Generated logo (placeholder)
   ═══════════════════════════════════════════════════════════════ */

.generated-logo {
  width: 100%;
  padding: 40px 20px;
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: transparent;
  min-height: 200px;
}

.event-card-horizontal .event-image-wrapper .generated-logo {
  height: 100%;
  width: 100%;
  padding: 40px 20px;
  border-radius: 12px 12px 0 0;
  margin: 0;
  box-sizing: border-box;
  background: linear-gradient(135deg, rgba(20,20,30,0.05) 0%, rgba(40,40,50,0.08) 100%);
}

.generated-logo-names {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.generated-logo-text {
  font-size: 42px;
  font-weight: 700;
  font-family: 'Georgia', 'Palatino', 'Times New Roman', serif;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 1px;
}

.generated-logo-venue {
  font-size: 36px;
  font-weight: 600;
  font-family: 'Georgia', 'Palatino', 'Times New Roman', serif;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 1px;
  opacity: 0.9;
}

.generated-logo-initials {
  font-size: 48px;
  font-weight: 700;
  color: white;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* No-banner placeholder */
.event-card-horizontal .no-banner-placeholder {
  width: 100%;
  padding: 40px 10px;
  background: linear-gradient(135deg, #e8e8f0 0%, #f5f5fa 50%, #e8e8f0 100%);
  border-radius: 12px 12px 0 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 2px dashed #5E5EA1;
}

.event-card-horizontal .no-banner-placeholder span {
  font-size: 14px;
  font-weight: 600;
  color: #5E5EA1;
  opacity: 0.7;
}

/* Sample label */
.event-image-wrapper .sample-label {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #e74c3c;
  color: white;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  z-index: 10;
}

/* Red warning buttons for missing images */
.image-warning-btn {
  width: 100%;
  padding: 8px 10px;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

/* Red warning bar for missing descriptions */
.description-warning-bar {
  width: 100%;
  padding: 8px 10px;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 8px;
  border-radius: 4px;
}

/* HTML issue flag */
.event-card-horizontal .event-description-text.html-issue {
  border-top-color: #e74c3c;
}

.event-card-horizontal .html-issue-flag {
  display: inline-block;
  background: #e74c3c;
  color: white;
  font-size: 9px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 3px;
  margin-bottom: 4px;
}

/* ═══════════════════════════════════════════════════════════════
   Card stacks (navigation, behind cards, count pill)
   ═══════════════════════════════════════════════════════════════ */

.stacked-card-group {
  position: relative;
  min-width: 0;
}

.stacked-card-group .stack-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4px 0 0;
}

.stacked-card-group .stack-stats-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: #666;
  margin-top: 2px;
}

.stacked-card-group .stack-stats-sep {
  color: #999;
}

.stacked-card-group .stack-stats-label {
  font-weight: 600;
}

.stacked-card-group .card-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: #666;
  user-select: none;
}

.stacked-card-group .card-host-name {
  font-size: 14px;
  padding: 8px 6px 4px;
}

.stacked-card-group .event-card-horizontal .event-image-wrapper {
  border-radius: 0;
}

.stacked-card-group .card-nav .stack-count-btn {
  background: #5E5EA1;
  color: #fff;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  line-height: 1;
}

.stacked-card-group .card-nav .stack-count-btn:hover {
  background: #4a4a8a;
}

.stacked-card-group .card-nav .stack-arrow {
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
  padding: 0 2px;
  color: #5E5EA1;
}

.stacked-card-group .card-nav .stack-arrow:hover {
  color: #4a4a8a;
}

.stacked-card-group .stack-cards {
  position: relative;
}

.stacked-card-group .stack-cards .stack-behind {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  pointer-events: none;
}

.stacked-card-group .stack-cards .stack-behind .event-card-wrapper {
  pointer-events: none;
}

.stacked-card-group .stack-cards .stack-behind .event-buttons-outside {
  display: none;
}

/* Stack nav admin icons */
.card-nav .stack-edit-icon,
.card-nav .stack-info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 10px;
  line-height: 1;
  transition: opacity 0.2s;
}

.card-nav .stack-edit-icon {
  background: white;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.card-nav .stack-edit-icon:hover {
  opacity: 0.8;
}

.card-nav .stack-edit-icon svg {
  width: 10px;
  height: 10px;
  color: #5E5EA1;
}

.card-nav .stack-info-icon {
  background: #2196F3;
  color: white;
  font-weight: bold;
  font-family: serif;
}

.card-nav .stack-info-icon:hover {
  filter: brightness(0.85);
}

.card-nav .stack-source-badge {
  font-size: 8px;
  font-weight: bold;
  padding: 1px 3px;
  border-radius: 3px;
  line-height: 1;
}

/* Distance badge on stacked cards */
.card-nav .stack-distance {
  background: var(--purple, #5E5EA1);
  color: #fff;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.card-nav .stack-distance-unknown {
  background: #999;
}

/* Search hidden for stacked groups and cards */
.stacked-card-group.search-hidden {
  display: none !important;
}

.host-card.search-hidden {
  display: none !important;
}

/* ═══════════════════════════════════════════════════════════════
   Card grid layout (used on index, hostdetail, eventdetail, etc.)
   ═══════════════════════════════════════════════════════════════ */

.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 200px));
  column-gap: 15px;
  row-gap: 50px;
  justify-content: center;
  padding: 0;
}

.card-row > .event-card-wrapper,
.card-row > .stacked-card-group {
  margin-top: 6px;
}

/* Events container — flex wrap for hostdetail/eventdetail "Our Events" */
.events-horizontal {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  padding: 20px;
  justify-content: center;
}

/* Load More button */
.load-more-container {
  text-align: center;
  padding: 20px;
  margin-top: 10px;
}

.btn-load-more {
  background: #5E5EA1;
  color: #fff;
  border: none;
  padding: 12px 32px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.btn-load-more:hover {
  background: #4a4a8a;
}

.btn-load-more:disabled {
  background: #ccc;
  cursor: not-allowed;
}

/* ═══════════════════════════════════════════════════════════════
   Mobile responsive — 2 cards/stacks per row minimum
   ═══════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .card-row {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 10px;
    row-gap: 30px;
  }

  .events-horizontal {
    gap: 10px;
    padding: 15px 10px;
  }

  .event-card-wrapper {
    width: auto;
    max-width: 200px;
    min-width: 0;
  }
}

@media (max-width: 400px) {
  .card-row {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 8px;
    row-gap: 24px;
  }

  .events-horizontal {
    gap: 8px;
    padding: 10px 8px;
  }
}
