/* src/styles/components/verb-ticker.css */
/* Verb Ticker - Horizontal scrolling announcement bar */

.verb-ticker {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 40px;
  background: linear-gradient(135deg, #5E81AC 0%, #81A1C1 100%);
  overflow: hidden;
  z-index: 10000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.verb-ticker-track {
  display: flex;
  gap: 48px;
  white-space: nowrap;
  animation: ticker-scroll 60s linear infinite;
  will-change: transform;
}

.verb-ticker-track:hover {
  animation-play-state: paused;
}

.verb-ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  height: 40px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.3px;
  cursor: default;
  transition: all 0.3s ease;
}

.verb-ticker-item:hover {
  transform: scale(1.05);
}

.ticker-flag {
  font-size: 18px;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.ticker-lang {
  text-transform: uppercase;
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.5px;
  opacity: 0.9;
  background: rgba(255, 255, 255, 0.15);
  padding: 2px 6px;
  border-radius: 4px;
}

.ticker-verb {
  font-weight: 600;
  position: relative;
}

.ticker-separator {
  opacity: 0.6;
  font-weight: 300;
}

.ticker-conjugation {
  font-weight: 400;
  opacity: 0.95;
  font-style: italic;
}

/* Animation */
@keyframes ticker-scroll {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* Adjust body padding when ticker is present */
body.has-ticker {
  padding-top: 40px;
}

body.has-ticker .landing-nav {
  top: 40px;
}

body.has-ticker .header {
  top: 40px;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .verb-ticker {
    background: linear-gradient(135deg, #434C5E 0%, #4C566A 100%);
  }
}

/* Mobile responsiveness */
@media (max-width: 768px) {
  .verb-ticker {
    height: 36px;
  }
  
  .verb-ticker-item {
    height: 36px;
    font-size: 12px;
    padding: 0 16px;
    gap: 6px;
  }
  
  .ticker-flag {
    font-size: 16px;
  }
  
  body.has-ticker {
    padding-top: 36px;
  }
  
  body.has-ticker .landing-nav {
    top: 36px;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  .verb-ticker-track {
    animation: ticker-scroll 120s linear infinite;
  }
}
