/* tournaments.css */
.tournaments-page {
  padding: 24px;
  animation: fadeIn 0.4s ease-out;
}

.tournaments-header {
  text-align: center;
  margin-bottom: 32px;
}

.tournaments-header h1 {
  font-size: 2.5rem;
  background: linear-gradient(90deg, #B8963E, #F9E596, #B8963E);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 8px;
}

.tournaments-header p {
  color: var(--text-muted);
  font-size: 1.1rem;
}

.tournament-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.tournament-card {
  background: var(--bg-card);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}

.tournament-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px rgba(184, 150, 62, 0.2);
  border-color: rgba(184, 150, 62, 0.3);
}

.tournament-banner {
  height: 160px;
  background-color: #1a2233;
  background-size: cover;
  background-position: center;
  position: relative;
}

.tournament-banner::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 80px;
  background: linear-gradient(to top, var(--bg-card), transparent);
}

.t-status-badge {
  position: absolute;
  top: 16px; left: 16px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  z-index: 2;
}
.t-status-active { background: #E11D48; color: #fff; box-shadow: 0 0 10px rgba(225,29,72,0.5); }
.t-status-upcoming { background: #2563EB; color: #fff; box-shadow: 0 0 10px rgba(37,99,235,0.5); }
.t-status-ended { background: #475569; color: #fff; }

.tournament-info {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.tournament-title {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
}

.tournament-prize {
  font-size: 1.6rem;
  font-weight: 800;
  color: #10B981;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.t-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.t-countdown {
  display: flex;
  gap: 8px;
  align-items: center;
  background: rgba(0,0,0,0.2);
  padding: 8px;
  border-radius: 8px;
  justify-content: center;
  margin-bottom: 20px;
}
.t-countdown-val { font-weight: 700; color: #B8963E; }

.btn-join-tournament {
  width: 100%;
  margin-top: auto;
}

/* Glassmorphism utility for other UI elements */
.glass-panel {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
}
