/* Base Styles */
:root {
  /* NBA Colors */
  --nba-blue: #17408B;
  --nba-red: #C9082A;
  --nba-white: #FFFFFF;
  
  /* Team Colors - Eastern Conference */
  --celtics-green: #007A33;
  --celtics-gold: #BA9653;
  --knicks-blue: #006BB6;
  --knicks-orange: #F58426;
  --nets-black: #000000;
  --nets-white: #FFFFFF;
  --sixers-blue: #006BB6;
  --sixers-red: #ED174C;
  --raptors-red: #CE1141;
  --raptors-black: #000000;
  --bucks-green: #00471B;
  --bucks-cream: #EEE1C6;
  --bulls-red: #CE1141;
  --bulls-black: #000000;
  --cavs-wine: #860038;
  --cavs-gold: #FDBB30;
  --pacers-blue: #002D62;
  --pacers-gold: #FDBB30;
  --pistons-blue: #C8102E;
  --pistons-red: #1D42BA;
  --hawks-red: #E03A3E;
  --hawks-yellow: #C1D32F;
  --hornets-purple: #1D1160;
  --hornets-teal: #00788C;
  --heat-red: #98002E;
  --heat-yellow: #F9A01B;
  --magic-blue: #0077C0;
  --magic-silver: #C4CED4;
  --wizards-navy: #002B5C;
  --wizards-red: #E31837;
  
  /* Team Colors - Western Conference */
  --nuggets-navy: #0E2240;
  --nuggets-gold: #FEC524;
  --thunder-blue: #007AC1;
  --thunder-orange: #EF3B24;
  --wolves-blue: #0C2340;
  --wolves-green: #236192;
  --blazers-red: #E03A3E;
  --blazers-black: #000000;
  --jazz-navy: #002B5C;
  --jazz-yellow: #00471B;
  --warriors-blue: #1D428A;
  --warriors-yellow: #FFC72C;
  --clippers-red: #C8102E;
  --clippers-blue: #1D428A;
  --lakers-purple: #552583;
  --lakers-gold: #FDB927;
  --suns-purple: #1D1160;
  --suns-orange: #E56020;
  --kings-purple: #5A2D81;
  --kings-silver: #63727A;
  --mavs-blue: #00538C;
  --mavs-navy: #002B5E;
  --rockets-red: #CE1141;
  --rockets-silver: #000000;
  --grizzlies-blue: #5D76A9;
  --grizzlies-navy: #12173F;
  --pelicans-navy: #0C2340;
  --pelicans-gold: #C8102E;
  --spurs-silver: #C4CED4;
  --spurs-black: #000000;
  
  /* UI Colors */
  --background-light: #F8F9FA;
  --background-dark: #212529;
  --text-primary: #212529;
  --text-secondary: #6C757D;
  --text-light: #F8F9FA;
  --border-color: #DEE2E6;
  --accent-color: #17408B;
  --success-color: #28A745;
  --error-color: #DC3545;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Roboto', sans-serif;
  line-height: 1.6;
  color: var(--text-primary);
  background-color: var(--background-light);
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

h1, h2, h3, h4, h5, h6 {
  margin-bottom: 1rem;
  line-height: 1.2;
}

a {
  text-decoration: none;
  color: var(--accent-color);
  transition: color 0.3s ease;
}

a:hover {
  color: var(--nba-red);
}

img {
  max-width: 100%;
  height: auto;
}

section {
  padding: 60px 0;
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border: none;
  border-radius: 4px;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-primary {
  background-color: var(--nba-blue);
  color: var(--nba-white);
}

.btn-primary:hover {
  background-color: #0d2b5e;
  color: var(--nba-white);
}

/* Header Styles */
.site-header {
  background-color: var(--nba-blue);
  color: var(--nba-white);
  padding: 20px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.site-header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo h1 {
  font-size: 1.8rem;
  margin-bottom: 0;
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav li {
  margin-left: 20px;
}

.main-nav a {
  color: var(--nba-white);
  font-weight: 500;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background-color 0.3s ease;
}

.main-nav a:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

/* Hero Section */
.hero {
  background: linear-gradient(rgba(23, 64, 139, 0.8), rgba(201, 8, 42, 0.8)), url('https://cdn.nba.com/manage/2020/10/NBA-Finals-2020-court-scaled.jpg') no-repeat center center/cover;
  color: var(--nba-white);
  text-align: center;
  padding: 100px 0;
}

.hero h2 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  max-width: 600px;
  margin: 0 auto;
}

/* Playoffs Section */
.playoffs-section {
  background-color: var(--background-light);
}

.playoffs-section h2 {
  text-align: center;
  margin-bottom: 40px;
}

.playoff-bracket {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 30px;
}

.conference {
  flex: 1 1 100%;
  margin-bottom: 40px;
}

.conference h3 {
  text-align: center;
  padding: 10px;
  margin-bottom: 20px;
  border-radius: 4px;
}

.eastern-conference h3 {
  background-color: var(--nba-blue);
  color: var(--nba-white);
}

.western-conference h3 {
  background-color: var(--nba-red);
  color: var(--nba-white);
}

.rounds {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.round {
  flex: 1;
  margin: 0 10px;
}

.round h4 {
  text-align: center;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--border-color);
}

.matchups {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.matchup {
  background-color: var(--nba-white);
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.team {
  display: flex;
  align-items: center;
  margin-bottom: 10px;
}

.team-logo {
  width: 30px;
  height: 30px;
  margin-right: 10px;
}

.vs {
  text-align: center;
  font-weight: bold;
  margin: 10px 0;
}

.result {
  text-align: center;
  font-weight: bold;
  color: var(--accent-color);
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border-color);
}

/* Finals Section */
.finals-section {
  background-color: #f0f0f0;
  padding: 80px 0;
}

.finals-section h2 {
  text-align: center;
  margin-bottom: 40px;
}

.finals-matchup {
  display: flex;
  justify-content: space-around;
  align-items: center;
  margin-bottom: 60px;
  background-color: var(--nba-white);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.finals-matchup .team {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.finals-matchup .team-logo {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
}

.vs-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.finals-matchup .vs {
  font-size: 2rem;
  font-weight: bold;
  margin: 20px 0;
  color: var(--nba-blue);
}

.series {
  font-size: 1.5rem;
  font-weight: bold;
}

.champion {
  text-align: center;
  padding: 40px;
  background: linear-gradient(to right, var(--celtics-green), var(--celtics-gold));
  border-radius: 8px;
  color: var(--nba-white);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.champion h3 {
  font-size: 2rem;
  margin-bottom: 30px;
}

.champion-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 30px;
}

.champion-logo {
  width: 150px;
  height: 150px;
  margin-bottom: 20px;
}

.champion-team h2 {
  font-size: 3rem;
  margin-bottom: 0;
}

.finals-mvp {
  margin-top: 30px;
}

.finals-mvp h4 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.mvp-player {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mvp-image {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 15px;
  border: 3px solid var(--nba-white);
}

/* MVP Rankings Section */
.mvp-section {
  background-color: var(--background-light);
  padding: 80px 0;
}

.mvp-section h2 {
  text-align: center;
  margin-bottom: 10px;
}

.mvp-section > .container > p {
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-secondary);
}

.mvp-candidates {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}

.mvp-card {
  position: relative;
  background-color: var(--nba-white);
  border-radius: 8px;
  overflow: hidden;
  width: 100%;
  max-width: 350px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.mvp-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.rank {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 30px;
  height: 30px;
  background-color: var(--nba-blue);
  color: var(--nba-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.player-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.player-info {
  padding: 20px;
}

.player-info h3 {
  margin-bottom: 10px;
  font-size: 1.5rem;
}

.team-info {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.team-logo-small {
  width: 20px;
  height: 20px;
  margin-right: 10px;
}

.stats {
  display: flex;
  justify-content: space-between;
  margin-bottom: 15px;
  padding: 10px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.stat-value {
  font-size: 1.2rem;
  font-weight: bold;
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.odds {
  font-weight: bold;
  color: var(--accent-color);
}

/* Trivia Game Section */
.trivia-section {
  background-color: #f9f9f9;
  padding: 80px 0;
}

.trivia-section h2 {
  text-align: center;
  margin-bottom: 10px;
}

.trivia-section > .container > p {
  text-align: center;
  margin-bottom: 40px;
  color: var(--text-secondary);
}

.trivia-game {
  max-width: 700px;
  margin: 0 auto;
  background-color: var(--nba-white);
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.trivia-start {
  text-align: center;
  padding: 20px 0;
}

.question-container {
  margin-bottom: 30px;
}

.question-container h3 {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.options-container {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option {
  padding: 15px;
  background-color: #f0f0f0;
  border-radius: 4px;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.option:hover {
  background-color: #e0e0e0;
}

.option.selected {
  background-color: var(--nba-blue);
  color: var(--nba-white);
}

.option.correct {
  background-color: var(--success-color);
  color: var(--nba-white);
}

.option.incorrect {
  background-color: var(--error-color);
  color: var(--nba-white);
}

.trivia-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.progress-container {
  flex: 1;
}

.progress-bar {
  height: 10px;
  background-color: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  margin-bottom: 10px;
}

.progress {
  height: 100%;
  background-color: var(--nba-blue);
  width: 0%;
  transition: width 0.3s ease;
}

.question-counter {
  font-size: 0.9rem;
  color: var(--text-secondary);
}

.score-container {
  font-weight: bold;
  font-size: 1.2rem;
}

.results-container {
  text-align: center;
}

.results-container h3 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.final-score {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.result-message {
  margin-bottom: 30px;
}

/* Footer Styles */
.site-footer {
  background-color: var(--background-dark);
  color: var(--text-light);
  padding: 60px 0 20px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 40px;
}

.footer-logo {
  flex: 1 1 300px;
  margin-bottom: 30px;
}

.footer-logo h3 {
  font-size: 1.5rem;
  margin-bottom: 15px;
}

.footer-links {
  flex: 1 1 200px;
  margin-bottom: 30px;
}

.footer-links h4 {
  margin-bottom: 15px;
}

.footer-links ul {
  list-style: none;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links a {
  color: var(--text-light);
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-disclaimer {
  flex: 1 1 300px;
}

.footer-disclaimer h4 {
  margin-bottom: 15px;
}

.copyright {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.9rem;
  opacity: 0.7;
}

/* Responsive Styles */
@media (max-width: 992px) {
  .playoff-bracket {
    flex-direction: column;
  }
  
  .finals-matchup {
    flex-direction: column;
    text-align: center;
  }
  
  .finals-matchup .team {
    margin-bottom: 30px;
  }
  
  .vs-container {
    margin: 20px 0;
  }
}

@media (max-width: 768px) {
  .site-header .container {
    flex-direction: column;
  }
  
  .logo {
    margin-bottom: 15px;
  }
  
  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .main-nav li {
    margin: 5px 10px;
  }
  
  .rounds {
    flex-direction: column;
  }
  
  .round {
    margin-bottom: 30px;
  }
  
  .mvp-candidates {
    justify-content: center;
  }
  
  .mvp-card {
    max-width: 100%;
  }
  
  .footer-content {
    flex-direction: column;
  }
}

@media (max-width: 576px) {
  .hero h2 {
    font-size: 2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  section {
    padding: 40px 0;
  }
  
  .champion-team h2 {
    font-size: 2rem;
  }
}