/* BLCS Tiers Shared Stylesheet */
/* Used by: Masters, Legends, and other tiers */

/* Updated Variables for Black/White/Gray Theme */
:root {
  --primary-dark: #1a1a1a;
  --secondary-dark: #2d2d2d;
  --accent-gray: #404040;
  --light-gray: #666666;
  --medium-gray: #999999;
  --text-white: #ffffff;
  --text-light-gray: #e0e0e0;
  --text-medium-gray: #b8b8b8;
  --background-black: #0a0a0a;
  --card-bg: #1f1f1f;
  --border-gray: rgba(255, 255, 255, 0.15);
  --hover-gray: rgba(255, 255, 255, 0.1);
  --accent-highlight: #ffffff;
}

body {
  font-family: 'Inter', sans-serif;
  background-color: var(--background-black);
  color: var(--text-white);
  margin: 0;
  padding: 0;
  line-height: 1.6;
}

/* Enhanced Animated Background */
.bg-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  opacity: 0.08;
}

.bg-animation::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: 
    radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
    radial-gradient(circle at 40% 80%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
  animation: float 30s infinite linear;
}

.bg-animation::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.02) 50%, transparent 70%);
  animation: wave 20s infinite ease-in-out;
}

@keyframes float {
  0% { transform: translate(0, 0) rotate(0deg); }
  100% { transform: translate(-50px, -50px) rotate(360deg); }
}

@keyframes wave {
  0%, 100% { transform: translateX(-100px) skewX(0deg); }
  50% { transform: translateX(100px) skewX(2deg); }
}

/* Header Styles - Works for both BLCS and League headers */
.blcs-header,
.league-header {
  background: rgba(26, 26, 26, 0.98);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-gray);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  position: relative;
}

/* Goal net pattern */
.blcs-header::before,
.league-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(0deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.6;
  animation: netFloat 25s infinite linear;
}

@keyframes netFloat {
  0% { transform: translateX(0px) translateY(0px); }
  100% { transform: translateX(-20px) translateY(-20px); }
}

.blcs-header-container,
.league-header-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem;
  position: relative;
  z-index: 2;
}

.blcs-header-container {
  display: flex;
  justify-content: center;
  align-items: center;
}

.league-header-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.blcs-logo-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.5rem;
}

.blcs-logo-container img,
.league-logo {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  transition: all 0.3s ease;
  object-fit: contain;
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.3));
}

.blcs-logo-container img:hover {
  transform: scale(1.05) rotate(2deg);
}

.league-logo {
  animation: logoFloat 3s ease-in-out infinite;
}

@keyframes logoFloat {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
}

.blcs-header h1,
.league-header h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-white) 0%, var(--text-light-gray) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0;
  text-align: center;
  animation: titlePulse 4s ease-in-out infinite;
}

@keyframes titlePulse {
  0%, 100% { text-shadow: 0 0 20px rgba(255, 255, 255, 0.1); }
  50% { text-shadow: 0 0 30px rgba(255, 255, 255, 0.3); }
}

/* Breadcrumb Navigation */
.breadcrumb {
  background: rgba(31, 31, 31, 0.8);
  padding: 0.75rem 2rem;
  border-bottom: 1px solid var(--border-gray);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.breadcrumb-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.breadcrumb a {
  color: var(--text-medium-gray);
  text-decoration: none;
  transition: color 0.3s ease;
}

.breadcrumb a:hover {
  color: var(--text-white);
}

.breadcrumb-separator {
  color: var(--text-medium-gray);
}

.breadcrumb-current {
  color: var(--text-white);
  font-weight: 500;
}

/* Main Content - Shared */
.blcs-main,
.content-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
  min-height: 60vh;
}

/* Override for construction pages */
.content-main {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Section Headers */
.section-header,
.legends-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-header h1,
.legends-title {
  font-size: 3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-white) 0%, var(--text-light-gray) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.legends-title {
  font-weight: 700;
  margin-bottom: 1rem;
}

.section-header p,
.legends-subtitle {
  color: var(--text-medium-gray);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
}

.legends-subtitle {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}

/* Card Containers - Shared shimmer effect */
.standings-container,
.matches-container,
.team-card {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 3rem;
  border: 1px solid var(--border-gray);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.standings-container::before,
.matches-container::before,
.team-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.02) 50%, transparent 70%);
  animation: cardShimmer 8s ease-in-out infinite;
}

.team-card::before {
  transition: transform 0.3s ease;
  z-index: 1;
}

