/* Tournament Page Styles */
.tournament-main {
  padding: 2rem 0;
  min-height: calc(100vh - 300px);
  background-color: #1a1a1a;
}

.tournament-main .container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-title {
  color: #f2a03d;
  text-align: center;
  margin-bottom: 2.5rem;
  font-size: 2.5rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  padding-bottom: 1rem;
}

.page-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: #f2a03d;
  border-radius: 3px;
}

/* Ensure consistent box model */
*,
*::before,
*::after {
  box-sizing: inherit;
}

/* Base styles that might be missing */
body {
  background-color: #1a1a1a;
  color: #e0e0e0;
  font-family: 'Oxanium', sans-serif;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

/* Make sure images don't overflow */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility classes */
.text-center {
  text-align: center;
}

.mt-2 { margin-top: 0.5rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 1rem; }

.section {
  margin: 2rem 0;
  background: rgba(30, 30, 40, 0.8);
  border: 1px solid #444;
  border-radius: 8px;
  padding: 2rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transition: all 0.3s ease;
}

.section:hover {
  border-color: #f2a03d;
  box-shadow: 0 6px 20px rgba(242, 160, 61, 0.2);
}

.section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f2a03d, #ff6b00);
}

.section-title {
  color: #f2a03d;
  text-align: center;
  margin: 0 0 2rem 0;
  font-size: 2.2rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  position: relative;
  padding-bottom: 1rem;
  font-weight: 700;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: #f2a03d;
  border-radius: 3px;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 100px;
  height: 3px;
  background: #f2a03d;
}

/* Teams Section */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.team-card {
  background: rgba(30, 30, 40, 0.7);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #444;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border-color: #f2a03d;
}

.team-header {
  background: rgba(40, 40, 50, 0.9);
  padding: 1.5rem;
  text-align: center;
  border-bottom: 2px solid #f2a03d;
}

.team-logo {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 1rem;
  border-radius: 50%;
  border: 3px solid #f2a03d;
  background: #1a1a1a;
  padding: 5px;
}

.team-card h3 {
  margin: 0;
  color: #f2a03d;
  font-size: 1.5rem;
}

.team-players {
  padding: 1.5rem;
  list-style: none;
  margin: 0;
}

.team-players li {
  padding: 0.7rem 0;
  border-bottom: 1px solid #333;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

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

.team-players .fas {
  color: #f2a03d;
  width: 20px;
  text-align: center;
}

/* Standings Table */
.standings-container {
  overflow-x: auto;
  margin-top: 2rem;
}

.standings-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 auto;
  background: rgba(30, 30, 40, 0.7);
  border-radius: 8px;
  overflow: hidden;
}

.standings-table th,
.standings-table td {
  padding: 1rem;
  text-align: center;
  border: 1px solid #444;
}

