/**
 * Quadro Design System (v3.2) - Enterprise Grade
 * Tokens de design baseados na estética ONYX e AXIS
 */

:root {
    /* Colors - Design Tokens (Dark Theme) */
    --q-dark-base: #0D1117;
    --q-elevation: #161B22;
    --q-border: #30363D;
    --q-text-high: #E6EDF3;
    --q-text-muted: #8B949E;
    --q-primary: #3B82F6;
    --q-primary-hover: #2563EB;
    --q-success: #22C55E;
    --q-error: #EF4444;
    --q-warning: #F59E0B;
    --q-acid: #ccff00;

    /* Spacing System */
    --space-1: 8px;
    --space-2: 16px;
    --space-3: 24px;
    --space-4: 32px;

    /* Border Radius */
    --q-radius: 12px;

    /* Motion & Transitions */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-default: 300ms var(--ease-out-expo);
}

/* ============================================
   BASE STYLES
   ============================================ */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--q-dark-base);
    color: var(--q-text-high);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* ============================================
   BACKGROUND PATTERNS
   ============================================ */

.bg-dots {
    background-image: radial-gradient(var(--q-border) 1px, transparent 1px);
    background-size: 20px 20px;
}

.bg-grid-main {
    background-size: 40px 40px;
    background-image: linear-gradient(to right, rgba(48, 54, 61, 0.2) 1px, transparent 1px),
                      linear-gradient(to bottom, rgba(48, 54, 61, 0.2) 1px, transparent 1px);
}

/* ============================================
   COMPONENTS: ONYX FRAME
   ============================================ */

.onyx-frame {
    position: relative;
    border: 1px solid var(--q-border);
}

.onyx-frame::before {
    content: '';
    position: absolute;
    top: -1px; left: -1px; width: 8px; height: 8px;
    border-top: 2px solid var(--q-primary); border-left: 2px solid var(--q-primary);
}

.onyx-frame::after {
    content: '';
    position: absolute;
    bottom: -1px; right: -1px; width: 8px; height: 8px;
    border-bottom: 2px solid var(--q-primary); border-right: 2px solid var(--q-primary);
}

/* ============================================
   COMPONENTS: FLASHLIGHT CARD
   ============================================ */

.flashlight-card {
    position: relative;
    background: var(--q-elevation);
    border: 1px solid var(--q-border);
    border-radius: var(--q-radius);
    overflow: hidden;
}

.flashlight-card::before {
    content: "";
    position: absolute;
    inset: 0px;
    background: radial-gradient(400px circle at var(--mouse-x, 0) var(--mouse-y, 0),
            rgba(59, 130, 246, 0.1),
            transparent 40%);
    opacity: 0;
    transition: opacity 0.5s;
    pointer-events: none;
}

.flashlight-card:hover::before { opacity: 1; }

/* ============================================
   GLASS NAVIGATION
   ============================================ */

.glass-nav {
    background: rgba(13, 17, 23, 0.8);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--q-border);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* Glass Frosted Effect (Shower Box / Box de Banheiro) */
.glass-frosted {
    background: rgba(13, 17, 23, 0.95) !important;
    backdrop-filter: blur(60px) saturate(180%) !important;
    -webkit-backdrop-filter: blur(60px) saturate(180%) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

/* Mobile Menu Active State */
#mobile-menu.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

body.menu-open {
    overflow: hidden;
}

/* ============================================
   ANIMATIONS & SYSTEMS
   ============================================ */

.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s var(--ease-out-expo), transform 0.8s var(--ease-out-expo);
}

.reveal.active {
    opacity: 1;
    transform: translateY(0);
}

.chart-bar {
    transform-origin: bottom;
    animation: grow 1.5s var(--ease-out-expo) forwards;
}

@keyframes grow { 
    from { transform: scaleY(0); } 
    to { transform: scaleY(1); } 
}

/* ============================================
   UTILITY CLASSES
   ============================================ */

.container-base {
    max-width: 1440px;
    margin: 0 auto;
    padding: var(--space-4);
}

.text-muted {
    color: var(--q-text-muted);
}

.btn-q {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: var(--q-radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition-default);
    border: none;
    gap: 8px;
    text-decoration: none;
    background-color: var(--q-primary);
    color: white;
}

.btn-q:hover {
    background-color: var(--q-primary-hover);
    transform: translateY(-1px);
}

/* ============================================
   PRO BADGE
   ============================================ */
.badge-pro {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    background: linear-gradient(135deg, var(--q-primary), #8B5CF6);
    color: white;
    font-size: 8px;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border-radius: 4px;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    user-select: none;
}

.badge-pro iconify-icon {
    font-size: 10px;
}