.team-card:hover::before {
  transform: translateX(100%);
}

@keyframes cardShimmer {
  0%, 100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}

/* Card Headers */
.standings-header,
.matches-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--text-white);
  position: relative;
  z-index: 1;
}

.standings-header h2,
.matches-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 0;
}

/* Buttons */
.refresh-btn {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--accent-gray) 100%);
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.refresh-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 255, 255, 0.15);
}

/* Tables - Masters specific */
.standings-table,
.matches-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
  position: relative;
  z-index: 1;
}

.standings-table th,
.matches-table th {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--accent-gray) 100%);
  color: white;
  padding: 1rem 0.75rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.9rem;
  position: sticky;
  top: 0;
  z-index: 10;
}

.standings-table th:first-child {
  border-radius: 8px 0 0 8px;
  text-align: center;
  width: 60px;
}

.standings-table th:nth-child(2) {
  text-align: left;
  width: 300px;
}

.standings-table th:last-child,
.matches-table th:last-child {
  border-radius: 0 8px 8px 0;
}

.standings-table td,
.matches-table td {
  padding: 1rem 0.75rem;
  border-bottom: 1px solid var(--border-gray);
  text-align: center;
  font-weight: 500;
}

.standings-table td:nth-child(2) {
  text-align: left;
  font-weight: 600;
  color: var(--text-white);
}

.matches-table th:first-child {
  width: 100px;
  text-align: center;
}

.matches-table th:nth-child(2) {
  width: 200px;
  text-align: right;
}

.matches-table th:nth-child(3) {
  width: 120px;
  text-align: center;
}

.matches-table th:nth-child(4) {
  width: 200px;
  text-align: left;
}

.matches-table td:nth-child(2) {
  text-align: right;
  font-weight: 600;
  color: var(--text-white);
}

.matches-table td:nth-child(4) {
  text-align: left;
  font-weight: 600;
  color: var(--text-white);
}

.standings-table tr,
.matches-table tr {
  transition: all 0.3s ease;
}

.standings-table tbody tr:hover,
.matches-table tbody tr:hover {
  background: var(--hover-gray);
  transform: scale(1.01);
}

/* Position indicators */
.position {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--accent-gray) 100%);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto;
}

.position.top-3 {
  background: linear-gradient(135deg, var(--text-white) 0%, var(--text-light-gray) 100%);
  color: var(--background-black);
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.3);
}

/* Match elements */
.week-section {
  margin-bottom: 2.5rem;
  position: relative;
  z-index: 1;
}

.week-header {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--accent-gray) 100%);
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 8px 8px 0 0;
  font-size: 1.3rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0;
}

.matches-table {
  border: 1px solid var(--border-gray);
  border-top: none;
  border-radius: 0 0 8px 8px;
  overflow: hidden;
}

.matches-table th {
  background: linear-gradient(135deg, var(--accent-gray) 0%, var(--light-gray) 100%);
}

.match-number {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--accent-gray) 100%);
  color: white;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  margin: 0 auto;
  font-size: 0.9rem;
}

.match-score {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--accent-gray) 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-weight: 700;
  display: inline-block;
  min-width: 60px;
}

.match-score.no-score {
  background: var(--border-gray);
  color: var(--text-medium-gray);
}

.team-name {
  color: var(--text-white);
  font-weight: 600;
}

/* Team Grid - Legends specific */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 2rem;
}

.team-card {
  cursor: pointer;
  height: 250px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  margin-bottom: 0;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.3);
}

.team-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.team-card:hover .team-logo {
  transform: scale(1.1);
}

.team-card .team-name {
  font-size: 1.4rem;
  font-weight: 600;
  text-align: center;
  color: var(--text-white);
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 2;
  transition: opacity 0.3s ease;
}

/* Player Info (Hidden by default, shown on hover) */
.player-info {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.95);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 3;
  padding: 1.5rem;
  border-radius: 16px;
}

.team-card:hover .player-info {
  opacity: 1;
}

.team-card:hover .team-name {
  opacity: 0;
}

.player-info h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-white);
  margin-bottom: 1rem;
  text-align: center;
}

.player-list {
  list-style: none;
  padding: 0;
  margin: 0;
  width: 100%;
}

.player-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
  color: var(--text-light-gray);
}

.flag-icon {
  width: 20px;
  height: 15px;
  object-fit: cover;
  border-radius: 2px;
  background-size: cover;
  background-repeat: no-repeat;
}

