/**
 * 🎨 LOADING SCREEN STYLES
 * Estilos da tela de loading - Fase 1
 */

/* ════════════════════════════════════════════════════════════════ */
/* CONTAINER PRINCIPAL */
/* ════════════════════════════════════════════════════════════════ */

.loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #0f1419 0%, #1a1f2e 100%);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.loading-screen.loading-screen-show {
  opacity: 1;
}

/* ════════════════════════════════════════════════════════════════ */
/* CONTAINER DO CONTEÚDO */
/* ════════════════════════════════════════════════════════════════ */

.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  animation: fadeInUp 0.8s ease-out;
}

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

/* ════════════════════════════════════════════════════════════════ */
/* ÍCONE/LOGO */
/* ════════════════════════════════════════════════════════════════ */

.loading-icon {
  width: 80px;
  height: 80px;
  background: rgba(212, 175, 55, 0.1);
  border: 2px solid rgba(212, 175, 55, 0.3);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  animation: pulse 2s ease-in-out infinite;
}

.loading-icon svg {
  width: 50px;
  height: 50px;
  color: #D4AF37;
}

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

/* ════════════════════════════════════════════════════════════════ */
/* TÍTULO E SUBTÍTULO */
/* ════════════════════════════════════════════════════════════════ */

.loading-title {
  font-size: 32px;
  font-weight: 300;
  color: #f5f5f5;
  margin: 0;
  letter-spacing: 2px;
}

.loading-subtitle {
  font-size: 12px;
  color: #888;
  letter-spacing: 4px;
  margin: 0;
  text-transform: uppercase;
}

/* ════════════════════════════════════════════════════════════════ */
/* SPINNER */
/* ════════════════════════════════════════════════════════════════ */

.loading-spinner {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(212, 175, 55, 0.2);
  border-top: 3px solid #D4AF37;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ════════════════════════════════════════════════════════════════ */
/* MENSAGEM DE CARREGAMENTO */
/* ════════════════════════════════════════════════════════════════ */

.loading-message {
  font-size: 14px;
  color: #aaa;
  margin: 0;
  min-height: 20px;
  animation: blink 1.5s ease-in-out infinite;
}

@keyframes blink {
  0%, 50%, 100% {
    opacity: 1;
  }
  25%, 75% {
    opacity: 0.5;
  }
}

/* ════════════════════════════════════════════════════════════════ */
/* BARRA DE PROGRESSO */
/* ════════════════════════════════════════════════════════════════ */

.loading-bar-container {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: rgba(212, 175, 55, 0.1);
}

.loading-bar {
  height: 100%;
  background: linear-gradient(90deg, #D4AF37 0%, #e6c547 100%);
  width: 0%;
  transition: width 0.3s ease;
  box-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
}

/* ════════════════════════════════════════════════════════════════ */
/* RESPONSIVIDADE */
/* ════════════════════════════════════════════════════════════════ */

@media (max-width: 600px) {
  .loading-title {
    font-size: 24px;
  }

  .loading-icon {
    width: 60px;
    height: 60px;
  }

  .loading-icon svg {
    width: 40px;
    height: 40px;
  }

  .loading-container {
    gap: 16px;
  }
}

/* ════════════════════════════════════════════════════════════════ */
/* TRANSIÇÃO DE SAÍDA */
/* ════════════════════════════════════════════════════════════════ */

.loading-screen-hide {
  animation: fadeOut 0.5s ease-out forwards;
}

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