@import url('https://fonts.googleapis.com/css2?family=Faculty+Glyphic&display=swap');

.blog-header {
    text-align: center;
    padding: 10px 0 10px;
    max-width: 800px;
    margin: 0 auto;
}

h2,
h3,
h4,
.stream-entry {
    scroll-margin-top: 80px;
}

.blog-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--accent-light);
    animation: rainbow 15s ease-in-out infinite;
}

.blog-subtitle {
    font-size: 16px;
    color: var(--title);
    margin: 0;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
}

.blog-posts {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 24px;
}

.posts-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border);
}

.header-controls {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-main), monospace;
}

.header-controls * {
    flex-wrap: nowrap;
    flex-shrink: 0;
}


.theme-filter-btn {
    background: var(--item);
    border: 1px solid var(--border);
    padding: 8px 16px;
    border-radius: 6px;
    color: var(--text);
    cursor: pointer;
    font-size: 14px;
    font-family: var(--font-main), monospace;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.theme-filter-btn:hover {
    background: var(--item-background-2);
    border-color: var(--accent);
}

.theme-filter-btn.active {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.filter-icon {
    font-size: 16px;
}

.theme-dropdown {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 16px;
    background: var(--item);
    border: 1px solid var(--border);
    border-radius: 8px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    transition: all 0.3s;
}

.theme-dropdown.hidden {
    display: none;
}

.theme-tag {
    background: var(--item-background-2);
    border: 1px solid var(--border);
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--text);
    text-decoration: none;
    transition: all 0.3s;
    font-family: var(--font-main), monospace;
}

.theme-tag:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.posts-header h2 {
    font-size: 28px;
    font-weight: 600;
    margin: 0;
    color: var(--text);
    flex-shrink: 0;
}


.blog-post {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 6px;
    margin-bottom: 10px;
    transition: all 0.3s;
    cursor: pointer;
    background: var(--accent-soft);
}

.blog-post:hover {
    background: var(--item-background-2);
    border-color: var(--accent);
    transform: translateY(-1px);
}

.short-story {
    border: 1px solid var(--accent);
}

.post-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 13px;
    color: var(--title);
}

.post-information {
    background: var(--item);
    padding: 6px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    margin: 0;
    font-size: 13px;
    color: var(--title);
    display: inline;
}

.post-tag {
    background: var(--accent-soft);

}

.blog-post h3 {
    font-size: 16px;
    font-weight: 600;
    margin: 0 0 8px;
    color: var(--text);

    display: inline;
}

.blog-post h3 a {
    color: inherit;
    text-decoration: none;
    line-height: 0.8;
    transition: color 0.3s;
}

.blog-post:hover h3 a {
    color: var(--accent);
}


.back-home {
    display: inline-block;
    margin-top: 40px;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--border);
    color: var(--accent);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
}

.back-home:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}


.post-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

.post-header {
    text-align: center;
    padding: 40px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
}

.post-title {
    font-size: 32px;
    font-weight: 700;
    margin: 0 0 16px;
    color: var(--text);
    letter-spacing: -0.02em;
    line-height: 1;

    color: var(--accent-light);
    animation: rainbow 15s ease-in-out infinite;
}

.post-disclaimer {
    font-style: italic;
    font-size: 16px;
}

.post-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    font-size: 14px;
    color: var(--title);
    margin-bottom: 20px;
}


.post-content {
    line-height: 1.7;
    font-size: 20px;
    color: var(--text);
    padding-right: 20px;
    padding-left: 20px;
    max-width: 80vw;
    margin-left: auto;
    margin-right: auto;
    font-family: 'Faculty Glyphic';
}

.tag-heading {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    text-decoration: underline;
}

.post-content p {
    margin: 0 0 1rem;
}

.post-content h2 {
    font-size: 25px;
    font-weight: 600;
    margin: 40px 0 20px;
    font-family: var(--font-main), monospace;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--accent-light);
    animation: rainbow 15s ease-in-out infinite;
}

.post-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin: 32px 0 16px;
    color: var(--text);

    font-family: var(--font-main), monospace;

    color: var(--accent-light);
    animation: rainbow 15s ease-in-out infinite;
}

.post-content a {
    color: var(--accent-light);
    text-decoration: underline;
    border-bottom: 1px solid transparent;
    transition: all 0.3s;
}

.post-content a:hover {
    border-bottom-color: var(--accent);
}

.post-content blockquote {
    background: var(--item);
    border-left: 4px solid var(--accent);
    padding: 20px 24px;
    margin: 32px 0;
    border-radius: 8px;
    font-style: italic;
    color: var(--title);
    font-family: var(--font-main), monospace;
}

.post-content code {
    background: var(--item-background-2);
    border: 1px solid var(--border);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: 'Syne Mono', 'Consolas', monospace;
    font-size: 0.85em;
    color: inherit;
    white-space: pre-wrap;
}

.post-content pre {
    background: #1e1e1e;
    color: #e0e0e0;
    padding: 20px;
    border-radius: 8px;
    margin: 24px 0;
    overflow-x: auto;
    border: 1px solid var(--border);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}

.post-content pre code {
    background: transparent;
    border: none;
    padding: 0;
    font-size: 14px;
    line-height: 1.5;
    color: inherit;
    white-space: pre;
}

.code-wrapper {
    position: relative;
    margin: 24px 0;
}

.post-content .code-wrapper pre {
    margin: 0;
}

.copy-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: #2a2a2a;
    color: #e0e0e0;
    border: 1px solid #444;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s;
    font-family: var(--font-main), monospace;
}

.code-wrapper:hover .copy-btn,
.copy-btn:focus {
    opacity: 1;
}

