/* ========================================
   Blog Styles - GammaFlip.io
   Markdown content styling with syntax highlighting
   ======================================== */

/* ========================================
   Blog Header & List
   ======================================== */

.blog-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 4rem 0 3rem;
}

.blog-header h1 {
    color: white;
}

.blog-header .lead {
    color: rgba(255, 255, 255, 0.9);
}

/* Dark theme: Make banner slightly darker and more subtle */
[data-bs-theme="dark"] .blog-header {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.3) 0%, rgba(118, 75, 162, 0.3) 100%),
        linear-gradient(135deg, var(--bg-surface) 0%, var(--bg-body) 100%);
    border-bottom: 1px solid rgba(102, 126, 234, 0.3);
}

.blog-list {
    background-color: var(--bg-surface);
}

/* Blog Card Styles */
.blog-card {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.blog-card-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.blog-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

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

.blog-card-content {
    padding: 1.5rem;
}

.blog-card-date {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.875rem;
}

.blog-card-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.blog-card-title a {
    color: var(--text-primary);
    text-decoration: none;
}

.blog-card-title a:hover {
    color: var(--primary-color);
}

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

.blog-card-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: gap 0.3s ease;
}

.blog-card-link:hover {
    gap: 0.75rem;
}

/* ========================================
   Blog Post Header
   ======================================== */

.blog-post-header {
    padding: 3rem 0 2rem;
}

.blog-post-title {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.blog-post-meta {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin-bottom: 2rem;
}

.blog-post-author {
    font-weight: 500;
}

.blog-post-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.breadcrumb {
    background: transparent;
    padding: 0;
    margin-bottom: 2rem;
}

.breadcrumb-item a {
    color: var(--primary-color);
    text-decoration: none;
}

.breadcrumb-item.active {
    color: var(--text-secondary);
}

/* ========================================
   Featured Image
   ======================================== */

.blog-post-featured-image {
    padding: 0 0 3rem;
}

.blog-post-featured-image img {
    box-shadow: var(--shadow-md);
}

/* ========================================
   Blog Post Content & Markdown Styles
   ======================================== */

.blog-post-content {
    padding: 2rem 0 4rem;
}

.markdown-content {
    font-size: 1.1rem;
    line-height: 1.7;
    color: var(--text-primary);
}

/* Headings */
.markdown-content h1,
.markdown-content h2,
.markdown-content h3,
.markdown-content h4,
.markdown-content h5,
.markdown-content h6 {
    font-weight: 600;
    line-height: 1.3;
    margin-top: 2rem;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.markdown-content h1 {
    font-size: 2.25rem;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.markdown-content h2 {
    font-size: 1.875rem;
    border-bottom: 1px solid var(--border-color);
    padding-bottom: 0.5rem;
}

.markdown-content h3 {
    font-size: 1.5rem;
}

.markdown-content h4 {
    font-size: 1.25rem;
}

/* Paragraphs */
.markdown-content p {
    margin-bottom: 1.5rem;
}

/* Links */
.markdown-content a {
    color: var(--primary-color);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.markdown-content a:hover {
    border-bottom-color: var(--primary-color);
}

/* Lists */
.markdown-content ul,
.markdown-content ol {
    margin-bottom: 1.5rem;
    padding-left: 2rem;
}

.markdown-content li {
    margin-bottom: 0.5rem;
}

.markdown-content ul ul,
.markdown-content ol ol,
.markdown-content ul ol,
.markdown-content ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

/* Blockquotes */
.markdown-content blockquote {
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background-color: var(--bg-surface);
    border-radius: 0 8px 8px 0;
    color: var(--text-secondary);
}

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

/* GitHub-Style Alerts */
.markdown-content .markdown-alert {
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    border-left: 4px solid var(--border-color);
    border-radius: 0 8px 8px 0;
    background-color: transparent;
    color: var(--text-primary);
}

.markdown-content .markdown-alert-title {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.markdown-content .markdown-alert-title .alert-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
}

/* Alert Icons (SVG Paths) */
.markdown-alert-note .alert-icon,
.markdown-alert-info .alert-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%230969da'%3E%3Cpath d='M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z'%3E%3C/path%3E%3C/svg%3E");
}

.markdown-alert-tip .alert-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%231a7f37'%3E%3Cpath d='M8 1.5c-2.363 0-4.5 1.915-4.5 4.35 0 1.106.31 2.04.562 2.715A14.253 14.253 0 0 0 5.25 10c.033.085.06.168.077.25h5.346c.017-.082.044-.165.077-.25.13-.339.467-1.161.85-2.296.252-.676.562-1.61.562-2.715 0-2.435-2.137-4.35-4.5-4.35Zm-3 12.35c0 .355.234.65.6.65h4.8c.366 0 .6-.295.6-.65v-.1c0-.366-.234-.75-.6-.75h-4.8c-.366 0-.6.384-.6.75v.1Z'%3E%3C/path%3E%3C/svg%3E");
}

.markdown-alert-important .alert-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%238250df'%3E%3Cpath d='M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm9-3a1 1 0 1 0-2 0v5a1 1 0 1 0 2 0V5Zm-1 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z'%3E%3C/path%3E%3C/svg%3E");
}

.markdown-alert-warning .alert-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%239a6700'%3E%3Cpath d='M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.03 11.315c.602 1.129-.206 2.507-1.485 2.507H1.912c-1.279 0-2.087-1.378-1.485-2.507l6.03-11.315ZM9 11a1 1 0 1 0-2 0 1 1 0 0 0 2 0Zm-1-7a1 1 0 0 0-1 1v3a1 1 0 0 0 2 0V5a1 1 0 0 0-1-1Z'%3E%3C/path%3E%3C/svg%3E");
}

