/* ==========================================================================
   BCLWEB - MODERN MOBILE SHELL & BOTTOM DOCK NAVIGATION
   ========================================================================== */

/* Resets para app feel */
* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

body {
  background-color: var(--bcl-bg-canvas) !important;
  color: #f8fafc !important;
  font-family: var(--bcl-font-body) !important;
  overscroll-behavior-y: none;
  min-height: 100vh;
}

/* App Wrap */
.ea-app-wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  background: radial-gradient(circle at 50% 0%, rgba(0, 242, 254, 0.05) 0%, transparent 60%),
              radial-gradient(circle at 100% 100%, rgba(79, 172, 254, 0.04) 0%, transparent 50%),
              var(--bcl-bg-canvas);
}

/* --------------------------------------------------------------------------
   MODERN MOBILE TOPBAR
   -------------------------------------------------------------------------- */
.ea-topbar {
  position: sticky;
  top: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: calc(var(--bcl-header-height) + var(--bcl-safe-top));
  padding: var(--bcl-safe-top) 16px 0 16px;
  background: var(--bcl-bg-surface-glass);
  backdrop-filter: var(--bcl-glass-blur);
  -webkit-backdrop-filter: var(--bcl-glass-blur);
  border-bottom: 1px solid var(--bcl-border-subtle);
  transition: all 0.25s ease;
}

.ea-topbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ea-topbar-logo {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 2px 8px var(--bcl-neon-cyan-glow));
  transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ea-topbar-logo:active {
  transform: scale(0.92);
}

/* Badge AO VIVO Moderno estilo SofaScore */
.ea-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, rgba(0, 230, 118, 0.15) 0%, rgba(0, 230, 118, 0.05) 100%);
  border: 1px solid rgba(0, 230, 118, 0.4);
  color: #00e676;
  font-family: var(--bcl-font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 4px 10px;
  border-radius: var(--bcl-radius-pill);
  box-shadow: 0 0 12px rgba(0, 230, 118, 0.2);
  cursor: pointer;
  animation: bcl-pulse-live 2s infinite ease-in-out;
}

.ea-live-dot {
  width: 7px;
  height: 7px;
  background: #00e676;
  border-radius: 50%;
  box-shadow: 0 0 8px #00e676;
}

@keyframes bcl-pulse-live {
  0%, 100% {
    box-shadow: 0 0 12px rgba(0, 230, 118, 0.2);
    border-color: rgba(0, 230, 118, 0.4);
  }
  50% {
    box-shadow: 0 0 18px rgba(0, 230, 118, 0.45);
    border-color: rgba(0, 230, 118, 0.8);
  }
}

