/* Tournament Screen Styles */
.tournament-container {
  padding: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* No Tournaments Message */
.no-tournaments {
  text-align: center;
  padding: 3rem 1rem;
}

.no-tournaments h4 {
  color: var(--primary-color, #ffd700);
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.no-tournaments p {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1.5rem;
}

/* Tournament List */
.tournaments-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

/* Tournament Card */
.tournament-card {
  background: rgba(255, 255, 255, 0.05);
  border: 2px solid rgba(255, 215, 0, 0.3);
  border-radius: 12px;
  padding: 1.5rem;
  transition: all 0.3s ease;
}

.tournament-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 215, 0, 0.5);
  box-shadow: 0 5px 20px rgba(255, 215, 0, 0.2);
}

.tournament-card.registration {
  border-color: #00cc88;
}

.tournament-card.in-progress {
  border-color: #ffd700;
}

.tournament-card.paused {
  border-color: #ff9500;
}

.tournament-card.completed {
  border-color: #00aaff;
}

.tournament-header-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.tournament-header-card h4 {
  margin: 0;
  font-size: 1.4rem;
  color: #ffd700;
}

.tournament-status {
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: bold;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.tournament-status.registration {
  background: #00cc88;
  color: white;
}

.tournament-status.in-progress {
  background: #ffd700;
  color: #1a1a2e;
}

.tournament-status.paused {
  background: #ff9500;
  color: white;
}

.tournament-status.completed {
  background: #00aaff;
  color: white;
}

/* Tournament Info */
.tournament-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.info-row {
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.info-row .label {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
}

.info-row .value {
  color: #ffffff;
  font-weight: 600;
}

/* Tournament Progress Bar */
.tournament-progress {
  margin-bottom: 1rem;
}

.progress-bar {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 0.5rem;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ffd700, #ffed4e);
  transition: width 0.3s ease;
  border-radius: 4px;
}

.progress-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
}

/* Tournament Actions */
.tournament-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
}

.tournament-actions .btn {
  flex: 1;
}

/* Bracket Preview */
.bracket-preview {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 2px solid rgba(255, 215, 0, 0.2);
}

.bracket-preview h5 {
  color: #ffd700;
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

.bracket-matches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.bracket-match {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  padding: 0.75rem;
}

.bracket-match.completed {
  border-color: #00cc88;
}

.bracket-match.in-progress {
  border-color: #ffd700;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.3);
}

.match-player {
  padding: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 4px;
  margin-bottom: 0.5rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
}

.match-player.winner {
  background: rgba(0, 204, 136, 0.2);
  color: #00cc88;
  font-weight: bold;
}

.match-vs {
  text-align: center;
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin: 0.25rem 0;
}

/* Tournament Winner */
.tournament-winner {
  margin-top: 1.5rem;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(255, 215, 0, 0.2), rgba(255, 237, 78, 0.1));
  border: 2px solid #ffd700;
  border-radius: 12px;
  text-align: center;
}

.tournament-winner h4 {
  margin: 0;
  font-size: 1.5rem;
  color: #ffd700;
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

/* Responsive Design */
@media (max-width: 768px) {
  .tournament-container {
    padding: 1rem;
  }

  .tournament-info {
    grid-template-columns: 1fr;
  }

  .bracket-matches {
    grid-template-columns: 1fr;
  }
}