.markdown-alert-caution .alert-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23cf222e'%3E%3Cpath d='M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z'%3E%3C/path%3E%3C/svg%3E");
}

/* Dark Mode Icon Colors */
[data-bs-theme="dark"] .markdown-alert-note .alert-icon,
[data-bs-theme="dark"] .markdown-alert-info .alert-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%232f81f7'%3E%3Cpath d='M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z'%3E%3C/path%3E%3C/svg%3E");
}

[data-bs-theme="dark"] .markdown-alert-tip .alert-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%233fb950'%3E%3Cpath d='M8 1.5c-2.363 0-4.5 1.915-4.5 4.35 0 1.106.31 2.04.562 2.715A14.253 14.253 0 0 0 5.25 10c.033.085.06.168.077.25h5.346c.017-.082.044-.165.077-.25.13-.339.467-1.161.85-2.296.252-.676.562-1.61.562-2.715 0-2.435-2.137-4.35-4.5-4.35Zm-3 12.35c0 .355.234.65.6.65h4.8c.366 0 .6-.295.6-.65v-.1c0-.366-.234-.75-.6-.75h-4.8c-.366 0-.6.384-.6.75v.1Z'%3E%3C/path%3E%3C/svg%3E");
}

[data-bs-theme="dark"] .markdown-alert-important .alert-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23a371f7'%3E%3Cpath d='M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm9-3a1 1 0 1 0-2 0v5a1 1 0 1 0 2 0V5Zm-1 8a1 1 0 1 0 0-2 1 1 0 0 0 0 2Z'%3E%3C/path%3E%3C/svg%3E");
}

[data-bs-theme="dark"] .markdown-alert-warning .alert-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23d29922'%3E%3Cpath d='M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.03 11.315c.602 1.129-.206 2.507-1.485 2.507H1.912c-1.279 0-2.087-1.378-1.485-2.507l6.03-11.315ZM9 11a1 1 0 1 0-2 0 1 1 0 0 0 2 0Zm-1-7a1 1 0 0 0-1 1v3a1 1 0 0 0 2 0V5a1 1 0 0 0-1-1Z'%3E%3C/path%3E%3C/svg%3E");
}

[data-bs-theme="dark"] .markdown-alert-caution .alert-icon {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f85149'%3E%3Cpath d='M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z'%3E%3C/path%3E%3C/svg%3E");
}

