/**
 * Estilos - Página de Manutenção
 * Design moderno, clean e profissional
 * Padrão empresas de tecnologia
 */

/* ===== Variáveis CSS ===== */
:root {
  --color-bg-dark: #0f1419;
  --color-bg-mid: #1a2332;
  --color-bg-card: rgba(26, 35, 50, 0.85);
  --color-accent: #3b82f6;
  --color-accent-light: #60a5fa;
  --color-accent-glow: rgba(59, 130, 246, 0.3);
  --color-text: #f1f5f9;
  --color-text-muted: #94a3b8;
  --color-border: rgba(148, 163, 184, 0.15);
  --font-display: 'Outfit', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --shadow-card: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  --radius-card: 16px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Reset & Base ===== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  background: linear-gradient(135deg, var(--color-bg-dark) 0%, var(--color-bg-mid) 50%, #0f172a 100%);
  color: var(--color-text);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-x: hidden;
  position: relative;
}

/* ===== Fundo com grid tecnológico ===== */
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(59, 130, 246, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(59, 130, 246, 0.03) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Efeito de brilho sutil no canto */
.bg-grid::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(
    ellipse at center,
    rgba(59, 130, 246, 0.08) 0%,
    transparent 70%
  );
  pointer-events: none;
}

/* ===== Container principal ===== */
.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 560px;
  padding: 2rem 1.5rem;
}

/* ===== Card central ===== */
.card {
  background: var(--color-bg-card);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  padding: 3rem 2.5rem;
  box-shadow: var(--shadow-card);
  text-align: center;
  animation: cardFadeIn 0.6s ease-out;
}

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

/* ===== Ícone de engrenagem ===== */
.icon-wrapper {
  margin-bottom: 1.75rem;
}

.gear-icon {
  width: 56px;
  height: 56px;
  color: var(--color-accent);
  animation: gearSpin 8s linear infinite;
}

@keyframes gearSpin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

/* ===== Tipografia ===== */
.title {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 1rem;
  color: var(--color-text);
}

.message {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--color-text-muted);
  margin-bottom: 2rem;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* ===== Loader (Spinner) ===== */
.loader-wrapper {
  display: flex;
  justify-content: center;
  margin-bottom: 2rem;
}

.loader {
  width: 44px;
  height: 44px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: spinner 0.9s linear infinite;
}

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

/* ===== Mensagem secundária ===== */
.submessage {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  opacity: 0.85;
}

/* ===== Rodapé ===== */
.footer {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--color-border);
}

.footer p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  opacity: 0.7;
}

/* ===== Responsividade ===== */
@media (max-width: 480px) {
  .container {
    padding: 1.25rem 1rem;
  }

  .card {
    padding: 2rem 1.5rem;
  }

  .title {
    font-size: 1.5rem;
  }

  .message {
    font-size: 1rem;
  }

  .gear-icon {
    width: 48px;
    height: 48px;
  }
}
