/* ========================================================
   SISTEMA DE TRANSIÇÃO CINEMATOGRÁFICA DE TELAS & FUNDOS BCL
   (EA SPORTS FC / PLAYSTATION 5 CYBER EXPERIENCE)
   ======================================================== */

/* OCULTA O FUNDO LEGADO EM FAVOR DO STAGE DINÂMICO */
#background-overlay {
  display: none !important;
}

/* CONTAINER MASTER DE FUNDO CINEMATOGRÁFICO */
.bcl-stage-container {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.bcl-stage-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-attachment: fixed;
  opacity: 1;
  transform: scale(1);
  filter: blur(0px);
  transition: opacity 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.7s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.5s ease;
  will-change: opacity, transform, filter;
}

.bcl-stage-bg.bg-layer-2 {
  opacity: 0;
}

/* OVERLAY AMBIENTAL CINEMATOGRÁFICO COM VINHETA PROFUNDA */
.bcl-stage-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: radial-gradient(circle at 50% 30%, transparent 45%, rgba(3, 6, 10, 0.82) 95%),
              linear-gradient(180deg, rgba(3, 6, 10, 0.45) 0%, rgba(2, 5, 8, 0.2) 40%, rgba(2, 4, 7, 0.92) 100%);
  transition: background 0.5s ease;
}

/* TRANSIÇÃO DE CONTEÚDO (ENTER / EXIT COM BLUR, SCALE E ESMAECIMENTO) */
.bcl-content-trans {
  position: relative;
  z-index: 2;
  width: 100%;
  opacity: 0;
  transform: scale(0.985);
  filter: blur(8px);
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform, filter;
}

.bcl-content-trans.is-active {
  opacity: 1;
  transform: scale(1);
  filter: blur(0px);
}

.bcl-content-trans.is-exiting {
  opacity: 0;
  transform: scale(0.98);
  filter: blur(8px);
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              filter 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ========================================================
   VISUAL CINEMATOGRÁFICO NO MOBILE COM MÁXIMA MODERNIDADE:
   Wallpaper ativo com vinheta cyber e contraste cirúrgico
   ======================================================== */
@media (max-width: 768px) {
  #background-overlay {
    display: none !important;
  }
  .bcl-stage-container {
    display: block !important;
  }
  .bcl-stage-bg {
    background-attachment: scroll !important;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    filter: brightness(0.68) contrast(1.15);
  }
  .bcl-stage-overlay {
    background: radial-gradient(circle at 50% 18%, rgba(3, 8, 18, 0.62) 0%, rgba(2, 4, 9, 0.92) 85%),
                linear-gradient(180deg, rgba(4, 9, 18, 0.5) 0%, rgba(2, 4, 8, 0.88) 45%, rgba(2, 3, 6, 0.98) 100%) !important;
  }
  body.theme-ballon-dor .bcl-stage-overlay {
    background: radial-gradient(circle at 50% 18%, rgba(255, 215, 0, 0.1), rgba(4, 4, 6, 0.92) 85%),
                linear-gradient(180deg, rgba(14, 11, 4, 0.5) 0%, rgba(6, 5, 2, 0.88) 45%, rgba(3, 2, 1, 0.98) 100%) !important;
  }
  .bcl-content-trans {
    filter: none !important;
    transform: scale(0.99) !important;
    transition: opacity 0.22s ease, transform 0.22s ease !important;
  }
  .bcl-content-trans.is-active {
    opacity: 1 !important;
    transform: scale(1) !important;
  }
  .bcl-content-trans.is-exiting {
    opacity: 0 !important;
    transform: scale(0.985) !important;
  }
}

/* ========================================================
   TEMA DE GALA BALLON D'OR: OURO NOBRE & ÔNIX
   Muda cores de acento, bordas e contorno dourado no logo BCL
   ======================================================== */
body.theme-ballon-dor {
  --bcl-neon-cyan: #ffd700 !important;
  --bcl-neon-cyan-glow: rgba(255, 215, 0, 0.45) !important;
  --bcl-neon-blue: #f59e0b !important;
  --bcl-border-glow: rgba(255, 215, 0, 0.45) !important;
  --bcl-shadow-glow-cyan: 0 0 25px rgba(255, 215, 0, 0.35) !important;
  --g-cyan: #ffd700 !important;
  --g-accent: #fbbf24 !important;
}

body.theme-ballon-dor .ea-topbar {
  background: rgba(12, 10, 5, 0.92) !important;
  border-bottom: 1.5px solid rgba(255, 215, 0, 0.35) !important;
  box-shadow: 0 4px 25px rgba(0, 0, 0, 0.7), 0 0 20px rgba(255, 215, 0, 0.18) !important;
}

/* LOGO BCL COM CONTORNO DOURADO BRILHANTE NA GALA */
body.theme-ballon-dor .ea-topbar-logo {
  filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.85)) drop-shadow(0 0 16px rgba(218, 165, 32, 0.55)) !important;
  border: 2px solid rgba(255, 215, 0, 0.7) !important;
  border-radius: 50% !important;
  padding: 3px !important;
  box-shadow: 0 0 18px rgba(255, 215, 0, 0.4) !important;
  transition: all 0.4s ease !important;
}

body.theme-ballon-dor .ea-fc-sidebar {
  background: linear-gradient(180deg, rgba(14, 12, 6, 0.96) 0%, rgba(8, 7, 3, 0.98) 100%) !important;
  border-right: 1.5px solid rgba(255, 215, 0, 0.3) !important;
}

body.theme-ballon-dor .ea-fc-menu-item.active {
  background: linear-gradient(90deg, rgba(255, 215, 0, 0.28) 0%, rgba(255, 215, 0, 0.05) 100%) !important;
  border-left: 3px solid #ffd700 !important;
  color: #ffd700 !important;
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.25) !important;
}

body.theme-ballon-dor .ea-bottom-nav {
  background: rgba(12, 10, 5, 0.95) !important;
  border-top: 1.5px solid rgba(255, 215, 0, 0.35) !important;
}

body.theme-ballon-dor .ea-nav-item.active {
  color: #ffd700 !important;
}

body.theme-ballon-dor .bcl-stage-overlay {
  background: radial-gradient(circle at 50% 25%, rgba(255, 215, 0, 0.12), rgba(3, 3, 5, 0.85) 85%),
              linear-gradient(180deg, rgba(10, 8, 3, 0.5) 0%, rgba(5, 4, 2, 0.3) 40%, rgba(4, 3, 1, 0.95) 100%) !important;
}
