/* ── News Ticker Bar ── */
.news-ticker-bar {
  background: #1a1a1a;
  border-top: 0.5px solid #264821;
  border-bottom: 0.5px solid #264821;
  position: relative;
  height: 36px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  z-index: 9000;
  overflow: visible;
  box-sizing: border-box;
}

/* Container for the news items */
.news-ticker-container {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

/* Individual news item */
.news-ticker-item {
  position: absolute;
  left: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  height: 100%;
  white-space: nowrap;
  text-decoration: none;
  color: #e0e0e0;
  font-size: 13px;

  transition: opacity 0.25s ease;
  opacity: 0;
  pointer-events: none;
}

.news-ticker-item.active {
  opacity: 1;
  pointer-events: auto;
}

.news-ticker-item:hover {
  text-decoration: none;
  color: #e0e0e0;
}

/* "Të fundit" label — plain text, no pill */
.ticker-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #00ee00;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;

  flex-shrink: 0;
  white-space: nowrap;
}

/* Pulsing dot on the RIGHT side of text */
.ticker-badge::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-top: -2.5px;
  background: #00ee00;
  border-radius: 50%;
  flex-shrink: 0;
  animation: ticker-live-pulse 1.15s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

/* Pulse -> disappear -> pulse again */
@keyframes ticker-live-pulse {
  0% {
    opacity: 0;
    transform: scale(0.72);
    box-shadow: 0 0 0 rgba(0, 238, 0, 0);
  }
  18% {
    opacity: 1;
    transform: scale(1.14);
    box-shadow: 0 0 10px rgba(0, 238, 0, 0.85);
  }
  36% {
    opacity: 0.82;
    transform: scale(0.92);
    box-shadow: 0 0 5px rgba(0, 238, 0, 0.45);
  }
  54% {
    opacity: 0;
    transform: scale(0.72);
    box-shadow: 0 0 0 rgba(0, 238, 0, 0);
  }
  100% {
    opacity: 0;
    transform: scale(0.72);
    box-shadow: 0 0 0 rgba(0, 238, 0, 0);
  }
}

/* Separator between badge and title */
.ticker-sep {
  color: #2a2a2a;
  font-size: 15px;
  flex-shrink: 0;
}

/* Title (also uses .post-title for consistent naming; keep bar body font, not Quantico) */
.news-ticker-item .post-title.ticker-title {
  font-family: "League Spartan", sans-serif;
}

.ticker-title {
  font-weight: 400;
  color: #cccccc;
  overflow: hidden;
  text-overflow: ellipsis;
}

.news-ticker-item:hover .ticker-title {
  color: #ffffff;
}

/* Cursor blink at end of typewriter */
.ticker-cursor {
  display: inline-block;
  width: 1px;
  height: 14px;
  background: #00ee00;
  margin-left: 2px;
  vertical-align: middle;
  animation: ticker-blink 0.8s step-end infinite;
}

@keyframes ticker-blink {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}

/* Navigation buttons */
.ticker-nav-wrapper {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: 12px;
  flex-shrink: 0;
}

.ticker-nav {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
  flex-shrink: 0;
  box-sizing: border-box;
  background: transparent;
  border: 1px solid #2a2a2a;
  color: #555;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  border-radius: 2px;
}

.ticker-nav:hover {
  border-color: #00ee00;
  color: #00ee00;
}

.ticker-nav svg {
  width: 12px;
  height: 12px;
}
.ticker-nav .fa-solid {
  font-size: 10px;
  line-height: 1;
}

/* Mobile */
@media (max-width: 768px) {
  .news-ticker-bar {
    height: 34px;
    min-height: 34px;
    padding: 0 8px;
  }

  .news-ticker-item {
    font-size: 12px;
    gap: 8px;
  }

  .ticker-badge {
    font-size: 10px;
  }

  .ticker-title {
    max-width: calc(100vw - 120px);
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .ticker-nav-wrapper {
    gap: 4px;
    margin-left: 8px;
  }

  .ticker-nav {
    width: 28px;
    height: 28px;
    min-width: 28px;
    min-height: 28px;
    max-width: 28px;
    max-height: 28px;
  }

  .ticker-nav svg {
    width: 11px;
    height: 11px;
  }
  .ticker-nav .fa-solid {
    font-size: 9px;
  }
}

@media (max-width: 480px) {
  .ticker-title {
    max-width: calc(100vw - 110px);
    font-size: 11px;
  }

  .ticker-badge {
    font-size: 9px;
  }

  .ticker-sep {
    display: none;
  }
}