/* Flag mappings */
.flag-us {
  background-image: url('https://flagicons.lipis.dev/flags/4x3/us.svg');
}

.flag-ca {
  background-image: url('https://flagicons.lipis.dev/flags/4x3/ca.svg');
}

.flag-mx {
  background-image: url('https://flagicons.lipis.dev/flags/4x3/mx.svg');
}

/* Construction Page Styles */
.content-main {
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-section {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 4rem 2.5rem;
  margin-bottom: 3rem;
  border: 1px solid var(--border-gray);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  text-align: center;
  max-width: 800px;
  width: 100%;
  position: relative;
  overflow: hidden;
}

.content-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.02) 50%, transparent 70%);
  animation: cardShimmer 8s ease-in-out infinite;
}

.construction-icon {
  font-size: 5rem;
  margin-bottom: 1.5rem;
  animation: bounce 2s infinite;
  position: relative;
  z-index: 1;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(-10px);
  }
  60% {
    transform: translateY(-5px);
  }
}

.content-section h2 {
  font-size: 3rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--text-white) 0%, var(--text-light-gray) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1.5rem;
  position: relative;
  z-index: 1;
}

.content-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-medium-gray);
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.content-section p {
  color: var(--text-medium-gray);
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.cta-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
  position: relative;
  z-index: 1;
}

.cta-button {
  padding: 1rem 2rem;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  position: relative;
  overflow: hidden;
}

.cta-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s ease;
}

.cta-button:hover::before {
  left: 100%;
}

.cta-primary {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--accent-gray) 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(255, 255, 255, 0.15);
}

.cta-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.2);
}

.cta-secondary {
  background: transparent;
  color: var(--text-white);
  border: 2px solid var(--border-gray);
}

.cta-secondary:hover {
  border-color: var(--text-white);
  color: var(--text-white);
  transform: translateY(-3px);
  background: var(--hover-gray);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
}

/* Playoff Bracket Styles */
.bracket-container {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 3rem;
  border: 1px solid var(--border-gray);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow-x: auto;
  position: relative;
}

.bracket-container::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.02) 50%, transparent 70%);
  animation: cardShimmer 8s ease-in-out infinite;
  pointer-events: none;
}

.bracket-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--text-white);
  position: relative;
  z-index: 1;
}

.bracket-header h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-white);
  margin: 0;
}

/* Traditional Bracket Visual - All Visible */
.unified-bracket {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  padding: 1rem 0;
  position: relative;
  z-index: 1;
}

.bracket-section {
  margin-bottom: 0;
}

.bracket-title {
  text-align: center;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-white); /* Add this line back */
  margin-bottom: 1.5rem;
  padding: 0.75rem;
  border-radius: 8px;
  border: 2px solid var(--border-gray);
}

/* Winners Bracket Layout - Horizontal Flow */
.winners-bracket-flow {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

/* Losers Bracket Layout - Horizontal Flow */
.losers-bracket-flow {
  display: flex;
  justify-content: space-evenly;
  align-items: flex-start;
  gap: 1.5rem;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
}

.bracket-round {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  flex: 1;
  max-width: 280px;
}

.bracket-round.semifinals {
  margin-top: 0.75rem;
}

.bracket-round.finals {
  margin-top: 1.5rem;
}

.round-title {
  text-align: center;
  font-size: 1rem;
  font-weight: 700;
  color: white;
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--accent-gray) 100%);
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 0.75rem;
}

.match {
  background: var(--card-bg);
  border-radius: 6px;
  border: 2px solid var(--border-gray);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  position: relative;
  min-height: 90px;
}

.match:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 25px rgba(255, 255, 255, 0.1);
  border-color: var(--text-white);
}

.match-header {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--accent-gray) 100%);
  color: white;
  padding: 0.3rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-align: center;
}

.team {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  border-bottom: 1px solid var(--border-gray);
  transition: background 0.3s ease;
  min-height: 35px;
}

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

.team.winner {
  background: rgba(255, 255, 255, 0.1);
  border-left: 3px solid var(--text-white);
}

.team-logo {
  width: 24px;
  height: 24px;
  border-radius: 4px;
  margin-right: 0.5rem;
  background: var(--border-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6rem;
  color: var(--text-medium-gray);
  flex-shrink: 0;
}

.team-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 3px;
}

.team-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-width: 0;
}

.team-name {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  min-width: 0;
  flex: 1;
}

