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

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

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

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

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

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

.matches-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.matches-hero-icon-container {
  margin-bottom: 1.5rem;
}

.matches-hero-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-black);
  color: var(--primary-red);
  border-radius: 50%;
  margin: 0 auto;
  font-size: 2.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.matches-hero-title {
  font-size: 2.5rem;
  font-weight: 800;
  margin-bottom: 1rem;
  color: #ffffff;
}

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

/* Main Content */
.matches-main-container {
  padding: 2rem 0 4rem;
}

/* Date Navigation Card */
.matches-date-nav-card {
  background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  margin-bottom: 2rem;
  border: 1px solid #333;
  padding: 1.5rem;
}

.matches-date-nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.matches-nav-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.08) 0%, rgba(37, 99, 235, 0.12) 100%);
  color: #60a5fa;
  padding: 0.75rem 1.25rem;
  border-radius: 0.75rem;
  border: 1px solid rgba(59, 130, 246, 0.15);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all 0.3s ease;
  cursor: pointer;
}

.matches-nav-btn:hover {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.12) 0%, rgba(37, 99, 235, 0.18) 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.matches-date-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.matches-current-date {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
}

.matches-current-date svg {
  color: var(--primary-red);
  width: 24px;
  height: 24px;
}

.matches-date-text {
  white-space: nowrap;
}

.matches-today-btn {
  background: linear-gradient(135deg, var(--primary-red) 0%, #b91c1c 100%);
  color: #ffffff;
  padding: 0.5rem 1.25rem;
  border-radius: 0.5rem;
  font-weight: 600;
  font-size: 0.875rem;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px -1px rgba(220, 38, 38, 0.4);
}

.matches-today-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #ef4444 0%, var(--primary-red) 100%);
  box-shadow: 0 6px 10px -1px rgba(220, 38, 38, 0.5);
}

/* Matches Content Section */
.matches-content-section {
  margin-bottom: 3rem;
}

/* Matches Grid */
.matches-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.75rem;
}

/* Match Card Link */
.match-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

/* Modern Match Card */
.modern-match-card {
  background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  border: 1px solid #333333;
  position: relative;
  padding: 1.5rem;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.modern-match-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.3);
  border-color: rgba(220, 38, 38, 0.3);
}

.match-status-indicator {
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 100%;
}

.match-status-indicator.live {
  background: var(--primary-red);
}

.match-status-indicator.finished {
  background: #10b981;
}

.match-status-indicator.upcoming {
  background: #3b82f6;
}

/* Match League Header */
.match-league-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.match-league-info {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.match-league-info svg {
  color: #60a5fa;
  width: 16px;
  height: 16px;
}

.match-league-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: #ffffff;
}

.match-status-badge {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 600;
}

.match-status-badge svg {
  width: 14px;
  height: 14px;
}

.match-status-badge.live {
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #f87171;
}

.match-status-badge.finished {
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
}

.match-status-badge.upcoming {
  background: rgba(59, 130, 246, 0.15);
  border: 1px solid rgba(59, 130, 246, 0.3);
  color: #60a5fa;
}

/* Match Teams Container */
.match-teams-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  flex: 1;
  min-width: 0;
}

.team-logo-container {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  padding: 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 2px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.team-logo-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.modern-match-card:hover .team-logo-container {
  transform: scale(1.05);
  border-color: rgba(220, 38, 38, 0.3);
}

.team-info {
  text-align: center;
  width: 100%;
}

.team-name {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.25rem;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-position {
  font-size: 0.8rem;
  color: #94a3b8;
  margin: 0;
}

/* Match Score Section */
.match-score-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  min-width: 100px;
}

.match-time-display {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  color: #60a5fa;
  font-weight: 600;
  font-size: 1.1rem;
}

.match-time-display svg {
  width: 18px;
  height: 18px;
}

.match-score-display {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 2rem;
  font-weight: 800;
  color: #ffffff;
}

.score-number {
  padding: 0.5rem 0.75rem;
  background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
  border-radius: 12px;
  min-width: 50px;
  text-align: center;
  color: #0f172a;
}

.score-separator {
  color: #ffffff;
}

.match-time-info {
  font-size: 0.8rem;
  color: #94a3b8;
  text-align: center;
}

/* Match Action Section */
.match-action-section {
  margin-top: auto;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  text-align: center;
}

.watch-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #60a5fa;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  background: rgba(59, 130, 246, 0.15);
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.25);
  transition: all 0.3s ease;
  cursor: pointer;
}

.watch-btn svg {
  width: 16px;
  height: 16px;
}

