/* ════════════════════════════════════════
   FIFA 2026 ADS SECTION
   File: fifa/assets/home-content/style.css
   Used by: includes/header.php
   Layout: [ container( mascot + blue banner ) ] over a full-width black strip
   ════════════════════════════════════════ */

/* Pixel heading font (matches the blocky "Flat Extra Bonus" wordmark) */
@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@500;600;700&display=swap');

/* ── Outer section — fixed bottom, full width, vertical stack ── */
#fifa-ads-section {
     position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 250px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background-color: transparent;
    pointer-events: none;
    transform: translateY(120%);
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.4s ease, visibility 0.4s ease;
    /* filter: blur(4px);
    -o-filter: blur(4px);
    -ms-filter: blur(4px);
    -moz-filter: blur(4px);
    -webkit-filter: blur(4px); */
}

#fifa-ads-section.ads-visible {
  transform: translateY(0);
  opacity: 1;
  visibility: visible;
}

/* Only the interactive banner + close button capture clicks */
#fifa-ads-section.ads-visible .fifa-ads__right,
#fifa-ads-section.ads-visible .fifa-ads__close {
  pointer-events: auto;
}

#fifa-ads-section.ads-closing {
  transform: translateY(120%);
  opacity: 0;
  transition: transform 0.45s ease-in, opacity 0.4s ease-in;
}

/* ── FIX 1: Bootstrap container wrapper (centres content with the site) ── */
.fifa-ads__container {
  position: relative;       /* anchor for the close button */
  width: 100%;
}

/* ── Main row: mascot (left) + blue banner (right) ── */
.fifa-ads__main-row {
  display: flex;
  flex-direction: row;
  align-items: flex-end;
  width: 100%;
  height: 190px;            /* FIX 3: fixed height so the banner never clips */
}

/* ════════════════════════════════════════
   LEFT — LEGO MASCOT (body rises, hands stay fixed)
   ════════════════════════════════════════ */
.fifa-ads__left {
  position: relative;
  flex: 0 0 230px;
  max-width: 230px;
  align-self: stretch;
  overflow: visible;        /* let the head poke above the bar */
  pointer-events: none;
}

.fifa-ads__body {
        position: absolute;
    top: -15px;
    left: 40%;
    width: 250px;
    height: auto;
    z-index: 1;
    transform: translateX(-50%) translateY(100%);
    transition: transform 1s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.fifa-ads__body.body-visible {
  transform: translateX(-50%) translateY(0);
}

.fifa-ads__hand-left {
    position: absolute;
    bottom: -39px;
    left: -40px;
    width: 70px;
    height: auto;
    z-index: 3;
}

.fifa-ads__hand-right {
    position: absolute;
    bottom: -38px;
    right: 20px;
    width: 80px;
    height: auto;
    z-index: 3;
}

/* ════════════════════════════════════════
   RIGHT — BLUE FIFA BANNER
   Background = fifa-right-flag.webp (stadium + 3D "FIFA ADS" logo)
   ════════════════════════════════════════ */
.fifa-ads__right {
     flex: 1;
    position: relative;
    align-self: center;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 12px 26px;
    background-image: url(fifa-right-flag.webp);
    background-size: contain;
    background-position: right;
    background-repeat: no-repeat;
    background-color: #0b2a8a;
    border-radius: 0px;
    box-shadow: 0 6px 22px rgba(0, 0, 0, 0.35);
    overflow: hidden;
    transform: translateX(60px);
    opacity: 0;
    transition: transform 0.6s ease, opacity 0.6s ease;
    
}

.fifa-ads__right.right-visible {
  transform: translateX(0);
  opacity: 1;
}

/* Dark gradient over the left half so white text stays readable */
.fifa-ads__right::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
              rgba(8, 30, 110, 0.96) 0%,
              rgba(8, 30, 110, 0.82) 38%,
              rgba(8, 30, 110, 0) 66%);
  z-index: 0;
}

/* Speech-bubble tail pointing left toward the mascot */
.fifa-ads__right::after {
  content: '';
  position: absolute;
  left: -13px;
  top: 50%;
  transform: translateY(-50%);
  border-width: 13px 14px 13px 0;
  border-style: solid;
  border-color: transparent #0b2a8a transparent transparent;
  z-index: 1;
}

/* ── Text area ── */
.fifa-ads__text {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
  max-width: 64%;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.fifa-ads__heading {
font-family: 'Pixelify Sans', system-ui, sans-serif;
    font-size: 50px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.5px;
    color: #ffffff;
    margin: 0;
}

.fifa-ads__heading .hl {
  color: #f6c343;          /* gold highlight on "Extra Bonus" */
}

.fifa-ads__subheading {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
}

/* ── Buttons ── */
.fifa-ads__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}

