/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700&display=swap');

/* CSS Variables for consistent theming */
:root {
  --primary-color: #1a472a;
  --secondary-color: #2d5a3d;
  --accent-color: #ffd700;
  --text-light: #ffffff;
  --text-dark: #333333;
  --background-light: #f8f9fa;
  --card-background: #ffffff;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  --shadow-hover: 0 8px 15px rgba(0, 0, 0, 0.2);
  --border-radius: 12px;
  --transition: all 0.3s ease;
}

/* Reset and base styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Inter', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background: linear-gradient(135deg, var(--background-light) 0%, #e8f5e8 100%);
  min-height: 100vh;
}

/* Header styling */
.header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  color: var(--text-light);
  padding: 2rem 1rem;
  text-align: center;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="50" cy="50" r="2" fill="rgba(255,215,0,0.1)"/></svg>') repeat;
  animation: float 20s infinite linear;
}

@keyframes float {
  0% { transform: translateY(0px) translateX(0px); }
  50% { transform: translateY(-10px) translateX(5px); }
  100% { transform: translateY(0px) translateX(0px); }
}

.header h1 {
  font-size: 3rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  position: relative;
  z-index: 1;
}

.header h2 {
  font-size: 1.5rem;
  font-weight: 400;
  opacity: 0.9;
  position: relative;
  z-index: 1;
}

.snake-emoji {
  display: inline-block;
  animation: wiggle 2s ease-in-out infinite;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

/* Container */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Section styling */
.section {
  background: var(--card-background);
  margin: 2rem 0;
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.section:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}

.section h2 {
  color: var(--primary-color);
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 3px solid var(--accent-color);
  display: inline-block;
}

/* League details grid */
.league-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  margin: 2rem 0;
}

.league-card {
  background: var(--card-background);
  padding: 2rem;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: var(--transition);
  border-left: 4px solid var(--accent-color);
}

.league-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.league-card h2 {
  color: var(--primary-color);
  margin-bottom: 1rem;
  border-bottom: none;
  display: block;
}

/* List styling */
.styled-list {
  list-style: none;
  padding: 0;
}

.styled-list li {
  background: var(--background-light);
  margin: 0.5rem 0;
  padding: 1rem;
  border-radius: 8px;
  transition: var(--transition);
  border-left: 3px solid transparent;
}

.styled-list li:hover {
  background: #e8f5e8;
  border-left-color: var(--accent-color);
  transform: translateX(5px);
}

.styled-list li b {
  color: var(--primary-color);
  font-weight: 600;
}

/* Hall of Fame and Wall of Shame */
.hall-of-fame {
  background: linear-gradient(135deg, #fff9e6 0%, #fff3cd 100%);
  border-left-color: var(--accent-color);
}

/* Champions grid layout */
.champions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin-top: 1.5rem;
}

.champion-section h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  font-weight: 600;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--accent-color);
}

.wall-of-shame {
  background: linear-gradient(135deg, #ffe6e6 0%, #ffcccc 100%);
  border-left-color: #dc3545;
}

.champion-list li {
  background: linear-gradient(135deg, #fff9e6 0%, #fffbf0 100%);
  border-left: 3px solid var(--accent-color);
}

.champion-list li:hover {
  background: linear-gradient(135deg, #fff3cd 0%, #fff9e6 100%);
  transform: translateX(8px);
}

.shame-list li {
  background: linear-gradient(135deg, #ffe6e6 0%, #fff0f0 100%);
  border-left: 3px solid #dc3545;
}

.shame-list li:hover {
  background: linear-gradient(135deg, #ffcccc 0%, #ffe6e6 100%);
  transform: translateX(8px);
}

/* Footer */
.footer {
  background: var(--primary-color);
  color: var(--text-light);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: 3rem;
  font-style: italic;
  font-size: 1.1rem;
}

.footer::before {
  content: '🏁';
  display: block;
  font-size: 2rem;
  margin-bottom: 1rem;
}

/* Responsive design */
@media (max-width: 768px) {
  .header h1 {
    font-size: 2rem;
  }
  
  .header h2 {
    font-size: 1.2rem;
  }
  
  .container {
    padding: 1rem;
  }
  
  .section {
    padding: 1.5rem;
  }
  
  .league-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .champions-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Loading animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

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

.section:nth-child(2) { animation-delay: 0.1s; }
.section:nth-child(3) { animation-delay: 0.2s; }
.section:nth-child(4) { animation-delay: 0.3s; }
.section:nth-child(5) { animation-delay: 0.4s; }
