d/**
 * Event Card Component Styles
 *
 * Design tokens aligned with existing system:
 *  --base-peach: #fdd0bb
 *  --deep-red: #751c1d
 *  --deep-blue: #344060
 *
 * Button styles (.s6o9-btn) are defined in theme.
 * This file only positions buttons within cards.
 *
 * @package S6O9\EventSystem
 */

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Event Card Block
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.s6o9-event-card {
  display: flex;
  background: #ffffff;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(52, 64, 96, 0.08);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.s6o9-event-card:hover {
  box-shadow: 0 4px 16px rgba(52, 64, 96, 0.12);
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Orientation Variants
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Horizontal card — warm gradient background, image mask fade */
.s6o9-event-card--horizontal {
  flex-direction: row;
  background: linear-gradient(90deg, #e9b8a1 0%, #f2ccb6 40%, #f7d7c4 100%);
  border-radius: 24px;
}

.s6o9-event-card--vertical {
  flex-direction: column;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Image
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.s6o9-event-card__image {
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
  /* background: var(--deep-blue, #344060); */
}

.s6o9-event-card--horizontal .s6o9-event-card__image {
  width: 36%;
  min-height: 280px;
  -webkit-mask-image: linear-gradient(to right, black 70%, transparent 100%);
  mask-image: linear-gradient(to right, black 70%, transparent 100%);
}

/* Badge positioning on horizontal card image */
.s6o9-event-card--horizontal .s6o9-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.s6o9-event-card--vertical .s6o9-event-card__image {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.s6o9-event-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Image overlay - subtle gradient matching existing system pattern */
.s6o9-event-card__image-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40%;
  /* Matches existing luminosity + peach gradient pattern */
  background: linear-gradient(to top, rgba(253, 208, 187, 0.3), transparent);
  pointer-events: none;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Content
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

.s6o9-event-card__content {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
  min-width: 0; /* Prevent flex item overflow */
}

/* Horizontal card content styling */
.s6o9-event-card--horizontal .s6o9-event-card__content {
  padding: 28px 24px 28px 28px;
  gap: 14px;
  justify-content: center;
}

.s6o9-event-card__title {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--deep-blue, #344060);
}

/* Horizontal card title — serif, larger */
.s6o9-event-card--horizontal .s6o9-event-card__title {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 32px;
  font-weight: 400;
  line-height: 1.2;
  color: #344060;
}

.s6o9-event-card__meta {
  font-size: 14px;
  color: #666;
  display: inline;
  line-height: 1.5;
}

/* Horizontal card metadata — blue, inline sentence */
.s6o9-event-card--horizontal .s6o9-event-card__meta {
  color: #344060;
  font-size: 14px;
}

.s6o9-event-card__meta-separator {
  opacity: 0.6;
  user-select: none;
  margin: 0 4px;
}

.s6o9-event-card__description {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: #333;
  flex: 1;
}

/* Horizontal card description — brown-gray, natural flow */
.s6o9-event-card--horizontal .s6o9-event-card__description {
  color: #5a4a42;
  font-size: 15px;
  line-height: 1.6;
}

/* Scan label styling */
.s6o9-event-card__scan-label {
  display: inline-block;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--deep-red, #751c1d);
  background: var(--base-peach, #fdd0bb);
  border-radius: 4px;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Button Positioning & CTA Styling
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Button styles (.s6o9-btn) are defined in theme - only position here */
.s6o9-event-card__content .s6o9-btn {
  align-self: flex-start;
  margin-top: auto; /* Push to bottom of card */
}

/* Horizontal card primary CTA — blue capsule */
.s6o9-event-card--horizontal .s6o9-btn--primary {
  background: #344060;
  color: #ffffff;
  padding: 12px 28px;
  border-radius: 20px;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  display: inline-block;
  transition: background 0.2s ease;
}

.s6o9-event-card--horizontal .s6o9-btn--primary:hover {
  background: #2a3450;
}

/* Horizontal card text link CTA — red with arrow */
.s6o9-event-card--horizontal .s6o9-btn--text {
  color: #751c1d;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.s6o9-event-card--horizontal .s6o9-btn--text::before {
  content: '→';
  font-size: 16px;
}

.s6o9-event-card--horizontal .s6o9-btn--text:hover {
  text-decoration: underline;
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   State-Based Styling
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

/* Restricted access state (logged-out or free member on private event) */
.s6o9-event-card[data-access-state='restricted'] .s6o9-event-card__meta {
  font-style: italic;
  opacity: 0.8;
}

.s6o9-event-card[data-access-state='restricted'] .s6o9-event-card__title {
  opacity: 0.9;
}

/* Members-only state (paid member viewing private event - full access) */
.s6o9-event-card[data-access-state='members_only'] {
  /* No visual distinction needed - renders like public event */
}

/* ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
   Responsive
   ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ */

@media (max-width: 768px) {
  /* Stack horizontal cards on mobile */
  .s6o9-event-card--horizontal {
    flex-direction: column;
  }

  .s6o9-event-card--horizontal .s6o9-event-card__image {
    width: 100%;
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

  .s6o9-event-card__content {
    padding: 20px;
  }

  .s6o9-event-card__title {
    font-size: 18px;
  }
}

@media (max-width: 480px) {
  .s6o9-event-card__content {
    padding: 16px;
    gap: 10px;
  }

  .s6o9-event-card__title {
    font-size: 17px;
  }

  .s6o9-event-card__meta {
    font-size: 13px;
  }

  .s6o9-event-card__description {
    font-size: 14px;
  }
}
