/* ====================================
   HOMEPAGE STYLES
   ==================================== */

/* ====== HERO SECTION ====== */
.hero {
  position: relative;
  height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--secondary) 0%, #1a2c4a 100%);
  color: white;
  text-align: center;
}

.hero-background {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1200 600"><defs><pattern id="grid" width="40" height="40" patternUnits="userSpaceOnUse"><path d="M 40 0 L 0 0 0 40" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="1200" height="600" fill="url(%23grid)" /></svg>');
  opacity: 0.3;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 700px;
  margin: 0 auto;
  padding: var(--spacing-lg);
  animation: slideUp 0.8s ease-out;
}

.hero-badge {
  display: inline-block;
  padding: var(--spacing-sm) var(--spacing-lg);
  background-color: rgba(11, 95, 255, 0.2);
  color: #5B9FFF;
  border-radius: var(--radius-full);
  font-size: var(--font-size-sm);
  font-weight: 700;
  margin-bottom: var(--spacing-lg);
  border: 1px solid rgba(11, 95, 255, 0.3);
}

.hero h1 {
  font-size: var(--font-size-5xl);
  margin-bottom: var(--spacing-md);
  color: white;
  line-height: var(--line-height-tight);
}

.hero-subtitle {
  font-size: var(--font-size-xl);
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--spacing-xl);
  line-height: var(--line-height-normal);
}

.hero-cta {
  display: flex;
  gap: var(--spacing-md);
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: var(--spacing-2xl);
}

/* ====== LIVE MATCH CARD ====== */
.live-match-card {
  position: relative;
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-xl);
  max-width: 500px;
  margin: -100px auto 0;
  z-index: 10;
  animation: scaleIn 0.6s ease-out 0.3s both;
}

.live-match-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border);
}

.live-match-status {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
}

.live-badge {
  display: flex;
  align-items: center;
  gap: var(--spacing-xs);
  background-color: var(--danger);
  color: white;
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
  animation: pulse 1.5s ease-in-out infinite;
}

.live-minute {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text);
}

.match-status-text {
  font-size: var(--font-size-sm);
  color: var(--text-light);
}

/* Match Teams */
.match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.team {
  flex: 1;
  text-align: center;
}

.team-logo {
  width: 60px;
  height: 60px;
  background-color: var(--background);
  border-radius: var(--radius-lg);
  margin: 0 auto var(--spacing-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-2xl);
}

.team-name {
  font-weight: 700;
  font-size: var(--font-size-lg);
  color: var(--text);
  margin-bottom: var(--spacing-sm);
}

.team-info {
  font-size: var(--font-size-sm);
  color: var(--text-light);
}

.score-display {
  flex: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-sm);
}

.score {
  font-size: var(--font-size-5xl);
  font-weight: 800;
  color: var(--primary);
  line-height: 1;
}

.score-separator {
  font-size: var(--font-size-lg);
  color: var(--text-light);
}

/* Match Stats */
.match-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
}

.stat-item {
  text-align: center;
  padding: var(--spacing-md);
  background-color: var(--background);
  border-radius: var(--radius-lg);
}

.stat-label {
  font-size: var(--font-size-xs);
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.stat-value {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--text);
}

.stat-bars {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-sm);
  margin-top: var(--spacing-xs);
}

.stat-bar {
  height: 4px;
  background-color: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.stat-bar-home {
  background: linear-gradient(90deg, var(--primary), var(--primary-light));
}

.stat-bar-away {
  background: linear-gradient(90deg, var(--accent), #00f079);
}

.stat-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
}

/* ====== FIXTURES SECTION ====== */
.fixtures-section {
  padding: var(--spacing-3xl) 0;
  background-color: var(--background);
}

.section-header {
  text-align: center;
  margin-bottom: var(--spacing-2xl);
  animation: fadeIn 0.6s ease-out;
}

.section-header h2 {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--spacing-md);
}

.section-header p {
  font-size: var(--font-size-lg);
  color: var(--text-light);
}

.fixtures-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: var(--spacing-lg);
}

/* Fixture Card */
.fixture-card {
  background: white;
  border-radius: var(--radius-xl);
  padding: var(--spacing-lg);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  cursor: pointer;
  animation: slideUp 0.6s ease-out;
  animation-fill-mode: both;
}

.fixture-card:nth-child(1) { animation-delay: 0.1s; }
.fixture-card:nth-child(2) { animation-delay: 0.2s; }
.fixture-card:nth-child(3) { animation-delay: 0.3s; }
.fixture-card:nth-child(n+4) { animation-delay: 0.4s; }

.fixture-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary);
}

.fixture-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--spacing-md);
  padding-bottom: var(--spacing-md);
  border-bottom: 1px solid var(--border);
}

.fixture-date {
  font-size: var(--font-size-sm);
  color: var(--text-light);
  font-weight: 600;
}

.fixture-stage {
  background-color: var(--background);
  color: var(--primary);
  padding: var(--spacing-xs) var(--spacing-md);
  border-radius: var(--radius-full);
  font-size: var(--font-size-xs);
  font-weight: 700;
}

.fixture-time {
  font-size: var(--font-size-base);
  font-weight: 600;
  color: var(--text);
  text-align: center;
}

.fixture-match {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-md);
}

.fixture-team {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.fixture-logo {
  width: 40px;
  height: 40px;
  background-color: var(--background);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-lg);
}

