﻿/* General Reset */
body {
    margin: 0;
    font-family: 'Fira Code', monospace;
    background-color: #FFFFFF;
    color: #000000;
    line-height: 1.6;
}

a {
    color: #6C08C9;
    text-decoration: none;
}

    a:hover {
        text-decoration: underline;
    }

/* Page Container */
.page-container {
    width: 100%;
    margin: 0 auto;
    background-color: #FFFFFF;
    padding: 0 2%;
    box-sizing: border-box;
}

/* Header */
header {
    background: #FFFFFF;
    color: #6C08C9;
    text-align: center;
    padding: 0 20px;
    border-bottom: 2px solid #000000;
}

    header h1 {
        margin-bottom: 0px;
        font-size: 2.75rem;
    }

.tagline {
    font-size: 1rem;
    color: #000000;
    margin-top: -4px;
    margin-bottom: 15px;
}

.header-nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    gap: 20px;
}

.header-nav li {
    display: inline;
}

.header-nav a {
    font-size: 1.4rem;
    font-weight: bold;
}

/* Container Layout */
.container {
    display: flex;
    gap: 10px;
    padding: 10px;
}

/* Left Column */
.nav-column {
    flex-shrink: 0;
    background: #FFFFFF;
    padding: 0px;
    text-align: center;
}

/* Logo */
.nav-logo {
    display: block;
    width: 95%;
    max-width: 300px;
    margin: 0 auto;
    height: auto;
}

.nav-column ul {
    list-style: none;
    padding: 0;
}

.nav-column li {
    margin-bottom: 15px;
}

.nav-column a {
    font-size: 1.2rem;
    color: #000000;
}

/* Main Content Column */
.main-column {
    flex: 2; /* Allow this column to grow */
    background: #FAFAFA;
    padding-top: 10px;
    padding-left: 20px;
}

.featured-content {
    text-align: left;
    padding-right: 20px;
}

.featured-content h2 {
    font-size: 2rem;
    margin-bottom: 20px;
}

.featured-content a {
    font-size: 30px;
}

.featured-content p {
    font-size: 18px;
    margin-top: 5px;
}

.featured-content .author {
    margin-top: -10px;
}

.post-content .post-title {
    font-size: 30px;
    color: #6C08C9;
}

.post-content .post-author {
    font-size: 18px;
    margin-top: -32px;
}

.post-content .post-modified {
    font-size: 12px;
    margin-top: -2px;
}

.post-content p {
    text-align: start;
    margin: 0;
    line-height: 1.2;
    font-size: 18px;
}

.post-content div {
    margin: 15px;
    padding: 0;
    width: 95%;
    line-height: 1.4;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.post-content p[style*="text-align:center"] {
    text-align: center;
}

.post-content p[style*="text-align:right"] {
    text-align: right;
}

.post-content p[style*="text-align:justify"] {
    text-align: justify;
}

.box {
    border: 2px solid #6C08C9;
    padding: 1em;
    margin: 1.5em 0;
    border-radius: 10px;
    background-color: #BBBBBB;
}

.image-group {
    display: flex;
    justify-content: center;
    gap: 1em;
    flex-wrap: wrap;
    margin: 1em 0;
}

.image-group img {
    max-width: 100%;
    height: auto;
}

/* Right Column */
.right-column {
    background: #FFFFFF;
    max-width: 425px;
    min-width: 15%;
    padding: 0 20px;
    flex-shrink: 0;
    align-items: center;
}

    /* Blocks in the Right Column */
    .right-column section {
        width: 98%;
        max-width: 400px;
        text-align: left;
        margin-bottom: 20px;
    }

.list-by-category a {
    font-size: 1.4rem;
}

.category-links a {
    font-size: 1.4rem;
}

.featured-posts, .interesting-links {
    margin-bottom: 20px;
}

.featured-posts h2, .interesting-links h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.featured-posts ul, .interesting-links ul {
    list-style: none;
    padding: 0;
}

.featured-posts li, .interesting-links li {
    margin-bottom: 10px;
}

.featured-posts a, .interesting-links a {
    font-size: 1rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background: #FFFFFF;
    border-top: 2px solid #000000;
    font-size: 0.9rem;
}

/* Normalize content spacing in post previews and live display */
.post-content p {
    margin: 0 0 1rem 0; /* consistent bottom spacing */
    line-height: 1.6;
    font-size: 18px;
}

.post-content pre code {
    white-space: pre-wrap;
    font-family: 'Fira Code', monospace;
    background: #1e1e1e;
    color: #f8f8f2;
    padding: 10px;
    display: block;
    border-radius: 6px;
    line-height: 1.5;
}

.logged-in-banner {
    margin-top: -12px;
}

/* Eliminate ghost lines from empty paragraphs like <p><br></p> */
.post-content p:empty,
.post-content p:has(br:only-child) {
    display: none;
}

/* === Mobile Optimization === */
@media (max-width: 992px) {
    .container {
        display: block; /* override flex */
        padding: 10px;
    }

    .nav-column,
    .right-column {
        display: none !important; /* force hide both sidebars */
        width: 0 !important;
        height: 0 !important;
        padding: 0 !important;
        margin: 0 !important;
        overflow: hidden !important;
    }

    .main-column {
        width: 100% !important;
        padding: 10px !important;
        background: #FAFAFA;
    }

    header h1 {
        font-size: 1.8rem;
    }

    .tagline {
        font-size: 0.9rem;
    }

    .header-nav ul {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .header-nav a {
        font-size: 1.2rem;
    }

    .post-content .post-title {
        font-size: 24px;
    }

    .post-content p {
        font-size: 16px;
    }

    footer {
        font-size: 0.8rem;
        padding: 10px;
    }
}