/* ==========================================================
   FOTU - Estilos Customizados (PWA, Admin, Cartaz A4 e Telão)
   ========================================================== */

:root {
  --event-primary: #2563eb;
}

* {
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

/* Efeito Flash de Captura da Câmera ("Tirou, Enviou") */
@keyframes shutterFlash {
  0% {
    opacity: 0.95;
  }
  100% {
    opacity: 0;
  }
}

.animate-shutter {
  animation: shutterFlash 0.35s ease-out forwards;
}

/* Animação Ken Burns Suave para o Telão ao Vivo */
@keyframes kenBurns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.06) translate(-1%, -1%);
  }
  100% {
    transform: scale(1.02) translate(1%, 0.5%);
  }
}

.ken-burns-active {
  animation: kenBurns 14s ease-in-out infinite alternate;
}

/* Entrada de Nova Foto em Tempo Real */
@keyframes popInPhoto {
  0% {
    opacity: 0;
    transform: scale(0.92) translateY(16px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.animate-photo-in {
  animation: popInPhoto 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Scrollbar discreta */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.4);
}
::-webkit-scrollbar-thumb {
  background: rgba(100, 116, 139, 0.5);
  border-radius: 9999px;
}

/* ==========================================================
   MODO IMPRIMIR CARTAZ A4 (@media print)
   ========================================================== */
@media print {
  @page {
    size: A4 portrait;
    margin: 0;
  }

  body * {
    visibility: hidden !important;
  }

  #printPosterContainer,
  #printPosterContainer * {
    visibility: visible !important;
  }

  #printPosterContainer {
    position: fixed !important;
    inset: 0 !important;
    width: 210mm !important;
    height: 297mm !important;
    margin: 0 !important;
    padding: 14mm !important;
    background: #ffffff !important;
    color: #0f172a !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    align-items: center !important;
    z-index: 999999 !important;
    box-shadow: none !important;
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }

  .no-print {
    display: none !important;
  }
}
