/* Black-Red Theme for 9goal TV Leagues Page */

/* Main Container */
.leagues-page-container {
  background-color: var(--primary-black);
  color: #f3f4f6;
  min-height: 100vh;
}

/* Hero Section */
.leagues-hero-section {
  background: linear-gradient(135deg, #111111 0%, #1a1a1a 100%);
  color: #ffffff;
  padding: 4rem 0;
  position: relative;
  overflow: hidden;
  border-bottom: 4px solid #dc2626;
  text-align: center;
}

.leagues-hero-bg-element-1,
.leagues-hero-bg-element-2 {
  position: absolute;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.15);
  filter: blur(60px);
  z-index: 0;
}

.leagues-hero-bg-element-1 {
  width: 300px;
  height: 300px;
  top: -100px;
  right: 5%;
}

.leagues-hero-bg-element-2 {
  width: 200px;
  height: 200px;
  bottom: -50px;
  left: 10%;
  animation: float 8s ease-in-out infinite;
}

.leagues-hero-bg-element-3 {
  position: absolute;
  width: 400px;
  height: 400px;
  bottom: -200px;
  right: -100px;
  background: rgba(220, 38, 38, 0.1);
  filter: blur(80px);
  border-radius: 50%;
  z-index: 0;
}

.leagues-hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.leagues-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 2rem;
  justify-content: center;
}

.breadcrumb-link {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.breadcrumb-link:hover {
  color: #ffffff;
}

.leagues-hero-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111111;
  color: #dc2626;
  border-radius: 50%;
  margin: 0 auto 1.5rem;
  font-size: 1.75rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), inset 0 0 0 1px rgba(255, 255, 255, 0.05);
  position: relative;
  z-index: 1;
}

.leagues-hero-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #dc2626 0%, transparent 50%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0.7;
}

.leagues-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  background: linear-gradient(90deg, #ffffff 0%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.leagues-hero-description {
  font-size: 1.125rem;
  color: #f3f4f6;
  max-width: 600px;
  margin: 0 auto;
}

.leagues-stats-preview {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.leagues-stat-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 1rem 1.5rem;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  backdrop-filter: blur(15px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
}

.leagues-stat-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.leagues-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
}

.leagues-stat-label {
  font-size: 0.85rem;
  opacity: 0.9;
}

/* Main Content */
.leagues-main-container {
  max-width: 1400px;
  margin: -3rem auto 0;
  padding: 0 1.5rem 4rem;
  position: relative;
  z-index: 3;
}

/* Leagues Grid */
.leagues-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 2rem;
  margin-bottom: 4rem;
}

/* League Card */
.league-card {
  background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  border: 1px solid #333;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.league-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
  border-color: rgba(220, 38, 38, 0.3);
}

.league-status-indicator {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
}

.league-status-indicator.active {
  background: linear-gradient(90deg, #dc2626, #b91c1c);
}

.league-status-indicator.inactive {
  background: linear-gradient(90deg, #64748b, #475569);
}

.league-header {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.league-logo-container {
  width: 100px;
  height: 100px;
  border-radius: 20px;
  padding: 15px;
  background: linear-gradient(135deg, #1e1e1e 0%, #151515 100%);
  border: 2px solid rgba(220, 38, 38, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

.league-card:hover .league-logo-container {
  transform: scale(1.05);
  border-color: rgba(220, 38, 38, 0.3);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.league-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.league-status-badge.active {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.2) 0%, rgba(185, 28, 28, 0.25) 100%);
  border: 1px solid rgba(220, 38, 38, 0.3);
  color: #f87171;
}

.league-status-badge.inactive {
  background: linear-gradient(135deg, rgba(100, 116, 139, 0.2) 0%, rgba(71, 85, 105, 0.25) 100%);
  border: 1px solid rgba(100, 116, 139, 0.3);
  color: #94a3b8;
}

.league-name {
  font-size: 1.4rem;
  font-weight: 800;
  color: #f3f4f6;
  margin-bottom: 0.5rem;
  line-height: 1.3;
}

.league-meta {
  display: flex;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: #94a3b8;
  margin-bottom: 1rem;
}

.league-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.league-features {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.league-feature-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 600;
}

.league-feature-badge.standings {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.2) 0%, rgba(37, 99, 235, 0.25) 100%);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

.league-feature-badge.predictions {
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.2) 0%, rgba(124, 58, 237, 0.25) 100%);
  border: 1px solid rgba(139, 92, 246, 0.3);
  color: #a78bfa;
}

.league-feature-badge.events {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.2) 0%, rgba(217, 119, 6, 0.25) 100%);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #fbbf24;
}

