/* Reset e configurações básicas */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #0c0c0d;
  color: #eff1f2;
  font-family: Arial, sans-serif;
  overflow: hidden;
}

/* Loader */
#page-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #0c0c0d;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  /* Inicia opaco e depois fade out */
  opacity: 1;
  animation: fadeOutLoader 1s ease forwards;
  animation-delay: 2.5s;
}

.loader-content {
  text-align: center;
}

/* Loader SVG - escala aumentada 50% */
.loader-svg svg {
  width: 300px;
  height: auto;
}

/* Animações para o SVG */
/* Cada elemento com classe .st1 animará seu traçado e, em seguida, o preenchimento */
.loader-svg .st1 {
  stroke: #e86548;
  stroke-width: 2;
  fill: #e86548;
  fill-opacity: 0;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  animation: strokeDraw 0.4s ease forwards, fillIn 0.7s ease forwards;
  animation-delay: calc(var(--i) * 0.18s), calc((var(--i) * 0.18s) + 0.4s);
}

/* Keyframes para traçado */
@keyframes strokeDraw {
  from {
    stroke-dashoffset: 1000;
  }
  to {
    stroke-dashoffset: 0;
  }
}

/* Keyframes para preenchimento */
@keyframes fillIn {
  from {
    fill-opacity: 0;
  }
  to {
    fill-opacity: 1;
  }
}

/* Fade out do loader */
@keyframes fadeOutLoader {
  from {
    opacity: 1;
  }
  to {
    opacity: 0;
  }
}

/* Loader Bars (barras de carregamento) */
/* Reduzida escala das barras em 40% e margem-top ajustada para 20px */
.loader-bars {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-top: 20px;
  transform: scale(0.6);
}

.loader-bars .bar {
  /* Barras 30% mais finas: de 10px para 7px */
  width: 7px;
  height: 30px;
  background-color: #e86548;
  margin: 0 5px;
  animation: barScale 0.8s ease-in-out infinite;
}

.loader-bars .bar:nth-child(1) { animation-delay: 0s; }
.loader-bars .bar:nth-child(2) { animation-delay: 0.1s; }
.loader-bars .bar:nth-child(3) { animation-delay: 0.2s; }
.loader-bars .bar:nth-child(4) { animation-delay: 0.3s; }
.loader-bars .bar:nth-child(5) { animation-delay: 0.4s; }

/* Keyframes para animação das barras */
@keyframes barScale {
  0%, 100% { transform: scaleY(1); }
  50% { transform: scaleY(2); }
}

/* Vídeo de fundo */
.bg-video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Sobreposição (overlay) */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  z-index: 0;
}

/* Container principal */
.container {
  position: relative;
  width: 90%;
  max-width: 800px;
  margin: 100px auto 0;
  z-index: 1;
  overflow: hidden;
}

.container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255,255,255,0.1), transparent 40%);
  opacity: 0;
  transition: opacity 0.3s ease, background-position 0.3s ease;
  mix-blend-mode: screen;
  z-index: 999;
}

.container.reflect-active::after {
  opacity: 1;
}

/* Efeito de borda com gradiente */
.gradient-border {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  padding: 1px;
  background: linear-gradient(90deg, #ec5935, #0c0c0d);
}

.gradient-border::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(
    circle at var(--glowX, 50%) var(--glowY, 50%),
    #ff6a45 0%,
    #ff6a45 30%,
    transparent 80%
  );
  filter: blur(12px);
  opacity: var(--glowOpacity, 0);
  transition: opacity 0.4s ease, background-position 0.4s ease;
}

/* Conteúdo interno */
.content-box {
  position: relative;
  background: #19191e;
  border-radius: 15px;
  padding: 2rem;
  z-index: 3;
  box-shadow: 0 0 10px rgba(0,0,0,0.5);
  text-align: center;
  animation: fadeIn 2s ease-in;
}

.content-box h1 {
  font-size: 2.5rem;
  color: #e86548;
  margin-bottom: 1rem;
}

.content-box p {
  font-size: 1.2rem;
  line-height: 1.6;
  margin-bottom: 1rem;
}

/* Botão Voltar para flamearts */
.btn-voltar {
  display: inline-block;
  margin-top: 1.5rem;
  padding: 0.8rem 1.5rem;
  background-color: #e86548;
  color: #fff;
  text-decoration: none;
  font-size: 1.1rem;
  border-radius: 8px;
  transition: background-color 0.3s ease;
}

.btn-voltar:hover {
  background-color: #d9552b;
}

/* Animação de fade-in para o conteúdo */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .content-box h1 { font-size: 2rem; }
  .content-box p { font-size: 1rem; }
}
