@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500&display=swap');
/* Custom Font Declarations - Aeonik */
@font-face {
    font-family: 'Aeonik';
    src: url('../fonts/aeonik-regular.woff2') format('woff2'),
         url('../fonts/aeonik-regular.woff') format('woff');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Aeonik';
    src: url('../fonts/aeonik-medium.woff2') format('woff2'),
         url('../fonts/aeonik-medium.woff') format('woff');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}



:root {
    --bg-primary: #0f1419;
    --bg-secondary: #1a1d23;
    --text-primary: #e8e3d8;
    --text-secondary: #c7beb3;
    --text-accent: #ff8c42;
    --text-muted: #9d9488;
    --border-color: #2d3133;
    --bg-hover: #232b2b;
    --shadow: 0 4px 24px rgba(0,0,0,0.15);
    --dark-800: #171513;
    --offwhite: #F4EBE8;
}


body {
    background: var(--bg-primary);
    color: var(--text-primary);
    font-family: 'Aeonik', -apple-system, BlinkMacSystemFont, sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    font-size: 1rem;
    line-height: 1.7;
    font-weight: 400;
    letter-spacing: 0.01em;
}

/* Aeonik font successfully applied site-wide */

/* Site header */
.site-header {
    background: #000000;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-content {
    /* max-width: 1200px; */
    margin: 0;
    padding: 0.5rem 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-links {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-title {
    font-family: 'Aeonik', sans-serif;
    font-size: 1.6rem;
    font-weight: 500;
    color: var(--text-accent);
    text-decoration: none;
    letter-spacing: 0.5px;
    transition: color 0.2s;
    display: flex;
    align-items: center;
}

.site-logo {
    height: 24px;
    width: auto;
}

.site-title:hover {
    color: #f43f5e;
}

.header-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.header-link:hover {
    color: var(--text-accent);
}

.header-link.get-started {
    background: linear-gradient(90deg, #f43f5e 0%, #f97316 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    font-weight: 500;
}

.header-link.get-started:hover {
    background: linear-gradient(90deg, #f97316 0%, #f43f5e 100%);
    color: white;
}

/* Main container */
main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.3rem 1rem;
}

/* Featured section */
.featured-section {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 1rem;
}

.main-featured {
    background: linear-gradient(120deg, #232627 60%, #232b2b 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.main-featured:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.main-featured .preview-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.main-featured:hover .preview-image {
    transform: scale(1.02);
}

.main-featured h2 {
    font-family: 'Aeonik', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    margin: 1.25rem 1.25rem 0.75rem 1.25rem;
    color: var(--text-primary);
    line-height: 1.4;
    letter-spacing: -0.01em;
}

.main-featured h2 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.main-featured h2 a:hover {
    color: var(--accent-color);
}

.main-featured .post-date {
    margin: 0 1.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    opacity: 0.8;
}

.main-featured .post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0 1rem 0.4rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    font-weight: 400;
    opacity: 0.8;
}

.main-featured .post-meta .post-author {
    text-align: left;
}

.main-featured .post-meta .post-date {
    text-align: right;
}

.main-featured .post-description {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 1.25rem 1.25rem 1.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: 'Aeonik', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0;
    opacity: 0.95;
    max-width: 90%;
    font-weight: 400;
}

.main-featured:hover .post-description {
    opacity: 1;
}

.side-featured {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.side-featured-post {
    background: linear-gradient(120deg, #232627 60%, #232b2b 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    height: 100%;
}

.side-featured-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.side-featured-post .preview-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.side-featured-post h2 {
    font-family: 'Aeonik', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    margin: 0.8rem 0.8rem 0.3rem 0.8rem;
    color: var(--text-primary);
    line-height: 1.3;
    text-align: left !important;
}

.side-featured-post h2 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.side-featured-post .post-meta {
    display: block !important;
    text-align: left !important;
    margin: 0.4rem 0.8rem 0.8rem !important;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

/* Post grid */
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

/* Post cards */
.post-card {
    background: linear-gradient(120deg, #232627 60%, #232b2b 100%);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.post-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.post-card .preview-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.post-card:hover .preview-image {
    transform: scale(1.02);
}

.post-card h2 {
    font-family: 'Aeonik', sans-serif;
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0.8rem 0.8rem 0.3rem 0.8rem;
    color: var(--text-primary);
    line-height: 1.3;
    text-align: left !important;
}

.post-card h2 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.post-card h2 a:hover {
    color: var(--accent-color);
}

.post-card .post-meta {
    display: block !important;
    text-align: left !important;
    margin: 0.4rem 0.8rem 0.8rem !important;
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.4;
}

.post-card .post-description {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    margin: 0 0.8rem 1rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    opacity: 0.8;
    text-align: left;
}

/* Content wrapper */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

/* Table of Contents */
.toc-container {
    position: sticky;
    top: calc(48px); /* header height (41px) + 7px buffer */
    height: fit-content;
    padding-left: 1rem;
    padding-top: 0.5rem;
    border-left: 2px solid var(--border-color);
    text-align: left;
    background: linear-gradient(to right, rgba(35, 38, 39, 0.5), transparent);
    border-radius: 4px;
    z-index: 99; /* Below header's z-index of 100 */
}

.toc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    margin-bottom: 0;
    opacity: 0.9;
}

.toc h2 {
    font-family: 'Aeonik', sans-serif;
    color: var(--text-accent);
    font-size: 1.1rem;
    font-weight: 500;
    margin-bottom: 1rem;
    margin-top: 0;
    text-align: left;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1.1;
}

.toc ul {
    list-style: none;
    padding-left: 0.5rem;
    margin: 0;
}

.toc li {
    margin-bottom: 0.6rem;
    text-align: left;
    line-height: 1.4;
}

.toc ul ul > li {
    margin-top: 0.4rem;
    margin-bottom: 0.4rem;
    font-size: 0.9rem;
    padding-left: 1rem;
    border-left: 1px solid var(--border-color);
}

.toc a {
    color: var(--text-secondary);
    opacity: 0.8;
    transition: all 0.2s ease;
    display: block;
    padding: 0.2rem 0;
}

.toc a:hover {
    color: var(--text-accent);
    opacity: 1;
}

.toc a.read {
    color: var(--text-primary);
    opacity: 1;
}

.toc a.unread {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Nested list styling */
.toc ul ul,
.toc ul ul ul {
    margin-left: 0;
    margin-top: 0.4rem;
}

.toc a.read {
    color: var(--text-primary);
    opacity: 1;
}

.toc a.unread {
    color: var(--text-secondary);
    opacity: 0.6;
}

/* Single post */
.single-post {
    background: linear-gradient(120deg, #232627 60%, #232b2b 100%);
    border-radius: 18px;
    padding: 1.5rem 1.5rem 1.5rem 1.5rem;
    box-shadow: var(--shadow);
    margin-bottom: 2.5rem;
}

.post-header {
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.7rem;
    background: linear-gradient(120deg, #232627 60%, #232b2b 100%);
    border-radius: 10px;
    padding: 1rem;
}

main h1 {
    font-family: 'Aeonik', sans-serif;
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    margin-top: 0;
    color: var(--text-primary);
    line-height: 1.3;
    text-align: center;
    letter-spacing: -0.02em;
}

main .post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 400;
}

.single-post .post-date {
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
    font-size: 1.05rem;
}

.single-post .preview-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
}

.single-post .post-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 1.05rem;
    font-weight: 400;
}

.single-post .post-description {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.single-post .share-buttons {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.single-post .share-button {
    padding: 0.5rem 1rem;
    background: var(--bg-primary);
    border-radius: 6px;
    color: var(--text-accent);
    font-size: 0.9rem;
    transition: background-color 0.2s;
}

.single-post .share-button:hover {
    background: var(--bg-hover);
    color: #fff;
}

/* Post layout */
.post-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 2.5rem;
    align-items: start;
}

.post-main {
    min-width: 0;
}

/* Post content */
.post-content {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-primary);
    padding-bottom: 2rem;
    max-width: 750px;
    margin: 0 auto;
    font-family: 'Aeonik', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    letter-spacing: 0.01em;
}

.post-content h1 {
    font-family: 'Aeonik', sans-serif;
    font-size: 2.25rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-accent);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.post-content h2, .post-content h3 {
    position: relative;
    padding-right: 1.5rem;
}

.post-content h2:hover .heading-link,
.post-content h3:hover .heading-link {
    opacity: 1;
}

.heading-link {
    position: absolute;
    right: -1.2rem;
    opacity: 0;
    color: var(--text-secondary);
    text-decoration: none;
    transition: opacity 0.2s ease;
    padding: 0.2rem 0.4rem;
    border-radius: 4px;
}

.post-content h2 .heading-link {
    font-size: 1.5rem;
    line-height: 1;
}

.post-content h3 .heading-link {
    font-size: 1.1rem;
    line-height: 1;
}

.heading-link:hover {
    color: var(--text-accent);
    background: var(--bg-hover);
}

.heading-link.copied {
    color: var(--text-accent);
    opacity: 1;
}

.post-content h2 {
    font-family: 'Aeonik', sans-serif;
    font-size: 1.75rem;
    font-weight: 600;
    margin: 3rem 0 1.5rem;
    color: var(--text-primary);
    border-bottom: 2px solid var(--text-accent);
    padding-bottom: 0.5rem;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.post-content h3 {
    font-family: 'Aeonik', sans-serif;
    font-size: 1.375rem;
    font-weight: 600;
    margin: 2.5rem 0 1rem;
    color: var(--text-primary);
    border-bottom: 1px solid rgba(232, 227, 216, 0.2);
    padding-bottom: 0.4rem;
    letter-spacing: -0.005em;
    line-height: 1.4;
}

.post-content h4 {
    font-family: 'Aeonik', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 2rem 0 1rem;
    color: var(--text-primary);
    border-left: 3px solid var(--text-accent);
    padding-left: 1rem;
    letter-spacing: 0;
    line-height: 1.5;
}

.post-content p {
    margin-bottom: 1.5rem;
    color: var(--text-primary);
    line-height: 1.8;
    font-weight: 400;
}

.post-content ul, .post-content ol {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    line-height: 1.8;
}

.post-content li {
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    line-height: 1.8;
}

.post-content strong {
    font-family: 'Aeonik', sans-serif;
    font-weight: 600;
    color: var(--text-primary);
}

.post-content a {
    color: var(--text-accent);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s ease;
    border-bottom: 1px solid transparent;
}

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

/* Ensure strong text within links doesn't double up effects */
.post-content a strong {
    color: inherit;
    font-weight: inherit;
}

/* ===== TABLE STYLING ===== */

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.post-content table th {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-primary);
    font-weight: 500;
    padding: 0.75rem 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 0.9rem;
    letter-spacing: 0.3px;
}

.post-content table td {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.post-content table tr:last-child td {
    border-bottom: none;
}

.post-content table tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

.post-content table th:first-child,
.post-content table td:first-child {
    padding-left: 1.25rem;
}

.post-content table th:last-child,
.post-content table td:last-child {
    padding-right: 1.25rem;
}

/* Responsive table handling */
@media (max-width: 768px) {
    .post-content table {
        font-size: 0.85rem;
        margin: 1rem 0;
    }
    
    .post-content table th,
    .post-content table td {
        padding: 0.6rem 0.8rem;
    }
    
    .post-content table th:first-child,
    .post-content table td:first-child {
        padding-left: 1rem;
    }
    
    .post-content table th:last-child,
    .post-content table td:last-child {
        padding-right: 1rem;
    }
}

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

/* Inline code styling */
.post-content code {
    background: rgba(26, 29, 35, 0.8);
    color: var(--text-primary);
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    font-family: 'JetBrains Mono', 'SF Mono', 'Monaco', 'Consolas', monospace;
    font-size: 0.9em;
    font-weight: 500;
    border: 1px solid rgba(255, 140, 66, 0.2);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all 0.2s ease;
}

.post-content code:hover {
    background: linear-gradient(135deg, #242831 0%, #2d3748 100%);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Code block container */
.post-content pre {
    background: linear-gradient(135deg, #0f1419 0%, #1a1d23 100%);
    border: 1px solid #2d3748;
    border-radius: 12px;
    margin: 1.5rem 0;
    overflow: hidden;
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    transition: all 0.3s ease;
}

.post-content pre:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.5),
        0 2px 6px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Code block header with language indicator */
.post-content pre::before {
    content: attr(data-lang);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, #1a1d23 0%, #2d3748 100%);
    color: #a0aec0;
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid #2d3748;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 2;
}

/* Hide language strip for code blocks without language labels */
.post-content pre[data-lang=""]::before {
    display: none;
}

/* Language-specific styling */
.post-content pre[data-lang="python"]::before {
    background: linear-gradient(135deg, #3776ab 0%, #4b8bbe 100%);
}

.post-content pre[data-lang="javascript"]::before,
.post-content pre[data-lang="js"]::before {
    background: linear-gradient(135deg, #f7df1e 0%, #ffeb3b 100%);
    color: #000;
}

.post-content pre[data-lang="typescript"]::before,
.post-content pre[data-lang="ts"]::before {
    background: linear-gradient(135deg, #3178c6 0%, #4a90e2 100%);
}

.post-content pre[data-lang="rust"]::before {
    background: linear-gradient(135deg, #ce422b 0%, #f74c00 100%);
}

.post-content pre[data-lang="go"]::before {
    background: linear-gradient(135deg, #00add8 0%, #5dc9e2 100%);
}

.post-content pre[data-lang="bash"]::before,
.post-content pre[data-lang="shell"]::before {
    background: linear-gradient(135deg, #4eaa25 0%, #6cc04a 100%);
}

.post-content pre[data-lang="sql"]::before {
    background: linear-gradient(135deg, #336791 0%, #4a90e2 100%);
}

.post-content pre[data-lang="json"]::before {
    background: linear-gradient(135deg, #292929 0%, #525252 100%);
}

.post-content pre[data-lang="yaml"]::before,
.post-content pre[data-lang="yml"]::before {
    background: linear-gradient(135deg, #cb171e 0%, #f43f5e 100%);
}

/* Code content styling */
.post-content pre code {
    display: block;
    background: none;
    color: #e2e8f0;
    padding: 1.25rem;
    padding-top: 2.5rem;
    margin: 0;
    font-family: 'JetBrains Mono', 'Fira Code', 'Monaco', 'Consolas', monospace;
    font-size: 0.9rem;
    line-height: 1.6;
    font-weight: 400;
    overflow-x: auto;
    white-space: pre;
    border-radius: 0;
    position: relative;
    z-index: 1;
}

/* Adjust padding for code blocks without language headers */
.post-content pre[data-lang=""] code {
    padding-top: 1.25rem;
}

/* Scrollbar styling for code blocks */
.post-content pre code::-webkit-scrollbar {
    height: 8px;
}

.post-content pre code::-webkit-scrollbar-track {
    background: #1a1d23;
    border-radius: 4px;
}

.post-content pre code::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, #f97316 0%, #f43f5e 100%);
    border-radius: 4px;
    transition: background 0.2s ease;
}

.post-content pre code::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, #f43f5e 0%, #f97316 100%);
}

/* Copy button for code blocks */
.post-content pre {
    position: relative;
}

.post-content pre .copy-button {
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #a0aec0;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0;
    transition: all 0.2s ease;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
    z-index: 3;
}

.post-content pre:hover .copy-button {
    opacity: 1;
}

.post-content pre .copy-button:hover {
    background: linear-gradient(135deg, #f97316 0%, #f43f5e 100%);
    border-color: #f97316;
    color: white;
    transform: scale(1.05);
}

.post-content pre .copy-button.copied {
    background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
    color: white;
}

/* Line numbers for code blocks */
.post-content pre.line-numbers {
    padding-left: 0;
}

.post-content pre.line-numbers code {
    padding-left: 3.5rem;
    position: relative;
}

.post-content pre.line-numbers code::before {
    content: counter(line-number);
    counter-increment: line-number;
    position: absolute;
    left: 0;
    top: 0;
    width: 3rem;
    padding: 1.25rem 0.5rem;
    background: rgba(0, 0, 0, 0.3);
    border-right: 1px solid #2d3748;
    color: #64748b;
    font-size: 0.8rem;
    text-align: right;
    user-select: none;
    line-height: 1.6;
}

/* Terminal-style code blocks */
.post-content pre.terminal {
    background: linear-gradient(135deg, #000000 0%, #1a1a1a 100%);
    border: 2px solid #333;
}

.post-content pre.terminal::before {
    content: "terminal";
    background: linear-gradient(135deg, #333 0%, #555 100%);
    color: #00ff00;
}

.post-content pre.terminal code {
    color: #00ff00;
    font-family: 'JetBrains Mono', 'Monaco', 'Consolas', monospace;
}

/* Highlighted lines in code blocks */
.post-content pre code .highlight-line {
    background: rgba(249, 115, 22, 0.1);
    border-left: 3px solid #f97316;
    padding-left: 0.5rem;
    margin-left: -1.25rem;
    margin-right: -1.25rem;
    padding-right: 1.25rem;
    display: block;
}

/* Code block animations */
@keyframes codeBlockSlideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.post-content pre {
    animation: codeBlockSlideIn 0.4s ease-out;
}

/* Responsive design for code blocks */
@media (max-width: 768px) {
    .post-content pre {
        margin: 1rem -1rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
    }
    
    .post-content pre code {
        padding: 1rem;
        padding-top: 2.2rem;
        font-size: 0.85rem;
    }
    
    .post-content pre::before {
        font-size: 0.7rem;
        padding: 0.4rem 1rem;
    }
    
    .post-content pre .copy-button {
        top: 0.4rem;
        right: 1rem;
        padding: 0.3rem 0.6rem;
        font-size: 0.7rem;
    }
}

/* Focus states for accessibility */
.post-content pre:focus-within {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

.post-content pre .copy-button:focus {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

/* ===== CALMING QUOTE STYLING ===== */

/* Blockquote container */
.post-content blockquote {
    position: relative;
    margin: 2.5rem 0;
    padding: 2rem 2.5rem;
    background: linear-gradient(135deg, rgba(26, 29, 35, 0.6) 0%, rgba(36, 40, 49, 0.4) 100%);
    border: 1px solid rgba(255, 140, 66, 0.2);
    border-left: 3px solid var(--text-accent);
    border-radius: 16px;
    font-style: italic;
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-secondary);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.post-content blockquote:hover {
    transform: translateY(-2px);
    box-shadow: 
        0 8px 20px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

/* Simple quote icon */
.post-content blockquote::before {
    content: '"';
    position: absolute;
    top: 1rem;
    left: 1rem;
    font-size: 2rem;
    font-weight: bold;
    color: #f97316;
    opacity: 0.4;
    font-family: Georgia, serif;
    line-height: 1;
}

/* Quote content */
.post-content blockquote p {
    margin: 0;
    position: relative;
    z-index: 1;
    padding-left: 1rem;
}

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

/* Attribution styling for quotes with author info */
.post-content blockquote p:last-child:has(em),
.post-content blockquote p:last-child em {
    font-style: normal;
    font-weight: 600;
    color: #f97316;
    font-size: 0.95rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid rgba(249, 115, 22, 0.2);
    text-align: right;
}

/* Special styling for testimonials */
.post-content blockquote.testimonial {
    background: linear-gradient(135deg, #0f1419 0%, #1a1d23 100%);
    border-left-color: #22c55e;
}

.post-content blockquote.testimonial::before {
    color: #22c55e;
}

.post-content blockquote.testimonial p:last-child em {
    color: #22c55e;
    border-top-color: rgba(34, 197, 94, 0.2);
}

/* Warning/Important quotes */
.post-content blockquote.warning {
    background: linear-gradient(135deg, #1a1410 0%, #2d2517 100%);
    border-left-color: #f59e0b;
}

.post-content blockquote.warning::before {
    color: #f59e0b;
}

/* Info quotes */
.post-content blockquote.info {
    background: linear-gradient(135deg, #0f1419 0%, #1a1d23 100%);
    border-left-color: #3b82f6;
}

.post-content blockquote.info::before {
    color: #3b82f6;
}

/* Nested quotes */
.post-content blockquote blockquote {
    margin: 1rem 0;
    padding: 1rem 1.5rem;
    font-size: 1rem;
    background: rgba(0, 0, 0, 0.3);
    border-left: 2px solid #64748b;
}

.post-content blockquote blockquote::before {
    font-size: 1.5rem;
    color: #64748b;
    top: 0.5rem;
    left: 0.5rem;
}

/* Animation for quotes */
@keyframes quoteSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.post-content blockquote {
    animation: quoteSlideIn 0.5s ease-out;
}

/* Responsive design for quotes */
@media (max-width: 768px) {
    .post-content blockquote {
        margin: 1.5rem -1rem;
        padding: 1.25rem 1.5rem;
        border-radius: 0;
        border-left: none;
        border-right: none;
        font-size: 1rem;
    }
    
    .post-content blockquote::before {
        font-size: 1.5rem;
        top: 0.75rem;
        left: 0.75rem;
    }
    
    .post-content blockquote p {
        padding-left: 0.75rem;
    }
    
    .post-content blockquote p:last-child em {
        font-size: 0.9rem;
        text-align: left;
    }
}

/* Focus states for accessibility */
.post-content blockquote:focus-within {
    outline: 2px solid #f97316;
    outline-offset: 2px;
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .post-content blockquote {
        animation: none;
        transition: none;
    }
    
    .post-content blockquote:hover {
        transform: none;
    }
}

/* Image width constraints for all post images */
.post-content img,
.main-featured img,
.side-featured-post img,
.post-card img,
article img {
    max-width: 100%;
    width: 100%;
    height: auto;
    display: block;
    margin: 0;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    object-fit: contain;
}

/* Specific handling for post content images - 75% width for all blog posts */
.post-content img {
    width: 75%;
    max-width: 75%;
    height: auto;
    display: block;
    margin: 1.5rem auto;
}

/* Handle transparent images on dark backgrounds - specifically for column shredding diagrams */
.post-content img[src*="columnar-file-readers-in-depth-column-shredding"],
.post-content img[src*="Rows-to-Columns"],
.post-content img[src*="Shredding-Level"],
.post-content img[src*="What-is-a-List"],
.post-content img[src*="Too-Much-Shredding"],
.post-content img[src*="Too-much-shredding"],
.post-content img[src*="Zipped-shredding"],
.post-content img[src*="Unshredding"],
.post-content img[src*="Data-Spreading"] {
    background: white;
    padding: 1rem;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
}



/* Post navigation */
.post-navigation {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-color);
    text-align: right;
}

.back-link {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: var(--bg-primary);
    border-radius: 6px;
    transition: background-color 0.2s;
    font-weight: 500;
    color: var(--text-accent);
    font-size: 1.05rem;
}

.back-link:hover {
    background: var(--bg-hover);
    color: #fff;
}

/* Links */
a {
    color: var(--text-primary);
    text-decoration: none;
}
a:hover {
    color: var(--text-accent);
}

/* Responsive design */
@media (max-width: 1200px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 1024px) {
    .content-wrapper {
        grid-template-columns: 1fr;
    }
    
    .toc-container {
        position: static;
        max-height: none;
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        padding-bottom: 1rem;
        margin-bottom: 2rem;
    }
    .featured-section {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .main-featured h2 {
        font-size: 1.5rem;
    }
    
    .side-featured {
        margin-top: 0;
    }
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}
@media (max-width: 768px) {
    .content-wrapper {
        padding: 1rem;
    }
    .post-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .main-featured h2 {
        font-size: 1.3rem;
    }
    .main-featured .post-description {
        font-size: 1rem;
    }
    .single-post {
        padding: 1.2rem 0.5rem;
    }
    .single-post h1 {
        font-size: 2rem;
    }
    .single-post .preview-image {
        height: 200px;
    }
    .post-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    .toc-container {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
        margin-bottom: 2rem;
        padding-bottom: 1rem;
        padding-right: 0;
    }
    .header-links {
        gap: 1rem;
    }
    .header-link {
        font-size: 0.9rem;
    }
    .site-logo {
        height: 24px;
    }
    .side-featured {
        grid-template-columns: 1fr;
    }
}

/* Footer Styles */
.site-footer {
    background: #000000;
    padding: 1rem 0;
    margin-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-content .site-logo {
    height: 24px;
    width: auto;
}

.footer-links {
    display: flex;
    gap: 1.5rem;
    align-items: center;
}

.footer-link {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.footer-link.get-started {
    background: linear-gradient(90deg, #f43f5e 0%, #f97316 100%);
    color: white;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    transition: all 0.2s ease;
    font-weight: 600;
}

.footer-link.get-started:hover {
    background: linear-gradient(90deg, #f97316 0%, #f43f5e 100%);
    color: white;
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .footer-links {
        flex-direction: column;
        gap: 0.8rem;
    }

    .footer-link.get-started {
        width: 100%;
        text-align: center;
    }
}

/* Announcement Bar */
.announcement-bar {
    background: linear-gradient(90deg, var(--accent-color) 0%, var(--accent-hover) 100%);
    color: white;
    padding: 0.4rem 0;
    text-align: center;
    font-size: 0.8rem;
}

.announcement-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.7rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.85rem;
}

.announcement-link {
    font-family: 'Aeonik', sans-serif;
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: opacity 0.2s ease;
}

.announcement-link:hover {
    opacity: 0.8;
}

@media (max-width: 768px) {
    .announcement-content {
        flex-direction: column;
        gap: 0.4rem;
    }
}

/* Add smooth transition for hover effects */
.post-card:hover .post-description,
.main-featured:hover .post-description,
.side-featured-post:hover .post-description {
    opacity: 1;
    transition: opacity 0.2s ease;
}

.post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0 1.25rem 0.5rem 1.25rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.8;
}

.post-meta .post-author {
    text-align: left;
}

.post-meta .post-date {
    text-align: right;
}

.post-meta .meta-divider {
    font-size: 1.2em;
    margin: 0 0.3em;
    opacity: 0.6;
}

.post-category {
    font-family: 'Aeonik', sans-serif;
    color: var(--text-accent);
    font-weight: 500;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.main-featured .post-meta {
    margin: 0.5rem 1rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
}

.main-featured .post-meta .meta-divider {
    margin: 0 0.2rem;
}

.side-featured-post .post-meta {
    margin: 0.4rem 0.8rem 0.8rem;
    font-size: 0.85rem;
    text-align: left;
}

.side-featured-post .post-meta .meta-divider {
    margin: 0 0.2rem;
}

.post-card:hover .post-meta,
.main-featured:hover .post-meta,
.side-featured-post:hover .post-meta {
    opacity: 1;
}

@media (max-width: 1024px) {
    .logo-overlay { width: 28px; height: 28px; }
    .logo-overlay img { width: 18px; height: 18px; }
}
@media (max-width: 768px) {
    .logo-overlay { width: 24px; height: 24px; }
    .logo-overlay img { width: 15px; height: 15px; }
}



/* Related posts section */
.related-posts {
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid var(--border-color);
}

.related-posts h2 {
    font-family: 'Aeonik', sans-serif;
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-accent);
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.related-post {
    background: linear-gradient(120deg, #232627 60%, #232b2b 100%);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
}

.related-post:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.related-post .related-preview-image {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    object-position: center;
    transition: transform 0.3s ease;
}

.related-post:hover .related-preview-image {
    transform: scale(1.02);
}

.related-post h3 {
    font-size: 1rem;
    margin: 0.8rem 0.8rem 0.3rem 0.8rem;
    color: var(--text-primary);
    line-height: 1.4;
}

.related-post h3 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

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

.related-post .post-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    margin: 0 0.8rem 0.8rem 0.8rem;
    color: var(--text-secondary);
    font-size: 0.85rem;
    font-weight: 400;
    opacity: 0.8;
}

.related-post .post-meta .post-author {
    text-align: left;
}

.related-post .post-meta .post-date {
    text-align: right;
}

.related-post:hover .post-meta {
    opacity: 1;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Aeonik', sans-serif;
    font-weight: 500;
    color: #fff !important;
}

/* Breadcrumbs removed */

.announcement-close {
    background: none;
    border: none;
    color: white;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0 0.5rem;
    opacity: 0.7;
    transition: opacity 0.2s ease;
    line-height: 1;
}

.announcement-close:hover {
    opacity: 1;
}

.announcement-bar.hidden {
    display: none;
}

/* Pagination Styles - Enhanced & Stylish */
main .pagination,
nav.pagination {
    margin: 2rem 0 2rem 0 !important;
    padding: 1.5rem 1rem !important;
    background: linear-gradient(135deg, rgba(35, 38, 39, 0.3) 0%, rgba(35, 43, 43, 0.5) 100%) !important;
    border-radius: 12px !important;
    border: 1px solid rgba(249, 115, 22, 0.1) !important;
    position: relative !important;
    overflow: hidden !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
}

main .pagination::before,
nav.pagination::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(249, 115, 22, 0.3), transparent);
}

main .pagination-links,
nav.pagination .pagination-links {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 0.5rem !important;
    flex-wrap: wrap !important;
    width: 100% !important;
    max-width: 100% !important;
}

main .pagination-link,
nav.pagination .pagination-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 2.25rem !important;
    height: 2.25rem !important;
    padding: 0 0.75rem !important;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(35, 38, 39, 0.8) 100%) !important;
    color: var(--text-secondary) !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-size: 0.9rem !important;
    font-weight: 600 !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    border: 1px solid rgba(249, 115, 22, 0.15) !important;
    position: relative !important;
    overflow: hidden !important;
    backdrop-filter: blur(10px) !important;
}

main .pagination-link::before,
nav.pagination .pagination-link::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: -100% !important;
    width: 100% !important;
    height: 100% !important;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent) !important;
    transition: left 0.5s ease !important;
}

main .pagination-link:hover::before,
nav.pagination .pagination-link:hover::before {
    left: 100% !important;
}

main .pagination-link:hover,
nav.pagination .pagination-link:hover {
    background: linear-gradient(135deg, var(--bg-hover) 0%, rgba(249, 115, 22, 0.1) 100%) !important;
    color: var(--text-primary) !important;
    transform: translateY(-1px) scale(1.03) !important;
    box-shadow: 0 4px 15px rgba(249, 115, 22, 0.2), 0 2px 5px rgba(0, 0, 0, 0.3) !important;
    border-color: rgba(249, 115, 22, 0.4) !important;
}

main .pagination-link.current,
nav.pagination .pagination-link.current {
    background: linear-gradient(135deg, #f43f5e 0%, #f97316 100%) !important;
    color: white !important;
    border-color: transparent !important;
    font-weight: 700 !important;
    box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3), 0 0 0 2px rgba(255, 255, 255, 0.1) !important;
    animation: currentPagePulse 2s ease-in-out infinite !important;
    transform: scale(1.05) !important;
}

@keyframes currentPagePulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(244, 63, 94, 0.3), 0 0 0 2px rgba(255, 255, 255, 0.1); }
    50% { box-shadow: 0 6px 20px rgba(244, 63, 94, 0.4), 0 0 0 2px rgba(249, 115, 22, 0.2); }
}

.pagination-link.current:hover {
    transform: translateY(-1px) scale(1.08);
    animation: none;
}

.pagination-link.prev,
.pagination-link.next {
    gap: 0.4rem;
    padding: 0 0.75rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.1) 0%, rgba(249, 115, 22, 0.05) 100%);
    border-color: rgba(249, 115, 22, 0.3);
    color: var(--text-accent);
}

.pagination-link.prev:hover,
.pagination-link.next:hover {
    background: linear-gradient(135deg, var(--text-accent) 0%, rgba(249, 115, 22, 0.9) 100%);
    color: var(--bg-primary);
    transform: translateY(-1px) scale(1.03);
    box-shadow: 0 8px 20px rgba(249, 115, 22, 0.3);
}

.pagination-arrow {
    font-size: 1.1rem;
    line-height: 1;
    transition: transform 0.3s ease;
}

.pagination-link.prev:hover .pagination-arrow {
    transform: translateX(-2px);
}

.pagination-link.next:hover .pagination-arrow {
    transform: translateX(2px);
}

.pagination-ellipsis {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    color: var(--text-accent);
    font-size: 1rem;
    opacity: 0.5;
    animation: ellipsisPulse 1.5s ease-in-out infinite;
}

@keyframes ellipsisPulse {
    0%, 100% { opacity: 0.5; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.1); }
}

/* Responsive pagination - Enhanced */
@media (max-width: 768px) {
    .pagination {
        margin: 2rem 0 2rem 0;
        padding: 1.5rem 1rem;
        border-radius: 10px;
    }

    .pagination-links {
        gap: 0.4rem;
    }

    .pagination-link {
        min-width: 2.25rem;
        height: 2.25rem;
        font-size: 0.85rem;
        border-radius: 6px;
    }
    
    .pagination-link.prev .pagination-text,
    .pagination-link.next .pagination-text {
        display: none;
    }
    
    .pagination-link.prev,
    .pagination-link.next {
        padding: 0;
        width: 2.25rem;
    }

    .pagination-link.current {
        transform: scale(1.03);
    }

    .pagination-link.current:hover {
        transform: translateY(-1px) scale(1.05);
    }
}

@media (max-width: 480px) {
    .pagination {
        padding: 1.25rem 0.75rem;
        margin: 1.5rem 0 1.5rem 0;
    }
    
    .pagination-links {
        justify-content: space-between;
        gap: 0.4rem;
    }

    .pagination-link {
        min-width: 2rem;
        height: 2rem;
        font-size: 0.8rem;
    }
    
    .pagination-link.page-number {
        display: none;
    }

    .pagination-link.current {
        display: inline-flex;
        transform: scale(1);
    }
    
    .pagination-link.current:hover {
        transform: translateY(-1px) scale(1.03);
    }

    .pagination-ellipsis {
        display: none;
    }
}

/* Category System Styles */
.category-header {
    text-align: center;
    margin: 2rem 0 3rem 0;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.category-header h1 {
    font-family: 'Aeonik', sans-serif;
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.category-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.category-meta {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

.post-count {
    font-family: 'Aeonik', sans-serif;
    background: var(--bg-secondary);
    color: var(--text-accent);
    padding: 0.3rem 0.8rem;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 500;
}

/* Category Filters - Enhanced like Pagination */
.category-filters {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin: 3rem 0;
    padding: 2.5rem 2rem;
    background: linear-gradient(135deg, rgba(24, 26, 27, 0.95) 0%, rgba(35, 38, 39, 0.9) 100%);
    border-radius: 20px;
    border: 1px solid rgba(249, 115, 22, 0.15);
    backdrop-filter: blur(20px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.05);
    position: relative;
    overflow: hidden;
    flex-wrap: wrap;
}

.category-filters::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(249, 115, 22, 0.05), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.category-filters:hover::before {
    opacity: 1;
}

.filter-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    height: 3rem;
    padding: 0 1.2rem;
    background: linear-gradient(135deg, var(--bg-secondary) 0%, rgba(35, 38, 39, 0.8) 100%);
    color: var(--text-secondary);
    text-decoration: none;
    border-radius: 15px;
    font-size: 0.9rem;
    font-weight: 600;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(249, 115, 22, 0.15);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    text-transform: capitalize;
    cursor: pointer;
    font-family: inherit;
}

.filter-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
}

.filter-link:hover::before {
    left: 100%;
}

.filter-link.active {
    background: linear-gradient(135deg, #f43f5e 0%, #f97316 100%);
    color: white;
    border-color: transparent;
    font-weight: 700;
    box-shadow: 0 4px 20px rgba(244, 63, 94, 0.3), 0 0 0 2px rgba(255, 255, 255, 0.1);
    animation: activeFilterPulse 2s ease-in-out infinite;
    transform: scale(1.05);
}

@keyframes activeFilterPulse {
    0%, 100% { 
        box-shadow: 0 4px 20px rgba(244, 63, 94, 0.3), 0 0 0 2px rgba(255, 255, 255, 0.1);
    }
    50% { 
        box-shadow: 0 6px 25px rgba(244, 63, 94, 0.4), 0 0 0 3px rgba(249, 115, 22, 0.2);
    }
}

.filter-link.inactive:hover {
    background: linear-gradient(135deg, var(--bg-hover) 0%, rgba(249, 115, 22, 0.1) 100%);
    color: var(--text-primary);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(249, 115, 22, 0.2), 0 4px 10px rgba(0, 0, 0, 0.3);
    border-color: rgba(249, 115, 22, 0.4);
}

.filter-link.active:hover {
    transform: translateY(-2px) scale(1.1);
    animation: none;
    box-shadow: 0 8px 30px rgba(244, 63, 94, 0.4), 0 0 0 3px rgba(249, 115, 22, 0.3);
}

/* Category Tags */
.post-categories {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.8rem;
    flex-wrap: wrap;
}

.category-tag {
    font-family: 'Aeonik', sans-serif;
    background: linear-gradient(90deg, #f43f5e 0%, #f97316 100%);
    color: white;
    padding: 0.25rem 0.6rem;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: capitalize;
}

/* Categories Overview Page */
.categories-header {
    text-align: center;
    margin: 2rem 0 3rem 0;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border-color);
}

.categories-header h1 {
    font-family: 'Aeonik', sans-serif;
    font-size: 2.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.categories-description {
    font-size: 1.1rem;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.category-card {
    background: linear-gradient(120deg, var(--bg-secondary) 60%, var(--bg-hover) 100%);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.2);
}

.category-card h2 {
    font-family: 'Aeonik', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.category-card h2 a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.category-card h2 a:hover {
    color: var(--text-accent);
}

.category-card .category-description {
    color: var(--text-secondary);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.category-stats {
    margin-bottom: 1.5rem;
}

.category-recent h4 {
    color: var(--text-accent);
    font-size: 0.9rem;
    margin-bottom: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.category-recent ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-recent li {
    margin-bottom: 0.5rem;
}

.category-recent a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s ease;
}

.category-recent a:hover {
    color: var(--text-accent);
}

.all-posts-link {
    text-align: center;
    margin-top: 3rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-secondary);
}

.empty-state h3 {
    font-family: 'Aeonik', sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.empty-state p {
    margin-bottom: 2rem;
}

/* Responsive Design for Categories */
@media (max-width: 768px) {
    .category-header h1 {
        font-size: 2rem;
    }
    
    .categories-header h1 {
        font-size: 2rem;
    }
    
    .category-filters {
        margin: 2rem 0;
        padding: 2rem 1.5rem;
        border-radius: 16px;
        gap: 0.5rem;
    }
    
    .filter-link {
        min-width: 2.75rem;
        height: 2.75rem;
        font-size: 0.85rem;
        border-radius: 12px;
        padding: 0 1rem;
    }
    
    .filter-link.active {
        transform: scale(1.02);
    }
    
    .filter-link.active:hover {
        transform: translateY(-2px) scale(1.05);
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .category-card {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .category-filters {
        padding: 1.5rem 1rem;
        margin: 1.5rem 0;
        gap: 0.4rem;
    }
    
    .filter-link {
        min-width: 2.5rem;
        height: 2.5rem;
        font-size: 0.8rem;
        padding: 0 0.8rem;
        border-radius: 10px;
    }
    
    .filter-link.active {
        transform: scale(1);
    }
    
    .filter-link.active:hover {
        transform: translateY(-1px) scale(1.02);
    }
}

.author-section {
    background: linear-gradient(120deg, #232627 60%, #232b2b 100%);
    border-radius: 16px;
    padding: 2rem;
    margin: 3rem 0;
    display: flex;
    gap: 2rem;
    align-items: center;
}

.author-avatar {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info {
    flex: 1;
}

.author-name {
    font-family: 'Aeonik', sans-serif;
    font-size: 1.4rem;
    font-weight: 500;
    color: var(--text-accent);
    margin: 0 0 0.5rem 0;
}

.author-bio {
    color: var(--text-secondary);
    font-size: 1rem;
    line-height: 1.6;
    margin: 0 0 1rem 0;
}

.author-social {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.author-social a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.author-social a:hover {
    color: var(--text-accent);
}

.author-social svg {
    width: 20px;
    height: 20px;
}

@media (max-width: 768px) {
    .author-section {
        flex-direction: column;
        text-align: center;
        padding: 1.5rem;
        gap: 1rem;
    }

    .author-social {
        justify-content: center;
    }
}

/* Admonitions - Calm and Readable */
.admonition {
    background: linear-gradient(135deg, rgba(26, 29, 35, 0.7) 0%, rgba(36, 40, 49, 0.5) 100%);
    border-radius: 16px;
    padding: 2rem;
    margin: 2.5rem 0;
    border-left: 3px solid var(--text-accent);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(12px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    
    /* Gentle shadow */
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.2),
        0 4px 16px rgba(255, 140, 66, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    
    /* Subtle border */
    border: 1px solid rgba(255, 140, 66, 0.15);
}

.admonition::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, transparent, rgba(249, 115, 22, 0.03), transparent);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.admonition:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 
        0 8px 32px rgba(249, 115, 22, 0.25),
        0 16px 48px rgba(0, 0, 0, 0.4),
        0 24px 80px rgba(0, 0, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.15);
    border-color: rgba(249, 115, 22, 0.4);
}

.admonition:hover::before {
    opacity: 1;
}

.admonition-content {
    flex: 1;
    position: relative;
    z-index: 2;
}

.admonition-title {
    font-family: 'Aeonik', sans-serif;
    font-size: 1.125rem;
    font-weight: 600;
    margin: 0 0 1rem 0;
    letter-spacing: 0.25px;
    color: var(--text-accent);
    position: relative;
}

/* Inline layout for default admonitions - add class "inline" to admonition for this behavior */
.admonition.inline .admonition-content {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.admonition.inline .admonition-title {
    margin: 0;
    flex-shrink: 0;
    font-size: 1rem;
}

.admonition.inline .admonition-title::after {
    content: ':';
    margin-left: 0.2rem;
}

.admonition.inline p {
    margin: 0;
    display: inline;
    flex: 1;
}

/* Remove the decorative underline for inline admonitions and add colon */
.admonition.inline .admonition-title::after {
    content: ':';
    margin-left: 0.2rem;
    width: auto;
    height: auto;
    background: none;
    bottom: auto;
    left: auto;
    border-radius: 0;
    opacity: 1;
    position: static;
}

.admonition-title::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #f43f5e 0%, #f97316 100%);
    border-radius: 1px;
    opacity: 0.7;
    transition: width 0.3s ease;
}

.admonition:hover .admonition-title::after {
    width: 60px;
    opacity: 1;
}

.admonition p {
    position: relative;
    z-index: 2;
}

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

/* All admonition types use enhanced orange styling */
.admonition.info,
.admonition.tip,
.admonition.warning,
.admonition.note,
.admonition.fun-fact {
    border-left-color: #f97316;
}

.admonition.info .admonition-title,
.admonition.tip .admonition-title,
.admonition.warning .admonition-title,
.admonition.note .admonition-title,
.admonition.fun-fact .admonition-title {
    color: #f97316;
}

/* Pulse animation for extra attention */
@keyframes admonitionPulse {
    0%, 100% { 
        box-shadow: 
            0 4px 20px rgba(249, 115, 22, 0.15),
            0 8px 32px rgba(0, 0, 0, 0.3),
            0 16px 64px rgba(0, 0, 0, 0.2),
            inset 0 1px 0 rgba(255, 255, 255, 0.1);
    }
    50% { 
        box-shadow: 
            0 6px 24px rgba(249, 115, 22, 0.2),
            0 12px 40px rgba(0, 0, 0, 0.35),
            0 20px 72px rgba(0, 0, 0, 0.25),
            inset 0 1px 0 rgba(255, 255, 255, 0.12);
    }
}

.admonition:focus-within {
    animation: admonitionPulse 2s ease-in-out infinite;
}

@media (max-width: 768px) {
    .admonition {
        padding: 1rem;
        margin: 1.5rem 0;
        border-radius: 10px;
        box-shadow: 
            0 3px 15px rgba(249, 115, 22, 0.12),
            0 6px 24px rgba(0, 0, 0, 0.25),
            0 12px 48px rgba(0, 0, 0, 0.15);
    }

    .admonition-title {
        font-size: 1rem;
    }
    
    .admonition:hover {
        transform: translateY(-1px) scale(1.005);
    }
}

/* Image and figure styling */
.post-content figure,
.post-content p:has(> img) {
    margin: 2.5rem auto;
    text-align: center;
    width: 100%;
}

.post-content figure img,
.post-content p > img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: block;
    margin: 0 auto;
}

.post-content figure img:hover,
.post-content p > img:hover {
    transform: translateY(-4px) scale(1.01);
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

.post-content figcaption,
.post-content p:has(> img) + p em {
    margin-top: 1rem;
    color: var(--text-primary);
    font-size: 1rem;
    font-style: italic;
    line-height: 1.6;
    display: block;
    text-align: center;
}

/* Image grid for multiple images */
.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2.5rem;
    margin: 2.5rem 0;
}

.image-grid figure {
    margin: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.image-grid figure img {
    flex: 1;
    object-fit: cover;
}

@media (max-width: 768px) {
    .post-content figure {
        margin: 2rem 0;
    }

    .post-content figcaption {
        font-size: 1rem;
    }

    .image-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

.post-content a {
    color: #f97316;
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s ease;
    background: linear-gradient(90deg, #f43f5e 0%, #f97316 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-size: 200% 100%;
    background-position: 100% 0;
}

.post-content a:hover {
    background-position: 0 0;
    text-decoration: underline;
}

.post-content strong {
    font-family: 'Aeonik', sans-serif;
    font-weight: 700;
    color: var(--text-primary);
}

/* Ensure strong text within links doesn't double up the gradient effect */
.post-content a strong {
    background: none;
    -webkit-text-fill-color: inherit;
    color: inherit;
}

/* Featured section styles */
.main-featured .post-meta,
.side-featured-post .post-meta {
    margin: 0.5rem 1rem 1rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.4;
    text-align: left;
}

.main-featured .meta-left,
.side-featured-post .meta-left {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex-wrap: wrap;
}

.main-featured .category-tag,
.side-featured-post .category-tag,
.main-featured .post-author,
.side-featured-post .post-author,
.main-featured .post-date,
.side-featured-post .post-date,
.main-featured .meta-divider,
.side-featured-post .meta-divider {
    color: var(--text-secondary);
    font-weight: normal;
}

/* Adjust spacing for side featured posts */
.side-featured-post .post-meta {
    margin: 0.4rem 0.8rem 0.8rem;
    font-size: 0.85rem;
    text-align: left;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .main-featured .post-meta,
    .side-featured-post .post-meta {
        margin: 0.4rem 0.8rem 0.8rem;
        font-size: 0.85rem;
    }
} 