.modern-match-card:hover .watch-btn {
  background: rgba(220, 38, 38, 0.15);
  border-color: rgba(220, 38, 38, 0.3);
  color: var(--primary-red);
}

/* Loading State */
.matches-loading-state {
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
  border-radius: 1rem;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.matches-loading-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(220, 38, 38, 0.3);
  border-top: 4px solid var(--primary-red);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

.matches-loading-state h3 {
  color: #ffffff;
  font-size: 1.5rem;
  margin: 0;
}

.matches-loading-state p {
  color: #e2e8f0;
  margin: 0;
}

/* Empty State */
.matches-empty-state {
  padding: 4rem 2rem;
  text-align: center;
  background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
  border-radius: 1rem;
  border: 1px solid #333;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.matches-empty-icon {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-black);
  color: #3b82f6;
  border-radius: 50%;
  font-size: 2.5rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.matches-empty-state h3 {
  color: #ffffff;
  font-size: 1.5rem;
  margin: 0;
}

.matches-empty-state p {
  color: #e2e8f0;
  margin: 0;
}

/* Features Section */
.matches-features-section {
  background-color: var(--primary-black);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  border-top: 1px solid #333;
}

.matches-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.matches-feature-card {
  background: linear-gradient(145deg, #1a1a1a 0%, #0f0f0f 100%);
  border-radius: 1rem;
  padding: 2.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  border: 1px solid #333;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.matches-feature-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4px;
  height: 0;
  background: var(--primary-red);
  transition: height 0.3s ease;
}

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

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

.matches-feature-icon-container {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-black);
  color: var(--primary-red);
  border-radius: 50%;
  margin-bottom: 1.5rem;
  font-size: 2rem;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
  transition: all 0.3s ease;
}

.matches-feature-icon-container svg {
  width: 32px;
  height: 32px;
}

.matches-feature-card:hover .matches-feature-icon-container {
  transform: scale(1.1);
}

.matches-feature-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1rem;
  transition: color 0.3s ease;
}

.matches-feature-card:hover .matches-feature-title {
  color: var(--primary-red);
}

.matches-feature-description {
  font-size: 0.95rem;
  color: #e2e8f0;
  line-height: 1.6;
}

/* CTA Section */
.matches-cta-section {
  background: linear-gradient(135deg, var(--primary-black) 0%, #1a1a1a 100%);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
  border-top: 4px solid var(--primary-red);
}

.matches-cta-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  margin: 0 auto;
}

.matches-cta-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 1.5rem;
}

.matches-cta-description {
  font-size: 1.125rem;
  color: #f3f4f6;
  margin-bottom: 2.5rem;
}

.matches-cta-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
}

.matches-cta-btn-primary,
.matches-cta-btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.875rem 2rem;
  border-radius: 0.5rem;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
}

.matches-cta-btn-primary svg,
.matches-cta-btn-secondary svg {
  width: 20px;
  height: 20px;
}

.matches-cta-btn-primary {
  background: linear-gradient(135deg, var(--primary-red) 0%, #b91c1c 100%);
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.4);
}

.matches-cta-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(220, 38, 38, 0.5);
  background: linear-gradient(135deg, #ef4444 0%, var(--primary-red) 100%);
}

.matches-cta-btn-secondary {
  background: transparent;
  color: #ffffff;
  border: 1px solid #4b5563;
}

.matches-cta-btn-secondary:hover {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--primary-red);
}

/* Animations */
@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

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

/* Responsive Styles */
@media (max-width: 768px) {
  .matches-hero-title {
    font-size: 2rem;
  }
  
  .matches-date-nav-container {
    flex-direction: column;
  }
  
  .matches-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  }
  
  .match-teams-container {
    gap: 1rem;
  }
  
  .team-logo-container {
    width: 60px;
    height: 60px;
  }
  
  .matches-features-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  }
  
  .matches-cta-title {
    font-size: 2rem;
  }
}

@media (max-width: 480px) {
  .matches-hero-title {
    font-size: 1.75rem;
  }
  
  .matches-grid {
    grid-template-columns: 1fr;
  }
  
  .match-league-header {
    flex-direction: column;
    align-items: flex-start;
  }
  
  .team-name {
    font-size: 0.9rem;
  }
  
  .matches-features-grid {
    grid-template-columns: 1fr;
  }
  
  .matches-cta-buttons {
    flex-direction: column;
    width: 100%;
  }
  
  .matches-cta-btn-primary,
  .matches-cta-btn-secondary {
    width: 100%;
    justify-content: center;
  }
}