/* --------------------------------------------------------------------------
   PREMIUM MOBILE BOTTOM NAVIGATION DOCK (EA FC FUT STYLE)
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
  .ea-fc-content {
    margin-left: 0 !important;
    padding: 12px 14px calc(var(--bcl-bottom-nav-height) + var(--bcl-safe-bottom) + 24px) !important;
  }

  .ea-bottom-nav {
    display: flex !important;
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    height: calc(var(--bcl-bottom-nav-height) + var(--bcl-safe-bottom)) !important;
    padding: 6px 12px calc(var(--bcl-safe-bottom) + 4px) 12px !important;
    background: rgba(10, 17, 32, 0.88) !important;
    backdrop-filter: blur(24px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(24px) saturate(180%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.7), 0 -1px 0 rgba(0, 242, 254, 0.12) inset !important;
    z-index: 1000 !important;
    align-items: center !important;
    justify-content: space-around !important;
  }

  .ea-nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: transparent;
    border: none;
    outline: none;
    color: #94a3b8;
    padding: 6px 0;
    cursor: pointer;
    position: relative;
    transition: all 0.22s cubic-bezier(0.34, 1.56, 0.64, 1);
    min-height: 48px; /* Touch target acessível */
    border-radius: var(--bcl-radius-sm);
  }

  .ea-nav-item .ea-nav-icon {
    font-size: 1.35rem;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.22s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.22s ease;
  }

  .ea-nav-item .ea-nav-label {
    font-family: var(--bcl-font-display);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    transition: color 0.2s ease, transform 0.2s ease;
  }

  /* Estado Ativo no Mobile */
  .ea-nav-item.active {
    color: #ffffff !important;
  }

  .ea-nav-item.active .ea-nav-icon {
    transform: translateY(-2px) scale(1.12);
    filter: drop-shadow(0 0 10px var(--bcl-neon-cyan));
  }

  .ea-nav-item.active .ea-nav-label {
    color: var(--bcl-neon-cyan) !important;
    text-shadow: 0 0 10px var(--bcl-neon-cyan-glow);
  }

  /* Indicador sutil de página ativa acima do item */
  .ea-nav-item.active::before {
    content: '';
    position: absolute;
    top: -6px;
    width: 24px;
    height: 3px;
    border-radius: 9999px;
    background: linear-gradient(90deg, var(--bcl-neon-cyan), var(--bcl-neon-blue));
    box-shadow: 0 0 8px var(--bcl-neon-cyan);
    animation: bcl-slide-pill 0.25s ease-out;
  }

  /* Botão Central de Destaque / Votação ou Jogos */
  .ea-nav-item.nav-item-highlight {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.15) 0%, rgba(79, 172, 254, 0.08) 100%);
    border: 1px solid rgba(0, 242, 254, 0.35);
    border-radius: var(--bcl-radius-md);
    box-shadow: 0 4px 15px rgba(0, 242, 254, 0.2);
    transform: translateY(-4px);
  }

  .ea-nav-item.nav-item-highlight:active {
    transform: translateY(-2px) scale(0.96);
  }
}

@keyframes bcl-slide-pill {
  from {
    width: 0px;
    opacity: 0;
  }
  to {
    width: 24px;
    opacity: 1;
  }
}

/* --------------------------------------------------------------------------
   BOTTOM SHEET MODERNO ("MAIS" HUB) ESTILO NATIVO MOBILE
   -------------------------------------------------------------------------- */
.more-hub-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 13, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1100;
  display: flex;
  align-items: flex-end;
  animation: bcl-fade-in 0.2s ease-out;
}

.more-hub-sheet {
  width: 100%;
  max-height: 85vh;
  background: linear-gradient(180deg, #101c30 0%, #080e1a 100%);
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  border-top: 1px solid rgba(0, 242, 254, 0.3);
  box-shadow: 0 -20px 45px rgba(0, 0, 0, 0.8), 0 0 25px rgba(0, 242, 254, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding-bottom: var(--bcl-safe-bottom);
  animation: bcl-slide-up 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

.more-hub-header {
  padding: 18px 20px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--bcl-border-subtle);
  position: relative;
}

/* Puxador tipo iOS */
.more-hub-header::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 9999px;
}

.more-hub-title {
  font-family: var(--bcl-font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  display: flex;
  align-items: center;
  gap: 10px;
}

.more-hub-close {
  background: rgba(255, 255, 255, 0.08);
  border: none;
  color: #94a3b8;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.more-hub-close:active {
  transform: scale(0.9);
  background: rgba(255, 255, 255, 0.15);
}

.more-hub-body {
  padding: 16px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  overscroll-behavior: contain;
}

.more-hub-section-title {
  font-family: var(--bcl-font-display);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--bcl-neon-cyan);
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.more-hub-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.more-hub-card {
  background: rgba(18, 34, 60, 0.5);
  border: 1px solid var(--bcl-border-subtle);
  border-radius: var(--bcl-radius-md);
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.more-hub-card:active {
  transform: scale(0.95);
  background: rgba(0, 242, 254, 0.12);
  border-color: var(--bcl-border-glow);
}

.more-hub-card.active {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.15), rgba(79, 172, 254, 0.08));
  border-color: var(--bcl-neon-cyan);
}

.more-hub-icon {
  font-size: 1.5rem;
}

.more-hub-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: #e2e8f0;
  line-height: 1.2;
}

@keyframes bcl-slide-up {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes bcl-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
