/* --- Rwanda Premier League Colors --- */
:root {
  --rpl-blue: #3498db;
  --rpl-blue-dark: #1a5276;
  --rpl-blue-light: #85c1e9;
  --rpl-yellow: #f4d03f;
  --rpl-green: #27ae60;
  --rpl-text-light: #f8f9fa;
  --rpl-text-dark: #333333;
}

/* --- Enhanced Fixtures Page Styles --- */
.fixtures-timeline {
  position: relative;
  padding: 20px;
}

.fixture-date-container {
  margin-bottom: 30px;
  position: relative;
}

.fixture-date-container::before {
  content: "";
  position: absolute;
  top: 50px;
  left: 20px;
  bottom: 0;
  width: 2px;
  background-color: var(--rpl-blue-light);
  z-index: 0;
}

.fixture-date-title {
  background-color: var(--rpl-blue-dark);
  color: white;
  padding: 10px 20px;
  border-radius: 5px;
  margin-bottom: 20px;
  position: relative;
  display: inline-block;
}

.list-group-fixtures {
  list-style: none;
  padding-left: 50px;
  position: relative;
}

.list-group-fixtures li {
  margin-bottom: 20px;
  position: relative;
}

.list-group-fixtures li::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--rpl-blue);
  z-index: 1;
}

.fixture-item {
  background: white;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.fixture-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.fixture-header {
  display: flex;
  align-items: center;
  padding: 15px;
  background: white;
}

.fixture-footer {
  display: flex;
  justify-content: space-between;
  padding: 10px 15px;
  background-color: rgba(0, 0, 0, 0.02);
  border-top: 1px solid rgba(0, 0, 0, 0.05);
}

.btn-fixture-details,
.btn-set-reminder {
  background: none;
  border: none;
  font-size: 0.85rem;
  color: var(--rpl-blue);
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 5px 10px;
}

.btn-fixture-details:hover,
.btn-set-reminder:hover {
  color: var(--rpl-blue-dark);
}

.team {
  display: flex;
  align-items: center;
  flex: 1;
}

.team img {
  width: 40px;
  height: 40px;
  object-fit: contain;
}

.team-left {
  flex-direction: row;
  text-align: right;
  justify-content: flex-end;
}

.team-left span {
  margin-right: 10px;
}

.team-right {
  flex-direction: row-reverse;
  text-align: left;
  justify-content: flex-end;
}

.team-right span {
  margin-left: 10px;
}

.fixture-time {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  text-align: center;
}

.fixture-time .time {
  font-weight: bold;
  color: var(--rpl-blue-dark);
}

.fixture-time .stadium {
  font-size: 0.8rem;
  color: #777;
  margin-top: 5px;
}

/* --- League Badge and Identity --- */
.rpl-badge {
  display: inline-block;
  width: 80px;
  height: 80px;
  background: url("/assets/templates/basic/images/rpl-logo.svg") no-repeat
    center;
  background-size: contain;
  margin: 0 auto;
  position: relative;
}

.rpl-badge::after {
  content: "EST. 1995";
  position: absolute;
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  font-weight: bold;
  color: var(--rpl-blue-dark);
}

.rpl-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--rpl-blue-dark);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 1rem;
  position: relative;
}

.rpl-title::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 3px;
  background: linear-gradient(
    to right,
    var(--rpl-blue),
    var(--rpl-yellow),
    var(--rpl-green)
  );
}

/* --- Team Cards --- */
.rpl-team-card {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
  transition: all 0.4s ease;
  margin-bottom: 1.5rem;
  position: relative;
  height: 100%;
}

.rpl-team-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.rpl-team-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(
    to right,
    var(--rpl-blue),
    var(--rpl-yellow),
    var(--rpl-green)
  );
  z-index: 2;
}

.rpl-team-card .card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, 
    rgba(26, 82, 118, 0.1), 
    rgba(52, 152, 219, 0.05)
  );
  pointer-events: none;
  z-index: 1;
}

.rpl-team-header {
  position: relative;
  padding: 2rem 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(135deg, rgba(26, 82, 118, 0.9), rgba(52, 152, 219, 0.8));
  height: 160px;
}

.rpl-team-badge {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: white;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  padding: 10px;
  border: 3px solid rgba(255, 255, 255, 0.8);
  z-index: 2;
}

.rpl-team-badge img {
  max-width: 80%;
  max-height: 80%;
  transition: transform 0.4s ease;
}

