/*
Theme Name: EVMedia Dark
Template: blankslate
Description: Retro hacker-style theme for EVMedia
Author: Howard Crane
Version: 1.0
*/
html::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0px,
        transparent 2px,
        rgba(0, 255, 0, 0.05) 3px
    );
    pointer-events: none;
    z-index: 9999;
}
body {
    background-color: #000;
    color: #0f0;
    font-family: 'Courier New', monospace;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

#wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

#header {
    text-align: center;
    margin-bottom: 40px;
}

#site-title a {
    color: #0f0;
    text-decoration: none;
    font-size: 2em;
    letter-spacing: 2px;
}

#menu ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
}

#menu a {
    color: #0f0;
    text-decoration: none;
    border: 1px solid #0f0;
    padding: 5px 10px;
}

#menu a:hover {
    background: #0f0;
    color: #000;
}

#content {
    margin: 40px 0;
}

/* Links */
a {
    color: #0f0;
    text-decoration: underline;
}

a:hover {
    color: #000;
    background: #0f0;
}
/* === TYPEWRITER EFFECT === */
.terminal-typewriter {
    display: inline-block;
    position: relative;
    font-family: 'Symbola', 'DejaVu Sans', 'Segoe UI Symbol', serif;
}

.terminal-typewriter-cursor {
    position: absolute;
    right: -8px;
    width: 6px;
    height: 1.2em;
    background: #0f0;
    animation: blink 0.7s infinite step-end;
    vertical-align: bottom;
}

.attribution {
    opacity: 0;
    color: #0a0;
    margin-top: 8px;
    font-size: 0.9em;
    animation: fadeIn 1.5s forwards;
    animation-delay: 1.5s;
}

@keyframes blink {
    from, to { opacity: 0 }
    50% { opacity: 1 }
}

@keyframes fadeIn {
    to { opacity: 0.7; }
}

/* === TERMINAL CONTAINER === */
.terminal-content {
    min-height: 1.5em;
    padding: 15px;
}
/* Glitch Effects */
.glitched-text {
    position: relative;
}
.glitched-text::before,
.glitched-text::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    background: black;
}
.glitched-text::before {
    left: 2px;
    text-shadow: -2px 0 red;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim 5s infinite linear alternate-reverse;
}
.glitched-text::after {
    left: -2px;
    text-shadow: -2px 0 blue;
    clip: rect(44px, 450px, 56px, 0);
    animation: glitch-anim2 5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% { clip: rect(31px, 9999px, 94px, 0); }
    10% { clip: rect(112px, 9999px, 76px, 0); }
    20% { clip: rect(85px, 9999px, 77px, 0); }
    30% { clip: rect(27px, 9999px, 97px, 0); }
    40% { clip: rect(64px, 9999px, 98px, 0); }
    50% { clip: rect(61px, 9999px, 85px, 0); }
    60% { clip: rect(99px, 9999px, 114px, 0); }
    70% { clip: rect(34px, 9999px, 115px, 0); }
    80% { clip: rect(98px, 9999px, 129px, 0); }
    90% { clip: rect(43px, 9999px, 96px, 0); }
    100% { clip: rect(82px, 9999px, 64px, 0); }
}

/* Terminal Corruption Effects */
.heavy-glitch {
    position: relative;
}
.heavy-glitch::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: repeating-linear-gradient(
        0deg,
        rgba(255,0,0,0.1),
        rgba(255,0,0,0.1) 1px,
        transparent 1px,
        transparent 2px
    );
    pointer-events: none;
    animation: crt-flicker 0.15s infinite;
}

@keyframes crt-flicker {
    0%, 100% { opacity: 0.1; }
    50% { opacity: 0.2; }
}
.terminal-corrupt {
    font-family: 'Courier New', monospace;
    color: #0a0;
    text-shadow: 0 0 3px rgba(0, 255, 0, 0.3);
}

.terminal-corrupt::before {
    content: ">";
    margin-right: 8px;
    animation: pulse 1.5s infinite;
}

@keyframes glitch {
    0% { opacity: 0.8; transform: translateX(-1px); }
    100% { opacity: 1; transform: translateX(1px); }
}