/* ===================================================================
   FLOATING RUNNING TEXT (TICKER) - DISPENAD TNI AD
   Tema: Kartika Eka Paksi (Military Army Green & Gold)
   =================================================================== */

.floating-running-text-wrap {
  position: fixed;
  bottom: 14px;
  left: 16px;
  right: 16px;
  z-index: 9999;
  display: flex;
  align-items: center;
  background: rgba(11, 29, 20, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(212, 175, 55, 0.45);
  border-radius: 40px;
  padding: 6px 10px 6px 6px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(212, 175, 55, 0.15);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  box-sizing: border-box;
}

/* Minimized Floating Trigger Button */
.floating-rt-trigger {
  position: fixed;
  bottom: 16px;
  left: 20px;
  z-index: 9998;
  background: linear-gradient(135deg, #143525 0%, #0b1d14 100%);
  border: 1px solid #d4af37;
  color: #d4af37;
  padding: 8px 16px;
  border-radius: 30px;
  font-size: 0.78rem;
  font-weight: 700;
  display: none;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transition: all 0.25s ease;
}
.floating-rt-trigger:hover {
  background: #d4af37;
  color: #0b1d14;
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(212, 175, 55, 0.3);
}

/* Badge Left */
.rt-badge {
  background: linear-gradient(135deg, #d4af37 0%, #aa8520 100%);
  color: #0b1d14;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
  user-select: none;
}
.rt-badge-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #0b1d14;
  box-shadow: 0 0 6px rgba(11, 29, 20, 0.8);
  animation: rtPulse 1.8s infinite;
}
@keyframes rtPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.3; transform: scale(0.8); }
}

/* Marquee Track */
.rt-marquee-container {
  flex: 1;
  overflow: hidden;
  position: relative;
  margin: 0 14px;
  mask-image: linear-gradient(to right, transparent, black 25px, black calc(100% - 25px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 25px, black calc(100% - 25px), transparent);
}
.rt-marquee-content {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  animation: rtScroll 45s linear infinite;
  gap: 36px;
}
.floating-running-text-wrap:hover .rt-marquee-content {
  animation-play-state: paused;
}

@keyframes rtScroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Running Text Item */
.rt-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #f1f5f3;
  font-size: 0.84rem;
  font-weight: 500;
  letter-spacing: 0.2px;
}
.rt-item-cat {
  background: rgba(212, 175, 55, 0.18);
  border: 1px solid rgba(212, 175, 55, 0.4);
  color: #f5e08b;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.rt-item-text {
  color: #f1f5f3;
  transition: color 0.2s;
}
.rt-item-link {
  color: #f5e08b;
  text-decoration: underline;
  text-underline-offset: 3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s;
}
.rt-item-link:hover {
  color: #ffffff;
}
.rt-separator {
  color: #d4af37;
  font-size: 0.55rem;
  opacity: 0.75;
}

/* Action Buttons (Right) */
.rt-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  padding-left: 4px;
}
.rt-btn {
  background: transparent;
  border: none;
  color: #9db2a6;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.82rem;
  transition: all 0.2s ease;
}
.rt-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
}
.rt-btn-close:hover {
  color: #f87171;
  background: rgba(239, 68, 68, 0.15);
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
  .floating-running-text-wrap {
    bottom: 10px;
    left: 8px;
    right: 8px;
    padding: 5px 8px 5px 5px;
    border-radius: 30px;
  }
  .rt-badge {
    font-size: 0.65rem;
    padding: 5px 10px;
    letter-spacing: 0.3px;
  }
  .rt-badge span.badge-text-full {
    display: none;
  }
  .rt-badge span.badge-text-mobile {
    display: inline;
  }
  .rt-item {
    font-size: 0.78rem;
  }
  .rt-marquee-container {
    margin: 0 8px;
  }
}

@media (min-width: 769px) {
  .rt-badge span.badge-text-mobile {
    display: none;
  }
}