/* Alert Variants Colors and Backgrounds */
.markdown-content .markdown-alert-note,
.markdown-content .markdown-alert-info {
    border-left-color: #0969da;
    background-color: rgba(9, 105, 218, 0.05);
}

.markdown-content .markdown-alert-note .markdown-alert-title,
.markdown-content .markdown-alert-info .markdown-alert-title {
    color: #0969da;
}

.markdown-content .markdown-alert-tip {
    border-left-color: #1a7f37;
    background-color: rgba(26, 127, 55, 0.05);
}

.markdown-content .markdown-alert-tip .markdown-alert-title {
    color: #1a7f37;
}

.markdown-content .markdown-alert-important {
    border-left-color: #8250df;
    background-color: rgba(130, 80, 223, 0.05);
}

.markdown-content .markdown-alert-important .markdown-alert-title {
    color: #8250df;
}

.markdown-content .markdown-alert-warning {
    border-left-color: #9a6700;
    background-color: rgba(154, 103, 0, 0.05);
}

.markdown-content .markdown-alert-warning .markdown-alert-title {
    color: #9a6700;
}

.markdown-content .markdown-alert-caution {
    border-left-color: #cf222e;
    background-color: rgba(207, 34, 46, 0.05);
}

.markdown-content .markdown-alert-caution .markdown-alert-title {
    color: #cf222e;
}

/* Dark mode adjustments for alerts */
[data-bs-theme="dark"] .markdown-content .markdown-alert-note,
[data-bs-theme="dark"] .markdown-content .markdown-alert-info {
    border-left-color: #2f81f7;
    background-color: rgba(47, 129, 247, 0.1);
}

[data-bs-theme="dark"] .markdown-content .markdown-alert-note .markdown-alert-title,
[data-bs-theme="dark"] .markdown-content .markdown-alert-info .markdown-alert-title {
    color: #2f81f7;
}

[data-bs-theme="dark"] .markdown-content .markdown-alert-tip {
    border-left-color: #3fb950;
    background-color: rgba(63, 185, 80, 0.1);
}

[data-bs-theme="dark"] .markdown-content .markdown-alert-tip .markdown-alert-title {
    color: #3fb950;
}

[data-bs-theme="dark"] .markdown-content .markdown-alert-important {
    border-left-color: #a371f7;
    background-color: rgba(163, 113, 247, 0.1);
}

[data-bs-theme="dark"] .markdown-content .markdown-alert-important .markdown-alert-title {
    color: #a371f7;
}

[data-bs-theme="dark"] .markdown-content .markdown-alert-warning {
    border-left-color: #d29922;
    background-color: rgba(210, 153, 34, 0.1);
}

[data-bs-theme="dark"] .markdown-content .markdown-alert-warning .markdown-alert-title {
    color: #d29922;
}

[data-bs-theme="dark"] .markdown-content .markdown-alert-caution {
    border-left-color: #f85149;
    background-color: rgba(248, 81, 73, 0.1);
}

[data-bs-theme="dark"] .markdown-content .markdown-alert-caution .markdown-alert-title {
    color: #f85149;
}

/* Code Blocks */
.markdown-content code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Courier New', monospace;
    font-size: 0.9em;
    background-color: rgba(175, 184, 193, 0.2);
    padding: 0.2em 0.4em;
    border-radius: 4px;
    color: #e01e5a;
}

/* Dark theme inline code: Use :not(pre) > code to avoid affecting code blocks */
[data-bs-theme="dark"] .markdown-content :not(pre)>code {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ff6b9d;
}

.markdown-content pre {
    background-color: #0d1117;
    border: 1px solid var(--theme-border-primary);
    border-radius: 12px;
    padding: 2.8rem 1.5rem 1.5rem;
    /* Increased top padding to avoid overlap */
    overflow-x: auto;
    margin: 2.5rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    position: relative;
    color: #e6edf3;
}

/* Terminal dots (cherries) for premium look */
.markdown-content pre::before,
.markdown-content .codehilite::before {
    content: '';
    position: absolute;
    top: 1.1rem;
    left: 1.25rem;
    width: 0.65rem;
    height: 0.65rem;
    border-radius: 50%;
    background-color: #ff5f56;
    box-shadow: 1.1rem 0 0 #ffbd2e, 2.2rem 0 0 #27c93f;
    opacity: 0.9;
    z-index: 2;
}

