/* ========================================
   STATS BAR COMPONENT
   Rotating sports statistics bar at top of page
   Clean platform aesthetic
   ======================================== */

/* Stats Bar Container - Simple dark bar */
.stats-bar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 48px;
  background: var(--color-bg-base-mid);
  border-bottom: 1px solid var(--color-border-light);
  z-index: 9999;
  overflow: hidden;
  cursor: pointer;
  transition: background 0.2s ease;
}

.stats-bar:hover {
  background: var(--color-bg-base-light);
}

.stats-bar-container {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 2rem;
}

/* Stats Bar Content - Individual stat items */
.stats-bar-content {
  display: flex;
  align-items: center;
  animation: slideIn 0.4s ease-out;
}

/* Slide-in animation (from right) */
@keyframes slideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* Slide-out animation (to left) */
.stats-bar-content.slide-out {
  animation: slideOut 0.3s ease-in forwards;
}

@keyframes slideOut {
  from {
    transform: translateX(0);
    opacity: 1;
  }
  to {
    transform: translateX(-100%);
    opacity: 0;
  }
}

/* Individual Stat Item */
.stat-item {
  display: flex;
  align-items: center;
  white-space: nowrap;
  font-size: 0.75rem;
  font-weight: 500;
}

.stat-item:not(:last-child)::after {
  content: "|";
  margin: 0 2rem;
  color: var(--color-primary);
  font-size: 0.875rem;
}

.stat-text {
  color: var(--color-text-secondary);
  letter-spacing: 0.02em;
}

/* Pause Indicator - Shows when user pauses rotation */
.stats-bar-pause-indicator {
  position: absolute;
  top: 50%;
  right: 1rem;
  transform: translateY(-50%);
  color: var(--color-primary);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 0.5;
  }
  50% {
    opacity: 1;
  }
}

/* Responsive - Mobile */
@media (max-width: 768px) {
  .stat-item {
    font-size: 0.65rem;
  }
  
  .stats-bar-container {
    padding: 0 1rem;
  }
  
  .stat-item:not(:last-child)::after {
    margin: 0 1.5rem;
  }
}

/* Responsive - Very Small Screens */
@media (max-width: 480px) {
  .stat-item {
    font-size: 0.7rem;
  }
  
  .stat-item:not(:last-child)::after {
    margin: 0 1rem;
  }
}
