/* Tournament Page Styles */
:root {
  --dark-card: #10152a;
  --dark-lighter: #1a2140;
  --text-primary: #f6f7ff;
  --border-color: rgba(255, 255, 255, 0.12);
}

.bg-light {
  background: linear-gradient(135deg, var(--dark-lighter), var(--dark-card)) !important;
  color: var(--text-primary) !important;
  border: 1px solid var(--border-color);
}

.bg-light h1,
.bg-light h2,
.bg-light h3,
.bg-light h4,
.bg-light h5,
.bg-light h6 {
  color: var(--text-primary) !important;
}

.bg-light p,
.bg-light li,
.bg-light span,
.bg-light small,
.bg-light strong,
.bg-light a {
  color: rgba(246, 247, 255, 0.92) !important;
}

.bg-dark {
  background: var(--dark-card) !important;
  color: #ffffff !important;
  border: 1px solid var(--border-color);
}

.bg-dark h1,
.bg-dark h2,
.bg-dark h3,
.bg-dark h4,
.bg-dark h5,
.bg-dark h6 {
  color: #ffffff !important;
}

.bg-dark p,
.bg-dark li,
.bg-dark span,
.bg-dark small,
.bg-dark strong {
  color: rgba(255, 255, 255, 0.92) !important;
}

h1 {
  font-size: 2.25rem;
  line-height: 1.25;
}

h2 {
  font-size: 1.75rem;
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: 1.25rem;
}

.table {
  color: var(--text-primary);
  border-color: var(--border-color);
}

.table-dark {
  --bs-table-bg: var(--dark-card);
  --bs-table-striped-bg: var(--dark-lighter);
  --bs-table-border-color: var(--border-color);
  --bs-table-color: var(--text-primary);
}

.table thead {
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  border-bottom: 2px solid var(--accent);
}

.table tbody tr {
  border-bottom: 1px solid var(--border-color);
}

.table-striped tbody tr:nth-of-type(odd) {
  background-color: rgba(255, 255, 255, 0.02);
}

.tournament-badge {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  color: white;
  margin-bottom: 1rem;
}

.prize-pool {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin: 1rem 0;
}

.leaderboard-position {
  width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: white;
  margin-right: 0.5rem;
}

.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid var(--border-color);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
}

.tournament-type {
  display: inline-block;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.type-slots {
  background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
  color: white;
}

.type-live {
  background: linear-gradient(135deg, #4ecdc4, #44a08d);
  color: white;
}

.type-table {
  background: linear-gradient(135deg, #f7b731, #f79f1f);
  color: white;
}

.timeline-item {
  padding-left: 2rem;
  border-left: 3px solid var(--accent);
  margin-bottom: 2rem;
  position: relative;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 0;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--dark-card);
}

@media (max-width: 768px) {
  .prize-pool {
    font-size: 1.8rem;
  }
}