/* ============================================
   ESTILOS TELA SPLASH - FAROESTE BEER PWA
   Animações premium e efeitos visuais
   ============================================ */

/* Container Principal */
.splash-container {
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

/* Fundo com Imagem */
.splash-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url('../assets/images/fundo-inicial-tela-Splash.fw.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  opacity: 0.85;
  z-index: 1;
  animation: backgroundZoom 20s ease-in-out infinite;
}

@keyframes backgroundZoom {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
}

/* Overlay Escuro */
.splash-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(13, 27, 18, 0.4) 0%,
    rgba(13, 27, 18, 0.7) 50%,
    rgba(13, 27, 18, 0.9) 100%
  );
  z-index: 2;
}

/* Partículas Decorativas */
.splash-particles {
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 3;
  pointer-events: none;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--color-secondary);
  border-radius: 50%;
  opacity: 0;
  animation: particleFloat 10s infinite ease-in;
}

@keyframes particleFloat {
  0% {
    opacity: 0;
    transform: translateY(100vh) translateX(0);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-100vh) translateX(100px);
  }
}

/* Conteúdo Principal */
.splash-content {
  position: relative;
  z-index: 4;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: var(--spacing-lg);
  text-align: center;
}

/* Logo */
.splash-logo {
  margin-bottom: var(--spacing-3xl);
  animation: logoSlideIn 1s ease-out;
}

@keyframes logoSlideIn {
  from {
    opacity: 0;
    transform: scale(0.8) translateY(-50px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.splash-logo img {
  max-width: 300px;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 10px 30px rgba(212, 175, 55, 0.4));
  animation: logoGlow 3s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% {
    filter: drop-shadow(0 10px 30px rgba(212, 175, 55, 0.4));
  }
  50% {
    filter: drop-shadow(0 15px 40px rgba(212, 175, 55, 0.8));
  }
}

/* Título */
.splash-title {
  font-family: var(--font-family-secondary);
  font-size: var(--font-size-4xl);
  font-weight: var(--font-weight-bold);
  color: var(--color-secondary);
  margin-bottom: var(--spacing-md);
  text-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  animation: titleFadeIn 1.2s ease-out 0.3s both;
  letter-spacing: 2px;
}

@keyframes titleFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtítulo */
.splash-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-gold);
  margin-bottom: var(--spacing-2xl);
  font-weight: var(--font-weight-medium);
  animation: subtitleFadeIn 1.2s ease-out 0.5s both;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

@keyframes subtitleFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Descrição */
.splash-description {
  font-size: var(--font-size-base);
  color: var(--text-secondary);
  margin-bottom: var(--spacing-3xl);
  max-width: 400px;
  line-height: 1.8;
  animation: descriptionFadeIn 1.2s ease-out 0.7s both;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

@keyframes descriptionFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Botões Container */
.splash-buttons {
  display: flex;
  gap: var(--spacing-xl);
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  animation: buttonsSlideUp 1s ease-out 0.9s both;
}

@keyframes buttonsSlideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Botão Base */
.splash-button {
  position: relative;
  padding: var(--spacing-md) var(--spacing-2xl);
  border-radius: var(--radius-lg);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-semibold);
  cursor: pointer;
  border: none;
  transition: all var(--transition-base);
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  text-transform: uppercase;
  letter-spacing: 1px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.splash-button::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.splash-button:active::before {
  width: 300px;
  height: 300px;
}

/* Botão SIM */
.splash-button-yes {
  background: linear-gradient(135deg, var(--color-green-dark) 0%, var(--color-green-light) 100%);
  color: var(--color-secondary);
  border: 2px solid var(--color-gold);
}

.splash-button-yes:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(212, 175, 55, 0.5);
  background: linear-gradient(135deg, var(--color-green-light) 0%, var(--color-green-dark) 100%);
}

.splash-button-yes:active {
  transform: translateY(-1px);
}

/* Botão NÃO */
.splash-button-no {
  background: linear-gradient(135deg, rgba(25, 46, 31, 0.8) 0%, rgba(45, 90, 61, 0.6) 100%);
  color: var(--color-secondary);
  border: 2px solid var(--color-secondary);
}

.splash-button-no:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(237, 222, 199, 0.4);
  background: linear-gradient(135deg, rgba(45, 90, 61, 0.8) 0%, rgba(25, 46, 31, 0.6) 100%);
  border-color: var(--color-gold);
  color: var(--color-gold);
}

.splash-button-no:active {
  transform: translateY(-1px);
}

/* Imagens dos Botões */
.splash-button img {
  max-width: 100%;
  height: auto;
  position: relative;
  z-index: 1;
}

/* Indicador de Carregamento */
.splash-loader {
  position: absolute;
  bottom: var(--spacing-2xl);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  opacity: 0;
  animation: loaderFadeIn 1.5s ease-out 2s both;
}

@keyframes loaderFadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.loader-dots {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
}

.loader-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-secondary);
  animation: dotBounce 1.4s infinite;
}

.loader-dot:nth-child(1) {
  animation-delay: 0s;
}

.loader-dot:nth-child(2) {
  animation-delay: 0.2s;
}

.loader-dot:nth-child(3) {
  animation-delay: 0.4s;
}

@keyframes dotBounce {
  0%, 80%, 100% {
    opacity: 0.5;
    transform: translateY(0);
  }
  40% {
    opacity: 1;
    transform: translateY(-10px);
  }
}

/* Versão do App */
.splash-version {
  position: absolute;
  bottom: var(--spacing-md);
  right: var(--spacing-md);
  font-size: var(--font-size-xs);
  color: var(--text-light);
  opacity: 0.6;
  z-index: 5;
}

/* Responsividade */
@media (max-width: 768px) {
  .splash-title {
    font-size: var(--font-size-2xl);
  }
  
  .splash-subtitle {
    font-size: var(--font-size-base);
  }
  
  .splash-description {
    font-size: var(--font-size-sm);
    max-width: 300px;
  }
  
  .splash-logo img {
    max-width: 200px;
  }
  
  .splash-buttons {
    gap: var(--spacing-md);
  }
  
  .splash-button {
    min-width: 120px;
    padding: var(--spacing-sm) var(--spacing-lg);
    font-size: var(--font-size-sm);
  }
}

@media (max-width: 480px) {
  .splash-container {
    padding: var(--spacing-md);
  }
  
  .splash-title {
    font-size: var(--font-size-xl);
    margin-bottom: var(--spacing-sm);
  }
  
  .splash-subtitle {
    font-size: var(--font-size-sm);
    margin-bottom: var(--spacing-lg);
  }
  
  .splash-description {
    font-size: var(--font-size-xs);
    margin-bottom: var(--spacing-xl);
    max-width: 250px;
  }
  
  .splash-logo {
    margin-bottom: var(--spacing-xl);
  }
  
  .splash-logo img {
    max-width: 150px;
  }
  
  .splash-buttons {
    flex-direction: column;
    gap: var(--spacing-md);
    width: 100%;
  }
  
  .splash-button {
    width: 100%;
    min-width: unset;
    padding: var(--spacing-md) var(--spacing-lg);
  }
}

/* Transição de Saída */
.splash-container.exit {
  animation: splashExit 0.8s ease-in forwards;
}

@keyframes splashExit {
  to {
    opacity: 0;
    transform: scale(0.95);
  }
}
