/**
 * ==============================================================================
 * UMOJI STUDIO — DUAL SLANTED SERVICE TICKER RIBBON STYLESHEET
 * ==============================================================================
 * High-energy double angled ticker tape (#1EA92D) with infinite non-stopping marquee.
 * Strictly configured with animation-play-state: running so hover NEVER pauses.
 */

.slanted-ribbon-section {
  position: relative;
  top: -24px;
  z-index: 10;
  width: 100%;
  max-width: 100%;
  margin-top: -42px;
  margin-bottom: 20px;
  padding: 30px 0;
  background: transparent;
  pointer-events: none;
  /* User requirement: never interrupt or pause marquee */
  box-sizing: border-box;
}

/* Wrapper containing the two overlapping angled ribbons */
.slanted-ribbon-wrapper {
  position: relative;
  width: 100%;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Shared ribbon bar properties */
.slanted-ribbon__bar {
  position: absolute;
  width: 130vw;
  left: 50%;
  padding: 22px 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
  will-change: transform;
  box-sizing: border-box;
}

/* --------------------------------------------------------------------------
 * RIBBON 1: FRONT / TOP BAR
 * Steeper tilt (-2.8deg), sitting on top and casting realistic drop shadow
 * -------------------------------------------------------------------------- */
.slanted-ribbon__bar--front {
  z-index: 2;
  top: 25px;
  transform: translate(-50%, 0) rotate(2.8deg);
  background-color: #26b834;
  border-top: 1px solid rgba(255, 255, 255, 0.32);
  border-bottom: 1px solid rgba(0, 0, 0, 0.18);
}

/* --------------------------------------------------------------------------
 * RIBBON 2: BACK / BOTTOM BAR
 * Gentler tilt (-0.8deg), peeking underneath to the right with shaded tone
 * -------------------------------------------------------------------------- */
.slanted-ribbon__bar--back {
  z-index: 1;
  top: 42px;
  transform: translate(-50%, 0) rotate(-1.5deg);
  background: linear-gradient(180deg, #149623 0%, #189a27 100%);
  filter: brightness(0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(0, 0, 0, 0.14);
}

/* --------------------------------------------------------------------------
 * Continuous Marquee Tracks
 * Track 1 scrolls Left, Track 2 scrolls Right (Counter-motion effect)
 * -------------------------------------------------------------------------- */
.slanted-ribbon__track {
  display: flex;
  width: max-content;
  will-change: transform;
  animation-play-state: running !important;
}

.slanted-ribbon__track--front {
  animation: slantedRibbonMarqueeLeft 64s linear infinite;
  animation-play-state: running !important;
}

.slanted-ribbon__track--back {
  animation: slantedRibbonMarqueeRight 68s linear infinite;
  animation-play-state: running !important;
}

/* Guarantee animation NEVER pauses on hover */
.slanted-ribbon-section:hover .slanted-ribbon__track,
.slanted-ribbon__bar:hover .slanted-ribbon__track,
.slanted-ribbon__track:hover,
.slanted-ribbon__track--front:hover,
.slanted-ribbon__track--back:hover {
  animation-play-state: running !important;
}

.slanted-ribbon__group {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

/* Typography matching bold reference aesthetic */
.slanted-ribbon__text {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
  font-size: 15.5px;
  font-weight: 700;
  color: #000000 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
}

/* Vertical bar divider (|) matching screenshot */
.slanted-ribbon__sep {
  font-family: 'Inter', sans-serif !important;
  font-size: 14px;
  font-weight: 700;
  color: #00000035 !important;
  padding: 0 24px;
  line-height: 1;
  display: inline-block;
  vertical-align: middle;
  opacity: 0.85;
}

/* Keyframes: Leftward scrolling */
@keyframes slantedRibbonMarqueeLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Keyframes: Rightward scrolling (counter movement) */
@keyframes slantedRibbonMarqueeRight {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

/* --------------------------------------------------------------------------
 * Tablet Responsive (769px - 1024px)
 * -------------------------------------------------------------------------- */
@media (max-width: 1024px) and (min-width: 769px) {
  .slanted-ribbon-section {
    margin-top: -36px;
    padding: 24px 0;
    margin-bottom: 16px;
  }

  .slanted-ribbon-wrapper {
    height: 82px;
  }

  .slanted-ribbon__bar {
    width: 135vw;
    padding: 15px 0;
  }

  .slanted-ribbon__bar--front {
    top: 6px;
    transform: translate(-50%, 0) rotate(-2.8deg);
  }

  .slanted-ribbon__bar--back {
    top: 36px;
    transform: translate(-50%, 0) rotate(-0.8deg);
  }

  .slanted-ribbon__text {
    font-size: 14px;
    letter-spacing: 0.05em;
  }

  .slanted-ribbon__sep {
    font-size: 14.5px;
    padding: 0 18px;
  }

  .slanted-ribbon__track--front {
    animation-duration: 30s;
  }

  .slanted-ribbon__track--back {
    animation-duration: 34s;
  }
}

/* --------------------------------------------------------------------------
 * Mobile Responsive (<= 768px)
 * -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .slanted-ribbon-section {
    margin-top: -30px;
    padding: 20px 0;
    margin-bottom: 12px;
  }

  .slanted-ribbon-wrapper {
    height: 72px;
  }

  .slanted-ribbon__bar {
    width: 140vw;
    padding: 16px 0;
  }

  .slanted-ribbon__bar--front {
    top: 4px;
    transform: translate(-50%, 0) rotate(-3deg);
  }

  .slanted-ribbon__bar--back {
    top: 29px;
    transform: translate(-50%, 0) rotate(-0.8deg);
  }

  .slanted-ribbon__text {
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.04em;
  }

  .slanted-ribbon__sep {
    font-size: 13px;
    padding: 0 14px;
  }

  .slanted-ribbon__track--front {
    animation-duration: 26s;
  }

  .slanted-ribbon__track--back {
    animation-duration: 30s;
  }
}

/* Extra small mobile (< 420px) */
@media (max-width: 420px) {
  .slanted-ribbon-section {
    margin-top: -24px;
    padding: 16px 0;
  }

  .slanted-ribbon-wrapper {
    height: 64px;
  }

  .slanted-ribbon__bar {
    padding: 8.5px 0;
  }

  .slanted-ribbon__bar--front {
    top: 2px;
    transform: translate(-50%, 0) rotate(-3.2deg);
  }

  .slanted-ribbon__bar--back {
    top: 25px;
    transform: translate(-50%, 0) rotate(-0.8deg);
  }

  .slanted-ribbon__text {
    font-size: 11.5px;
  }

  .slanted-ribbon__sep {
    font-size: 12px;
    padding: 0 11px;
  }
}