/* 
   UCA V21 GLOBAL DESIGN SYSTEM 
   Unified CSS Variables and Essential Layout Classes
*/

:root {
    /* Core Colors */
    --bg-dark: #000000;
    --bg-panel: #0a0a0a;
    --primary: #00ff9f; /* Neon Green */
    --secondary: #00e5ff; /* Cyan */
    --accent: #ff003c; /* Neon Red */
    --warning: #fbbf24; /* Amber */
    
    /* Text Colors */
    --text-main: #e2e8f0;
    --text-muted: #64748b;
    --text-dim: #475569;
    
    /* Effects */
    --glow-primary: rgba(0, 255, 159, 0.4);
    --glow-secondary: rgba(0, 229, 255, 0.4);
    --glass-bg: rgba(15, 23, 42, 0.8);
    --border-dim: rgba(255, 255, 255, 0.12);
    
    /* Typography */
    --font-head: 'VT323', monospace;
    --font-mono: 'Share Tech Mono', monospace;
    --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
}

/* Global Reset & Base Styles */
* { box-sizing: border-box; transition: background 0.3s, border 0.3s, box-shadow 0.3s; }
body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-sans);
    margin: 0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Premium Background */
.uca-noise-bg {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background-image: radial-gradient(circle at top, rgba(0, 255, 159, 0.05), transparent);
    z-index: -1; pointer-events: none;
}

/* Global Form Inputs */
input[type="text"], input[type="password"], input[type="email"], textarea, select {
    width: 100%;
    padding: 12px 15px;
    background: #050505;
    border: 1px solid var(--border-dim);
    color: #fff;
    font-family: var(--font-mono);
    border-radius: 4px;
    outline: none;
}
input:focus, textarea:focus {
    border-color: var(--primary);
    box-shadow: 0 0 10px var(--glow-primary);
}

/* Shared Components */
.cyber-card {
    background: var(--bg-panel);
    border: 1px solid var(--border-dim);
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    margin-bottom: 20px;
}

.cyber-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px 24px;
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
    cursor: pointer;
    text-decoration: none;
    font-family: var(--font-mono);
    font-weight: bold;
    font-size: 0.95rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cyber-btn:hover {
    background: var(--primary);
    color: #000;
    box-shadow: 0 0 15px var(--glow-primary);
}

.uca-badge {
    padding: 4px 10px;
    font-size: 0.7rem;
    font-weight: bold;
    border-radius: 4px;
    text-transform: uppercase;
    font-family: var(--font-mono);
    border: 1px solid;
}

.uca-badge-primary { border-color: var(--primary); color: var(--primary); background: rgba(0,255,159,0.1); }
.uca-badge-danger { border-color: var(--accent); color: var(--accent); background: rgba(255,0,60,0.1); }

/* Typography Helpers */
.mono { font-family: var(--font-mono); }
.vt { font-family: var(--font-head); letter-spacing: 1px; }
.text-primary { color: var(--primary); }
.text-muted { color: var(--text-muted); }

/* Responsive Grid */
.uca-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* Mobile Slider & PC Grid Hybrid */
.uca-slider-mobile {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
}

/* Section Spacing */
.section-padding { padding: 80px 0; }
.container { width: 92%; max-width: 1400px; margin: 0 auto; }

/* Mobile Utilities */
@media (max-width: 768px) {
    .section-padding { padding: 40px 0; }
    .uca-hidden-mobile { display: none !important; }
    .uca-full-mobile { width: 100% !important; }
    h1 { font-size: 2.2rem !important; }
    h2 { font-size: 1.8rem !important; }
    .cyber-card { padding: 15px; }
    .cyber-btn { width: 100%; }

    /* Turn grid into horizontal scroll slider on mobile */
    .uca-slider-mobile {
        display: flex !important;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: 15px;
        padding-bottom: 15px;
        /* Hide scrollbar for cleaner look */
        scrollbar-width: none; 
        -ms-overflow-style: none;
    }
    .uca-slider-mobile::-webkit-scrollbar {
        display: none;
    }
    .uca-slider-mobile > * {
        flex: 0 0 85%;
        scroll-snap-align: center;
    }
}
