/* ════════════════════════════════════════
   TOP STICKY STRIP
   File: fifa/assets/home-content/top-sticky-strip.css
   Image: 1920x100px — height is proportional (auto)
   ════════════════════════════════════════ */

/* ── Outer wrapper ── */
#top-sticky-strip,
.top-sticky-strip {
  width: 100%;
  display: block;
  position: relative;
  z-index: 1050;
  line-height: 0;

  /* Entry animation — strip slides down from top */
  transform: translateY(-100%);
  opacity: 0;
  transition: transform 0.5s cubic-bezier(0.34, 1.3, 0.64, 1),
              opacity 0.4s ease;
  overflow: hidden;
}

/* Visible state — JS adds this class */
#top-sticky-strip.strip-visible,
.top-sticky-strip.strip-visible {
  transform: translateY(0);
  opacity: 1;
}

/* Dismissed state */
#top-sticky-strip.strip-dismissed,
.top-sticky-strip.strip-dismissed {
  transform: translateY(-100%);
  opacity: 0;
}

/* ── Clickable anchor ── */
.top-strip__link {
  display: block;
  position: relative;
  width: 100%;
  line-height: 0;
  cursor: pointer;
  text-decoration: none;
  overflow: hidden;
}

.top-strip__link:hover {
  text-decoration: none;
  opacity: 0.95;
}

.top-strip__link:focus-visible {
  outline: 3px solid #FFD700;
  outline-offset: -3px;
}

/* ── Strip image ── */
.top-strip__img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.4s ease;
  will-change: transform;
}

.top-strip__link:hover .top-strip__img {
  transform: scale(1.01);
}

/* ── Shimmer animation overlay ── */
.top-strip__shimmer {
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.15) 40%,
    rgba(255, 255, 255, 0.3) 50%,
    rgba(255, 255, 255, 0.15) 60%,
    transparent 100%
  );
  pointer-events: none;
  z-index: 2;
  animation: stripShimmer 3s ease-in-out infinite;
  animation-delay: 1s;
}

@keyframes stripShimmer {
  0%   { left: -100%; opacity: 0; }
  10%  { opacity: 1; }
  100% { left: 150%; opacity: 0; }
}

/* ── Close / Dismiss button ── */
.top-strip__close {
  position: absolute;
  top: 50%;
  right: 12px;
  transform: translateY(-50%);
  z-index: 10;

  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: #ffffff;

  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;

  transition: background 0.2s ease,
              transform 0.2s ease;
}

.top-strip__close:hover {
  background: rgba(200, 0, 0, 0.7);
  transform: translateY(-50%) scale(1.15) rotate(90deg);
}

.top-strip__close:focus-visible {
  outline: 2px solid #FFD700;
  outline-offset: 2px;
}

/* ── Pulse border animation ── */
#top-sticky-strip::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(
    to right,
    transparent,
    #FFD700,
    #FF8C00,
    #FFD700,
    transparent
  );
  animation: stripBorderPulse 2s ease-in-out infinite;
}

@keyframes stripBorderPulse {
  0%, 100% { opacity: 0.6; transform: scaleX(0.8); }
  50%       { opacity: 1;   transform: scaleX(1); }
}

/* ════════════════════════════════════════
   RESPONSIVE — Bootstrap v5 breakpoints
   Image is 1920x100 — height:auto scales proportionally
   ════════════════════════════════════════ */

/* lg: 992px */
@media (max-width: 992px) {
  .top-strip__close {
    right: 8px;
    width: 22px;
    height: 22px;
  }
}

/* md: 768px */
@media (max-width: 768px) {
  .top-strip__img {
    object-position: center top;
  }
  .top-strip__close {
    right: 6px;
    width: 20px;
    height: 20px;
  }
  .top-strip__close svg {
    width: 10px;
    height: 10px;
  }
}

/* sm: 576px */
@media (max-width: 576px) {
  .top-strip__shimmer {
    width: 40%;
  }
}

/* xs: 375px */
@media (max-width: 375px) {
  #top-sticky-strip::after {
    height: 1px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  #top-sticky-strip,
  .top-strip__img,
  .top-strip__close {
    transition: none !important;
    animation: none !important;
  }
  .top-strip__shimmer {
    display: none;
  }
  #top-sticky-strip::after {
    animation: none;
    opacity: 0.6;
  }
}
