/* ── Eishockey Spielplan Widget CSS ── */

/* Filter bar */
.ehc-filters {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.ehc-filters__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
}

.ehc-filters__select {
  padding: 6px 12px;
  border-radius: 6px;
  border: 2px solid #e2e8f0;
  font-size: 0.85rem;
  background: #fff;
  color: #1e293b;
  cursor: pointer;
}

/* Game list */
.ehc-games {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Single game card */
.ehc-game {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid #e2e8f0;
  transition: background 0.15s;
}

.ehc-game:hover {
  background: rgba(0, 0, 0, 0.02);
}

.ehc-game--upcoming {
  border-left: 4px solid #3b82f6;
}

/* Team columns */
.ehc-team--home {
  text-align: right;
}

.ehc-team--away {
  text-align: left;
}

.ehc-team-name {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
}

.ehc-team-name--highlight {
  color: #3b82f6;
}

.ehc-team-label {
  font-size: 0.75rem;
  color: #94a3b8;
}

/* Center column */
.ehc-game__center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 80px;
  text-align: center;
}

.ehc-game__date {
  font-size: 0.78rem;
  color: #64748b;
}

.ehc-game__time {
  font-size: 1.1rem;
  font-weight: 700;
  color: #3b82f6;
}

.ehc-score {
  font-size: 1.3rem;
  font-weight: 800;
  letter-spacing: 2px;
}

.ehc-score--win {
  color: #22c55e;
}

.ehc-score--loss {
  color: #ef4444;
}

.ehc-score--draw {
  color: #f59e0b;
}

.ehc-game__special {
  font-size: 0.78rem;
  color: #f59e0b;
  font-weight: 700;
}

.ehc-game__drittel {
  font-size: 0.72rem;
  color: #94a3b8;
}

.ehc-game__league {
  font-size: 0.68rem;
  color: #94a3b8;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 2px;
}

/* Empty / Error / Loading */
.ehc-empty {
  padding: 24px;
  text-align: center;
  color: #94a3b8;
  font-style: italic;
}

.ehc-error {
  padding: 24px;
  text-align: center;
  color: #ef4444;
}

.ehc-loading {
  text-align: center;
  padding: 40px;
  color: #64748b;
}

.ehc-loading__spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #e2e8f0;
  border-top-color: #3b82f6;
  border-radius: 50%;
  animation: ehcSpin 0.7s linear infinite;
  margin: 0 auto 8px;
}

@keyframes ehcSpin {
  to { transform: rotate(360deg); }
}

/* Mobile */
@media (max-width: 600px) {
  .ehc-game {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 6px;
  }

  .ehc-team--home,
  .ehc-team--away {
    text-align: center;
  }
}
