/* Loader CSS apenas com animação CSS */
.loader-car-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(255,255,255,0.95);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 0 1rem;
}

.loader-car {
  font-size: 80px;
  position: absolute;
  left: -100px;
  animation: car-drive 2s linear infinite;
}

.loader-text {
  font-size: 4rem;
  font-weight: bold;
  color: #e74c3c;
  letter-spacing: 0.2em;
  animation: text-loading 2s infinite linear;
  text-align: center;
}

.loader-carregando {
  font-size: 1.5rem;
  color: #333;
  font-weight: 500;
  text-align: center;
}

.loader-carregando::after {
  content: '...';
  display: inline-block;
  animation: pulsing-dots 1.2s infinite steps(1);
}

@keyframes car-drive {
  0% { left: -100px; }
  100% { left: calc(100vw - 100px); }
}

@keyframes text-loading {
  0% { opacity: 0.2; transform: scale(0.95); }
  50% { opacity: 1; transform: scale(1.05); }
  100% { opacity: 0.2; transform: scale(0.95); }
}

@keyframes pulsing-dots {
  0%   { opacity: 0.2; }
  20%  { opacity: 1; }
  40%  { opacity: 0.2; }
  60%  { opacity: 1; }
  80%  { opacity: 0.2; }
  100% { opacity: 1; }
}

@media (max-width: 600px) {
  .loader-text {
    font-size: 2rem;
  }
  .loader-carregando {
    font-size: 1rem;
  }
  .loader-car-container {
    padding: 0 0.5rem;
  }
}
