/* Tournament Page Specific Styles */
:root {
  --bg: #0b0a0a;
  --bg-2: #141212;
  --text: #e6d4b0;
  --muted: #b59f78;
  --accent: #f2a03d;
  --accent-2: #c06a21;
  --line: #2b241c;
  --card: #1a1612;
}

.tournament-main {
  padding-bottom: 120px; /* Space for fixed buttons */
  min-height: calc(100vh - 70px); /* Account for header */
  background: linear-gradient(180deg, var(--bg), var(--bg-2));
  padding-top: 2rem;
}

/* Buttons Container - Fixed at bottom */
.buttons-container {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(10, 9, 9, 0.95);
  padding: 1.2rem 0;
  border-top: 1px solid var(--accent);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  z-index: 100;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  backdrop-filter: blur(10px);
}

/* Button Styles */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--accent);
  color: #000;
  border: none;
  border-radius: 6px;
  padding: 0.8rem 1.8rem;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: 'Oxanium', sans-serif;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  min-width: 200px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-primary:hover {
  background: #ffc107;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(242, 160, 61, 0.4);
}

.btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.btn-primary svg {
  flex-shrink: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .buttons-container {
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    gap: 0.8rem;
  }
  
  .btn-primary {
    width: 100%;
    max-width: 280px;
    padding: 0.7rem 1.5rem;
    font-size: 0.9rem;
  }
}

/* Ensure content doesn't hide behind fixed buttons */
body {
  padding-bottom: 100px;
  margin: 0;
  min-height: 100vh;
  position: relative;
}

/* Playoffs Bracket Image */
.bracket-image-container {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.5rem;
  margin: 1rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.bracket-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 4px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.bracket-overlay {
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  background: rgba(20, 20, 25, 0.9);
  padding: 1rem 1.5rem;
  border-radius: 6px;
  border-left: 3px solid #ffd700;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.champion-label {
  color: var(--muted);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 0.25rem;
}

.champion-name {
  color: #ffd700;
  font-size: 1.3rem;
  font-weight: 700;
  font-family: 'Oxanium', sans-serif;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .bracket-image-container {
    padding: 1rem;
  }
  
  .bracket-overlay {
    position: relative;
    bottom: auto;
    right: auto;
    margin-top: 1.5rem;
    text-align: center;
    display: inline-block;
  }
}

.matchup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), transparent);
}

.matchup:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
  border-color: var(--accent);
}

.matchup.final-match {
  border: 2px solid gold;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.3);
}

.matchup.final-match::before {
  background: linear-gradient(90deg, gold, #ffb700);
  height: 4px;
}

.team {
  display: flex;
  align-items: center;
  padding: 12px 15px 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.3s ease;
  position: relative;
  min-height: 54px;
  cursor: pointer;
  background: rgba(30, 30, 35, 0.5);
  margin: 5px 0;
  border-radius: 6px;
}

.team:last-child {
  border-bottom: none;
}

.team:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

.team.winner {
  background: linear-gradient(90deg, rgba(76, 175, 80, 0.1), transparent);
  border-left: 3px solid #4CAF50;
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.1);
}

.team.winner .team-name {
  font-weight: 700;
  color: #4CAF50;
  text-shadow: 0 0 10px rgba(76, 175, 80, 0.3);
}

.team.winner .seed {
  background: rgba(76, 175, 80, 0.2);
  color: #4CAF50;
  border-color: rgba(76, 175, 80, 0.3);
}

.team-name {
  flex: 1;
  font-weight: 500;
  color: var(--text);
  transition: all 0.2s ease;
  font-size: 0.95rem;
  position: relative;
  padding-left: 5px;
}

.vs {
  text-align: center;
  padding: 10px 0;
  color: var(--accent);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 800;
  font-family: 'Oxanium', sans-serif;
  position: relative;
  z-index: 2;
  text-shadow: 0 0 5px rgba(242, 160, 61, 0.5);
}