.league-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.league-cta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #60a5fa;
  font-weight: 600;
  font-size: 1rem;
}

.league-arrow {
  transition: transform 0.3s ease;
}

.league-card:hover .league-arrow {
  transform: translateX(4px);
}

/* Empty State */
.leagues-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 4rem 2rem;
  background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
  border-radius: 24px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  border: 1px solid #333;
  text-align: center;
}

.leagues-empty-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.1) 0%, rgba(185, 28, 28, 0.1) 100%);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.leagues-empty-title {
  color: #ffffff;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.leagues-empty-description {
  color: #94a3b8;
  font-size: 1rem;
  margin-bottom: 2rem;
}

.back-home-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #dc2626 0%, #b91c1c 100%);
  color: white;
  padding: 1rem 2rem;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(220, 38, 38, 0.3);
}

.back-home-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.4);
}

/* Categories Section */
.leagues-categories-section {
  background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
  border-radius: 24px;
  padding: 3rem 2rem;
  margin-bottom: 4rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
  border: 1px solid #333;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 1rem;
  position: relative;
  display: inline-block;
}

.section-title::after {
  content: '';
  position: absolute;
  bottom: -0.5rem;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: #dc2626;
  border-radius: 2px;
}

.section-subtitle {
  font-size: 1.125rem;
  color: #e2e8f0;
  max-width: 600px;
  margin: 0 auto;
}

.categories-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.category-card {
  background: linear-gradient(145deg, #1e1e1e 0%, #151515 100%);
  border-radius: 20px;
  padding: 2rem;
  border: 1px solid #333;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.category-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: #dc2626;
  transition: height 0.3s ease;
}

.category-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3);
  border-color: rgba(220, 38, 38, 0.3);
}

.category-card:hover::after {
  height: 100%;
}

.category-icon {
  width: 60px;
  height: 60px;
  background: #dc2626;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  box-shadow: 0 8px 25px rgba(220, 38, 38, 0.3);
}

.category-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
}

.category-description {
  color: #94a3b8;
  font-size: 0.95rem;
  line-height: 1.6;
}

/* Statistics Section */
.leagues-stats-section {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.05) 0%, rgba(185, 28, 28, 0.08) 100%);
  border-radius: 24px;
  padding: 3rem 2rem;
  border: 1px solid rgba(220, 38, 38, 0.1);
  backdrop-filter: blur(20px);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.stat-card {
  background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  border: 1px solid #333;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

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

.stat-icon {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  border: 2px solid rgba(255, 255, 255, 0.1);
}

.stat-value {
  font-size: 2.5rem;
  font-weight: 900;
  margin-bottom: 0.5rem;
  line-height: 1;
  background: linear-gradient(90deg, #ffffff 0%, #dc2626 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.stat-label {
  color: #94a3b8;
  font-size: 1rem;
  font-weight: 600;
}

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

/* Animations */
@keyframes float {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-20px);
  }
  100% {
    transform: translateY(0);
  }
}

/* Responsive Styles */
@media (max-width: 768px) {
  .leagues-hero-title {
    font-size: 2rem;
  }
  
  .leagues-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .categories-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .stats-grid {
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  }
}

@media (max-width: 480px) {
  .leagues-hero-title {
    font-size: 1.75rem;
  }
  
  .leagues-grid {
    grid-template-columns: 1fr;
  }
  
  .categories-grid {
    grid-template-columns: 1fr;
  }
  
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
