/**
 * Jrop Live Banner Styles - Exact Demo Implementation
 * Modern marquee banner matching the provided demo exactly
 */

/* Import Plus Jakarta Sans font */
@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@500;600;700&display=swap");

:root {
  --marquee-text: #fff;
  --gap: 1rem;
  --speed: 30s; /* Changed back to 30s to match demo speed */
  --pad-y: 0.75rem;
  --font-size: 14px;
}

.jrop-live-banner {
  width: 100%;
  background: #2557a3;
  color: var(--marquee-text);
  overflow: hidden;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial, "Noto Sans",
    sans-serif;
}

.jrop-banner-inner {
  display: flex;
  align-items: center;
  white-space: nowrap;
  padding: var(--pad-y) 0;
  /* Simplified to match demo structure exactly */
}

.jrop-banner-content {
  display: flex;
  align-items: center;
  gap: var(--gap);
  flex-shrink: 0;
  min-width: 100%; /* Changed back to 100% to match demo */
  will-change: transform;
  animation: marquee-scroll var(--speed) linear infinite;
}

.jrop-banner-text-segment {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: var(--font-size);
}

/* Phone link styling */
.phone-link {
  color: #fff !important;
  text-decoration: none !important;
  font-weight: inherit;
  transition: opacity 0.2s ease;
}

.phone-link:hover {
  opacity: 0.9;
  text-decoration: none !important;
}

/* MODERN TIME DISPLAY - Exact match to demo */
.jrop-banner-text-wrapper--time {
  background: white;
  color: black;
  padding: 0.2rem 0.5rem;
  border-radius: 50px;
  font-weight: 700;
  font-size: 14px;
  font-family: "Plus Jakarta Sans", sans-serif;
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 3px rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(8px);
}

.jrop-banner-icon {
  display: inline-block;
  width: 25px;
  height: 25px;
  background: url("https://www.jrop.com/wp-content/uploads/2025/08/svgexport-10-1.svg") no-repeat center;
  background-size: contain;
  flex: 0 0 auto;
}

.jrop-banner-content[aria-hidden="true"] .jrop-banner-icon:first-child {
  margin-left: 1rem;
}

/* Simplified animation to match demo exactly */
@keyframes marquee-scroll {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .jrop-banner-content {
    animation: none;
  }
  .live-indicator::after {
    animation: none;
  }
}

/* LIVE INDICATOR ANIMATION - Exact match to demo */
.live-indicator {
  width: 22px;
  height: 22px;
  position: relative;
  display: inline-block;
}

.live-indicator::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #e95d30;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
}

.live-indicator::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  background: #e95d30;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  animation: liveRadiate 2s ease-out infinite;
  z-index: 1;
}

@keyframes liveRadiate {
  0% {
    width: 8px;
    height: 8px;
    opacity: 1;
  }
  100% {
    width: 26px;
    height: 26px;
    opacity: 0;
  }
}