.rpl-team-card:hover .rpl-team-badge {
  transform: scale(1.05);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.rpl-team-card:hover .rpl-team-badge img {
  transform: scale(1.1) rotate(5deg);
}

.rpl-team-info {
  padding: 1.5rem;
  text-align: center;
  position: relative;
  z-index: 2;
}

.rpl-team-name {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--rpl-blue-dark);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.rpl-team-details {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.rpl-team-stadium, 
.rpl-team-founded {
  font-size: 0.95rem;
  color: #555;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.rpl-team-achievements {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.rpl-trophy-icon,
.rpl-cup-icon {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1rem;
  font-weight: 600;
}

.rpl-trophy-icon i {
  color: gold;
  font-size: 1.2rem;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.rpl-cup-icon i {
  color: #3498db;
  font-size: 1.2rem;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.2));
}

.rpl-team-link {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.5rem 1.25rem;
  background: linear-gradient(135deg, #1a5276, #3498db);
  color: white;
  border-radius: 50px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(52, 152, 219, 0.3);
}

.rpl-team-link:hover {
  background: linear-gradient(135deg, #3498db, #1a5276);
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(52, 152, 219, 0.4);
  color: white;
}

.rpl-team-link i {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.rpl-team-link:hover i {
  transform: translateX(3px);
}
  margin-bottom: 0.5rem;
}

.rpl-team-founded {
  font-size: 0.8rem;
  color: #999;
}

/* --- League Standings Enhancements --- */
.rpl-standings-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.rpl-standings-table thead th {
  background-color: var(--rpl-blue-dark);
  color: white;
  padding: 12px 15px;
  font-weight: 600;
  text-align: left;
  position: relative;
}

.rpl-standings-table thead th:first-child {
  border-top-left-radius: 8px;
}

.rpl-standings-table thead th:last-child {
  border-top-right-radius: 8px;
}

.rpl-standings-table tbody tr {
  /* background-color: white; */
  transition: background-color 0.2s ease;
}

.rpl-standings-table tbody tr:hover {
  background-color: rgba(52, 152, 219, 0.05);
}

.rpl-standings-table tbody tr:nth-child(even) {
  /* background-color: rgba(0, 0, 0, 0.02); */
}
/* .rpl-standings-table tbody tr:nth-child(odd) {
  background-color: rgba(52, 152, 219, 0.05);
} */

.rpl-standings-table td {
  padding: 12px 15px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.rpl-team-position {
  font-weight: 700;
  width: 40px;
  text-align: center;
}

.rpl-positions-legend {
  margin: 1rem 0 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

.rpl-position-item {
  display: flex;
  align-items: center;
  font-size: 0.85rem;
}

.rpl-position-color {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-right: 0.5rem;
}

.rpl-position-champions {
  background-color: var(--rpl-blue);
}

.rpl-position-continental {
  background-color: var(--rpl-green);
}

.rpl-position-relegation {
  background-color: #e74c3c;
}

/* --- Match Cards --- */
.rpl-match-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  position: relative;
}

.rpl-match-status {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 6px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
}

.rpl-match-status.live {
  background-color: var(--rpl-blue);
  color: white;
  animation: pulse-animation 2s infinite;
}

.rpl-match-status.upcoming {
  background-color: var(--rpl-yellow);
  color: var(--rpl-text-dark);
}

.rpl-match-status.completed {
  background-color: var(--rpl-green);
  color: white;
}

.rpl-match-content {
  padding: 2rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.rpl-match-teams {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 1rem;
}

.rpl-match-team {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 40%;
}

.rpl-team-logo-sm {
  width: 60px;
  height: 60px;
  margin-bottom: 0.75rem;
}

.rpl-team-logo-sm img {
  max-width: 100%;
  max-height: 100%;
}

.rpl-team-name-sm {
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
}

.rpl-match-score {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20%;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--rpl-blue-dark);
}

.rpl-match-time {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.5rem;
}

.rpl-match-stadium {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 1rem;
}

.rpl-match-details-btn {
  display: inline-block;
  padding: 8px 15px;
  background-color: var(--rpl-blue);
  color: white;
  border-radius: 4px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.rpl-match-details-btn:hover {
  background-color: var(--rpl-blue-dark);
  color: white;
}

@keyframes pulse-animation {
  0% {
    box-shadow: 0 0 0 0 rgba(52, 152, 219, 0.7);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(52, 152, 219, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(52, 152, 219, 0);
  }
}

/* --- RPL Section Headers --- */
.rpl-section-header {
  display: flex;
  align-items: center;
  position: relative;
}

.rpl-section-icon {
  margin-right: 1rem;
  color: var(--rpl-blue);
  font-size: 1.8rem;
}

.rpl-section-title {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--rpl-blue-dark);
  margin: 0;
}

.rpl-section-divider {
  height: 4px;
  background: linear-gradient(
    to right,
    var(--rpl-blue),
    var(--rpl-yellow),
    var(--rpl-green)
  );
  margin: 0.5rem 0 2rem;
  border-radius: 2px;
  width: 80px;
}

/* --- RPL News & Updates --- */
.rpl-news-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.rpl-news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.rpl-news-image {
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.rpl-news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.rpl-news-card:hover .rpl-news-image img {
  transform: scale(1.05);
}

.rpl-news-content {
  padding: 1.5rem;
}

.rpl-news-date {
  font-size: 0.85rem;
  color: #999;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
}

.rpl-news-date i {
  margin-right: 0.5rem;
  color: var(--rpl-blue);
}

.rpl-news-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--rpl-blue-dark);
  margin-bottom: 1rem;
  line-height: 1.4;
}

.rpl-news-excerpt {
  font-size: 0.95rem;
  color: #666;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.rpl-read-more {
  display: inline-flex;
  align-items: center;
  color: var(--rpl-blue);
  font-weight: 600;
  font-size: 0.9rem;
  transition: color 0.2s ease;
}

.rpl-read-more i {
  margin-left: 0.5rem;
  transition: transform 0.2s ease;
}

/* Responsive styles for team cards */
@media (max-width: 991px) {
  .rpl-team-header {
    height: 140px;
    padding: 1.5rem 1rem;
  }
  
  .rpl-team-badge {
    width: 100px;
    height: 100px;
  }
  
  .rpl-team-name {
    font-size: 1.25rem;
  }
  
  .rpl-team-info {
    padding: 1.25rem;
  }
}

@media (max-width: 767px) {
  .rpl-team-header {
    height: 130px;
  }
  
  .rpl-team-badge {
    width: 90px;
    height: 90px;
  }
}

.rpl-read-more:hover {
  color: var(--rpl-blue-dark);
}

.rpl-read-more:hover i {
  transform: translateX(3px);
}

/* --- Mobile Responsiveness Enhancements --- */
@media (max-width: 768px) {
  .rpl-section-header {
    flex-direction: column;
    text-align: center;
  }

  .rpl-section-icon {
    margin-right: 0;
    margin-bottom: 0.5rem;
  }

  .rpl-section-divider {
    margin: 0.5rem auto 1.5rem;
  }

  .rpl-team-card {
    margin-bottom: 1rem;
  }

  .rpl-standings-table th:nth-child(4),
  .rpl-standings-table th:nth-child(5),
  .rpl-standings-table th:nth-child(6),
  .rpl-standings-table th:nth-child(7),
  .rpl-standings-table th:nth-child(8),
  .rpl-standings-table td:nth-child(4),
  .rpl-standings-table td:nth-child(5),
  .rpl-standings-table td:nth-child(6),
  .rpl-standings-table td:nth-child(7),
  .rpl-standings-table td:nth-child(8) {
    display: none;
  }

  .rpl-match-highlight .match-teams {
    flex-direction: column;
    gap: 10px;
  }

  .rpl-news-card {
    margin-bottom: 1.5rem;
  }

  .rpl-player-feature {
    flex-direction: column;
  }

  .rpl-player-image {
    width: 100%;
    height: 200px;
  }

  .analysis-video-container,
  .analysis-text-content {
    margin-bottom: 1.5rem;
  }
}

/* --- Quick Access Mobile Menu --- */
.rpl-quick-access {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: var(--rpl-blue-dark);
  display: none;
  z-index: 1000;
  box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
}

.rpl-quick-access-menu {
  display: flex;
  justify-content: space-around;
  padding: 10px 0;
}

.rpl-quick-access-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: white;
  font-size: 0.7rem;
  text-decoration: none;
}

.rpl-quick-access-item i {
  font-size: 1.2rem;
  margin-bottom: 3px;
}

.rpl-quick-access-item.active {
  color: var(--rpl-yellow);
}

@media (max-width: 768px) {
  .rpl-quick-access {
    display: block;
  }

  body {
    padding-bottom: 60px;
  }
}
