/* turnaj.css */

/* turnaj je defaultně skrytý (během intra) */
#tournamentView {
  display: none;
}

#tournamentView.show {
  display: flex;
}

/* ===== Zobrazení turnaje uprostřed stránky – bez pozadí ===== */
.tournament-view {
  text-align: center;
  color: white;

  flex-direction: column;
  align-items: center;
  gap: 14px;

  margin-top: clamp(40px, 10vh, 80px);

  position: relative;
  z-index: 1;
}

/* ===== Název turnaje ===== */
.tournament-title {
  font-family: 'Bebas Neue', sans-serif;
  font-weight: 400;
  letter-spacing: 0.08em;

  font-size: clamp(2.4rem, 6vw, 3.5rem);

  text-shadow: 0 0 35px rgba(120, 255, 220, 0.45);
}

/* ===== Datum + čas + místo (jeden řádek) ===== */
.tournament-date {
  margin-top: 6px;
}

.t-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
}

.t-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;

  padding: 6px 12px;
  border-radius: 999px;

  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);

  font-size: clamp(0.95rem, 2.6vw, 1.05rem);
  color: rgba(255,255,255,0.95);

  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.t-chip:hover {
  background: rgba(255,255,255,0.14);
  box-shadow: 0 0 18px rgba(120,255,220,0.25);
}

.t-ico {
  display: flex;
  align-items: center;
  justify-content: center;
}

.t-ico svg {
  width: 18px;
  height: 18px;
  opacity: 0.9;
}

/* staré řádky schované */
#tournamentViewTime,
#tournamentViewPlace {
  display: none;
}

/* ===== Odpočet ===== */
.tournament-countdown {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.1em;

  font-size: clamp(1.8rem, 5vw, 2.6rem);

  text-shadow: 0 0 28px rgba(120, 255, 220, 0.35);
}

/* ===== Tlačítko účasti ===== */
.tournament-join-btn {
  margin-top: 18px;
  padding: 10px 22px;
  border-radius: 10px;

  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.12);
  color: white;

  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.tournament-join-btn:hover {
  background: rgba(255,255,255,0.2);
  box-shadow: 0 0 18px rgba(120,255,220,0.35);
}

.tournament-join-btn.leave {
  border-color: rgba(255,90,90,0.6);
  background: rgba(255,90,90,0.15);
}

/* ===== Účastníci ===== */
.tournament-participants {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.tournament-participants img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.4);
  transition: transform 0.2s ease;
}

.tournament-participants img:hover {
  transform: scale(1.1);
}

/* ===== Bublina se jménem ===== */
.participant-wrap {
  position: relative;
}

.participant-bubble {
  position: absolute;
  bottom: 55px;
  left: 50%;
  transform: translateX(-50%);

  padding: 6px 10px;
  border-radius: 8px;

  font-size: 0.85rem;
  white-space: nowrap;

  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border: 1px solid rgba(255,255,255,0.15);
  box-shadow: 0 10px 25px rgba(0,0,0,0.45);

  pointer-events: none;
  z-index: 10;
}

/* ===== Mobile úpravy ===== */
@media (max-width: 600px) {
  .tournament-title {
    font-size: clamp(2.8rem, 9vw, 4rem);
  }

  .tournament-countdown {
    font-size: clamp(2rem, 7vw, 3rem);
  }

  .t-meta {
    gap: 8px;
  }
}


/* ===== Navigace turnajů: šipky + pager v jednom řádku ===== */
.t-navrow{
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 6px 0 2px;
}

.t-pager{
  min-width: 62px;
  text-align: center;
  font-size: 0.95rem;
  opacity: 0.7;
}

.t-navbtn{
  width: 40px;
  height: 40px;
  border-radius: 999px;

  border: 1px solid rgba(255,255,255,0.18);
  background: rgba(0,0,0,0.18);
  color: rgba(255,255,255,0.92);

  display: grid;
  place-items: center;

  cursor: pointer;
  font-size: 26px;
  line-height: 1;

  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);

  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.08s ease, opacity 0.15s ease;
  opacity: 0.9;
}

.t-navbtn:hover{
  background: rgba(255,255,255,0.12);
  box-shadow: 0 0 18px rgba(120,255,220,0.22);
  opacity: 1;
}

.t-navbtn:active{
  transform: translateY(1px);
}

.t-navbtn:disabled{
  opacity: 0.35;
  cursor: default;
  box-shadow: none;
}

.t-empty{
  margin-top: 10px;
  opacity: 0.75;
  font-size: 1rem;
  text-align: center;
}

.tournament-room-btn{
  margin-top: 10px;
  padding: 10px 22px;
  border-radius: 10px;

  border: 1px solid rgba(120,255,220,0.4);
  background: rgba(120,255,220,0.12);
  color: rgba(255,255,255,0.95);

  cursor: pointer;
  font-size: 0.95rem;

  transition: background 0.2s ease, box-shadow 0.2s ease;
}

.tournament-room-btn:hover{
  background: rgba(120,255,220,0.22);
  box-shadow: 0 0 18px rgba(120,255,220,0.35);
}