.copy-btn:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.post-content ul,
.post-content ol {
    margin: 0 0 24px;
    padding-left: 24px;
}

.post-content li {
    margin-bottom: 8px;
}

.post-content img {
    max-width: 100%;
    max-height: 55vh;
    height: auto;
    border-radius: 8px;
    margin: 10px auto;
    display: block;
    margin-top: 20px;
    border: 1px solid var(--border);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pixel-image {
    min-height: 80px;
    image-rendering: pixelated;
    image-rendering: -moz-crisp-edges;
}

.short-story-content p {
    margin-bottom: 0.0em;
    text-indent: 3em;

}

.short-story-content p:first-of-type {
    text-indent: 0;
}

.caption {
    font-size: 14px;
    color: var(--title);
    text-align: center;
    font-style: italic;
    line-height: 1.4;
}

.column-2 {
    columns: 2;
    -webkit-columns: 2;
    -moz-columns: 2;
}

.post-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: 60px 0 40px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
}

.nav-link {
    display: inline-block;
    padding: 12px 24px;
    background: transparent;
    border: 2px solid var(--border);
    color: var(--accent);
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    transition: all 0.3s;
}

.nav-link:hover {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.nav-link.primary {
    background: var(--accent);
    color: white;
    border-color: var(--accent);
}

.nav-link.primary:hover {
    background: var(--item);
    color: var(--accent);
}

@media (max-width: 768px) {
    .header-controls {
        margin-left: 15px;
        padding-bottom: 5px;
    }

    .post-information {
        font-size: 12px;
        padding: 3px 6px;
    }

    .blog-header {
        padding: 5px 16px 5px;
    }

    .blog-header h1 {
        font-size: 36px;
    }

    .blog-subtitle {
        font-size: 16px;
    }

    .blog-posts {
        padding: 0 16px;
    }

    .posts-header {
        align-items: flex-start;
        gap: 12px;
    }

    .header-controls {
        overflow: scroll;
        gap: 8px;
    }

    .posts-header h2 {
        font-size: 24px;
    }

    .blog-post {
        padding: 6px;
        padding-top: 2px;
        padding-bottom: 2px;
        margin-bottom: 8px;
        line-height: 1.3;
    }

    .post-meta {
        justify-content: left;
        align-items: flex-start;
        gap: 6px;
    }

    .blog-post h3 {
        font-size: 15px;
    }

    .blog-post h3 a {
        line-height: 1;
    }

    .post-container {
        padding: 0 16px;
    }

    .post-header {
        padding: 12px 0 0px;
    }

    .post-title {
        text-align: left;
        font-size: 25px;
    }

    .post-content {
        font-size: 15px;
        line-height: 1.6;
        padding-right: 5px;
        padding-left: 5px;
        max-width: 100vw;
    }

    .post-content h2 {
        font-size: 22px;
    }

    .post-content h3 {
        font-size: 20px;
    }

    .post-navigation {
        flex-direction: column;
        gap: 16px;
    }

}

/* Stream styles */
.stream-header {
    text-align: center;
    padding: 10px 0 10px;
    max-width: 800px;
    margin: 0 auto;
}

.stream-header h1 {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 16px;
    letter-spacing: -0.02em;
    line-height: 1;
    color: var(--accent-light);
    animation: rainbow 15s ease-in-out infinite;
}

.stream-subtitle {
    font-size: 16px;
    color: var(--title);
    margin: 0;
    font-weight: 400;
    line-height: 1.3;
    text-align: center;
}

.stream-container {
    max-width: 700px;
    margin: 0 auto;
    padding: 0 24px;
}

.stream-entry {
    margin-bottom: 20px;
    position: relative;
    padding-left: 120px;
}

.stream-date {
    position: absolute;
    left: 0;
    font-size: 13px;
    color: var(--title);
    font-family: var(--font-main), monospace;
    font-weight: 500;
    top: 16px;
    text-align: right;
    padding-right: 16px;
    line-height: 1.5;
}

.stream-content {
    background: var(--item);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 12px 12px;

    font-family: 'Faculty Glyphic', serif;
    font-size: 18px;
    line-height: 1.6;
    color: var(--text);
    position: relative;
}

.stream-content::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 16px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 10px solid var(--accent);
}

.stream-content::after {
    content: '';
    position: absolute;
    left: -7px;
    top: 16px;
    width: 0;
    height: 0;
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    border-right: 8px solid var(--item);
}

.stream-content p {
    margin: 0 0 1rem;
}

.stream-content p:last-child {
    margin-bottom: 0;
}

.stream-content blockquote {
    background: var(--item-background-2);
    border-left: 3px solid var(--accent);
    padding: 4px 6px;
    margin: 0 0 10px 0;
    border-radius: 4px;
    font-style: italic;
    color: var(--title);
}

.stream-content a {
    color: var(--accent-light);
    text-decoration: underline;
}

.stream-content a:hover {
    color: var(--accent);
}

.stream-navigation {
    text-align: center;
    margin: 60px 0 40px;
    padding: 24px 0;
    border-top: 1px solid var(--border);
}

@media (max-width: 768px) {
    .stream-header {
        padding: 5px 16px 5px;
    }

    .stream-header h1 {
        font-size: 36px;
    }

    .stream-container {
        padding: 0 16px;
    }

    .stream-entry {
        padding-left: 0;
        margin-bottom: 10px;
    }

    .stream-date {
        position: static;
        width: auto;
        text-align: left;
        padding-right: 0;
        margin-bottom: 8px;
        padding: 6px 12px;
        background: var(--item);
        border: 1px solid var(--border);
        border-radius: 6px;
        display: inline-block;
    }

    .stream-content {
        padding: 12px 16px;
        font-size: 16px;
    }

}