/* ═══════════════════════════════════════════════════════════════
 * [time_event_info] — Event Info Bar & Cards
 * Dependency: tc-design-system (--tc-* Custom Properties)
 * ═══════════════════════════════════════════════════════════════ */

/* ── Bar Layout ─────────────────────────────────────────────── */
.tc-event-info-bar {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0;
  background: var(--tc-bg);
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius);
  box-shadow: var(--tc-shadow-sm);
  overflow: hidden;
}

.tc-event-info-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  flex: 1;
  min-width: 140px;
}

.tc-event-info-divider {
  width: 1px;
  height: 40px;
  background: var(--tc-border);
  flex-shrink: 0;
}

.tc-event-info-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.tc-event-info-content {
  display: flex;
  flex-direction: column;
}

.tc-event-info-label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--tc-text-muted);
  margin-bottom: 2px;
}

.tc-event-info-value {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--tc-text);
}

/* ── Status Colors ──────────────────────────────────────────── */
.tc-event-info-value--available { color: var(--tc-success, #059669); }
.tc-event-info-value--warning   { color: var(--tc-warning, #d97706); }
.tc-event-info-value--full      { color: var(--tc-danger,  #dc2626); }

/* ── Cards Layout ───────────────────────────────────────────── */
.tc-event-info-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 12px;
}

.tc-event-info-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 18px 14px;
  background: var(--tc-bg);
  border: 1px solid var(--tc-border);
  border-radius: var(--tc-radius);
  box-shadow: var(--tc-shadow-sm);
}

.tc-event-info-card .tc-event-info-icon {
  font-size: 22px;
}

/* ── Multi-date accordion ────────────────────────────────────── */
.tc-event-info-bar .tc-info-dates,
.tc-event-info-card .tc-info-dates {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tc-info-dates__primary {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.tc-info-dates__label {
  display: block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--tc-text-muted);
  width: 100%;
  margin-bottom: 2px;
}

.tc-info-dates__value {
  font-size: 14px;
  font-weight: 600;
  color: var(--tc-text);
  flex: 1;
}

/* Toggle button — no box model, arrow via ::after */
.tc-info-dates__toggle {
  all: unset;
  cursor: pointer;
  color: var(--tc-text-muted);
  line-height: 1;
  flex-shrink: 0;
}

.tc-info-dates__toggle::after {
  content: '▾';
  display: inline-block;
  font-size: 14px;
  transition: transform 0.2s ease;
}

.tc-info-dates__toggle[aria-expanded="true"]::after {
  transform: rotate(180deg);
}

/* Collapsed list */
.tc-info-dates__list {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 14px;
  color: var(--tc-text-muted);
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.25s ease;
}

.tc-info-dates__list.is-open {
  max-height: 400px;
}

.tc-info-dates__list li {
  padding: 2px 0;
  line-height: 1.4;
}

/* "Keine Termine" hint inside the info bar/card — same size as value, muted */
.tc-info-no-dates {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--tc-text-muted);
}

/* ── Responsive: bar → stack on mobile ──────────────────────── */
@media (max-width: 600px) {
  .tc-event-info-bar {
    flex-direction: column;
    align-items: stretch;
  }
  .tc-event-info-divider {
    width: 100%;
    height: 1px;
  }
  .tc-event-info-item {
    min-width: unset;
  }
}
