/* ================================================================
   TICKER — Malakatech Helpdesk
   File terpisah agar mudah di-debug
   ================================================================ */

.ticker-wrap {
  display: flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  height: 44px !important;
  background: #ffffff;
  border: 1px solid #e0e3e8;
  border-radius: 10px;
  overflow: hidden !important;
  margin-bottom: 1.75rem;
  box-shadow: 0 1px 6px rgba(0,0,0,.07);
  position: relative;
}

.ticker-label {
  display: flex !important;
  align-items: center;
  gap: .4rem;
  padding: 0 1rem;
  flex-shrink: 0 !important;
  background: #1877f2;
  color: #fff;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap !important;
  z-index: 2;
}

.ticker-track-wrap {
  flex: 1 1 0% !important;    /* flex-grow:1, flex-shrink:1, flex-basis:0 */
  min-width: 0 !important;    /* override browser default min-width:auto  */
  overflow: hidden !important;
  position: relative;
  height: 44px;
}

.ticker-track {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  height: 44px;
  width: max-content !important;
  animation: mhd-ticker 40s linear infinite;
  will-change: transform;
}

.ticker-track.is-paused {
  animation-play-state: paused !important;
}

@keyframes mhd-ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-33.3334%); }
}

.ticker-item {
  display: inline-flex !important;
  align-items: center;
  gap: .6rem;
  padding: 0 1.75rem;
  height: 44px;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  text-decoration: none;
  color: #1c1e21;
  border-right: 1px solid #e0e3e8;
  font-size: .855rem;
  line-height: 1;
  transition: background .12s;
}

.ticker-item:hover {
  background: #e7f0fd;
  text-decoration: none;
}

.ticker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
  display: inline-block !important;
  animation: mhd-blink 1.8s ease-in-out infinite;
}

@keyframes mhd-blink {
  0%,100% { opacity: 1; }
  50%      { opacity: .3; }
}

.ticker-cat {
  font-size: .66rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: .15rem .48rem;
  border-radius: 4px;
  background: #e7f0fd;
  color: #1877f2;
  flex-shrink: 0;
  white-space: nowrap !important;
  display: inline-block !important;
}

.ticker-title {
  color: #1c1e21;
  font-weight: 500;
  white-space: nowrap !important;
  display: inline !important;
}

.ticker-sep {
  color: #d0d4da;
  flex-shrink: 0;
}

.ticker-time {
  display: inline-flex !important;
  align-items: center;
  gap: .22rem;
  font-size: .68rem;
  color: #8a8d91;
  font-family: 'IBM Plex Mono', monospace;
  flex-shrink: 0;
  white-space: nowrap !important;
}

.ticker-pause-btn {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 42px;
  flex-shrink: 0 !important;
  background: #f5f6f8;
  border: none;
  border-left: 1px solid #e0e3e8;
  color: #65676b;
  cursor: pointer;
  transition: background .12s, color .12s;
}

.ticker-pause-btn:hover {
  background: #e7f0fd;
  color: #1877f2;
}

@media (max-width: 680px) {
  .ticker-wrap,
  .ticker-track-wrap,
  .ticker-track,
  .ticker-item        { height: 38px !important; }
  .ticker-cat         { display: none !important; }
  .ticker-time        { display: none !important; }
  .ticker-pause-btn   { width: 36px; }
  .ticker-item        { padding: 0 1.1rem; }
}

/* Extra mobile fix */
@media (max-width: 480px) {
  .ticker-wrap { margin-bottom: 1.25rem; border-radius: 8px; }
  .ticker-label { padding: 0 .65rem; font-size: .65rem; }
  .ticker-item { padding: 0 .9rem; font-size: .8rem; gap: .4rem; }
}
