/* ========================================
   ESTILOS BASE - LinearX Trading
   ======================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-background-dark);
    color: var(--color-text-white);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

::selection {
    background-color: rgba(var(--color-primary-rgb), 0.3);
}

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

a:hover {
    color: var(--color-primary);
}

/* Imagens */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Botões */
button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    transition: all var(--transition-fast);
}

button:focus {
    outline: none;
}

/* Inputs */
input, textarea, select {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
    background: none;
    border: none;
}

input:focus, textarea:focus, select:focus {
    outline: none;
}

/* Listas */
ul, ol {
    list-style: none;
}

/* Tabelas */
table {
    border-collapse: collapse;
    width: 100%;
}

/* Utilitários de Scroll */
.hide-scrollbar::-webkit-scrollbar {
    display: none;
}

.hide-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* Containers */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

@media (min-width: 768px) {
    .container {
        padding: 0 2rem;
    }
}

/* Padrões de Background */
.wireframe-pattern {
    background-image: radial-gradient(circle at 1px 1px, #1a1a1a 1px, transparent 0);
    background-size: 24px 24px;
}

.blueprint-grid {
    background-image: radial-gradient(#1a1a1a 1px, transparent 1px);
    background-size: 30px 30px;
}

.diagonal-lines {
    background: repeating-linear-gradient(
        45deg, 
        transparent, 
        transparent 10px, 
        rgba(70, 236, 19, 0.05) 10px, 
        rgba(70, 236, 19, 0.05) 11px
    );
}

/* Animações */
@keyframes pulse-ring {
    0% { 
        transform: scale(0.8); 
        opacity: 0.5; 
    }
    50% { 
        opacity: 1; 
    }
    100% { 
        transform: scale(1.2); 
        opacity: 0; 
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

/* Pulse Indicator */
.pulse-indicator {
    position: relative;
}

.pulse-indicator::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background: inherit;
    border-radius: inherit;
    animation: pulse-ring 2s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

/* CTA Glow Effect */
.cta-glow:hover {
    box-shadow: var(--shadow-primary);
}

/* Visualmente oculto mas acessível */
.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;
}
