/* Design System CSS for Mars Concert Game */
:root {
    /* Color Palette - Cosmic & Martian Themes */
    --color-background-dark: #120010;
    --color-primary-accent: #ff00ff;
    --color-secondary-accent: #00ffff;
    --color-mars-red: #ff4500;
    --color-space-black: #000010;
    --color-neon-purple: #8a2be2;
    --color-electric-blue: #00ffff;
    
    /* Typography */
    --font-primary: 'Orbitron', 'Arial', sans-serif;
    --font-secondary: 'Roboto', 'Helvetica', sans-serif;
    
    /* Spacing */
    --space-xs: 0.5rem;
    --space-sm: 1rem;
    --space-md: 1.5rem;
    --space-lg: 2rem;
    
    /* Transitions */
    --transition-quick: 0.2s ease;
    --transition-medium: 0.4s ease;
    
    /* Effects */
    --shadow-elevation-1: 0 4px 6px rgba(0,0,0,0.1);
    --shadow-elevation-2: 0 10px 20px rgba(0,0,0,0.2);
}

/* Global Resets and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-primary);
    background-color: var(--color-background-dark);
    color: white;
    line-height: 1.6;
    overflow: hidden;
}

/* Interactive Button Styles */
.mars-button {
    background: linear-gradient(
      45deg, 
      var(--color-primary-accent), 
      var(--color-secondary-accent)
    );
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-md);
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: var(--transition-quick);
    box-shadow: var(--shadow-elevation-1);
}

.mars-button:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-elevation-2);
}

/* Holographic Overlay */
.holographic-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: radial-gradient(
      circle at center, 
      rgba(0, 255, 255, 0.1), 
      transparent 70%
    );
    z-index: 9999;
}

/* Glitch Text Effect */
@keyframes glitch-skew {
    0% { transform: skew(0deg); }
    50% { transform: skew(-3deg); }
    100% { transform: skew(3deg); }
}

.glitch-text {
    position: relative;
    color: var(--color-primary-accent);
    text-shadow: 2px 2px 4px rgba(255,0,255,0.3);
}

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

.glitch-text::before {
    left: 2px;
    text-shadow: -2px 0 red;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-skew 5s infinite linear alternate-reverse;
}

.glitch-text::after {
    left: -2px;
    text-shadow: -2px 0 blue;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-skew 5s infinite linear alternate-reverse;
}

/* Particle System */
.mars-particle-system {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9998;
}

.mars-particle {
    position: absolute;
    width: 3px;
    height: 3px;
    background-color: var(--color-electric-blue);
    border-radius: 50%;
    opacity: 0.5;
    animation: particle-drift 10s infinite alternate;
}

@keyframes particle-drift {
    0% { transform: translateY(0) scale(1); opacity: 0.5; }
    100% { 
        transform: translateY(100vh) scale(0.5);
        opacity: 0;
    }
}

/* Mars Dome Styles */
.mars-dome {
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid var(--color-electric-blue);
    border-radius: 50%;
    box-shadow: 0 0 30px var(--color-neon-purple);
    transition: all 0.5s ease;
}

/* Scene Transition */
@keyframes scene-transition {
    0% { opacity: 0; transform: scale(1.1); }
    100% { opacity: 1; transform: scale(1); }
}

.scene-section {
    display: none;
    opacity: 0;
    transition: opacity 0.5s, transform 0.5s;
}

.scene-section.active {
    display: block;
    opacity: 1;
    animation: scene-transition 0.7s ease-out;
}

/* UI Container Styles */
.ui-container {
    background: rgba(0, 0, 0, 0.6);
    border-radius: 10px;
    padding: var(--space-sm);
    backdrop-filter: blur(10px);
    border: 1px solid var(--color-neon-purple);
}

/* Loading Screen Styles */
.loading-screen {
    background: radial-gradient(
        circle at center, 
        var(--color-background-dark), 
        var(--color-space-black)
    );
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.progress-bar {
    width: 300px;
    height: 10px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 5px;
    overflow: hidden;
}

.progress {
    height: 100%;
    background: linear-gradient(
        to right, 
        var(--color-primary-accent), 
        var(--color-secondary-accent)
    );
    transition: width 0.5s ease;
}

/* Futuristic Input Styles */
.mars-input {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid var(--color-electric-blue);
    border-radius: 4px;
    color: white;
    padding: 8px 12px;
    transition: all 0.3s;
}

.mars-input:focus {
    outline: none;
    box-shadow: 0 0 10px var(--color-electric-blue);
}

/* Card Styles */
.mars-card {
    background: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    border: 1px solid var(--color-neon-purple);
    padding: var(--space-md);
    box-shadow: 0 0 15px rgba(138, 43, 226, 0.3);
    transition: all 0.3s;
}

.mars-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(138, 43, 226, 0.5);
}

/* Icon Button */
.icon-button {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid var(--color-electric-blue);
    color: var(--color-electric-blue);
    cursor: pointer;
    transition: all 0.3s;
}

.icon-button:hover {
    background: var(--color-electric-blue);
    color: black;
}

/* Neon Border Effect */
.neon-border {
    position: relative;
}

.neon-border::after {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: transparent;
    border-radius: inherit;
    border: 2px solid var(--color-electric-blue);
    box-shadow: 0 0 10px var(--color-electric-blue);
    opacity: 0;
    transition: opacity 0.3s;
    pointer-events: none;
}

.neon-border:hover::after {
    opacity: 1;
}

/* Audio Visualizer Base Styles */
.audio-visualizer-container {
    position: relative;
    width: 100%;
    height: 150px;
    background: rgba(0,0,0,0.3);
    border-radius: 10px;
    overflow: hidden;
}

/* Responsive Typography */
@media (max-width: 768px) {
    :root {
        --space-sm: 0.75rem;
        --space-md: 1rem;
    }
    
    .mars-button {
        padding: var(--space-xs) var(--space-sm);
        font-size: 0.9rem;
    }
}