/* 
  ==========================================================================
  STYLE.CSS - Standalone Brawl Stars Design para "QG do Papai"
  ==========================================================================
  Contém toda a estrutura global, fontes, layout, estilo do chat, botões
  e as bordas com relevo 3D estilo Brawl Stars.
*/

@import url('https://fonts.googleapis.com/css2?family=Lilita+One&family=Outfit:wght@400;600;800&display=swap');
@import "papai.css";

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Outfit', sans-serif;
  color: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Fundo padrão com listras inclinadas dinâmicas do Brawl Stars */
.brawl-stripe-bg {
  background-color: #1a1528;
  background-image: repeating-linear-gradient(
    45deg,
    rgba(255, 255, 255, 0.03) 0px,
    rgba(255, 255, 255, 0.03) 20px,
    rgba(0, 0, 0, 0.08) 20px,
    rgba(0, 0, 0, 0.08) 40px
  );
  background-size: 100px 100px;
}

/* Fontes */
.font-brawl {
  font-family: 'Lilita One', cursive, sans-serif;
  letter-spacing: 0.03em;
}

/* Efeito de contorno preto grosso icônico (Brawl Stars Stroke) */
.brawl-text-stroke {
  text-shadow: 
    3px 3px 0px #000,
    -1px -1px 0px #000,  
     1px -1px 0px #000,
    -1px  1px 0px #000,
     1px  1px 0px #000,
    -3px  3px 0px #000,
     3px -3px 0px #000,
    -3px -3px 0px #000;
}

.brawl-text-stroke-sm {
  text-shadow: 
    2px 2px 0px #000,
    -1px -1px 0px #000,  
     1px -1px 0px #000,
    -1px  1px 0px #000,
     1px  1px 0px #000;
}