.standings-table th {
  background-color: #f2a03d;
  color: #1a1a1a;
  font-weight: bold;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.standings-table tr:nth-child(even) {
  background-color: rgba(40, 40, 50, 0.5);
}

.standings-table tr:hover {
  background-color: rgba(242, 160, 61, 0.1);
}

/* Playoffs Section */
.playoffs-section {
  background: rgba(30, 30, 40, 0.8);
  border: 1px solid #444;
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

/* Bracket */
.bracket-container {
  margin-top: 2rem;
  overflow-x: auto;
  padding: 1rem 0;
}

.bracket {
  display: flex;
  justify-content: space-around;
  min-width: 1000px;
  padding: 2rem 0;
  position: relative;
  background: rgba(40, 40, 50, 0.5);
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.bracket::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(242, 160, 61, 0.05) 0%, rgba(255, 107, 0, 0.05) 100%);
  pointer-events: none;
  z-index: 0;
  border-radius: 8px;
}

.round {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 250px;
  position: relative;
  padding: 1rem 2rem;
  z-index: 1;
  background: rgba(30, 30, 40, 0.7);
  margin: 0 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.round:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(242, 160, 61, 0.15);
  border-color: rgba(242, 160, 61, 0.3);
}

.round-title {
  text-align: center;
  margin-bottom: 1.5rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.round-badge {
  display: inline-block;
  background: #f2a03d;
  color: #1a1a1a;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: 700;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.round-badge.final {
  background: linear-gradient(90deg, #f2a03d, #ff6b00);
  color: #fff;
  font-size: 1rem;
  padding: 0.6rem 1.2rem;
  box-shadow: 0 4px 10px rgba(242, 160, 61, 0.3);
}

.round:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 2rem;
  height: 2px;
  background: #f2a03d;
}

.round h3 {
  text-align: center;
  color: #f2a03d;
  margin-bottom: 2rem;
  font-size: 1.2rem;
}

.matchup {
  background: rgba(50, 50, 60, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  margin: 1rem 0;
  padding: 1rem;
  min-width: 220px;
  position: relative;
  transition: all 0.3s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.matchup.final-match {
  background: rgba(60, 60, 70, 0.8);
  border: 1px solid rgba(242, 160, 61, 0.3);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin: 2rem 0;
  padding: 1.5rem;
}

.matchup::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(242, 160, 61, 0.5), transparent);
}

.matchup:hover {
  border-color: #f2a03d;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.team {
  display: flex;
  align-items: center;
  padding: 0.6rem 0.8rem;
  margin: 0.3rem 0;
  background: rgba(40, 40, 50, 0.7);
  border-radius: 4px;
  transition: all 0.2s ease;
  position: relative;
  border: 1px solid transparent;
}

.team:hover {
  background: rgba(60, 60, 70, 0.9);
  border-color: rgba(242, 160, 61, 0.3);
  transform: translateX(5px);
}

.team .seed {
  font-weight: 700;
  color: #f2a03d;
  margin-right: 0.8rem;
  min-width: 25px;
  text-align: center;
}

.team .team-name {
  flex-grow: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.team .score {
  background: rgba(0, 0, 0, 0.3);
  color: #fff;
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-weight: 700;
  margin-left: 0.8rem;
  min-width: 30px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.vs {
  text-align: center;
  font-weight: 700;
  color: #f2a03d;
  margin: 0.5rem 0;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  padding: 0.3rem;
  position: relative;
  z-index: 1;
}

.vs::before,
.vs::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
  z-index: -1;
}

.vs::before {
  left: 0;
}

.vs::after {
  right: 0;
}

.vs {
  text-align: center;
  font-weight: bold;
  color: #f2a03d;
  margin: 0.5rem 0;
}

.score {
  text-align: center;
  font-weight: bold;
  font-size: 1.2rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.3rem 0;
  border-radius: 4px;
  margin-top: 0.5rem;
}

.champion {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-left: 4rem;
  position: relative;
  padding: 2rem;
  background: rgba(40, 40, 50, 0.7);
  border-radius: 8px;
  border: 1px solid rgba(242, 160, 61, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  min-width: 220px;
  text-align: center;
}

.champion::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #f2a03d, #ff6b00);
}

.trophy-icon {
  font-size: 3.5rem;
  color: #f2a03d;
  margin-bottom: 1rem;
  text-shadow: 0 0 15px rgba(242, 160, 61, 0.5);
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}

.champion-label {
  font-size: 1.2rem;
  font-weight: 700;
  color: #f2a03d;
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.champion-name {
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  margin-top: 0.5rem;
  min-width: 180px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.trophy {
  text-align: center;
  color: #f2a03d;
}

.trophy .fa-trophy {
  font-size: 4rem;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 8px rgba(242, 160, 61, 0.5));
}

.champion-name {
  font-size: 1.5rem;
  font-weight: bold;
  margin-top: 1rem;
  color: #fff;
  text-align: center;
}

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

.map-card {
  background: rgba(30, 30, 40, 0.7);
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #444;
}

.map-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  border-color: #f2a03d;
}

.map-preview {
  height: 150px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.map-card h3 {
  margin: 1rem;
  color: #f2a03d;
  font-size: 1.3rem;
}

.map-card p {
  margin: 0 1rem 1.5rem;
  color: #bbb;
}

/* Connector lines */
.round:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -20px;
  top: 50%;
  width: 20px;
  height: 2px;
  background: rgba(255, 255, 255, 0.2);
  z-index: 0;
}

.round:not(:last-child)::before {
  content: '';
  position: absolute;
  right: 0;
  top: 50%;
  width: 2px;
  height: 100%;
  background: rgba(255, 255, 255, 0.2);
  z-index: 0;
  transform: translateY(-50%);
}

/* Responsive Adjustments */
@media (max-width: 1200px) {
  .bracket {
    min-width: 900px;
  }
  
  .round {
    min-width: 200px;
    padding: 1rem;
  }
}

@media (max-width: 992px) {
  .bracket {
    flex-direction: column;
    min-width: auto;
    padding: 1rem;
  }
  
  .round {
    flex-direction: column;
    padding: 1.5rem;
    width: 100%;
    margin-bottom: 2rem;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
  }
  
  .champion {
    margin: 2rem auto 0;
    max-width: 500px;
    width: 100%;
  }
  
  .round:not(:last-child)::after,
  .round:not(:last-child)::before {
    display: none;
  }
  
  .round:not(:last-child)::after {
    width: 100%;
    height: 2px;
    top: auto;
    bottom: 0;
    left: 0;
    right: auto;
    transform: none;
  }
  
  .matchup {
    margin: 0 1rem;
  }
  
  .champion {
    margin: 2rem 0 0;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .section {
    padding: 1.5rem;
  }
  
  .teams-grid,
  .maps-grid {
    grid-template-columns: 1fr;
  }
  
  .standings-table th,
  .standings-table td {
    padding: 0.7rem 0.5rem;
    font-size: 0.9rem;
  }
}

/* Animation for new content */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

.section {
  animation: fadeIn 0.6s ease-out forwards;
}

/* Tooltip styles */
[data-tooltip] {
  position: relative;
  cursor: help;
}

[data-tooltip]:hover::after {
  content: attr(data-tooltip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-size: 0.9rem;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
  margin-bottom: 0.5rem;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: #1a1a1a;
}

::-webkit-scrollbar-thumb {
  background: #f2a03d;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #d18c2e;
}
