/* ============================================
   QUANTUM PORTAL - BASE STYLES
   Shared across all quantum property pages
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --quantum-green: #00ff41;
    --quantum-cyan: #00d9ff;
    --quantum-magenta: #ff006e;
    --quantum-yellow: #ffbe0b;
    --void: #0a0e27;
    --noise-opacity: 0.03;
}

body {
    background: var(--void);
    color: var(--quantum-green);
    font-family: 'JetBrains Mono', monospace;
    overflow-x: hidden;
    cursor: crosshair;
    position: relative;
}

/* Scanline effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: repeating-linear-gradient(
        0deg,
        rgba(0, 0, 0, 0.15),
        rgba(0, 0, 0, 0.15) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    z-index: 9999;
    animation: scanline 8s linear infinite;
}

@keyframes scanline {
    0% { transform: translateY(0); }
    100% { transform: translateY(100px); }
}

/* Background noise/static */
#noise-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: var(--noise-opacity);
    pointer-events: none;
    z-index: 1;
}

/* Spacetime grid */
#spacetime-grid {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 2;
    opacity: 0.4;
}

/* Particle background */
#particle-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 3;
}

.container {
    position: relative;
    z-index: 10;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Shared button styles */
.quantum-button {
    background: rgba(0, 255, 65, 0.1);
    border: 2px solid var(--quantum-green);
    color: var(--quantum-green);
    padding: 12px 24px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin: 5px;
    text-transform: uppercase;
}

.quantum-button:hover {
    background: var(--quantum-green);
    color: var(--void);
    box-shadow: 0 0 20px var(--quantum-green);
    transform: translateY(-2px);
}

.quantum-button:active {
    transform: translateY(0);
}

/* Glitch effect (used on homepage) */
.glitch {
    position: relative;
    display: inline-block;
}

.glitch::before,
.glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.8;
}

.glitch::before {
    animation: glitch-1 0.3s infinite;
    color: var(--quantum-cyan);
    z-index: -1;
}

.glitch::after {
    animation: glitch-2 0.3s infinite;
    color: var(--quantum-magenta);
    z-index: -2;
}

@keyframes glitch-1 {
    0%, 100% { transform: translate(0); }
    33% { transform: translate(-2px, 2px); }
    66% { transform: translate(2px, -2px); }
}

@keyframes glitch-2 {
    0%, 100% { transform: translate(0); }
    33% { transform: translate(2px, -2px); }
    66% { transform: translate(-2px, 2px); }
}

/* Footer */
footer {
    margin-top: 100px;
    padding: 40px 20px;
    text-align: center;
    border-top: 2px solid var(--quantum-green);
    opacity: 0.6;
    font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 768px) {
    .container {
        padding: 20px 15px;
    }
}