/* ==========================================
   RAVE/TECHNO UNDERGROUND THEME
   Ciemna, industrialna estetyka
   ========================================== */

:root {
    /* Główne kolory */
    --bg-primary: #0a0a0a;
    --bg-secondary: #151515;
    --bg-tertiary: #1a1a1a;

    /* Akcenty neonowe */
    --neon-purple: #b026ff;
    --neon-pink: #ff00ff;
    --neon-cyan: #00ffff;
    --neon-green: #39ff14;

    /* Tekst */
    --text-primary: #e0e0e0;
    --text-secondary: #a0a0a0;
    --text-muted: #606060;

    /* Gradienty */
    --gradient-rave: linear-gradient(135deg, #b026ff 0%, #ff00ff 50%, #00ffff 100%);
    --gradient-dark: linear-gradient(180deg, #0a0a0a 0%, #1a1a1a 100%);

    /* Cienie i efekty */
    --shadow-neon: 0 0 20px rgba(176, 38, 255, 0.5);
    --shadow-deep: 0 10px 30px rgba(0, 0, 0, 0.8);
}

/* ==========================================
   GLOBAL STYLES
   ========================================== */

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

body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Press Start 2P', 'VT323', 'Share Tech Mono', monospace;
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

/* Animated background effect */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
            radial-gradient(circle at 20% 50%, rgba(176, 38, 255, 0.1) 0%, transparent 50%),
            radial-gradient(circle at 80% 80%, rgba(0, 255, 255, 0.1) 0%, transparent 50%);
    pointer-events: none;
    z-index: 0;
}

/* ==========================================
   TYPOGRAPHY
   ========================================== */

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

h1 {
    font-size: 3rem;
    background: var(--gradient-rave);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: glitch 8s infinite;
}

h2 {
    font-size: 2rem;
    color: var(--neon-cyan);
    text-shadow: 0 0 10px var(--neon-cyan);
}

h3 {
    font-size: 1.5rem;
    color: var(--neon-purple);
}

p {
    margin-bottom: 1rem;
    color: var(--text-secondary);
}

a {
    color: var(--neon-cyan);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

a:hover {
    color: var(--neon-pink);
    text-shadow: 0 0 10px var(--neon-pink);
}

/* ==========================================
   BUTTONS
   ========================================== */

.btn {
    display: inline-block;
    padding: 12px 30px;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--neon-purple);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--gradient-rave);
    transition: left 0.3s ease;
    z-index: -1;
}

.btn:hover::before {
    left: 0;
}

.btn:hover {
    border-color: var(--neon-cyan);
    box-shadow: var(--shadow-neon);
    transform: translateY(-2px);
}

.btn-primary {
    border-color: var(--neon-purple);
    background: var(--neon-purple);
    color: #000;
}

.btn-secondary {
    border-color: var(--neon-cyan);
}

/* ==========================================
   CARDS & CONTAINERS
   ========================================== */

.card {
    background: var(--bg-secondary);
    border: 1px solid var(--neon-purple);
    border-radius: 0;
    padding: 2rem;
    margin: 1rem 0;
    box-shadow: var(--shadow-deep);
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.card::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: var(--gradient-rave);
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(176, 38, 255, 0.3);
}

.card:hover::before {
    opacity: 0.2;
}

/* ==========================================
   FORMS
   ========================================== */

input[type="text"],
input[type="email"],
input[type="password"],
textarea,
select {
    width: 100%;
    padding: 12px 15px;
    background: var(--bg-tertiary);
    border: 1px solid var(--text-muted);
    color: var(--text-primary);
    font-family: 'Courier New', monospace;
    transition: all 0.3s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.3);
    background: var(--bg-secondary);
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1px;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--neon-purple);
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
}

/* ==========================================
   NAVIGATION
   ========================================== */

nav {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--neon-purple);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

nav ul {
    list-style: none;
    display: flex;
    justify-content: center;
    gap: 2rem;
}

nav a {
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: bold;
    padding: 0.5rem 1rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
}

nav a:hover,
nav a.active {
    border-color: var(--neon-purple);
    box-shadow: 0 0 15px rgba(176, 38, 255, 0.5);
}

/* ==========================================
   TABLES
   ========================================== */

table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-secondary);
    margin: 1rem 0;
}

th {
    background: var(--bg-tertiary);
    color: var(--neon-cyan);
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 1rem;
    border: 1px solid var(--text-muted);
}

td {
    padding: 1rem;
    border: 1px solid var(--text-muted);
    color: var(--text-secondary);
}

tr:hover {
    background: var(--bg-tertiary);
}

/* ==========================================
   ANIMATIONS
   ========================================== */

@keyframes glitch {
    0%, 100% {
        transform: translate(0);
    }
    20% {
        transform: translate(-2px, 2px);
    }
    40% {
        transform: translate(-2px, -2px);
    }
    60% {
        transform: translate(2px, 2px);
    }
    80% {
        transform: translate(2px, -2px);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

/* ==========================================
   UTILITY CLASSES
   ========================================== */

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

.text-center {
    text-align: center;
}

.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }

.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 3rem; }

.neon-border {
    border: 2px solid var(--neon-purple);
    box-shadow: 0 0 20px rgba(176, 38, 255, 0.5);
}

.cyber-line {
    height: 2px;
    background: var(--gradient-rave);
    margin: 2rem 0;
    box-shadow: 0 0 10px rgba(176, 38, 255, 0.8);
}

/* ==========================================
   RESPONSIVE
   ========================================== */

@media (max-width: 768px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    nav ul {
        flex-direction: column;
        gap: 1rem;
    }

    .container {
        padding: 1rem;
    }

    .card {
        padding: 1rem;
    }
}

/* ==========================================
   SCROLLBAR STYLING
   ========================================== */

::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: var(--neon-purple);
    box-shadow: 0 0 10px var(--neon-purple);
}

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

