/* The Human Glitch - Theme */
:root {
    --bg-color: #050505;
    --text-color: #e0e0e0;
    --accent-color: #00ff41;
    /* CRT Green */
    --accent-secondary: #ff004c;
    /* Glitch Red */
    --font-mono: 'Courier New', Courier, monospace;
    --scanline-color: rgba(0, 255, 65, 0.04);
}

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

/* CRT Scanline Effect */
body::before {
    content: " ";
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    right: 0;
    background: linear-gradient(to bottom,
            var(--scanline-color) 50%,
            rgba(0, 0, 0, 0.2) 50%);
    background-size: 100% 4px;
    z-index: 999;
    pointer-events: none;
    animation: scanline 10s linear infinite;
}

h1,
h2,
h3 {
    text-transform: uppercase;
    letter-spacing: 2px;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

a:hover {
    background-color: var(--accent-color);
    color: var(--bg-color);
    box-shadow: 0 0 10px var(--accent-color);
}

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

/* Glitch Effect Utilities */
.glitch {
    position: relative;
    color: var(--text-color);
    font-size: 4rem;
    font-weight: bold;
}

.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 var(--accent-secondary);
    clip: rect(24px, 550px, 90px, 0);
    animation: glitch-anim-2 3s infinite linear alternate-reverse;
}

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

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

    20% {
        clip: rect(80px, 9999px, 100px, 0);
    }

    40% {
        clip: rect(5px, 9999px, 60px, 0);
    }

    60% {
        clip: rect(40px, 9999px, 90px, 0);
    }

    80% {
        clip: rect(20px, 9999px, 50px, 0);
    }

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

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

    20% {
        clip: rect(10px, 9999px, 40px, 0);
    }

    40% {
        clip: rect(80px, 9999px, 100px, 0);
    }

    60% {
        clip: rect(30px, 9999px, 50px, 0);
    }

    80% {
        clip: rect(70px, 9999px, 90px, 0);
    }

    100% {
        clip: rect(20px, 9999px, 60px, 0);
    }
}

/* Manifesto Section */
.manifesto {
    border: 1px solid var(--text-color);
    padding: 1.5rem;
    margin: 2rem 0;
    position: relative;
    background: rgba(0, 0, 0, 0.5);
}

.manifesto h2 {
    position: absolute;
    top: -12px;
    left: 20px;
    background: var(--bg-color);
    padding: 0 10px;
    color: var(--accent-secondary);
    font-size: 1rem;
}

.manifesto p {
    font-size: 1.1rem;
    text-align: justify;
}

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

.post-item {
    border-bottom: 1px dashed #333;
    padding: 1rem 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 1rem;
    transition: padding-left 0.2s;
}

.post-item:hover {
    padding-left: 10px;
    border-bottom-color: var(--accent-color);
}

.post-item .date {
    color: #666;
    font-size: 0.9rem;
    min-width: 120px;
}

.post-item a {
    font-size: 1.2rem;
    font-weight: bold;
}

.subtitle {
    color: var(--accent-color);
    margin-top: 0;
    margin-bottom: 3rem;
    font-size: 1.2rem;
}

/* Component Styles */
#navbar-container {
    margin-bottom: 2rem;
}

.site-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    font-family: var(--font-mono);
    border-bottom: 1px solid rgba(0, 255, 65, 0.2);
}

.nav-brand .glitch-link {
    font-weight: bold;
    font-size: 1.5rem;
    color: var(--text-color);
    text-decoration: none;
    letter-spacing: 2px;
}

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

.nav-links a {
    color: var(--text-color);
    text-decoration: none;
    font-size: 0.9rem;
    opacity: 0.7;
    transition: opacity 0.3s, color 0.3s;
}

.nav-links a:hover {
    opacity: 1;
    color: var(--accent-color);
    text-shadow: 0 0 5px var(--accent-color);
}

.header-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-color), transparent);
    opacity: 0.3;
    margin-top: 0.5rem;
}

#footer-container footer {
    margin-top: 4rem;
    padding-top: 2rem;
    border-top: 1px solid #222;
    text-align: center;
    font-size: 0.8rem;
    opacity: 0.6;
}

.footer-content a {
    color: var(--accent-color);
    text-decoration: none;
}

.footer-content a:hover {
    text-decoration: underline;
}

.copyright {
    margin-top: 0.5rem;
    font-size: 0.7rem;
    color: #555;
}