/* ── Search fanta tournaments ──────────────────────────────── */

.st-filters {
  background: var(--bg-panel);
  border: 1px solid var(--border-soft);
  border-radius: 12px;
  padding: 1.25rem 1.5rem 1.5rem;
}

.st-filters .form-label {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.35rem;
}

.st-filters .form-control,
.st-filters .form-select {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-main);
  border-radius: 8px;
  font-size: 0.9rem;
}

.st-filters .form-control::placeholder {
  color: var(--text-soft);
  opacity: 0.7;
}

.st-filters .form-control:focus,
.st-filters .form-select:focus {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--red, #dc3545);
  box-shadow: 0 0 0 0.2rem rgba(220, 53, 69, 0.2);
  color: var(--text-main);
}

.st-filters .form-select option {
  background: var(--bg-panel);
  color: var(--text-main);
}

.st-filters__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

/* ── Sport tabs ────────────────────────────────────────────── */

.st-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid var(--border-soft);
  padding-bottom: 0.75rem;
}

.st-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border-soft);
  background: var(--bg-panel);
  color: var(--text-soft);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s ease;
  cursor: pointer;
}

.st-tab img {
  width: 18px;
  height: 18px;
  object-fit: contain;
  display: block;
}

.st-tab i {
  font-size: 0.95rem;
}

.st-tab:hover {
  color: var(--text-main);
  border-color: rgba(255, 255, 255, 0.25);
  transform: translateY(-1px);
}

.st-tab.is-active {
  color: var(--text-main);
  background: rgba(220, 53, 69, 0.15);
  border-color: var(--red, #dc3545);
}

.st-tab--football.is-active { background: rgba(29, 185, 84, 0.15);  border-color: #1db954; }
.st-tab--survivor.is-active { background: rgba(249, 115, 22, 0.15); border-color: #f97316; }
.st-tab--tennis.is-active   { background: rgba(56, 189, 248, 0.15); border-color: #38bdf8; }
.st-tab--toto.is-active     { background: rgba(163, 255, 0, 0.12);  border-color: #A3FF00; }

.st-tab__count {
  min-width: 1.4rem;
  padding: 0.05rem 0.4rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  font-weight: 700;
  text-align: center;
}

.st-tab.is-active .st-tab__count {
  background: rgba(255, 255, 255, 0.15);
}

/* ── Results ───────────────────────────────────────────────── */

.st-heading-count {
  margin-left: auto;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
}

.st-badge--official {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: rgba(255, 193, 7, 0.12);
  color: #ffc107;
  border: 1px solid rgba(255, 193, 7, 0.3);
}

/* Card interamente cliccabile verso la pagina del fantatorneo */

.tournaments-list .ra-card {
  position: relative;
}

.st-card-link {
  color: var(--text-main, #E6E8EC);
  text-decoration: none;
}

.st-card-link:hover {
  color: var(--ra-accent, var(--text-main));
  text-decoration: underline;
}

.ra-card__footer .st-join-btn {
  position: relative;
  z-index: 2;
}

.st-code {
  font-family: monospace;
  font-size: 0.75rem;
}

@keyframes st-join-blink {
  0%, 100% { box-shadow: 0 0 0 0 rgba(var(--ra-accent-rgb), 0.7); opacity: 1; }
  50%      { box-shadow: 0 0 12px 4px rgba(var(--ra-accent-rgb), 0.55); opacity: 0.75; }
}

.st-join-btn {
  animation: st-join-blink 1.4s ease-in-out infinite;
}

.st-join-btn--closed {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: var(--text-soft);
  font-weight: 600;
  cursor: not-allowed;
  animation: none;
}

.st-join-btn--closed:hover {
  background: transparent;
  color: var(--text-soft);
  box-shadow: none;
}

.ra-card__footer .ra-btn--sport-enter,
.ra-card__footer .st-join-btn--closed {
  margin-left: auto;
}

@media (max-width: 576px) {
  .st-filters {
    padding: 1rem;
  }

  .st-filters__actions .btn {
    flex: 1;
  }

  .st-tab {
    font-size: 0.78rem;
    padding: 0.4rem 0.75rem;
  }
}
