/* Page Transition Fixes */

/* Fix for vertical animation in the navigation */
.page-transition {
  transition: transform 0.5s ease, opacity 0.5s ease;
  transform: translateX(0);
  opacity: 1;
}

/* Use horizontal transitions instead of vertical */
.page-transition-out {
  transform: translateX(-10px);
  opacity: 0;
}

.page-transition-in {
  transform: translateX(0);
  opacity: 1;
}

/* Fix for the "Good by" navigation bar */
.bottom-nav-container {
  transition: transform 0.3s ease;
  transform: translateY(0);
}

/* Ensure the navigation appears from bottom not top */
.bottom-nav-container.hidden {
  transform: translateY(100%);
}

/* Prevent any vertical animations on nav elements */
.navbar-nav .nav-item,
.bottom-nav .nav-item {
  transition: color 0.3s ease, background-color 0.3s ease;
  transform: none !important;
}

/* Disable any transform animations on links */
a {
  transition: color 0.3s ease;
  transform: none;
}

/* a:hover {
  transform: none;
} */

/* Enhanced Match Analysis Section Styles */
.match-analysis-section {
  background: linear-gradient(135deg, #1a5276 0%, #2c3e50 100%);
  position: relative;
  overflow: hidden;
  color: #fff;
}

.match-analysis-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("/assets/templates/basic/images/imigongo-pattern.svg");
  background-size: cover;
  opacity: 0.03;
  z-index: 0;
  pointer-events: none;
}

.match-analysis-section .section-title {
  color: #fff;
  position: relative;
}

.analysis-video-container {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  background-color: #fff;
  transition: transform 0.3s ease;
}

.analysis-video-container:hover {
  transform: translateY(-5px);
}

.analysis-thumbnail {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.analysis-video-container:hover .analysis-thumbnail {
  transform: scale(1.05);
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  display: flex;
  justify-content: center;
  align-items: center;
}

.play-button {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(52, 152, 219, 0.9);
  border: none;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 24px;
  cursor: pointer;
  transition: all 0.3s ease;
  animation: pulse-blue 2s infinite;
}

.play-button:hover {
  background: rgba(52, 152, 219, 1);
  transform: scale(1.1);
}

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

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 3px 8px;
  border-radius: 4px;
  font-size: 12px;
}

.analysis-meta {
  padding: 15px;
  background: white;
  color: #333;
}

.analysis-title {
  color: #1a5276;
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 600;
}

.analysis-excerpt {
  color: #666;
  font-size: 14px;
  line-height: 1.5;
}

.analysis-text-content {
  background: white;
  border-radius: 8px;
  padding: 20px;
  height: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.analysis-header {
  color: #1a5276;
  font-size: 22px;
  margin-bottom: 20px;
  font-weight: 700;
  text-align: center;
  border-bottom: 2px solid rgba(52, 152, 219, 0.2);
  padding-bottom: 10px;
}

.match-stat-card {
  margin-bottom: 15px;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.stat-header {
  background: #f5f5f5;
  padding: 10px 15px;
  font-weight: 600;
  color: #333;
  border-left: 4px solid #3498db;
}

.stat-bar-container {
  padding: 15px;
  background: white;
}

.stat-bar {
  height: 12px;
  background-color: #e9ecef;
  border-radius: 6px;
  overflow: hidden;
  margin: 10px 0;
  position: relative;
}

.stat-fill {
  height: 100%;
  background: linear-gradient(90deg, #3498db, #1a5276);
  border-radius: 6px;
  position: relative;
  transition: width 1s ease;
}

.stat-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.1) 25%,
    transparent 25%,
    transparent 50%,
    rgba(255, 255, 255, 0.1) 50%,
    rgba(255, 255, 255, 0.1) 75%,
    transparent 75%,
    transparent
  );
  background-size: 10px 10px;
  animation: stat-animation 1s linear infinite;
  border-radius: 6px;
}

@keyframes stat-animation {
  0% {
    background-position: 0 0;
  }
  100% {
    background-position: 10px 0;
  }
}

.team-names,
.stat-values {
  display: flex;
  justify-content: space-between;
  margin-bottom: 5px;
  font-size: 14px;
}

.team-names span:first-child,
.stat-values span:first-child {
  color: #1a5276;
  font-weight: 600;
}

.team-names span:last-child,
.stat-values span:last-child {
  color: #666;
}

/* Rwanda-themed accents */
.imigongo-divider {
  height: 8px;
  background: url("/assets/templates/basic/images/imigongo-divider.svg")
    repeat-x;
  margin: 20px 0;
  opacity: 0.7;
}

/* Rwanda-themed color overrides */
.text-danger {
  color: #3498db !important;
}

/* Override default Bootstrap text-danger when used in alerts */
.alert-danger .text-danger {
  color: #3498db !important;
}

/* Override for icons that use text-danger class */
i.text-danger,
span.text-danger,
.fas.text-danger {
  color: #3498db !important;
}
