/* ============================================================
   Zápasové centrum (zapas.php před výkopem / během zápasu)
   Šablona: includes/_match-center.php

   Odkazy a tlačítka mají barvu nastavenou VŽDY výslovně, i pro
   :visited — jinak by spadly na prohlížečovou modrou/fialovou.
   ============================================================ */

.c-mc { display: flex; flex-direction: column; gap: 22px; }

/* ---- Hlavní panel ---- */
.c-mc-hero {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  padding: 22px 24px 24px;
  color: var(--c-white);
  background:
    radial-gradient(90% 120% at 100% 0%, rgba(219, 5, 29, 0.35) 0%, rgba(219, 5, 29, 0) 60%),
    linear-gradient(160deg, #1A1A22 0%, #101014 60%, #1B0D11 100%);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.18);
}

.c-mc-hero__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: center;
  gap: 4px 14px;
  text-align: center;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.c-mc-hero__team {
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 1.5rem;
  line-height: 1;
  color: #FF5A6E;
}

.c-mc-hero__comp { font-size: 0.85rem; color: rgba(255, 255, 255, 0.65); }

.c-mc-hero__match {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 24px 0 14px;
}

.c-mc-hero__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  min-width: 0;
  text-align: center;
}

.c-mc-hero__logo {
  width: 104px;
  height: 104px;
  object-fit: contain;
  filter: drop-shadow(0 8px 18px rgba(0, 0, 0, 0.5));
}

.c-mc-hero__badge {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.2);
  font-family: var(--font-heading);
  font-size: 2rem;
}

.c-mc-hero__name {
  font-family: var(--font-heading);
  text-transform: uppercase;
  font-size: 1.85rem;
  line-height: 1;
  overflow-wrap: anywhere;
}
.c-mc-hero__side.is-club .c-mc-hero__name { color: #FF5A6E; }

.c-mc-hero__mid {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
  min-width: 140px;
}

.c-mc-hero__countdown-label {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.c-mc-hero__countdown {
  font-family: var(--font-heading);
  font-size: 2.6rem;
  font-weight: 600;
  line-height: 0.95;
  white-space: nowrap;
}

.c-mc-hero__when {
  margin-top: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: #FF5A6E;
  white-space: nowrap;
}

.c-mc-hero__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--c-red);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.c-mc-hero__live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--c-white);
  animation: mcLivePulse 1.2s ease-in-out infinite;
}

@keyframes mcLivePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.7); }
}

.c-mc-hero__venue {
  margin: 0;
  text-align: center;
  font-size: 0.92rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.75);
}

.c-mc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.c-mc-btn,
.c-mc-btn:visited {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 2px solid var(--c-red);
  background: var(--c-red);
  color: var(--c-white);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.c-mc-btn:hover,
.c-mc-btn:focus-visible { background: var(--c-red-dark); border-color: var(--c-red-dark); color: var(--c-white); }

.c-mc-btn--ghost,
.c-mc-btn--ghost:visited {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--c-white);
}
.c-mc-btn--ghost:hover,
.c-mc-btn--ghost:focus-visible { background: var(--c-white); border-color: var(--c-white); color: var(--c-black); }

/* ---- Mřížka karet ---- */
.c-mc-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.c-mc-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
  padding: 18px 20px 20px;
  border-radius: 14px;
  background: var(--c-white);
  border: 1px solid var(--c-gray-mid);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
}

.c-mc-card__title {
  margin: 0;
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-size: 1.45rem;
  line-height: 1;
  color: var(--c-black);
}

.c-mc-card__empty { margin: 0; color: var(--c-gray-text); font-size: 0.92rem; }

.c-mc-card__more,
.c-mc-card__more:visited {
  align-self: flex-start;
  margin-top: auto;
  color: var(--c-red);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
}
.c-mc-card__more:hover { color: var(--c-red-dark); text-decoration: underline; }

/* ---- Počasí ---- */
.c-mc-weather__main { display: flex; align-items: center; gap: 16px; }
.c-mc-weather__icon { width: 84px; height: 84px; flex: 0 0 auto; }

