/* base.css - Body, Background Effects, Layout Foundations */

/* --- Background & Parallax --- */
body {
    margin: 0;
    background-color: #050505;
    color: var(--text-primary);
    font-family: var(--font-display);
    overflow-x: hidden;
    min-height: 100vh;
}

/* Film Grain Overlay */
body::before {
    content: "";
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    opacity: 0.15;
    pointer-events: none;
    z-index: 0;
}

/* Ambient Orbs (Parallax Targets) */
.ambient-light {
    position: fixed;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.4;
    transition: transform 0.1s linear;
}
.orb-1 {
    width: 500px; height: 500px;
    background: radial-gradient(circle, var(--neon-purple), transparent);
    top: -100px; left: -100px;
}
.orb-2 {
    width: 600px; height: 600px;
    background: radial-gradient(circle, #2d34ae, transparent);
    bottom: -100px; right: -100px;
}
.orb-3 {
    width: 300px; height: 300px;
    background: radial-gradient(circle, var(--neon-blue), transparent);
    top: 40%; left: 30%;
    opacity: 0.2;
}

/* --- Layout --- */
.app-wrapper {
    position: relative;
    z-index: auto;
    padding-bottom: 100px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

/* --- Drag & Drop Overlay --- */
#drag-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 500;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(4px);
}

body.global-dragging #drag-overlay {
    opacity: 1;
    pointer-events: all;
}

body.global-dragging .hud-panel {
    z-index: 501;
    box-shadow: 0 0 50px rgba(0,0,0,0.8);
    border-color: rgba(255,255,255,0.3);
}

body.global-dragging .drop-zone {
    border-color: var(--neon-blue);
    background: rgba(0, 240, 255, 0.1);
    transform: scale(1.02);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}

/* --- Glassmorphic Header --- */
header {
    position: sticky;
    top: 20px;
    margin: 0 20px;
    padding: 15px 30px;
    border-radius: 16px;
    background: rgba(15, 15, 20, 0.7);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    transition: all 0.3s ease;
}

.logo-link {
    text-decoration: none;
    color: inherit;
}

.logo-link:hover {
    opacity: 0.85;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 15px;
}

.logo-icon {
    font-size: 1.8rem;
    background: linear-gradient(135deg, var(--neon-blue), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px rgba(188, 19, 254, 0.5));
}

.logo-text {
    font-weight: 800;
    font-size: 1.5rem;
    letter-spacing: -0.02em;
    color: white;
}

.logo-badge {
    font-family: var(--font-tech);
    font-size: 0.65rem;
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    padding: 2px 8px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

/* --- Footer --- */
footer {
    text-align: center;
    padding: 20px;
    color: var(--text-secondary);
    font-family: var(--font-tech);
    font-size: 0.75rem;
    margin-top: 40px;
    border-top: 1px solid var(--glass-border);
    background: rgba(0, 0, 0, 0.3);
}

/* --- Utility Classes --- */
.hidden { display: none !important; }
.center { text-align: center; }
.mono { font-family: 'Courier New', monospace; }
.editable:focus { background: #ffffcc; outline: none; }