/* IMPORTANT: Hide dots on nested pre inside codehilite to avoid "double cherries" */
.markdown-content .codehilite pre::before {
    display: none !important;
}

.markdown-content pre code {
    background-color: transparent;
    padding: 0;
    color: inherit;
    border-radius: 0;
    font-size: 1rem;
    line-height: 1.6;
    display: block;
    font-family: 'JetBrains Mono', 'Fira Code', 'IBM Plex Mono', monospace;
}

/* Callout / Insight Box - a better way to show metrics */
.markdown-content .insight-box {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.05) 0%, rgba(118, 75, 162, 0.05) 100%);
    border-left: 4px solid var(--primary-color);
    border-radius: 0 12px 12px 0;
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    position: relative;
    box-shadow: var(--shadow-sm);
}

[data-bs-theme="dark"] .markdown-content .insight-box {
    background: linear-gradient(135deg, rgba(88, 166, 255, 0.1) 0%, rgba(139, 148, 158, 0.05) 100%);
}

.markdown-content .insight-box::before {
    content: '💡 Insight';
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 1px;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.metrics-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1.5rem;
    margin-top: 1rem;
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.metric-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.metric-value.bearish {
    color: var(--theme-negative);
}

.metric-value.bullish {
    color: var(--theme-positive);
}

/* Syntax Highlighting (Pygments) */
.markdown-content .codehilite {
    background-color: #0d1117;
    border: 1px solid var(--theme-border-primary);
    border-radius: 12px;
    padding: 2.5rem 1.5rem 1.5rem;
    overflow-x: auto;
    margin: 2.5rem 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    position: relative;
}

.markdown-content .codehilite::before {
    content: '';
    position: absolute;
    top: 1rem;
    left: 1.25rem;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 50%;
    background-color: #ff5f56;
    box-shadow: 0.9rem 0 0 #ffbd2e, 1.8rem 0 0 #27c93f;
    opacity: 0.8;
}

.markdown-content .codehilite pre {
    background-color: transparent;
    padding: 0;
    margin: 0;
    border: none;
    box-shadow: none;
}

/* Tables */
.markdown-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2rem 0;
    overflow-x: auto;
    display: block;
}

.markdown-content thead {
    background-color: var(--bg-surface);
}

.markdown-content th,
.markdown-content td {
    padding: 0.75rem 1rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.markdown-content th {
    font-weight: 600;
    color: var(--text-primary);
}

.markdown-content tbody tr:hover {
    background-color: var(--bg-surface);
}

/* Horizontal Rule */
.markdown-content hr {
    border: 0;
    height: 1px;
    background: var(--border-color);
    margin: 3rem 0;
}

/* Images — block-level + centered so captions never wrap beside a portrait image */
.markdown-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 2rem auto;
    box-shadow: var(--shadow-sm);
}

/* Strong/Bold */
.markdown-content strong,
.markdown-content b {
    font-weight: 600;
    color: var(--text-primary);
}

/* Emphasis/Italic */
.markdown-content em,
.markdown-content i {
    font-style: italic;
}

/* ========================================
   Post Tags
   ======================================== */

.blog-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.blog-post-tags .badge {
    font-weight: 500;
    padding: 0.5rem 0.75rem;
    font-size: 0.875rem;
}

/* ========================================
   Share Section
   ======================================== */

.blog-post-share h3 {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 1rem;
}

/* ========================================
   CTA Section
   ======================================== */

.blog-post-cta {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1) 0%, rgba(118, 75, 162, 0.1) 100%);
    border: 1px solid var(--border-color);
}

.blog-post-cta h3 {
    color: var(--text-primary);
}

.blog-post-cta p {
    color: var(--text-secondary);
}

/* ========================================
   Footer - Removed (using base_layout.html footer)
   ======================================== */

/* ========================================
   Changelog / What's New Styles
   ======================================== */

