/* ==========================================================================
   ODDATAVIZ - ESTILOS GLOBAIS
   ========================================================================== */

/* Reset e Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-weight: 400;
    line-height: 1.6;
    color: #FAF9FA;
    background-color: #373737;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ==========================================================================
   TIPOGRAFIA
   ========================================================================== */

/* Fonte primária: Inter (substitui Switzer) */
.font-primary {
    font-family: 'Inter', sans-serif;
}

/* Fonte secundária: Newsreader Italic */
.font-secondary {
    font-family: 'Newsreader', serif;
    font-style: italic;
}

/* Hierarquia de títulos */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Newsreader', serif;
    font-style: italic;
    font-weight: 600;
    line-height: 1.2;
    color: #FAF9FA;
    margin-bottom: 0.5em;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: 1.25rem;
}

h5 {
    font-size: 1.125rem;
}

h6 {
    font-size: 1rem;
}

/* Parágrafos e texto corpo */
p {
    margin-bottom: 1rem;
    font-family: 'Inter', sans-serif;
}

/* Links */
a {
    color: #6CDADE;
    text-decoration: none;
    transition: all 0.3s ease;
}

a:hover {
    color: #5BC7CC;
    text-decoration: underline;
}

a:focus {
    outline: 2px solid #6CDADE;
    outline-offset: 2px;
}

/* ==========================================================================
   CORES E VARIÁVEIS
   ========================================================================== */

:root {
    /* Cores primárias */
    --color-background: #373737;
    --color-text: #FAF9FA;
    --color-accent: #6CDADE;
    
    /* Paleta de visualizações */
    --color-viz-1: #6F02FD;
    --color-viz-2: #2C0165;
    --color-viz-3: #6CDADE;
    --color-viz-4: #3570DF;
    --color-viz-5: #EDFF19;
    --color-viz-6: #FFA4E8;
    
    /* Cores de estado */
    --color-hover: #5BC7CC;
    --color-focus: #6CDADE;
    --color-disabled: #666666;
    
    /* Espaçamentos */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-xxl: 4rem;
    
    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;
    
    /* Sombras */
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 8px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.2);
    
    /* Transições */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* ==========================================================================
   LAYOUT E CONTAINERS
   ========================================================================== */

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-sm);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-md);
    }
}

@media (min-width: 1024px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

/* ==========================================================================
   COMPONENTES GLOBAIS
   ========================================================================== */

/* Botões */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xs) var(--spacing-md);
    font-family: 'Inter', sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
    text-decoration: none;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    min-height: 2.5rem;
    gap: var(--spacing-xs);
}

.btn:focus {
    outline: 2px solid var(--color-focus);
    outline-offset: 2px;
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Botão primário */
.btn-primary {
    background-color: var(--color-accent);
    color: var(--color-background);
}

.btn-primary:hover:not(:disabled) {
    background-color: var(--color-hover);
    color: var(--color-background);
    text-decoration: none;
}

/* Botão secundário */
.btn-secondary {
    background-color: transparent;
    color: var(--color-text);
    border: 1px solid var(--color-text);
}

.btn-secondary:hover:not(:disabled) {
    background-color: var(--color-text);
    color: var(--color-background);
    text-decoration: none;
}

/* Botão accent */
.btn-accent {
    background-color: transparent;
    color: var(--color-accent);
    border: 1px solid var(--color-accent);
}

.btn-accent:hover:not(:disabled) {
    background-color: var(--color-accent);
    color: var(--color-background);
    text-decoration: none;
}

/* ==========================================================================
   HEADER GLOBAL
   ========================================================================== */

.header {
    background-color: var(--color-background);
    border-bottom: 1px solid rgba(250, 249, 250, 0.1);
    padding: var(--spacing-md) 0;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
}

.brand-title {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}

.brand-tagline {
    font-size: 0.875rem;
    color: var(--color-accent);
    margin-bottom: 0;
    font-family: 'Inter', sans-serif;
}

.nav {
    display: flex;
    gap: var(--spacing-md);
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--color-text);
    padding: var(--spacing-xs) 0;
}

.nav-link:hover {
    color: var(--color-accent);
}

/* ==========================================================================
   FOOTER GLOBAL
   ========================================================================== */

.footer {
    background-color: rgba(0, 0, 0, 0.2);
    padding: var(--spacing-lg) 0;
    margin-top: var(--spacing-xxl);
    border-top: 1px solid rgba(250, 249, 250, 0.1);
}

.footer-text {
    text-align: center;
    font-size: 0.875rem;
    color: rgba(250, 249, 250, 0.7);
    margin-bottom: 0;
}

/* ==========================================================================
   UTILITÁRIOS
   ========================================================================== */

/* Espaçamentos */
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

/* Texto */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.text-accent { color: var(--color-accent); }
.text-muted { color: rgba(250, 249, 250, 0.7); }

/* Display */
.hidden { display: none; }
.visible { display: block; }

/* Acessibilidade */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ==========================================================================
   RESPONSIVE UTILITIES
   ========================================================================== */

@media (max-width: 767px) {
    .hide-mobile { display: none; }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    h3 { font-size: 1.25rem; }
    
    .header-content {
        flex-direction: column;
        text-align: center;
    }
}

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

/* ==========================================================================
   ESTADOS DE LOADING E ERRO
   ========================================================================== */

.loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
}

.loading::after {
    content: '';
    width: 2rem;
    height: 2rem;
    border: 2px solid rgba(250, 249, 250, 0.3);
    border-top-color: var(--color-accent);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.error {
    background-color: rgba(255, 0, 0, 0.1);
    border: 1px solid rgba(255, 0, 0, 0.3);
    color: #ff6b6b;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    margin: var(--spacing-sm) 0;
}

.success {
    background-color: rgba(0, 255, 0, 0.1);
    border: 1px solid rgba(0, 255, 0, 0.3);
    color: #51cf66;
    padding: var(--spacing-sm);
    border-radius: var(--radius-md);
    margin: var(--spacing-sm) 0;
}
