/* ========== BASE CSS ========== */
/* CSS Variables */
:root {
    --main-bg-color: #0a0a1a;
    --pixel-purple: #5e2ca5;
    --pixel-purple-light: #7c4dff;
    --pixel-red: #ff3e3e;
    --pixel-green: #00cc66;
    --pixel-blue: #4da6ff;
    --pixel-yellow: #ffcc00;
    --pixel-border-color: #7c4dff;
    --text-color: #f0f0f0;
    --card-bg: #151525;
}

/* Reset */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Base styles */
html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--main-bg-color);
    background-image: 
        linear-gradient(rgba(20, 20, 40, 0.9) 1px, transparent 1px),
        linear-gradient(90deg, rgba(20, 20, 40, 0.9) 1px, transparent 1px);
    background-size: 20px 20px;
    color: var(--text-color);
    line-height: 1.6;
}

img {
    max-width: 100%;
    height: auto;
}

a {
    color: var(--pixel-blue);
    text-decoration: none;
    transition: all 0.2s ease;
}

a:hover {
    color: var(--pixel-purple-light);
}

h1, h2, h3, h4, h5, h6 {
    margin-bottom: 1rem;
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
}

ul, ol {
    margin-bottom: 1rem;
    padding-left: 2rem;
}

/* Common shared classes */
.tag {
    display: inline-block;
    background-color: rgba(124, 77, 255, 0.2);
    color: var(--pixel-blue);
    padding: 3px 8px;
    margin-right: 5px;
    margin-bottom: 5px;
    border-radius: 3px;
    font-size: 11px;
}

.nav-link {
    font-family: 'Press Start 2P', cursive;
    font-size: 12px;
    color: var(--pixel-blue);
    text-decoration: none;
    padding: 8px 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 4px;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
}

.nav-link i {
    margin: 0 8px;
}

.nav-link:hover {
    background-color: var(--pixel-purple);
    color: white;
}

.pixel-border {
    border: 4px solid var(--pixel-border-color);
    border-radius: 4px;
    position: relative;
    padding: 20px;
    margin-bottom: 30px;
    background-color: var(--card-bg);
    box-shadow: 
        0px 4px 0px 0px rgba(0, 0, 0, 0.2),
        inset 0 0 10px rgba(124, 77, 255, 0.1);
}

.pixel-button {
    font-family: 'Press Start 2P', cursive;
    display: inline-block;
    padding: 12px 24px;
    background-color: var(--pixel-purple);
    color: white;
    text-decoration: none;
    border: none;
    border-bottom: 4px solid #3a1a65;
    border-right: 4px solid #3a1a65;
    font-size: 14px;
    text-align: center;
    transition: all 0.1s;
    position: relative;
    cursor: pointer;
}

.pixel-button:hover {
    transform: translate(2px, 2px);
    border-bottom: 2px solid #3a1a65;
    border-right: 2px solid #3a1a65;
}

.pixel-button:active {
    transform: translate(4px, 4px);
    border-bottom: 0;
    border-right: 0;
}

.pixel-button.small {
    padding: 8px 16px;
    font-size: 10px;
}

/* Responsive media queries for base elements */
@media (max-width: 768px) {
    html {
        font-size: 14px;
    }
    
    .pixel-border {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .pixel-button {
        padding: 10px 20px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 12px;
    }
    
    .pixel-button.small {
        padding: 6px 12px;
        font-size: 9px;
    }
}
