/* EnterTrade Calendar — Event Card Design: Rounded
   Scoped under .et-cards--rounded. Colors come from CSS custom properties set on
   the wrapper (--et-primary/secondary/tertiary/text/bg/link). The Theme (light|dark)
   is reflected by .et-cards--theme-light / .et-cards--theme-dark on the same wrapper. */

.et-cards--rounded .et-cal-event-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--et-bg, #ffffff);
  color: var(--et-text, #333333);
  border: 1px solid transparent;
  border-radius: 1rem;
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.et-cards--rounded .et-cal-event-card:hover {
  transform: translateY(-4px);
  border-color: var(--et-primary, #1a3a6b);
}

/* ── Media ──────────────────────────────────────────────────────────────── */
.et-cards--rounded .et-cal-event-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.et-cards--rounded .et-cal-event-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}

.et-cards--rounded .et-cal-event-card:hover .et-cal-event-card__media img {
  transform: scale(1.05);
}

/* ── Body ───────────────────────────────────────────────────────────────── */
.et-cards--rounded .et-cal-event-card__body {
  flex: 1 1 auto;
  padding: 1.1rem 1.25rem;
}

.et-cards--rounded .et-cal-event-card__badges {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  margin-bottom: .6rem;
}

.et-cards--rounded .et-cal-event-card__badges .badge {
  border-radius: 50rem;
  padding: .4em .8em;
  font-weight: 500;
}

.et-cards--rounded .et-cal-badge--modality {
  background: var(--et-tertiary, #4a90d9);
  color: #fff;
}

.et-cards--rounded .et-cal-badge--category {
  background: var(--et-secondary, #2c5f8a);
  color: #fff;
}

.et-cards--rounded .et-cal-event-card__title {
  margin: 0 0 .4rem;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
}

.et-cards--rounded .et-cal-event-card__title a {
  color: var(--et-primary, #1a3a6b);
  text-decoration: none;
}

.et-cards--rounded .et-cal-event-card__title a:hover {
  color: var(--et-link, #1a3a6b);
}

.et-cards--rounded .et-cal-event-card__datetime,
.et-cards--rounded .et-cal-event-card__location {
  margin: 0 0 .35rem;
  font-size: .85rem;
  opacity: .85;
}

.et-cards--rounded .et-cal-event-card__excerpt {
  margin-bottom: .75rem;
  font-size: .875rem;
  opacity: .8;
}

.et-cards--rounded .et-cal-event-card__speakers {
  display: flex;
  flex-wrap: wrap;
  gap: .3rem;
  margin-bottom: .75rem;
}

.et-cards--rounded .et-cal-speaker-chip {
  display: inline-flex;
  align-items: center;
  font-size: .75rem;
  padding: .25em .6em;
  border-radius: 50rem;
  background: color-mix(in srgb, var(--et-primary, #1a3a6b) 10%, transparent);
  color: var(--et-primary, #1a3a6b);
}

.et-cards--rounded .et-cal-event-card__meta {
  display: flex;
  align-items: center;
  font-size: .9rem;
  font-weight: 600;
}

.et-cards--rounded .et-cal-price {
  color: var(--et-primary, #1a3a6b);
}

/* ── Footer / CTA ───────────────────────────────────────────────────────── */
.et-cards--rounded .et-cal-event-card__footer {
  padding: 0 1.25rem 1.25rem;
}

.et-cards--rounded .et-cal-cta {
  display: block;
  width: 100%;
  padding: .6rem 1rem;
  border-radius: .6rem;
  text-align: center;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
  background: var(--et-secondary, #2c5f8a);
  transition: filter .15s ease;
}

.et-cards--rounded .et-cal-cta:hover {
  filter: brightness(1.08);
  color: #fff;
}

/* ── Theme: Light ───────────────────────────────────────────────────────── */
.et-cards--rounded.et-cards--theme-light .et-cal-event-card {
  box-shadow: 0 .25rem 1rem rgba(0, 0, 0, .08);
}

.et-cards--rounded.et-cards--theme-light .et-cal-event-card:hover {
  box-shadow: 0 .75rem 2rem rgba(0, 0, 0, .14);
}

/* ── Theme: Dark ────────────────────────────────────────────────────────── */
.et-cards--rounded.et-cards--theme-dark .et-cal-event-card {
  border-color: rgba(255, 255, 255, .08);
  box-shadow: 0 .5rem 1.5rem rgba(0, 0, 0, .45);
}

.et-cards--rounded.et-cards--theme-dark .et-cal-event-card:hover {
  border-color: var(--et-primary, #1a3a6b);
  box-shadow: 0 .85rem 2.25rem rgba(0, 0, 0, .6);
}
