/* post.css */

:root {
    --primary-color: #000000;
    --secondary-color: #00FF00;
    --accent-color: #000000;
    --text-color: #FFFFFF;
}

h1 {
    font-size: 48px;
    color: var(--secondary-color);
}

body {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: var(--accent-color);
    color: var(--text-color);
    line-height: 1.6;
}

.container {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.rendered-post {
    max-width: 800px;
    margin: 40px auto;
    padding: 40px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 255, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 255, 0, 0.1);
}

/* Header and title styling */
#web-header h1 {
    font-size: 36px;
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* Author and post meta styling */
.bh__byline_wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.bh__byline_wrapper > div:first-child {
    display: flex;
    align-items: center;
}

.bh__byline_wrapper img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
}

.bh__byline_wrapper p {
    margin: 0;
    font-size: 14px;
}

.bh__byline_wrapper p span:first-child {
    font-weight: bold;
    color: var(--secondary-color);
}

.bh__byline_wrapper p span:last-child {
    font-size: 12px;
    opacity: 0.8;
}

/* Social media icons styling */
.bh__byline_social_wrapper {
    display: flex;
    gap: 15px;  /* Increased gap for better spacing */
}

.bh__byline_social_wrapper a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;  /* Adjusted size */
    height: 24px;
    transition: opacity 0.3s ease;
}

.bh__byline_social_wrapper a:hover {
    opacity: 0.7;
}

.bh__byline_social_wrapper svg {
    width: 24px;  /* Match the anchor size */
    height: 24px;
}

.bh__byline_social_wrapper svg path {
    fill: var(--text-color);
}

/* Content styling */
#content-blocks {
    font-size: 18px;
    line-height: 1.8;
    color: var(--text-color);
}

#content-blocks h2 {
    font-size: 24px;
    color: var(--secondary-color);
    margin-top: 30px;
    margin-bottom: 15px;
}

#content-blocks p {
    margin-bottom: 15px;
}

#content-blocks a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
}

#content-blocks a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: var(--secondary-color);
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

#content-blocks a:hover::after {
    transform: scaleX(1);
}

#content-blocks ul, #content-blocks ol {
    margin-bottom: 1em;
    padding-left: 2em;
}

#content-blocks li {
    margin-bottom: 0.5em;
}

#content-blocks img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1em auto;
    border-radius: 8px;
}

#content-blocks blockquote {
    border-left: 4px solid var(--secondary-color);
    padding-left: 1em;
    margin: 1em 0;
    font-style: italic;
    color: #888;
}

#content-blocks pre {
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 1em;
    border-radius: 4px;
    overflow-x: auto;
}

#content-blocks code {
    font-family: 'Courier New', Courier, monospace;
    background-color: #1e1e1e;
    color: #d4d4d4;
    padding: 0.2em 0.4em;
    border-radius: 3px;
}

/* Animations */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Responsive design */
@media (max-width: 768px) {
    .rendered-post {
        padding: 20px;
        margin: 20px;
    }

    #web-header h1 {
        font-size: 28px;
    }

    #content-blocks {
        font-size: 16px;
    }

    .bh__byline_wrapper {
        flex-direction: column;
        align-items: flex-start;
    }

    .bh__byline_social_wrapper {
        margin-top: 10px;
    }
}

/* Background pattern */
.background-pattern {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(rgba(0, 255, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 0, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    z-index: -1;
}

/* Progress bar */
#progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background-color: var(--secondary-color);
    z-index: 9999;
    transition: width 0.3s ease;
}

/* Back to top button */
#back-to-top {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--text-color);
    color: var(--primary-color);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    font-size: 24px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 9999;
}

#back-to-top:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0, 255, 0, 0.3);
}