.fixture-team-name {
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.fixture-vs {
  font-size: var(--font-size-xs);
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-weight: 600;
}

.fixture-venue {
  font-size: var(--font-size-sm);
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
}

.fixture-countdown {
  background: linear-gradient(135deg, rgba(11, 95, 255, 0.1), rgba(0, 200, 83, 0.1));
  border-left: 4px solid var(--primary);
  padding: var(--spacing-md);
  border-radius: var(--radius-lg);
  text-align: center;
}

.countdown-value {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--primary);
}

.countdown-label {
  font-size: var(--font-size-xs);
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ====== STANDINGS SECTION ====== */
.standings-section {
  padding: var(--spacing-3xl) 0;
}

.standings-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  animation: slideUp 0.6s ease-out;
}

.standings-table-wrapper {
  overflow-x: auto;
}

.standings-table {
  width: 100%;
}

.standings-table tbody tr:hover {
  background-color: var(--background);
}

.position-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  background-color: var(--background);
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--font-size-sm);
  color: var(--text);
}

.position-badge.top-4 {
  background-color: rgba(11, 95, 255, 0.1);
  color: var(--primary);
}

.position-badge.bottom-2 {
  background-color: rgba(229, 57, 53, 0.1);
  color: var(--danger);
}

.team-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
  overflow: hidden;
}

.team-badge-small {
  width: 32px;
  height: 32px;
  min-width: 32px;
  background-color: var(--background);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-base);
}

.team-name-small {
  font-weight: 600;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ====== TOP SCORERS ====== */
.scorers-section {
  padding: var(--spacing-3xl) 0;
  background-color: var(--background);
}

.scorers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--spacing-lg);
}

.player-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  animation: slideUp 0.6s ease-out;
}

.player-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.player-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--font-size-5xl);
  overflow: hidden;
}

.player-info {
  padding: var(--spacing-lg);
}

.player-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

.player-stat {
  text-align: center;
  padding: var(--spacing-md);
  background-color: var(--background);
  border-radius: var(--radius-lg);
}

.player-stat-value {
  font-size: var(--font-size-2xl);
  font-weight: 700;
  color: var(--primary);
}

.player-stat-label {
  font-size: var(--font-size-xs);
  color: var(--text-light);
  margin-top: var(--spacing-xs);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* ====== NEWS SECTION ====== */
.news-section {
  padding: var(--spacing-3xl) 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--spacing-lg);
}

.news-card {
  background: white;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
  cursor: pointer;
  animation: slideUp 0.6s ease-out;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.news-image {
  width: 100%;
  height: 200px;
  background: linear-gradient(135deg, #FF6B6B, #FFE66D);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: var(--font-size-4xl);
  overflow: hidden;
}

.news-content {
  padding: var(--spacing-lg);
}

.news-date {
  font-size: var(--font-size-sm);
  color: var(--text-light);
  margin-bottom: var(--spacing-sm);
}

.news-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--spacing-md);
  line-height: var(--line-height-tight);
}

.news-excerpt {
  font-size: var(--font-size-sm);
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
  line-height: var(--line-height-normal);
}

.news-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid var(--border);
}

.news-author {
  font-size: var(--font-size-sm);
  color: var(--text-light);
}

.read-more {
  color: var(--primary);
  font-weight: 600;
  transition: all var(--transition-fast);
}

.read-more:hover {
  color: var(--primary-light);
  transform: translateX(4px);
}

/* ====== SPONSORS SECTION ====== */
.sponsors-section {
  padding: var(--spacing-3xl) 0;
  background-color: var(--background);
}

.sponsors-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: var(--spacing-2xl);
}

.sponsor-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100px;
  background-color: white;
  border-radius: var(--radius-lg);
  filter: grayscale(100%);
  transition: all var(--transition-base);
  cursor: pointer;
}

.sponsor-logo:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
  box-shadow: var(--shadow-lg);
}

.sponsor-logo-text {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--text-light);
}

/* ====== FOOTER ====== */
footer {
  background: linear-gradient(135deg, var(--secondary), #1a2c4a);
  color: white;
  padding: var(--spacing-3xl) 0 var(--spacing-lg);
  margin-top: var(--spacing-3xl);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-2xl);
  margin-bottom: var(--spacing-2xl);
}

.footer-section h3 {
  color: white;
  margin-bottom: var(--spacing-md);
}

.footer-section ul {
  list-style: none;
}

.footer-section li {
  margin-bottom: var(--spacing-sm);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  transition: color var(--transition-fast);
}

.footer-section a:hover {
  color: white;
}

.footer-newsletter {
  display: flex;
  gap: var(--spacing-sm);
}

.footer-newsletter input {
  flex: 1;
  padding: var(--spacing-md);
  border: none;
  border-radius: var(--radius-lg);
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.footer-newsletter input::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--spacing-lg);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.social-links {
  display: flex;
  gap: var(--spacing-md);
}

.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  color: white;
  transition: all var(--transition-fast);
}

.social-link:hover {
  background-color: var(--primary);
  transform: translateY(-4px);
}

/* Responsive */
@media (max-width: 768px) {
  .hero {
    height: 400px;
  }

  .hero h1 {
    font-size: var(--font-size-3xl);
  }

  .live-match-card {
    margin: -60px auto 0;
    max-width: calc(100% - 32px);
  }

  .match-teams {
    gap: var(--spacing-md);
  }

  .fixtures-grid {
    grid-template-columns: 1fr;
  }

  .footer-content {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--spacing-lg);
  }
}
