/* =========================================
   Fixtures Page CSS - SkySports-style
========================================= */

/* General page styles */
body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f4f4f4;
  margin: 0;
  padding: 20px;
  color: #333;
}

h1 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 20px;
  color: #1a1a1a;
}

/* Controls (date picker + league filter) */
#controls {
  text-align: center;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
}

#controls input[type="date"],
#controls select {
  padding: 8px 12px;
  font-size: 1rem;
  border-radius: 6px;
  border: 1px solid #ccc;
  outline: none;
  transition: all 0.2s ease;
}

#controls input[type="date"]:focus,
#controls select:focus {
  border-color: #0073e6;
  box-shadow: 0 0 5px rgba(0, 115, 230, 0.3);
}

/* Fixtures container */
#fixturesContainer {
  max-width: 1000px;
  margin: 0 auto;
}

/* League sections */
.league {
  margin-bottom: 30px;
}

.league-name {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 10px;
  color: #0073e6;
  border-bottom: 2px solid #0073e6;
  padding-bottom: 5px;
}

/* Fixture cards */
.fixture {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  margin: 5px 0;
  padding: 12px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fixture:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.12);
}

/* Live match highlight */
.fixture.live {
  background: #fff0f0;
  border-left: 5px solid #e53935; /* red left border for live matches */
}

/* Team section */
.team {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
}

.team img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 50%;
}

/* Score */
.score {
  font-weight: bold;
  font-size: 1.1rem;
  min-width: 50px;
  text-align: center;
}

/* Status (LIVE / FT / NS / etc) */
.status {
  font-size: 0.9rem;
  color: #555;
  min-width: 70px;
  text-align: right;
}

/* Responsive */
@media (max-width: 768px) {
  .fixture {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .score {
    min-width: auto;
    text-align: left;
  }

  .status {
    text-align: left;
    font-size: 0.85rem;
  }
}

@media (max-width: 480px) {
  #controls {
    flex-direction: column;
    gap: 10px;
  }

  .team img {
    width: 25px;
    height: 25px;
  }

  .league-name {
    font-size: 1.3rem;
  }
}

/* Loader styling (optional) */
#fixturesContainer::before {
  content: '';
  display: block;
  height: 4px;
  width: 0;
  background: #0073e6;
  animation: loadingBar 1.5s infinite;
}

@keyframes loadingBar {
  0% { width: 0; }
  50% { width: 80%; }
  100% { width: 0; }
}
