:root {
  --color-bg: #0a0a0a;
  --color-bg-alt: #181a1f;
  --color-text: #fff;
  --color-text-light: #e0e0e0;
  --color-accent: #FFD700;
  --color-accent-alt: #FFA500;
  --color-gold-gradient: linear-gradient(90deg, #FFD700, #FFA500);
}

.highlight-section, .highlight-container, .highlight-video-card, .highlight-stat-card {
  color: var(--color-text);
}

.highlight-section::before, .highlight-section::after {
  background: var(--color-gold-gradient);
}

.highlight-stat-label, .highlight-stat-value {
  color: var(--color-accent);
}

/* Refactor all other hardcoded color values and gradients in this file to use the above variables. */

/* Video Highlight Section - Modern & Unique Styling */

.highlight-section {
  position: relative;
  padding: 80px 0;
  background: linear-gradient(135deg, #0f0f23 0%, #1a1a2e 50%, #16213e 100%);
  overflow: hidden;
  margin: 0;
  z-index: 1;
  display: none;
}

/* Animated Background Elements */
.highlight-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: 
    radial-gradient(circle at 20% 80%, rgba(120, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 80% 20%, rgba(255, 119, 198, 0.3) 0%, transparent 50%),
    radial-gradient(circle at 40% 40%, rgba(120, 219, 255, 0.2) 0%, transparent 50%);
  animation: backgroundShift 20s ease-in-out infinite;
  z-index: -1;
}

@keyframes backgroundShift {
  0%, 100% { opacity: 0.7; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.1); }
}

/* Floating Particles */
.highlight-section::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    radial-gradient(2px 2px at 20px 30px, #eee, transparent),
    radial-gradient(2px 2px at 40px 70px, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 90px 40px, #fff, transparent),
    radial-gradient(1px 1px at 130px 80px, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 160px 30px, #ddd, transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  animation: sparkle 4s linear infinite;
  opacity: 0.3;
  z-index: -1;
}

@keyframes sparkle {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-100px); }
}

.highlight-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

/* Video Card Styling */
.highlight-video-card {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(20px);
  transform: perspective(1000px) rotateY(-5deg);
  transition: all 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.highlight-video-card:hover {
  transform: perspective(1000px) rotateY(0deg) scale(1.02);
  box-shadow: 
    0 30px 60px rgba(0, 0, 0, 0.4),
    0 0 0 1px rgba(255, 255, 255, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.highlight-video-wrap {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #000;
}

.highlight-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 20px;
  transition: transform 0.3s ease;
}

.highlight-video-card:hover .highlight-video {
  transform: scale(1.05);
}

/* Video Controls Enhancement */
.highlight-video::-webkit-media-controls {
  background: rgba(0, 0, 0, 0.7);
  border-radius: 0 0 20px 20px;
}

.highlight-video::-webkit-media-controls-panel {
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.8));
}

/* Stats Section */
.highlight-stats {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.highlight-stat-card {
  position: relative;
  padding: 30px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.05));
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 
    0 10px 30px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
  overflow: hidden;
}

.highlight-stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
  transition: left 0.6s ease;
}

.highlight-stat-card:hover::before {
  left: 100%;
}

.highlight-stat-card:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 
    0 20px 40px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
  border-color: rgba(255, 255, 255, 0.2);
}

/* Individual Stat Card Variations */
.highlight-stat-card.stat1 {
  background: linear-gradient(145deg, rgba(255, 224, 126, 0.15), rgba(255, 179, 0, 0.1));
  border-color: rgba(255, 179, 0, 0.3);
}

.highlight-stat-card.stat2 {
  background: linear-gradient(145deg, rgba(182, 166, 247, 0.15), rgba(79, 195, 247, 0.1));
  border-color: rgba(79, 195, 247, 0.3);
}

.highlight-stat-card.stat3 {
  background: linear-gradient(145deg, rgba(79, 209, 139, 0.15), rgba(76, 175, 80, 0.1));
  border-color: rgba(76, 175, 80, 0.3);
}

/* Stat Icon Styling */
.highlight-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  border-radius: 16px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s ease;
}

.highlight-stat-card:hover .highlight-stat-icon {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.highlight-stat-icon svg {
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
}

/* Stat Content */
.highlight-stat-label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.4;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: color 0.3s ease;
}

.highlight-stat-card:hover .highlight-stat-label {
  color: rgba(255, 255, 255, 1);
}

.highlight-stat-value {
  font-size: 2.5rem;
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  transition: all 0.3s ease;
}

.highlight-stat-card:hover .highlight-stat-value {
  transform: scale(1.05);
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.7);
}

/* Responsive Design */
@media (max-width: 1024px) {
  .highlight-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .highlight-video-card {
    transform: perspective(1000px) rotateY(0deg);
  }
  
  .highlight-video-card:hover {
    transform: perspective(1000px) rotateY(0deg) scale(1.02);
  }
}

@media (max-width: 768px) {
  .highlight-section {
    padding: 60px 0;
  }
  
  .highlight-container {
    padding: 0 15px;
    gap: 30px;
  }
  
  .highlight-stat-card {
    padding: 25px;
  }
  
  .highlight-stat-value {
    font-size: 2rem;
  }
  
  .highlight-stat-icon {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 480px) {
  .highlight-section {
    padding: 40px 0;
  }
  
  .highlight-container {
    padding: 0 10px;
  }
  
  .highlight-stat-card {
    padding: 20px;
  }
  
  .highlight-stat-value {
    font-size: 1.8rem;
  }
  
  .highlight-stat-label {
    font-size: 12px;
  }
}

/* Loading Animation */
.highlight-section.loading {
  opacity: 0;
  transform: translateY(20px);
  animation: fadeInUp 0.8s ease-out forwards;
}

@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Custom Scrollbar for Video */
.highlight-video::-webkit-media-controls-panel::-webkit-scrollbar {
  width: 6px;
}

.highlight-video::-webkit-media-controls-panel::-webkit-scrollbar-track {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 3px;
}

.highlight-video::-webkit-media-controls-panel::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.5);
  border-radius: 3px;
}

/* Focus States for Accessibility */
.highlight-stat-card:focus-within {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
}

.highlight-video:focus {
  outline: 2px solid rgba(255, 255, 255, 0.5);
  outline-offset: 2px;
} 