/**
 * Maze Systems - Global CSS Variables
 * Shared across all pages for consistent theming
 */

:root {
    /* Primary Colors - Orange/Bronze Theme */
    --primary: #FF8A3D;
    --primary-rgb: 255, 138, 61;
    --primary-dim: rgba(255, 138, 61, 0.15);
    --secondary: #E7A95F;
    --accent: #FF6B6B;
    --accent-rgb: 255, 107, 107;
    
    /* Metallic Tones */
    --gold: #DEB992;
    --copper: #E7A95F;
    --bronze-light: #DEB992;
    --bronze-dark: #E7A95F;
    
    /* Backgrounds */
    --bg-dark: #050504;
    --bg-primary: #050504;
    --bg-secondary: #0c0a08;
    --bg-tertiary: #14110d;
    --bg-card: #0c0a08;
    --bg-card-hover: #14110d;
    --bg-card-alpha: rgba(255, 138, 61, 0.06);
    
    /* Text */
    --text: #fff8f0;
    --text-primary: #fff8f0;
    --text-secondary: #9a8a7a;
    --text-dim: #9a8a7a;
    --text-muted: #6c6c7c;
    
    /* Status Colors */
    --accent-success: #00e676;
    --accent-warning: #ff9f43;
    --accent-danger: #ff4757;
    
    /* Borders */
    --border-color: rgba(255, 138, 61, 0.18);
    --border-stroke: rgba(255, 138, 61, 0.25);
    --border-light: rgba(255, 138, 61, 0.18);
    --border-medium: rgba(255, 138, 61, 0.25);
    
    /* Gradients */
    --gradient-primary: linear-gradient(135deg, #FF8A3D 0%, #E7A95F 50%, #FF6B6B 100%);
    --gradient-accent: linear-gradient(135deg, #FF6B6B 0%, #FF8A3D 50%, #DEB992 100%);
    --gradient-gold: linear-gradient(135deg, #DEB992 0%, #E7A95F 50%, #FF8A3D 100%);
    --gradient-bg: radial-gradient(circle at 100% 100%, #0c0a08, #050504);
    
    /* Glows & Shadows */
    --glow-primary: 0 0 40px rgba(255, 138, 61, 0.5);
    --glow-accent: 0 0 40px rgba(255, 107, 107, 0.5);
    --shadow-card: 0 8px 32px rgba(0,0,0,0.3);
    --shadow-hover: 0 12px 40px rgba(255, 138, 61, 0.15);
    --shadow-glow: 0 0 20px rgba(255, 138, 61, 0.3);
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0,0,0,0.3);
    
    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 50px;
    
    /* Spacing */
    --spacing-xs: 0.25rem;
    --spacing-sm: 0.5rem;
    --spacing-md: 1rem;
    --spacing-lg: 1.5rem;
    --spacing-xl: 2rem;
    
    /* Transitions */
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Background Effects - can be added to any page */
.bg-container {
    position: fixed;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.grid-perspective {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 200%;
    height: 100%;
    transform: translateX(-50%) perspective(500px) rotateX(60deg);
    transform-origin: center bottom;
    background-image: 
        linear-gradient(var(--primary-dim) 2px, transparent 2px),
        linear-gradient(90deg, var(--primary-dim) 2px, transparent 2px);
    background-size: 60px 60px;
    animation: gridScroll 20s linear infinite;
    opacity: 0.3;
}

@keyframes gridScroll {
    0% { background-position: 0 0; }
    100% { background-position: 0 60px; }
}

.floating-orbs {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    animation: orbFloat 25s ease-in-out infinite;
    opacity: 0.25;
}

.orb-1 {
    width: 700px;
    height: 700px;
    background: radial-gradient(circle, #FF8A3D 0%, #E7A95F 100%);
    top: -300px;
    left: -300px;
}

.orb-2 {
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, #FF6B6B 0%, #E7A95F 100%);
    bottom: -200px;
    right: -200px;
    animation-delay: -8s;
}

.orb-3 {
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, #DEB992 0%, #FF8A3D 100%);
    top: 40%;
    left: 30%;
    animation-delay: -15s;
}

@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    25% { transform: translate(60px, -60px) scale(1.1); }
    50% { transform: translate(-40px, 40px) scale(0.9); }
    75% { transform: translate(50px, 50px) scale(1.05); }
}

/* Side Glows */
.side-glow {
    position: fixed;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(150px);
    pointer-events: none;
    z-index: 1;
    will-change: transform, opacity;
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}

.side-glow-left {
    left: -200px;
    transform: translateX(0);
}

.side-glow-right {
    right: -200px;
    transform: translateX(0);
}

.glow-1 {
    top: 10%;
    background: rgba(255, 138, 61, 0.3);
    animation: glowPulse 8s ease-in-out infinite;
}

.glow-2 {
    top: 60%;
    background: rgba(255, 107, 107, 0.2);
    animation: glowPulse 8s ease-in-out infinite 2s;
}

.glow-3 {
    top: 20%;
    background: rgba(231, 169, 95, 0.25);
    animation: glowPulse 8s ease-in-out infinite 4s;
}

.glow-4 {
    top: 70%;
    background: rgba(222, 185, 146, 0.3);
    animation: glowPulse 8s ease-in-out infinite 6s;
}

@keyframes glowPulse {
    0%, 100% { opacity: 0.3; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

/* Noise Overlay */
.noise {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9998;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
    transform: translateZ(0);
    -webkit-transform: translateZ(0);
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
}