.c-mc-weather__temp {
  display: block;
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 600;
  line-height: 0.9;
  color: var(--c-black);
}

.c-mc-weather__label { display: block; margin-top: 4px; font-weight: 700; color: var(--c-gray-text); }

.c-mc-weather__facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--c-gray-light);
}

.c-mc-weather__facts dt {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9A9A9A;
}
.c-mc-weather__facts dd { margin: 2px 0 0; font-weight: 700; color: var(--c-black); overflow-wrap: anywhere; }
.c-mc-weather__facts .c-mc-weather__note { margin: 0; font-size: 0.72rem; font-weight: 500; color: var(--c-gray-text); }

.c-mc-weather__source { margin: auto 0 0; font-size: 0.72rem; color: #9A9A9A; }
.c-mc-weather__source a,
.c-mc-weather__source a:visited { color: var(--c-gray-text); text-decoration: underline; }
.c-mc-weather__source a:hover { color: var(--c-red); }

/* ---- Tabulka ---- */
.c-mc-table-wrap { overflow-x: auto; }

.c-mc-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.c-mc-table th {
  padding: 6px 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #9A9A9A;
  text-align: center;
  border-bottom: 1px solid var(--c-gray-mid);
}
.c-mc-table td { padding: 9px 6px; text-align: center; border-bottom: 1px solid var(--c-gray-light); }
.c-mc-table .c-mc-table__team { text-align: left; font-weight: 700; }
.c-mc-table__rank { font-family: var(--font-heading); font-size: 1.2rem; }
.c-mc-table__points { font-weight: 800; }
.c-mc-table tr.is-club td { color: var(--c-red); }

/* ---- Forma ---- */
.c-mc-form { display: flex; flex-direction: column; gap: 6px; }
.c-mc-form__team { font-weight: 700; font-size: 0.92rem; }
.c-mc-form__team.is-club { color: var(--c-red); }
.c-mc-form__none { font-size: 0.85rem; color: var(--c-gray-text); }

.c-mc-form__list { display: flex; gap: 6px; margin: 0; padding: 0; list-style: none; }

.c-mc-form__item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-family: var(--font-heading);
  font-size: 1.15rem;
  line-height: 1;
  padding-top: 2px;
  color: var(--c-white);
  cursor: default;
}
.c-mc-form__item--V { background: #1F9D55; }
.c-mc-form__item--R { background: #E0A100; }
.c-mc-form__item--P { background: #C8102E; }

.c-mc-form__legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: auto 0 0;
  font-size: 0.75rem;
  color: var(--c-gray-text);
}
.c-mc-form__legend .c-mc-form__item { width: 20px; height: 20px; border-radius: 5px; font-size: 0.8rem; }

/* ---- Vzájemné zápasy ---- */
.c-mc-h2h { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }

.c-mc-h2h__item {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 12px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--c-gray-light);
}
.c-mc-h2h__date { font-size: 0.78rem; font-weight: 700; color: var(--c-gray-text); }
.c-mc-h2h__match { font-weight: 600; }
.c-mc-h2h__match strong { font-family: var(--font-heading); font-size: 1.25rem; color: var(--c-red); margin: 0 4px; }

.c-mc-h2h__link,
.c-mc-h2h__link:visited { margin-left: auto; color: var(--c-red); font-size: 0.8rem; font-weight: 700; text-decoration: none; }
.c-mc-h2h__link:hover { text-decoration: underline; }

/* ---- Mobil ---- */
@media (max-width: 900px) {
  .c-mc-grid { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .c-mc-hero { padding: 18px 14px 20px; }
  .c-mc-hero__match { gap: 8px; }
  .c-mc-hero__logo,
  .c-mc-hero__badge { width: 64px; height: 64px; }
  .c-mc-hero__name { font-size: 1.2rem; }
  .c-mc-hero__mid { min-width: 0; }
  .c-mc-hero__countdown { font-size: 1.7rem; }
  .c-mc-hero__when { font-size: 0.75rem; white-space: normal; }
  .c-mc-weather__facts { grid-template-columns: 1fr 1fr; }
}