.team-seed {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--accent-gray) 100%);
  color: white;
  padding: 0.15rem 0.3rem;
  border-radius: 2px;
  font-size: 0.65rem;
  font-weight: 700;
  flex-shrink: 0;
}

.team-name-text {
  font-weight: 600;
  color: var(--text-white);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.team-score {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--text-white);
  min-width: 20px;
  text-align: center;
  flex-shrink: 0;
}

/* Grand Finals Special Styling */
.grand-finals {
  display: flex;
  justify-content: center;
  margin-top: 1rem;
}

.grand-finals .match {
  min-width: 320px;
  max-width: 400px;
  border: 3px solid var(--text-white);
  box-shadow: 0 6px 20px rgba(255, 255, 255, 0.2);
}

.grand-finals .match-header {
  background: linear-gradient(135deg, var(--secondary-dark) 0%, var(--accent-gray) 100%);
  font-size: 0.9rem;
  padding: 0.6rem;
}

.grand-finals .team {
  padding: 0.75rem;
  min-height: 45px;
}

.grand-finals .team-logo {
  width: 32px;
  height: 32px;
}

.grand-finals .team-name-text {
  font-size: 0.9rem;
}

.grand-finals .team-score {
  font-size: 1.1rem;
}

/* Loading and Error States */
.loading {
  text-align: center;
  padding: 3rem;
  color: var(--text-medium-gray);
  font-style: italic;
  position: relative;
  z-index: 1;
}

.error {
  text-align: center;
  padding: 3rem;
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.1);
  border-radius: 8px;
  margin: 1rem 0;
  position: relative;
  z-index: 1;
}

/* Mobile Responsiveness */
/* Responsive adjustments for brackets */
@media (max-width: 1200px) {
  .teams-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .winners-bracket-flow,
  .losers-bracket-flow {
    gap: 1rem;
  }
  
  .bracket-round {
    max-width: 220px;
  }
  
  .team-name-text {
    font-size: 0.75rem;
  }
}

@media (max-width: 900px) {
  .teams-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  .blcs-header-container,
  .league-header-container {
    padding: 1rem;
    flex-direction: column;
    gap: 1rem;
  }

  .league-header-container {
    gap: 0.5rem;
  }

  .blcs-header h1,
  .league-header h1 {
    font-size: 1.8rem;
  }

  .blcs-logo-container {
    flex-direction: column;
    gap: 1rem;
  }

  .blcs-logo-container img,
  .league-logo {
    width: 50px;
    height: 50px;
  }

  .breadcrumb {
    padding: 0.5rem 1rem;
  }

  .blcs-main,
  .content-main {
    padding: 1rem;
  }

  .content-section {
    padding: 2rem 1.5rem;
  }

  .content-section h2 {
    font-size: 2rem;
  }

  .construction-icon {
    font-size: 3rem;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-button {
    width: 100%;
    max-width: 300px;
  }

  .section-header h1,
  .legends-title {
    font-size: 2rem;
  }

  .standings-container,
  .matches-container {
    padding: 1rem;
    overflow-x: auto;
  }

  .standings-header,
  .matches-header {
    flex-direction: column;
    gap: 1rem;
    align-items: stretch;
  }

  .standings-table,
  .matches-table {
    min-width: 600px;
  }

  .standings-table th,
  .standings-table td,
  .matches-table th,
  .matches-table td {
    padding: 0.75rem 0.5rem;
    font-size: 0.9rem;
  }

  .matches-container {
    padding: 1.5rem 1rem;
  }

  .matches-header h2 {
    font-size: 1.5rem;
  }

  .week-header {
    font-size: 1.1rem;
    padding: 0.75rem 1rem;
  }

  .matches-table th:nth-child(2),
  .matches-table th:nth-child(4) {
    width: auto;
  }

  .matches-table td:nth-child(2),
  .matches-table td:nth-child(4) {
    text-align: center;
  }

  .teams-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .team-card {
    height: 200px;
    padding: 1.5rem;
  }

  .bracket-container {
    padding: 1rem;
  }

  .winners-bracket-flow,
  .losers-bracket-flow {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }
  
  .bracket-round {
    max-width: 300px;
    width: 100%;
  }
  
  .bracket-round.semifinals,
  .bracket-round.finals {
    margin-top: 0;
  }
  
  .grand-finals .match {
    min-width: 280px;
  }

  .team {
    padding: 0.75rem;
  }

  .team-logo {
    width: 32px;
    height: 32px;
  }
}

@media (min-width: 769px) {
  .league-header-container {
    flex-direction: row;
  }
}