/* Card estilo brawler */
.brawl-card {
  background-color: #1e1e2d;
  border: 4px solid #000000;
  border-bottom: 10px solid #000000;
  border-radius: 20px;
  box-shadow: 0 10px 0px rgba(0, 0, 0, 0.35);
  transition: transform 0.15s ease;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.brawl-card:hover {
  transform: translateY(-4px) scale(1.02);
}

/* BOTÕES BRAWL STYLE COM CLIQUE TÁCTIL E BORDA DUPLA */
.brawl-btn-yellow {
  background: linear-gradient(to bottom, #FFE800, #FF9C00);
  border: 4px solid #000;
  border-bottom: 8px solid #000;
  border-radius: 16px;
  color: #fff;
  font-family: 'Lilita One', sans-serif;
  text-transform: uppercase;
  text-shadow: 2px 2px 0px #C55301, -1px -1px 0px #C55301, 1px -1px 0px #C55301, -1px 1px 0px #C55301, 1px 1px 0px #C55301, 3px 3px 0px #000;
  box-shadow: 0 4px 0px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.1s ease;
}
.brawl-btn-yellow:hover {
  transform: translateY(2px);
  border-bottom-width: 6px;
}
.brawl-btn-yellow:active {
  transform: translateY(4px);
  border-bottom-width: 4px;
}

.brawl-btn-green {
  background: linear-gradient(to bottom, #8AF000, #2EBF00);
  border: 4px solid #000;
  border-bottom: 8px solid #000;
  border-radius: 16px;
  color: #fff;
  font-family: 'Lilita One', sans-serif;
  text-transform: uppercase;
  text-shadow: 2px 2px 0px #136700, -1px -1px 0px #136700, 1px -1px 0px #136700, -1px 1px 0px #136700, 1px 1px 0px #136700, 3px 3px 0px #000;
  box-shadow: 0 4px 0px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.1s ease;
}
.brawl-btn-green:hover {
  transform: translateY(2px);
  border-bottom-width: 6px;
}
.brawl-btn-green:active {
  transform: translateY(4px);
  border-bottom-width: 4px;
}

.brawl-btn-blue {
  background: linear-gradient(to bottom, #00D3FF, #0060C9);
  border: 4px solid #000;
  border-bottom: 8px solid #000;
  border-radius: 16px;
  color: #fff;
  font-family: 'Lilita One', sans-serif;
  text-transform: uppercase;
  text-shadow: 2px 2px 0px #00226E, -1px -1px 0px #00226E, 1px -1px 0px #00226E, -1px 1px 0px #00226E, 1px 1px 0px #00226E, 3px 3px 0px #000;
  box-shadow: 0 4px 0px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.1s ease;
}
.brawl-btn-blue:hover {
  transform: translateY(2px);
  border-bottom-width: 6px;
}
.brawl-btn-blue:active {
  transform: translateY(4px);
  border-bottom-width: 4px;
}

.brawl-btn-red {
  background: linear-gradient(to bottom, #FF4B4B, #B40000);
  border: 4px solid #000;
  border-bottom: 8px solid #000;
  border-radius: 16px;
  color: #fff;
  font-family: 'Lilita One', sans-serif;
  text-transform: uppercase;
  text-shadow: 2px 2px 0px #550000, -1px -1px 0px #550000, 1px -1px 0px #550000, -1px 1px 0px #550000, 1px 1px 0px #550000, 3px 3px 0px #000;
  box-shadow: 0 4px 0px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.1s ease;
}
.brawl-btn-red:hover {
  transform: translateY(2px);
  border-bottom-width: 6px;
}
.brawl-btn-red:active {
  transform: translateY(4px);
  border-bottom-width: 4px;
}

.brawl-btn-purple {
  background: linear-gradient(to bottom, #d946ef, #a21caf);
  border: 4px solid #000;
  border-bottom: 8px solid #000;
  border-radius: 16px;
  color: #fff;
  font-family: 'Lilita One', sans-serif;
  text-transform: uppercase;
  text-shadow: 2px 2px 0px #4a044e, -1px -1px 0px #4a044e, 1px -1px 0px #4a044e, -1px 1px 0px #4a044e, 1px 1px 0px #4a044e, 3px 3px 0px #000;
  box-shadow: 0 4px 0px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.1s ease;
}
.brawl-btn-purple:hover {
  transform: translateY(2px);
  border-bottom-width: 6px;
}
.brawl-btn-purple:active {
  transform: translateY(4px);
  border-bottom-width: 4px;
}

/* Pin Pad do Bloqueio das Crianças */
.brawl-pin-container {
  max-width: 380px;
  width: 100%;
  margin: 40px auto;
}

.brawl-pin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.brawl-pin-btn {
  background: linear-gradient(to bottom, #393e46, #222831);
  border: 3px solid #000;
  border-bottom: 6px solid #000;
  color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.4);
  font-family: 'Lilita One', sans-serif;
  font-size: 1.75rem;
  padding: 12px 0;
  text-align: center;
  cursor: pointer;
  transition: all 0.05s ease;
}
.brawl-pin-btn:active {
  transform: translateY(3px);
  border-bottom-width: 3px;
}

/* Chat e Abas */
.brawl-tab-container {
  display: flex;
  gap: 6px;
}

.brawl-tab {
  padding: 10px 20px;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
  border: 3px solid #000;
  border-bottom: none;
  font-family: 'Lilita One', sans-serif;
  text-transform: uppercase;
  color: #fff;
  background-color: #2b2b3d;
  cursor: pointer;
  transition: all 0.1s ease;
}

.brawl-tab.active-familia {
  background-color: #ffe800;
  color: #000;
}

.brawl-tab.active-miguel {
  background-color: #00d3ff;
  color: #000;
}

.brawl-tab.active-sophia {
  background-color: #ff59d6;
  color: #000;
}

.brawl-chat-box {
  background-color: rgba(0, 0, 0, 0.55);
  border: 4px solid #000;
  border-radius: 16px;
  padding: 16px;
  margin-top: -3px; /* Compensação de abas */
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 380px;
}

.chat-message-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  flex-grow: 1;
  max-height: 280px;
}

.msg-bubble {
  padding: 12px;
  border-radius: 14px;
  border: 2px solid #000000;
  font-size: 0.9rem;
  font-weight: 600;
  max-width: 80%;
  color: #fff;
  box-shadow: 2px 2px 0px #000;
}

.msg-bubble.sent-by-user {
  background-color: #ffe800;
  color: #000;
  align-self: flex-end;
  border-top-right-radius: 0px;
}

.msg-bubble.received {
  background-color: #2d2d3f;
  align-self: flex-start;
  border-top-left-radius: 0px;
}

/* Gaveta flutuante dedicada para emojis/pins Brawl Stars */
.brawl-emoji-drawer {
  background: #2b2b3d;
  border: 4px solid #000;
  border-bottom: 8px solid #000;
  border-radius: 1rem;
  box-shadow: 0 8px 16px rgba(0,0,0,0.4);
  z-index: 50;
}

/* Suporte de Media Query para Celular Deitado (Landscape / Horizontal) */
@media (max-height: 480px) and (orientation: landscape) {
  .landscape-horizontal-flex {
    flex-direction: row !important;
    gap: 1rem !important;
  }
  .landscape-half {
    width: 50% !important;
  }
  .landscape-hide {
    display: none !important;
  }
  .landscape-smaller-text {
    font-size: 0.8rem !important;
  }
}

/* ==========================================================================
   TEMAS ESPECÍFICOS DE CORES (PROPRIEDADES DE COMPOSIÇÃO)
   ========================================================================== */

/* 1. TEMA PAPAI (Dourado, Preto e Grafite) */
.theme-papai {
  background: linear-gradient(135deg, #2b2b2b 0%, #111111 100%);
  border-color: #ffd700;
}

/* 2. TEMA MIGUEL (Azul e Laranja) */
.theme-miguel {
  background: linear-gradient(135deg, #103260 0%, #081226 100%);
  border-color: #00d3ff;
}

/* 3. TEMA SOPHIA (Lilás e Rosa) */
.theme-sophia {
  background: linear-gradient(135deg, #451b5c 0%, #1e052c 100%);
  border-color: #ff59d6;
}

/* Pulse animation */
@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}
.brawl-pulse {
  animation: pulse 2s infinite ease-in-out;
}

/* 
  ==========================================================================
  PREMIUM UPGRADES - COMPONENTES E ACABAMENTOS DO BATTLE CARD
  ==========================================================================
*/

/* Slots Estáticos para Senha Virtual */
.brawl-pin-slots-container {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin: 15px 0;
}

.brawl-pin-slot {
  width: 38px;
  height: 38px;
  background-color: #111;
  border: 3px solid #000;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lilita One', sans-serif;
  font-size: 1.5rem;
  color: #ffeb00;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.8);
  transition: all 0.1s ease;
}

.brawl-pin-slot.filled {
  background: linear-gradient(to bottom, #ffeb00, #ff9900);
  border-color: #fff;
  color: #000;
  transform: scale(1.1);
  box-shadow: 0 0 10px rgba(255, 235, 0, 0.6);
  text-shadow: none;
}

/* Cartão do Brawler (Battle Card Layout) */
.brawl-battle-card {
  position: relative;
  border: 5px solid #000000;
  border-radius: 20px;
  box-shadow: 0 12px 0px rgba(0,0,0,0.6);
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  overflow: hidden;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brawl-battle-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%, rgba(0,0,0,0) 100%);
  pointer-events: none;
  z-index: 1;
}

/* Seletores de Customização */
.brawl-customizer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(75px, 1fr));
  gap: 12px;
}

.brawl-avatar-option {
  border: 4px solid #000000;
  border-radius: 14px;
  cursor: pointer;
  background: #151a24;
  overflow: hidden;
  transition: all 0.1s ease;
  aspect-ratio: 1;
}

.brawl-avatar-option:hover {
  transform: scale(1.08);
}

.brawl-avatar-option.active {
  border-color: #ffeb00 !important;
  box-shadow: 0 0 12px #ffeb00, inset 0 0 8px rgba(255, 235, 0, 0.5);
  transform: scale(1.05);
}

.brawl-bg-option {
  border: 4px solid #000000;
  border-radius: 12px;
  cursor: pointer;
  background-size: cover;
  background-position: center;
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Lilita One', sans-serif;
  color: #fff;
  text-transform: uppercase;
  font-size: 11px;
  text-shadow: 2px 2px 0px #000, -1px -1px 0px #000, 1px -1px 0px #000, -1px 1px 0px #000, 1px 1px 0px #000;
  box-shadow: 2px 2px 0px #000;
  transition: all 0.1s ease;
}

.brawl-bg-option:hover {
  transform: translateY(-2px);
}

.brawl-bg-option.active {
  border-color: #ffeb00 !important;
  box-shadow: 0 0 10px #ffeb00, 3px 3px 0px #000;
}

/* Fallback backgrounds for rank battle cards in case real images might be pending */
.bg-rank-gold {
  background: linear-gradient(135deg, #FFE800, #C55301);
}
.bg-rank-diamond {
  background: linear-gradient(135deg, #00d4ff, #0044cc);
}
.bg-rank-mythic {
  background: linear-gradient(135deg, #e11d48, #4c0519);
}
.bg-rank-masters {
  background: linear-gradient(135deg, #ff007c, #ffeb00, #79003c);
  animation: pulse 1.5s infinite ease-in-out;
}

/* ==========================================================================
   AJUSTES FINOS DE RESPONSIVIDADE - VERSÃO 2.2
   ========================================================================== */

/* Ampliação dinâmica e segura do Logotipo do Lobby */
.lobby-logo-enlarged {
  height: 11vh !important;
  max-height: 96px !important;
  min-height: 52px !important;
  width: auto !important;
  object-fit: contain;
}

/* Forçar respiro sutil de segurança para bordas de tela em iPhones/Androids */
.screen-respiro-container {
  padding-left: clamp(12px, 3vw, 28px) !important;
  padding-right: clamp(12px, 3vw, 28px) !important;
  padding-top: clamp(10px, 2.5vh, 24px) !important;
  padding-bottom: clamp(10px, 2.5vh, 24px) !important;
}

/* Garantia estrita de zero rolagem vertical na página de perfis */
.no-scroll-body {
  height: 100vh !important;
  height: 100dvh !important;
  max-height: 100vh !important;
  max-height: 100dvh !important;
  overflow: hidden !important;
}

