/* Broken Moon Studio // Global Styles */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@300;400;500;600;700;800;900&family=Manrope:wght@200;300;400;500;600;700;800&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

:root {
    --primary: #f183ff;
    --secondary: #50e1f9;
    --background: #0c0c1f;
    --surface: #0c0c1f;
    --on-surface: #e5e3ff;
    --surface-container-low: #111127;
    --surface-container-high: #1d1d37;
    --surface-container-highest: #23233f;
}

body {
    background-color: var(--background);
    color: var(--on-surface);
    font-family: 'Manrope', sans-serif;
    overflow-x: hidden;
    background: linear-gradient(to bottom, #0c0c1f, #000000);
}

.font-headline {
    font-family: 'Space Grotesk', sans-serif;
}

/* Lunar Dither Background */
.lunar-dither {
    background-image: url('data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAQAAAAECAYAAACp8Z5+AAAAAXNSR0IArs4c6QAAACFJREFUGFdjZEACJv////8zMDAwMDEwMABZIKpAArA0hAEA65ML9/8+2uUAAAAASUVORK5CYII=');
    background-repeat: repeat;
    background-size: 4px 4px;
    opacity: 0.03;
}

/* Glitch Animations */
@keyframes float {
    0%, 100% { transform: translate(0, 0); opacity: 0.8; }
    50% { transform: translate(4px, -8px); opacity: 0.4; }
}

.glitch-particle { 
    width: 2px; 
    height: 2px; 
    background: var(--secondary);
    box-shadow: 0 0 8px var(--secondary);
    position: absolute;
    animation: float 5s infinite ease-in-out;
    pointer-events: none;
}

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

.scanlines::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 50%,
        rgba(0, 0, 0, 0.1) 51%,
        transparent 51%
    );
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 50;
}

/* Fractured Corner Utility */
.fractured-corner-tr {
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0 100%);
}

.fractured-corner-bl {
    clip-path: polygon(15px 0, 100% 0, 100% 100%, 0 100%, 0 15px);
}

/* Ghost Borders (Lunar Highlight) */
.ghost-border {
    border-top: 2px solid rgba(70, 70, 92, 0.15);
    border-right: 2px solid rgba(70, 70, 92, 0.15);
}

/* Glassmorphism - Broken Moon Style */
.glass-panel {
    background: rgba(35, 35, 63, 0.4);
    backdrop-filter: blur(16px);
    border-top: 1px solid rgba(241, 131, 255, 0.1);
    border-left: 1px solid rgba(241, 131, 255, 0.1);
}

/* Custom Scrollbar (Stealth) */
::-webkit-scrollbar {
    width: 4px;
}

::-webkit-scrollbar-track {
    background: var(--background);
}

::-webkit-scrollbar-thumb {
    background: rgba(241, 131, 255, 0.2);
    border-radius: 0px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

/* Global Transition */
* {
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
}
