/* 
aux.css
This file contains custom CSS that isn't shared between sites.
*/

/* Blog Header */
.blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--quaternary);
    padding: 1em 2em;
    border-radius: 4px;
    margin-bottom: 20px;
}

.blog-header h1 {
    color: var(--primary);
    font-size: 1.8em;
}

.blog-header nav a {
    margin-left: 1em;
    color: var(--accent);
    text-decoration: none;
    font-size: 1em;
    transition: color 0.3s ease;
}

.blog-header nav a:hover {
    color: var(--secondary);
}

/* Blog Post Page */
.blog-post-page {
    margin: 0 auto;
    max-width: 800px;
}

/* Post Title and Meta */
.post-title {
    font-size: 2.5em;
    color: var(--primary);
    margin-bottom: 10px;
}

.post-meta {
    color: var(--secondary);
    font-size: 0.9em;
    margin-bottom: 20px;
}

.post-meta a {
    color: var(--accent);
    text-decoration: none;
}

/* Post Cover Image */
.post-cover img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* Post Content */
.post-content {
    line-height: 1.8;
    font-size: 1.2em;
    color: var(--text);
}

.post-content h2 {
    margin-top: 2em;
    font-size: 1.8em;
    color: var(--primary);
}

/* Author Bio Section */
.author-bio {
    margin-top: 50px;
    padding: 1em;
    border-radius: 4px;
}

.author-bio h3 {
    color: var(--primary);
    margin-bottom: 10px;
}

.author-bio p {
    color: var(--text);
    line-height: 1.6;
}

.author-bio a {
    color: var(--accent);
    text-decoration: none;
    font-weight: bold;
}

.author-bio a:hover {
    text-decoration: underline;
}

/* Blog post stuff */
.blog-post {
    display: flex;
    flex-direction: row;
    margin-bottom: 20px;
    padding: 1em;
    border-radius: 0.2rem;
    backdrop-filter: blur(2px);
    border: 0.15rem solid var(--quaternary);
    transition: all 0.3s ease;
}

.blog-post .content {
    flex: 4;
    padding-right: 20px;
}

.blog-post .content h2 {
    font-size: 1.8em;
    color: var(--primary);
    margin-bottom: 1em;
    transition: color 0.3s ease;
}

.blog-post .content p {
    color: var(--primary);
    line-height: 1.6;
    font-size: 1.1em;
    margin-bottom: 1em;
}


.blog-post:hover .content h2 {
    color: var(--accent);
}

.blog-post .image {
    flex: 1;
    overflow: hidden;
    position: relative;
    max-height: 300px;
    border-radius: 10px;
}

.blog-post .image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.blog-post:hover .image img {
    transform: scale(1.05);
}

@media (max-width: 600px) {
    .blog-post {
        flex-direction: column;
        align-items: center;
    }

    .blog-post .content {
        padding-right: 0;
        text-align: center;
    }

    .blog-post .content h2 {
        font-size: 1.6em;
    }

    .blog-post .content p {
        font-size: 1em;
    }

    .blog-post .image {
        max-height: none;
        width: 100%;
        margin-bottom: 1em;
    }

    .blog-post .image img {
        border-radius: 4px;
    }
}
