/* === Vars === */
:root {
  --announce-h: 48px; /* yükseklik */
  --announce-gap: 3rem; /* item arası boşluk */
  --announce-speed: 50; /* px/s fallback (JS dinamik ayarlayacak) */
  --announce-text: #ffffff;
  --announce-background: #ffa500;
}

/* Bar */
.announce {
  position: relative;
  height: var(--announce-h);
  background-color: var(--announce-background);
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* İçerik hizalama */
.announce-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding-inline: 1rem;
}

/* Kapat düğmesi
.announce-close {
  position: absolute;
  inset-inline-end: 0.25rem;
  inset-block-start: 0.25rem;
  width: 32px;
  height: 32px;
  border: 0;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  opacity: 0.6;
  cursor: pointer;
} */
/* .announce-close:hover {
  opacity: 1;
} */

/* Icon */
.announce-icon {
  color: var(--announce-text);
  font-size: 20px;
}

/* Track + Row (marquee) */
.announce-track {
  overflow: hidden;
  white-space: nowrap;
  mask: linear-gradient(
    90deg,
    transparent 0,
    #000 32px,
    #000 calc(100% - 32px),
    transparent 100%
  );
}
.announce-row {
  display: inline-flex;
  align-items: center;
  gap: var(--announce-gap);
  will-change: transform;
  animation: announce-scroll linear infinite;
  animation-duration: 30s; /* JS dinamik olarak değiştirir */
}
.announce-item {
  color: var(--announce-text);
  font-weight: 700;
  font-size: 1.5rem;
  color: white;
}

/* CTA */
.announce-cta {
  white-space: nowrap;
}

/* Fade overlay (ek görsel güçlendirme) */
.announce-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40px;
  pointer-events: none;
  background: linear-gradient(
    to right,
    rgba(255, 193, 7, 1),
    rgba(255, 193, 7, 0)
  );
}
.announce-fade.right {
  right: 0;
  transform: scaleX(-1);
}
.announce-fade.left {
  left: 0;
}

/* Hover/focus'ta duraklat (klavye erişilebilir) */
.announce:hover .announce-row,
.announce:focus-within .announce-row {
  animation-play-state: paused;
}

/* Animasyon tanımı */
@keyframes announce-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

/* Tercih: Az hareket (erişilebilirlik) */
@media (prefers-reduced-motion: reduce) {
  .announce-row {
    animation: none;
  }
}

/* Responsive küçük dokunuşlar */
@media (max-width: 576px) {
  :root {
    --announce-h: 42px;
    --announce-gap: 1.5rem;
  }
  .announce-cta {
    display: none;
  } /* İstersen gösterebilirsin */
}