.changelog-entries {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

.changelog-entries h2 {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
    margin-top: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text-primary);
}

.changelog-entries h2:first-child {
    margin-top: 0;
}

.changelog-entries h3 {
    color: var(--positive-green);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.changelog-entries h3:has(+ ul li strong:first-child) {
    margin-bottom: 0.5rem;
}

.changelog-entries ul {
    list-style: none;
    padding-left: 0;
    margin-bottom: 1.5rem;
}

.changelog-entries ul li {
    margin-bottom: 0.75rem;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-primary);
}

.changelog-entries ul li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--text-secondary);
    font-weight: bold;
}

.changelog-entries ul ul {
    margin-top: 0.5rem;
    padding-left: 1.5rem;
}

.changelog-entries ul ul li {
    font-size: 0.95rem;
    color: var(--text-secondary);
    margin-bottom: 0.5rem;
}

.changelog-entries ul ul li::before {
    content: "◦";
    font-size: 1.2rem;
}

.changelog-entries strong {
    color: var(--text-primary);
    font-weight: 600;
}

.changelog-entries hr {
    margin: 3rem 0;
    border: 0;
    border-top: 1px solid var(--border-color);
}

.changelog-entries p {
    color: var(--text-secondary);
    line-height: 1.6;
}

.changelog-entries table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
}

.changelog-entries thead {
    background-color: var(--bg-surface);
}

.changelog-entries th,
.changelog-entries td {
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--border-color);
    text-align: left;
}

.changelog-entries th {
    font-weight: 600;
    color: var(--text-primary);
}

.changelog-entries tbody tr:hover {
    background-color: var(--bg-surface);
}

/* Badge styling for dates */
.changelog-entries h2 code {
    background: var(--primary-color);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-weight: 500;
}

/* Toggle button for showing/hiding older releases on /whats-new */
.changelog-toggle-button {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 2rem auto 1rem auto;
    padding: 0.75rem 1.25rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.changelog-toggle-button:hover {
    background: var(--bg-secondary, rgba(127, 127, 127, 0.06));
    border-color: var(--primary-color);
    color: var(--text-primary);
}

/* ========================================
   Responsive Design
   ======================================== */

@media (max-width: 768px) {
    .blog-post-title {
        font-size: 2rem;
    }

    .markdown-content {
        font-size: 1rem;
    }

    .markdown-content h1 {
        font-size: 1.875rem;
    }

    .markdown-content h2 {
        font-size: 1.5rem;
    }

    .markdown-content h3 {
        font-size: 1.25rem;
    }

    .markdown-content table {
        font-size: 0.875rem;
    }

    .markdown-content pre,
    .markdown-content .codehilite {
        padding: 1rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 576px) {
    .blog-header {
        padding: 3rem 0 2rem;
    }

    .blog-post-title {
        font-size: 1.75rem;
    }

    .blog-post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }

    .markdown-content {
        font-size: 0.95rem;
    }
}

/* ========================================
   Image Lightbox / Zoom
   ======================================== */

.image-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.image-lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    cursor: zoom-out;
}

.lightbox-content {
    position: relative;
    margin: auto;
    padding: 2rem;
    max-width: 95%;
    max-height: 95%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-caption {
    color: white;
    text-align: center;
    margin-top: 1rem;
    font-size: 0.95rem;
    max-width: 600px;
    padding: 0 1rem;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10001;
}

.lightbox-close:hover {
    background: white;
    transform: rotate(90deg);
}

.lightbox-close svg {
    color: #333;
}

/* Make blog images clearly clickable */
.markdown-content img,
.blog-post-featured-image img {
    cursor: zoom-in;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.markdown-content img:hover,
.blog-post-featured-image img:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments for lightbox */
@media (max-width: 768px) {
    .lightbox-content {
        padding: 1rem;
    }

    .lightbox-image {
        max-height: 80vh;
    }

    .lightbox-close {
        width: 40px;
        height: 40px;
        top: 0.5rem;
        right: 0.5rem;
    }

    .lightbox-caption {
        font-size: 0.875rem;
    }
}