:root {
    --bg-color: #050505;
    --text-color: #00ff00;
    --accent-color: #ff00ff;
    --secondary-color: #00ffff;
    --font-main: 'Share Tech Mono', monospace;
}

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Base Links */
a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.2s ease-in-out;
}

a:hover {
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-color);
}

/* Layout Container */
.container {
    max-width: 1000px;
    width: 95%;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 2;
}

/* Header & Navigation */
.site-header {
    border-bottom: 1px solid var(--text-color);
    padding-bottom: 1rem;
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    margin: 0;
    font-size: 2rem;
    text-shadow: 0 0 10px var(--text-color);
}

.nav-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 1.5rem;
}

.terminal-header {
    background: #111;
    padding: 10px 15px;
    border: 1px solid #333;
    border-radius: 4px 4px 0 0;
    margin-bottom: 1.5rem;
    font-size: 0.9rem;
    font-family: 'OpenHack', 'Hack', monospace;
}

.user {
    color: var(--secondary-color);
}

.colon {
    color: #fff;
}

.path {
    color: #5555ff;
}

.prompt {
    color: var(--text-color);
    margin-right: 0.5rem;
}

/* Post Lists */
.post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.post-item {
    margin-bottom: 1rem;
    border-left: 2px solid #333;
    padding-left: 1rem;
    transition: all 0.2s;
}

.post-item:hover {
    border-left-color: var(--secondary-color);
}

.post-date {
    color: #666;
    margin-right: 1rem;
}

.post-title {
    font-size: 1.2rem;
}

.system-msg {
    color: #ff3333;
    border-left-color: transparent;
}

/* Single Post Elements */
.title.neo-glow {
    color: var(--accent-color);
    text-shadow: 0 0 8px var(--accent-color), 0 0 15px var(--accent-color);
    border-bottom: 1px dashed var(--accent-color);
    padding-bottom: 0.5rem;
}

.meta {
    margin-bottom: 2rem;
    font-size: 0.9rem;
    color: #888;
    display: flex;
    justify-content: space-between;
}

.meta .tags a {
    color: var(--text-color);
    margin-right: 0.5rem;
}

.post-tags {
    text-align: right;
    font-size: 0.85em;
    margin-top: -1.2rem;
}

.post-tags a {
    color: var(--text-color);
}

/* Body text styling */
.body-text {
    line-height: 1.6;
    font-size: 1.1rem;
}

.body-text h2,
.body-text h3 {
    color: var(--secondary-color);
    margin-top: 2rem;
}

.body-text blockquote {
    border-left: 4px solid var(--accent-color);
    background: rgba(255, 0, 255, 0.05);
    margin: 1.5rem 0;
    padding: 1rem;
    color: #ccc;
    font-style: italic;
}

.body-text pre {
    background: #111;
    border: 1px solid #333;
    padding: 1rem;
    overflow-x: auto;
    border-radius: 4px;
}

.body-text code {
    background: rgba(0, 255, 0, 0.1);
    padding: 0.2em 0.4em;
    border-radius: 3px;
    font-size: 0.9em;
}

.body-text pre code {
    background: transparent;
    padding: 0;
}

/* Footer */
.site-footer {
    margin-top: 4rem;
    border-top: 1px solid #333;
    padding-top: 2rem;
    text-align: center;
    color: #666;
    font-size: 0.8rem;
}

.btn-back {
    display: inline-block;
    margin-top: 2rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--secondary-color);
    color: var(--secondary-color);
    text-transform: uppercase;
}

.btn-back:hover {
    background: var(--secondary-color);
    color: var(--bg-color);
    text-shadow: none;
}

/* Glitch Animation for Logo */
.glitch {
    position: relative;
}

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

.glitch::before {
    left: 2px;
    text-shadow: -1px 0 red;
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

.glitch::after {
    left: -2px;
    text-shadow: -1px 0 blue;
    clip: rect(85px, 550px, 140px, 0);
    animation: glitch-anim 2.5s infinite linear alternate-reverse;
}

@keyframes glitch-anim {
    0% {
        clip: rect(10px, 9999px, 86px, 0);
    }

    20% {
        clip: rect(72px, 9999px, 15px, 0);
    }

    40% {
        clip: rect(34px, 9999px, 54px, 0);
    }

    60% {
        clip: rect(2px, 9999px, 91px, 0);
    }

    80% {
        clip: rect(65px, 9999px, 32px, 0);
    }

    100% {
        clip: rect(48px, 9999px, 81px, 0);
    }
}

@keyframes glitch-anim-2 {
    0% {
        clip: rect(65px, 9999px, 100px, 0);
    }

    20% {
        clip: rect(3px, 9999px, 54px, 0);
    }

    40% {
        clip: rect(82px, 9999px, 15px, 0);
    }

    60% {
        clip: rect(34px, 9999px, 92px, 0);
    }

    80% {
        clip: rect(15px, 9999px, 45px, 0);
    }

    100% {
        clip: rect(98px, 9999px, 12px, 0);
    }
}

/* Scanlines Effect Overlay */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0) 50%,
            rgba(0, 0, 0, 0.1) 50%,
            rgba(0, 0, 0, 0.1));
    background-size: 100% 4px;
    pointer-events: none;
    z-index: 999;
}

/* CRT Screen Flicker */
.crt-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(0, 0, 0, 0) 60%, rgba(0, 0, 0, 0.4) 100%);
    pointer-events: none;
    z-index: 1000;
    opacity: 0.1;
    animation: flicker 0.15s infinite;
}

@keyframes flicker {
    0% {
        opacity: 0.1;
    }

    50% {
        opacity: 0.12;
    }

    100% {
        opacity: 0.1;
    }
}