/*
  COMO USAR:
  1. Este arquivo já está pronto para usar as variáveis de tema (:root) que você
     definiu no seu CSS principal.
  2. A centralização agora é feita diretamente pela classe ".error-container".
     Basta usar o HTML fornecido anteriormente dentro do seu layout.
*/

/* ======================================================= */
/* ===== CONTAINER PRINCIPAL DA PÁGINA DE ERRO ===== */
/* ======================================================= */
.error-container {
    /* --- CORREÇÃO DE CENTRALIZAÇÃO --- */
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center; /* Centraliza horizontalmente */
    justify-content: center; /* Centraliza verticalmente */
    text-align: center;
    min-height: 70vh; /* Define uma altura mínima para permitir a centralização vertical */
    /* --- FIM DA CORREÇÃO --- */

    font-family: 'Inter', sans-serif;
    color: var(--text-color);
    position: relative;
    z-index: 10;
    padding: 20px;
}

/* Opcional: Garanta que o container principal do seu conteúdo
   tenha o fundo correto e `position: relative` para que a
   animação de fundo funcione. */
.main-content { /* ou qualquer que seja o seu container principal */
    position: relative;
    background-color: var(--bg-color);
    transition: background-color 0.3s;
    overflow: hidden; /* Esconde as partes das formas que saem da área */
}


/* ======================================================= */
/* ===== ANIMAÇÃO E ESTILO DO 404 ===== */
/* ======================================================= */
.error-code {
    font-size: clamp(8rem, 25vw, 15rem);
    font-weight: 900;
    color: var(--title-color);
    margin-bottom: 0;
    line-height: 1;
}

.error-code span {
    display: inline-block;
    animation: float 3s ease-in-out infinite;
}
.error-code span:nth-child(2) {
    animation-delay: 0.3s;
}
.error-code span:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

/* ======================================================= */
/* ===== TEXTOS E BOTÃO ===== */
/* ======================================================= */
.error-container h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    color: var(--title-color);
    margin-top: 0;
    margin-bottom: 1rem;
}

.error-container p {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
}

.home-button {
    display: inline-block;
    padding: 14px 28px;
    background-color: var(--accent-color);
    color: ;
    text-decoration: none;
    font-weight: 700;
    font-size: 1rem;
    border-radius: 50px;
    transition: background-color 0.3s, transform 0.2s, box-shadow 0.3s;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.home-button:hover {
    background-color: var(--accent-color-hover);
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* ======================================================= */
/* ===== ANIMAÇÃO DE FUNDO ===== */
/* ======================================================= */
.bg-shapes {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    z-index: 1;
}

.shape {
    position: absolute;
    bottom: -150px;
    background-color: var(--border-color);
    border-radius: 50%;
    opacity: 0.3;
    animation: rise 10s infinite linear;
}

.shape.shape-1 { left: 10%; width: 80px; height: 80px; animation-duration: 15s; animation-delay: 0s; }
.shape.shape-2 { left: 25%; width: 40px; height: 40px; animation-duration: 12s; animation-delay: 2s; }
.shape.shape-3 { left: 50%; width: 100px; height: 100px; animation-duration: 18s; animation-delay: 1s; }
.shape.shape-4 { left: 75%; width: 50px; height: 50px; animation-duration: 10s; animation-delay: 4s; }
.shape.shape-5 { left: 90%; width: 60px; height: 60px; animation-duration: 20s; animation-delay: 3s; }

@keyframes rise {
    to {
        transform: translateY(-120vh) rotate(360deg);
        opacity: 0;
    }
}

