@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');

* {
    font-family: 'Inter', sans-serif;
}

/* ============================
   CODE BLOCKS
   ============================ */

.post-content pre {
    background: #1e1e2e !important;
    padding: 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 14px;
    line-height: 1.6;
    font-weight: 400;
}

.post-content pre code {
    font-family: inherit;
    font-size: inherit;
    background: none !important;
    padding: 0;
    color: #cdd6f4;
}

/* Syntax highlighting - ensure text is visible */
.post-content .highlight pre {
    background: #1e1e2e !important;
}

.post-content .highlight pre code {
    color: #cdd6f4;
}

/* Inline code */
.post-content code {
    font-family: 'JetBrains Mono', 'Fira Code', Consolas, monospace;
    font-size: 0.9em;
    background-color: rgba(128, 86, 144, 0.15);
    color: var(--text-color);
    padding: 0.2em 0.4em;
    border-radius: 4px;
}

/* Don't style code inside pre (code blocks) as inline */
.post-content pre code {
    background-color: transparent;
    padding: 0;
}

/* Increase spacing between bio and posts */
.homepage-columns {
    gap: 5rem;
}

/* ============================
   HOMEPAGE TAGS SECTION (Left Column)
   ============================ */

.homepage-tags-section {
    margin-top: 2rem;
    text-align: center;
    width: 100%;
}

.homepage-tags-heading {
    font-size: 18px;
    margin-bottom: 0.75rem;
    color: var(--text-color);
    opacity: 0.9;
}

.homepage-tags-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.homepage-tag {
    display: inline-block;
    padding: 0.25rem 0.6rem;
    font-size: 13px;
    color: var(--links-color);
    background-color: rgba(128, 86, 144, 0.1);
    border-radius: 4px;
    opacity: 0.85;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.homepage-tag:hover {
    opacity: 1;
    background-color: rgba(128, 86, 144, 0.2);
}

/* ============================
   HOMEPAGE POST LIST INLINE TAGS
   ============================ */

.post-content-homepage {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.post-tags-inline {
    font-size: 12px;
    color: var(--text-color);
    opacity: 0.6;
    margin-top: 2px;
}

.post-tag-link {
    color: var(--links-color);
    opacity: 0.8;
}

.post-tag-link:hover {
    opacity: 1;
}

/* Mobile adjustments for homepage post tags */
@media (max-width: 768px) {
    .post-tags-inline {
        margin-bottom: 5px;
    }
}

/* ============================
   /TAGS/ PAGE STYLES
   ============================ */

.tags-page-container {
    max-width: 75%;
    margin: 0 auto;
    padding: 2rem 0;
}

.tags-page-heading {
    margin-bottom: 2rem;
}

.tags-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem 2rem;
}

.tag-item {
    display: inline-flex;
    align-items: baseline;
    gap: 0.3rem;
}

.tag-link {
    color: var(--links-color);
    font-weight: 600;
    opacity: 0.8;
    transition: opacity 0.2s ease;
}

.tag-link:hover {
    opacity: 1;
}

.tag-count {
    color: var(--text-color);
    opacity: 0.6;
    font-size: 14px;
}

/* Mobile adjustments for tags page */
@media (max-width: 768px) {
    .tags-page-container {
        max-width: 90%;
    }

    .tags-list {
        gap: 0.75rem 1.5rem;
    }
}

/* ============================
   TAXONOMY PAGE (filtered by tag)
   ============================ */

.taxonomy-title {
    margin-bottom: 0.5rem;
}

.taxonomy-count {
    color: var(--text-color);
    opacity: 0.6;
    margin-bottom: 2rem;
}

.back-link {
    margin-top: 2rem;
}

.back-link a {
    color: var(--links-color);
    opacity: 0.8;
}

.back-link a:hover {
    opacity: 1;
}
