/**
 * app.css
 * Arquivo principal de estilos do Mimuss
 *
 * IMPORTANTE: Este arquivo apenas importa os módulos.
 * NÃO adicione estilos aqui - use os arquivos apropriados:
 *
 * - Variáveis/Tokens → css/base/_variables.css
 * - Utilitários      → css/base/_utilities.css
 * - Animações        → css/base/_animations.css
 * - Botões           → css/components/_buttons.css
 * - Forms            → css/components/_forms.css
 * - Cards            → css/components/_cards.css
 * - Skeletons        → css/components/_skeleton.css
 *
 * Documentação: /DESIGN_SYSTEM.md
 */

/* ═══════════════════════════════════════════════════════════════════════════
   GLOBAL STYLES
   Módulos (variáveis, reset, animações, utilitários, componentes, layouts)
   são carregados via <link> tags no App.razor para render-blocking correto.
   Este arquivo contém apenas estilos globais (body, tipografia, scrollbar, etc.)
   ═══════════════════════════════════════════════════════════════════════════ */

/* HTML & Body base */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    color: var(--color-text-primary);
    background-color: var(--color-bg-page);
    min-height: 100vh;
    overflow-x: hidden;
}

/* Typography base */
h1, h2, h3, h4, h5, h6 {
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }

p {
    line-height: var(--leading-relaxed);
}

a {
    color: inherit;
    text-decoration: none;
    transition: var(--transition-fast);
}

/* Container */
.container {
    width: 100%;
    max-width: var(--container-2xl);
    margin: 0 auto;
    padding: 0 var(--space-8);
}

@media (max-width: 767px) {
    .container {
        padding: 0 var(--space-4);
    }
}

/* Section */
.section {
    padding: var(--space-24) 0;
}

@media (max-width: 767px) {
    .section {
        padding: var(--space-16) 0;
    }
}

/* Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg-page);
}

::-webkit-scrollbar-thumb {
    background: var(--color-border);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--color-text-muted);
}

/* Selection */
::selection {
    background: var(--color-primary);
    color: var(--color-text-dark);
}

/* ═══════════════════════════════════════════════════════════════════════════
   BLAZOR SPECIFIC
   ═══════════════════════════════════════════════════════════════════════════ */
#blazor-error-ui {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-4);
    background-color: var(--color-error);
    color: var(--color-text-primary);
    text-align: center;
    z-index: var(--z-tooltip);
}

.blazor-error-boundary {
    background: var(--color-error);
    padding: var(--space-4);
    color: var(--color-text-primary);
}

/* ═══════════════════════════════════════════════════════════════════════════
   RESPONSIVE VISIBILITY
   ═══════════════════════════════════════════════════════════════════════════ */
.desktop-only {
    display: flex;
}

.mobile-only {
    display: none;
}

@media (max-width: 768px) {
    .desktop-only {
        display: none;
    }

    .mobile-only {
        display: flex;
    }
}
