/* Killpipe Retro Theme - Shared Styles */

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

:root {
    --bg-primary: #0a0a0a;
    --bg-secondary: #1a1a1a;
    --bg-tertiary: #2a2a2a;
    --border-dark: #333;
    --border-medium: #444;
    --border-light: #555;
    --text-primary: #e0e0e0;
    --text-muted: #888;
    --accent-green: #00ff88;
    --accent-red: #ff4444;
    --accent-yellow: #ffaa00;
    --glow-green: rgba(0, 255, 136, 0.5);
    --glow-green-strong: rgba(0, 255, 136, 0.8);
}

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Scanline effect for retro CRT feel */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    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;
}

/* Typography */
h1 {
    font-size: 48px;
    letter-spacing: 4px;
    color: var(--accent-green);
    text-shadow: 0 0 20px var(--glow-green);
    margin-bottom: 10px;
    text-transform: uppercase;
}

h2 {
    font-size: 32px;
    letter-spacing: 3px;
    color: var(--accent-green);
    text-shadow: 0 0 15px var(--glow-green);
    margin-bottom: 15px;
    text-transform: uppercase;
}

h3 {
    font-size: 24px;
    letter-spacing: 2px;
    color: var(--text-primary);
    margin-bottom: 10px;
    text-transform: uppercase;
}

p {
    line-height: 1.6;
    margin-bottom: 10px;
}

/* Links */
a {
    color: var(--accent-green);
    text-decoration: none;
    transition: all 0.2s;
}

a:hover {
    text-shadow: 0 0 10px var(--glow-green);
}

/* Buttons */
button {
    padding: 15px 30px;
    background: var(--bg-tertiary);
    border: 2px solid var(--border-medium);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

button:hover:not(:disabled) {
    background: var(--bg-secondary);
    border-color: var(--accent-green);
    box-shadow: 0 0 10px var(--glow-green);
}

button:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

button.primary {
    background: #003322;
    border-color: var(--accent-green);
    color: var(--accent-green);
}

button.primary:hover:not(:disabled) {
    box-shadow: 0 0 20px var(--glow-green);
}

/* Cards/Panels */
.panel {
    background: var(--bg-secondary);
    border: 2px solid var(--border-dark);
    padding: 20px;
    margin-bottom: 20px;
}

.panel-glow {
    border-color: var(--accent-green);
    box-shadow: 0 0 15px var(--glow-green);
}

/* Animations */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
        box-shadow: 0 0 5px var(--glow-green);
    }
    50% {
        opacity: 0.8;
        box-shadow: 0 0 20px var(--glow-green);
    }
}

@keyframes glow {
    0%, 100% {
        text-shadow: 0 0 10px var(--glow-green);
    }
    50% {
        text-shadow: 0 0 20px var(--glow-green-strong);
    }
}

.pulse {
    animation: pulse 2s infinite;
}

.glow {
    animation: glow 2s infinite;
}

/* Utility Classes */
.text-center {
    text-align: center;
}

.text-muted {
    color: var(--text-muted);
}

.text-accent {
    color: var(--accent-green);
}

.text-error {
    color: var(--accent-red);
}

.mb-1 { margin-bottom: 10px; }
.mb-2 { margin-bottom: 20px; }
.mb-3 { margin-bottom: 30px; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