.fifa-ads__btn-primary,
.fifa-ads__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 25px;
    border-radius: 0px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.7);
    background-color: transparent;
    color: #ffffff;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
}

.fifa-ads__btn-primary:hover {
  background-color: #ffffff;
  color: #0b2a8a;
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  text-decoration: none;
}

.fifa-ads__btn-secondary:hover {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  transform: translateY(-2px);
  text-decoration: none;
}

/* ════════════════════════════════════════
   CLOSE BUTTON — top-right of the banner area (container-aligned)
   ════════════════════════════════════════ */
.fifa-ads__close {
  position: absolute;
  top: 0px;
  right: 6px;
  z-index: 100000;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.5);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.fifa-ads__close:hover {
  background-color: #cc0000;
  color: #ffffff;
  transform: scale(1.1) rotate(90deg);
}

/* ════════════════════════════════════════
   FIX 2: BOTTOM BLACK STRIP ("patti") — full-bleed
   ════════════════════════════════════════ */
.fifa-ads__bottom-strip {
    position: absolute;
    z-index: 2;
    width: 100%;
    height: 60px;
    flex-shrink: 0;
    background-color: #141414;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    bottom: 0px;
}

/* ════════════════════════════════════════
   RESPONSIVE — Bootstrap v5 breakpoints
   ════════════════════════════════════════ */

/* xl: 1200px — scale heading for medium screens */
@media (max-width: 1200px) {
  .fifa-ads__heading { font-size: 38px; }
  .fifa-ads__text { max-width: 66%; }
}

/* lg-tablet: 1024px — tablet landscape, no mascot overflow issues */
@media (max-width: 1024px) {
  .fifa-ads__heading { font-size: 28px; }
  .fifa-ads__subheading { font-size: 13px; }
  .fifa-ads__text { max-width: 68%; }
  .fifa-ads__btn-primary,
  .fifa-ads__btn-secondary { padding: 9px 18px; font-size: 14px; }
}

/* lg: 992px — side-by-side maintained, compact to fit 160px right panel */
@media (max-width: 992px) {
  .fifa-ads__heading { font-size: 24px; }
  .fifa-ads__subheading { font-size: 12px; }
  .fifa-ads__text { max-width: 65%; }
  .fifa-ads__btn-primary,
  .fifa-ads__btn-secondary { padding: 7px 14px; font-size: 13px; }
}

/* md: 768px — hide the mascot; banner spans the container, strip flows below */
@media (max-width: 768px) {
  #fifa-ads-section { height: auto; }
  .fifa-ads__main-row { height: auto; }
  .fifa-ads__left { display: none; }
  .fifa-ads__right {
    height: auto;
    min-height: 104px;
    top: 0;
    width: 100%;
    padding: 14px 20px;
    border-radius: 0;
    background-size: cover;
  }
  .fifa-ads__right::after { display: none; }
  .fifa-ads__text { max-width: 100%; }
  .fifa-ads__heading { font-size: 23px; }
  .fifa-ads__subheading { font-size: 12px; }
  .fifa-ads__btn-primary,
  .fifa-ads__btn-secondary { padding: 8px 16px; font-size: 13px; }
  .fifa-ads__close { top: 8px; right: 8px; }
  .fifa-ads__bottom-strip { position: relative; height: 46px; }
}

/* sm: 576px — compact; darken the background so text stays readable */
@media (max-width: 576px) {
  .fifa-ads__right { padding: 14px 16px; }
  .fifa-ads__right::before {
    background: linear-gradient(90deg,
                rgba(8, 30, 110, 0.97) 0%,
                rgba(8, 30, 110, 0.88) 100%);
  }
  .fifa-ads__text { padding-right: 30px; }
  .fifa-ads__heading { font-size: 21px; }
  .fifa-ads__buttons { gap: 8px; }
  .fifa-ads__btn-primary,
  .fifa-ads__btn-secondary { flex: 1 1 auto; justify-content: center; }
  .fifa-ads__bottom-strip { height: 40px; }
}

/* xs: 375px */
@media (max-width: 375px) {
  .fifa-ads__heading { font-size: 19px; }
  .fifa-ads__subheading { font-size: 11px; }
  .fifa-ads__btn-primary,
  .fifa-ads__btn-secondary { width: 100%; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  #fifa-ads-section,
  .fifa-ads__body,
  .fifa-ads__right,
  .fifa-ads__close,
  .fifa-ads__btn-primary,
  .fifa-ads__btn-secondary {
    transition: none !important;
    animation: none !important;
  }
  .fifa-ads__body { transform: translateX(-50%) translateY(0) !important; }
  .fifa-ads__right { transform: translateX(0) !important; opacity: 1 !important; }
}
