/* ── Eventcard Small (.ecs) ──────────────────────────────────────
 * Compact content-only card (no image), matches createCardSmallHTML().
 * Reference: frontend/eventcards/eventcard-small.html
 * Shared visuals live in eventcard-base.css — this file is layout only.
 * ──────────────────────────────────────────────────────────────── */

/* @penpot cmp.eventcard-small */
.ecs {
  display: flex;
  flex-direction: column;
  /* 688px-Cap entfernt 2026-08-27 — volle Containerbreite wie alle Feed-Cards */
  max-width: 100%;
  background: var(--cat-default);
}

/* Category pastel background */
.ecs-music     { background: var(--cat-music); }
.ecs-film      { background: var(--cat-film); }
.ecs-community { background: var(--cat-community); }
.ecs-arts      { background: var(--cat-arts); }
.ecs-tech      { background: var(--cat-tech); }
.ecs-nightlife { background: var(--cat-nightlife); }
.ecs-food      { background: var(--cat-food); }
.ecs-kinder    { background: var(--cat-kinder); }
.ecs-education { background: var(--cat-education); }
.ecs-sports    { background: var(--cat-sports); }

/* ── Content column — Penpot: gap 8px, pad 16px ── */
.ecs-body {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  padding: var(--ec-pad);
  min-width: 0;
}

/* ── Social — inline row: avatars + text ── */
.ecs-social {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ecs-avatars {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.ecs-av {
  width: 32px;
  height: 32px;
  margin-left: -12px;
  font-size: 13px;
}

.ecs-av:first-child {
  margin-left: 0;
}

/* ── Bottom row: ticket CTA + actions ── */
.ecs-bottom-row {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 8px;
}

.ecs-actions {
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

/* ── Responsive ── */
@media (max-width: 768px) {
  .ecs {
    max-width: 100%;
  }
  .ecs-body {
    padding: 12px;
  }
  .ecs-title {
    font-size: 18px;
  }
  .ecs-desc {
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  /* No full-bleed here. The former `border-radius: 0; margin: 0 -16px` assumed
   * a parent with exactly 16px of padding; inside the feed the chain is
   * .page (8px) + .tl-day (26px left / 0 right), so the card missed the edge on
   * the left and overshot it on the right — square-cornered and lopsided. */
  .ecs {
    margin-bottom: 16px;
  }
  .ecs-title {
    font-size: 24px;
  }
  .ecs-desc {
    font-size: 16px;
  }
  .ecs-av {
    width: 24px;
    height: 24px;
    margin-left: -10px;
  }
  .ecs-social-txt {
    font-size: 14px;
  }
  /* Touch-friendly controls — min-height auf Mobile entfernt */
  .ecs-actions {
    flex: 1;
    justify-content: flex-end;
  }
}
