/* 
 * LegalOps Offline Page Styles
 * Based on legal-ops-ui design system
 */

/* CSS Variables - Cores do light theme do LegalOps */
:root {
    /* Primary Red - Cor principal */
    --primary-red-50: #FFEAED;
    --primary-red-300: #ffbfc7;
    --primary-red-400: #E52940;
    --primary-red-600: #7e1925;
    
    /* Interface Text */
    --interface-text-100: #EAEEF3;
    --interface-text-200: #C5CED7;
    --interface-text-300: #8A99A8;
    --interface-text-400: #5A646E;
    --interface-text-500: #353A40;
    
    /* Interface Pure */
    --interface-pure-0: #FFF;
    --interface-pure-100: #F2F2F2;
    --interface-pure-200: #CCCCCC;
    --interface-pure-400: #707070;
    --interface-pure-500: #333333;
    --interface-pure-600: #1C2225;
    
    /* Interface Gray */
    --interface-gray-200: #AFBDC5;
    --interface-gray-300: #54666F;
    --interface-gray-400: #3E4B52;
}

/* Global Reset - inspirado em Global.ts do legal-ops-ui */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
}

html {
    scroll-behavior: smooth;
}

body, input, textarea, button {
    font: 500 1rem Montserrat, sans-serif;
    color: var(--interface-text-400);
}

body {
    font-family: 'Montserrat', sans-serif;
    -webkit-font-smoothing: antialiased;
    background: var(--interface-pure-0);
    overflow: hidden;
}

img, picture, video, svg {
    display: block;
    max-width: 100%;
}

button {
    cursor: pointer;
}

/* Container Principal */
.container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100vh;
    width: 100%;
    transition: transform 0.5s;
}

/* Bloco de Erro */
.error {
    width: 400px;
    padding: 40px;
    text-align: start;
}

.logo-legalops {
    width: 20em;
    max-width: 100%;
    margin-bottom: 2rem;
}

.error h1 {
    font-size: 2rem;
    font-weight: 600;
    color: var(--interface-text-400);
    margin-bottom: 1rem;
}

.error p {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--interface-text-400);
    margin-bottom: 1rem;
}

.error p strong {
    color: var(--primary-red-400);
    font-weight: 600;
}

.error a {
    color: var(--primary-red-400);
    text-decoration: underline;
    transition: color 0.2s;
}

.error a:hover {
    color: var(--primary-red-600);
}

/* Animação Lottie */
.lottie-container {
    width: 500px;
    max-width: 100%;
}

#lottie-animation {
    width: 100%;
}

/* Animações */
@keyframes fadeIn {
    0% { opacity: 0; }
    100% { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s ease-in-out;
}

/* Media Queries - Responsividade */
@media (max-width: 1080px) {
    html {
        font-size: 93.75%; /* 15px */
    }
}

@media (max-width: 1000px) {
    .container {
        transform: scale(0.85);
    }
}

@media (max-width: 850px) {
    .container {
        transform: scale(0.75);
    }
}

@media (max-width: 775px) {
    .container {
        flex-wrap: wrap-reverse;
        align-items: flex-start;
        padding: 2rem 1rem;
    }
    
    .error {
        width: 100%;
        text-align: center;
    }
    
    .lottie-container {
        display: none;
    }
}

@media (max-width: 720px) {
    html {
        font-size: 87.5%; /* 14px */
    }
}

@media (max-width: 370px) {
    .container {
        transform: scale(0.6);
    }
}
