/* ============================================================
   BarqNews Pro — 04 — News Ticker
   ============================================================ */

#news-ticker {
  position: relative;
  z-index: 5;
  background: #1a1d2e;
  color: white;
  height: 44px;
  overflow: hidden;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.news-ticker-label {
  background: var(--breaking-color);
  color: white;
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  position: relative;
  z-index: 2;
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
  padding-left: 32px;
}
.ltr .news-ticker-label {
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 0 100%);
  padding-right: 32px;
  padding-left: 18px;
}

.news-ticker-label .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: white;
  animation: tickerPulse 1.4s ease-in-out infinite;
}

@keyframes tickerPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.45; transform: scale(1.5); }
}

.news-ticker-viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to left, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to left, transparent 0%, black 5%, black 95%, transparent 100%);
}

.news-ticker-content {
  display: flex;
  align-items: center;
  gap: 0;
  height: 100%;
  white-space: nowrap;
  animation: tickerScroll 45s linear infinite;
  width: max-content;
}

.news-ticker-content:hover {
  animation-play-state: paused;
}

.news-ticker-content a {
  color: rgba(255, 255, 255, 0.92);
  text-decoration: none;
  font-size: 13.5px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color var(--transition-fast);
}
.news-ticker-content a:hover {
  color: #ffb37a;
}
.news-ticker-content .sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  flex-shrink: 0;
}
.news-ticker-content .time {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  font-variant-numeric: tabular-nums;
}

@keyframes tickerScroll {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
.ltr .news-ticker-content {
  animation-name: tickerScrollLTR;
}
@keyframes tickerScrollLTR {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.news-ticker-close {
  flex-shrink: 0;
  padding: 0 14px;
  display: grid;
  place-items: center;
  background: transparent;
  border: none;
  color: white;
  opacity: 0.55;
  cursor: pointer;
  font-size: 14px;
  transition: opacity var(--transition-fast);
}
.news-ticker-close:hover { opacity: 1; }

/* الـ ticker يبقى داكناً في كلا الوضعين (بشكل متعمد للوضوح) */

@media (max-width: 575px) {
  #news-ticker { height: 38px; }
  .news-ticker-label {
    padding: 0 12px;
    padding-left: 22px;
    font-size: 11.5px;
  }
  .news-ticker-content a {
    font-size: 12px;
    padding: 0 14px;
  }
}
