/* =============================================================================
   Módulo: css/loading.css
   TELA DE LOADING E MENU PRINCIPAL
   Carregado nativamente no <head> para exibição instantânea (Zero JS Blocking).
   ============================================================================= */

/* Transições Reutilizáveis (Aceleração de GPU) */
.fade-in {
  animation: fadeIn 0.5s ease-out forwards;
}

.fade-out {
  animation: fadeOut 0.6s ease-out forwards;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

/* ==========================================================================
   TELA DE CARREGAMENTO (LOADING SCREEN)
   ========================================================================== */
#loading-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 99999;
  background: radial-gradient(circle, #0a0a0a 0%, #1a0a2e 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: all;
  user-select: none;
}

.loading-container {
  text-align: center;
  padding: 40px;
  animation: fadeInUp 0.6s ease-out;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.loading-logo {
  font-family: Georgia, 'Times New Roman', serif;
  font-size: 48px;
  color: #ffd700;
  text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
  animation: pulseGlow 2s infinite alternate;
  font-weight: bold;
  letter-spacing: 2px;
}

.loading-subtitle {
  font-family: sans-serif;
  font-size: 16px;
  color: #c0c0c0;
  margin-top: 8px;
  letter-spacing: 4px;
  text-transform: uppercase;
}

.loading-bar-container {
  width: 400px;
  max-width: 80vw;
  height: 8px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid #ffd700;
  border-radius: 4px;
  margin: 40px auto 20px;
  overflow: hidden;
}

#loading-bar-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #b8860b, #ffd700, #ffec8b);
  transition: width 0.3s ease-out;
  box-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
}

#loading-status {
  font-family: monospace;
  font-size: 14px;
  color: #aaa;
  margin: 10px 0;
  min-height: 20px;
}

#loading-quote {
  font-family: Georgia, 'Times New Roman', serif;
  font-style: italic;
  font-size: 13px;
  color: #888;
  margin-top: 30px;
  opacity: 0.7;
  max-width: 500px;
  transition: opacity 0.5s ease-in-out;
  line-height: 1.4;
}

@keyframes fadeInUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes pulseGlow { from { text-shadow: 0 0 10px rgba(255, 215, 0, 0.3); } to { text-shadow: 0 0 30px rgba(255, 215, 0, 0.7); } }

/* ==========================================================================
   MENU PRINCIPAL (MAIN MENU)
   ========================================================================== */
#main-menu-screen {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: radial-gradient(ellipse at center, #1a1020 0%, #0a0a0a 70%);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 9000;
}

#main-menu-screen .menu-btn {
  background: transparent; border: 1px solid #ffd700; color: #ffd700;
  padding: 14px 40px; margin: 8px; font-size: 16px; font-weight: bold;
  cursor: pointer; transition: all 0.3s; width: 250px; text-align: center;
}

#main-menu-screen .menu-btn:hover { background: rgba(255, 215, 0, 0.15); box-shadow: 0 0 20px rgba(255, 215, 0, 0.3); }