.seed {
  background: rgba(255, 255, 255, 0.1);
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  margin-right: 12px;
  min-width: 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-family: 'Oxanium', sans-serif;
  flex: 1;
  color: var(--text);
  font-weight: 500;
  transition: all 0.3s ease;
}

.team-players li {
  padding: 10px 15px;
  margin: 5px 0;
  background: rgba(30, 30, 35, 0.3);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: all 0.2s ease;
  color: var(--text);
}

.team-players li i {
  margin-right: 10px;
  width: 16px;
  text-align: center;
  color: var(--accent);
}

.team-players li .player-name {
  flex-grow: 1;
  display: flex;
  align-items: center;
}

.team-players li .player-rating {
  background: rgba(255, 255, 255, 0.1);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--accent);
  min-width: 60px;
  text-align: center;
  margin-left: 15px;
}

.team-players li.captain .player-rating {
  background: rgba(242, 160, 61, 0.2);
  border: 1px solid var(--accent);
}

/* Champion Section */
.champion {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 3rem;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(46, 204, 113, 0.05), rgba(46, 204, 113, 0.02));
  border-radius: 15px;
  border: 1px solid rgba(46, 204, 113, 0.1);
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.champion::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #2ecc71, #27ae60);
}

.champion .trophy {
  text-align: center;
  position: relative;
  z-index: 1;
}

.champion .trophy-icon {
  font-size: 4rem;
  color: gold;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
  from {
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  }
  to {
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.8), 0 0 30px rgba(255, 215, 0, 0.6);
  }
}

.champion-label {
  font-size: 1.3rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  font-weight: 300;
}

.champion-name {
  font-size: 2.2rem;
  font-weight: 700;
  background: linear-gradient(45deg, #2ecc71, #3498db);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-align: center;
  margin-top: 0.5rem;
  position: relative;
  padding: 0 1rem;
}

.champion-name::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, #2ecc71, #3498db);
  border-radius: 3px;
}

/* Maps List */
.maps-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 10px;
  margin-top: 1rem;
}

.map-item {
  background: var(--card);
  padding: 12px 15px;
  border-radius: 6px;
  font-family: 'Oxanium', monospace;
  font-size: 0.9rem;
  color: var(--text);
  border-left: 3px solid var(--accent);
  transition: all 0.2s ease;
}

.map-item:hover {
  background: rgba(255, 255, 255, 0.05);
  transform: translateX(5px);
}

/* Responsive */
@media (max-width: 1200px) {
  .bracket {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
  
  .round {
    min-width: 200px;
    margin: 10px;
  }
}

@media (max-width: 768px) {
  .bracket {
    flex-direction: column;
    align-items: center;
  }
  
  .team-stats {
    flex-direction: column;
    gap: 0.5rem;
    align-items: center;
  }
  
  .team-stats .stat {
    width: 140px;
    justify-content: center;
    margin: 0.2rem 0;
  }
  
  .round {
    width: 100%;
    max-width: 350px;
    margin: 15px 0;
  }
  
  .round:not(:last-child)::after {
    display: none;
  }

/* Team Stats Styles */
.team-stats {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--text);
  padding: 0.5rem 0;
}

.stat {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.stat-separator {
  color: var(--muted);
  font-weight: 300;
  margin: 0 0.5rem;
  opacity: 0.7;
  font-size: 1.1em;
  position: relative;
  top: -1px;
}
  
  .champion-name {
    font-size: 1.8rem;
  }
  
  .maps-list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .maps-list {
    grid-template-columns: 1fr;
  }
  
  .champion {
    padding: 2rem 1rem;
  }
  
  .champion-name {
    font-size: 1.5rem;
  }
}

/* Footer styling */
.site-footer {
  background: var(--bg-2);
  padding: 1.5rem 0;
  text-align: center;
  border-top: 1px solid var(--line);
  position: relative;
  z-index: 1;
}

.site-footer .container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1rem;
}

.site-footer small {
  color: var(--muted);
  font-size: 0.85rem;
  display: block;
  margin-top: 0.5rem;
}
