/* ═══════════════════════════════════════════════════════════════
   SEARCH BOX
═══════════════════════════════════════════════════════════════ */

.search-section {
    margin-bottom: 20px;
}

.search-box {
    position: relative;
}

.search-box input {
    width: 100%;
    padding: 10px 36px 10px 12px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--gold-border);
    border-radius: 6px;
    color: var(--text-primary);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
}

.search-box input::placeholder {
    color: var(--text-muted);
}

.search-box input:focus {
    outline: none;
    border-color: var(--gold-primary);
}

.search-icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.9rem;
}

.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 300px;
    overflow-y: auto;
    display: none;
    z-index: 100;
}

.search-results.visible {
    display: block;
}

.search-result-item {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    border-bottom: 1px solid var(--gold-border);
    transition: background 0.2s;
}

.search-result-item:hover {
    background: rgba(212, 175, 55, 0.1);
}

.search-result-item:last-child {
    border-bottom: none;
}

.result-title {
    font-size: 0.85rem;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.result-title mark {
    background: var(--gold-primary);
    color: var(--bg-deep);
    padding: 0 2px;
}

.result-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--text-muted);
}

.no-results {
    padding: 12px;
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* Category Filters */
.category-filters {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.cat-filter {
    padding: 6px 12px;
    background: transparent;
    border: 1px solid var(--gold-border);
    border-radius: 4px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    cursor: pointer;
    transition: all 0.3s;
}

.cat-filter:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.cat-filter.active {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: var(--bg-deep);
}

/* ═══════════════════════════════════════════════════════════════
   BLOG STYLES — Leon Basin
   Consolidated CSS for all blog posts
═══════════════════════════════════════════════════════════════ */

:root {
    --gold-primary: #D4AF37;
    --gold-light: #FFD700;
    --gold-dark: #B8860B;
    --gold-border: rgba(212, 175, 55, 0.3);
    --bg-deep: #050508;
    --bg-card: #0a0a0f;
    --text-primary: #ffffff;
    --text-secondary: #e0e0e0;
    --text-muted: #888;
    --matrix-green: #00ff88;
    --alert-red: #ff4444;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Crimson Pro', Georgia, serif;
    background: var(--bg-deep);
    color: var(--text-secondary);
    line-height: 1.8;
    min-height: 100vh;
}

/* Reading Progress Bar */
.reading-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold-primary), var(--gold-light));
    width: 0%;
    z-index: 9999;
    transition: width 0.1s;
}

/* Navigation */
.nav-container {
    background: rgba(5, 5, 8, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gold-border);
    padding: 12px 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-content {
    max-width: 1000px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-logo {
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--gold-primary);
    text-decoration: none;
    letter-spacing: 2px;
}

.nav-links {
    display: flex;
    gap: 24px;
}

.nav-links a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: color 0.3s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold-primary);
}

/* Post Container */
.post-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 60px 24px;
}

.post-content {
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: 8px;
    padding: 48px;
}

@media (max-width: 768px) {
    .post-content {
        padding: 24px;
    }
}

/* Post Header */
.post-header {
    margin-bottom: 40px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--gold-border);
}

.post-meta {
    display: flex;
    gap: 16px;
    margin-bottom: 16px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.post-category {
    color: var(--gold-primary);
    text-transform: uppercase;
}

.reading-time {
    color: var(--matrix-green);
}

.post-header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.3;
    margin-bottom: 16px;
}

.post-tags {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.post-tag {
    background: rgba(212, 175, 55, 0.1);
    border: 1px solid var(--gold-border);
    padding: 4px 12px;
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    color: var(--gold-primary);
}

/* Post Body */
.post-body {
    font-size: 1.1rem;
    line-height: 1.9;
}

.post-body h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.4rem;
    color: var(--gold-primary);
    margin: 40px 0 20px;
    padding-bottom: 8px;
    border-bottom: 1px dotted var(--gold-border);
}

.post-body h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    color: var(--text-primary);
    margin: 32px 0 16px;
}

.post-body p {
    margin-bottom: 20px;
}

.post-body ul,
.post-body ol {
    margin: 20px 0;
    padding-left: 24px;
}

.post-body li {
    margin-bottom: 8px;
}

.post-body blockquote {
    border-left: 3px solid var(--gold-primary);
    padding: 16px 24px;
    margin: 24px 0;
    background: rgba(212, 175, 55, 0.05);
    font-style: italic;
}

.post-body a {
    color: var(--gold-primary);
    text-decoration: none;
    border-bottom: 1px dotted var(--gold-primary);
}

.post-body a:hover {
    color: var(--gold-light);
}

.post-body code {
    font-family: 'JetBrains Mono', monospace;
    background: rgba(0, 0, 0, 0.3);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 0.9em;
}

.post-body pre {
    background: #1a1a2e;
    padding: 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin: 24px 0;
    border: 1px solid var(--gold-border);
}

.post-body pre code {
    background: transparent;
    padding: 0;
}

/* Share Buttons */
.share-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 40px 0;
    padding: 16px;
    background: rgba(0, 0, 0, 0.2);
    border-radius: 8px;
}

.share-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
}

.share-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-deep);
    border: 1px solid var(--gold-border);
    border-radius: 6px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.share-btn:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
    transform: translateY(-2px);
}

/* Post Footer */
.post-footer {
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--gold-border);
    font-style: italic;
    color: var(--text-muted);
    text-align: center;
}

/* Related Posts */
.related-posts {
    margin-top: 60px;
}

.related-posts h3 {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--gold-primary);
    margin-bottom: 20px;
}

/* Site Footer */
.site-footer {
    text-align: center;
    padding: 40px 24px;
    background: var(--bg-card);
    border-top: 1px solid var(--gold-border);
}

.footer-content p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.footer-soul {
    margin-top: 8px;
    font-style: italic;
    color: rgba(212, 175, 55, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   TABLE OF CONTENTS
═══════════════════════════════════════════════════════════════ */

.table-of-contents {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--gold-border);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 32px;
}

.table-of-contents h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--gold-primary);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.table-of-contents ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.table-of-contents li {
    margin: 6px 0;
}

.table-of-contents li.h3 {
    padding-left: 16px;
}

.table-of-contents a {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.8rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.3s;
}

.table-of-contents a:hover {
    color: var(--gold-primary);
}

/* Heading Anchor Links */
.heading-anchor {
    opacity: 0;
    margin-left: 8px;
    font-size: 0.7em;
    text-decoration: none;
    transition: opacity 0.3s;
}

h2:hover .heading-anchor,
h3:hover .heading-anchor {
    opacity: 0.5;
}

.heading-anchor:hover {
    opacity: 1 !important;
}

/* ═══════════════════════════════════════════════════════════════
   BACK TO TOP BUTTON
═══════════════════════════════════════════════════════════════ */

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--gold-border);
    border-radius: 50%;
    color: var(--gold-primary);
    font-size: 1.2rem;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    z-index: 99;
}

.back-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.back-to-top:hover {
    background: var(--gold-primary);
    color: var(--bg-deep);
    transform: translateY(-3px);
}

/* ═══════════════════════════════════════════════════════════════
   COPY CODE BUTTON
═══════════════════════════════════════════════════════════════ */

.copy-code-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    padding: 4px 10px;
    background: rgba(212, 175, 55, 0.2);
    border: 1px solid var(--gold-border);
    border-radius: 4px;
    color: var(--text-muted);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.65rem;
    cursor: pointer;
    transition: all 0.3s;
}

.copy-code-btn:hover {
    background: var(--gold-primary);
    color: var(--bg-deep);
}

.copy-code-btn.copied {
    background: var(--matrix-green);
    border-color: var(--matrix-green);
    color: var(--bg-deep);
}

/* ═══════════════════════════════════════════════════════════════
   POST REACTIONS (Claps)
═══════════════════════════════════════════════════════════════ */

.post-reactions {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 40px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.1), rgba(212, 175, 55, 0.05));
    border: 1px solid var(--gold-border);
    border-radius: 8px;
}

.clap-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: var(--bg-deep);
    border: 2px solid var(--gold-border);
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s;
}

.clap-btn:hover {
    border-color: var(--gold-primary);
    transform: scale(1.05);
}

.clap-btn.clapped {
    animation: clap-pop 0.3s ease;
}

@keyframes clap-pop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.2);
    }

    100% {
        transform: scale(1);
    }
}

.clap-emoji {
    font-size: 1.5rem;
}

.clap-count {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--gold-primary);
}

.clap-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

/* ═══════════════════════════════════════════════════════════════
   NEWSLETTER INLINE CTA
═══════════════════════════════════════════════════════════════ */

.newsletter-inline-cta {
    margin: 32px 0;
    padding: 24px;
    background: linear-gradient(135deg, rgba(212, 175, 55, 0.15), rgba(0, 255, 136, 0.05));
    border: 1px solid var(--gold-border);
    border-radius: 12px;
}

.cta-content {
    display: flex;
    align-items: center;
    gap: 16px;
}

.cta-icon {
    font-size: 2rem;
}

.cta-content strong {
    color: var(--text-primary);
    font-family: 'Orbitron', sans-serif;
    font-size: 0.9rem;
}

.cta-content p {
    margin: 4px 0 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.cta-btn {
    margin-left: auto;
    padding: 10px 20px;
    background: var(--gold-primary);
    border: none;
    border-radius: 6px;
    color: var(--bg-deep);
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s;
}

.cta-btn:hover {
    background: var(--gold-light);
    transform: translateY(-2px);
}

/* ═══════════════════════════════════════════════════════════════
   FEATURED BADGE
═══════════════════════════════════════════════════════════════ */

.featured-badge {
    display: inline-block;
    padding: 4px 10px;
    background: linear-gradient(135deg, var(--gold-primary), var(--gold-dark));
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.6rem;
    font-weight: 700;
    color: var(--bg-deep);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

/* ═══════════════════════════════════════════════════════════════
   SERIES NAVIGATION
═══════════════════════════════════════════════════════════════ */

.series-nav {
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid var(--gold-border);
    border-radius: 8px;
    padding: 20px;
    margin: 32px 0;
}

.series-nav h4 {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 12px;
}

.series-nav-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    color: var(--text-primary);
    margin-bottom: 16px;
}

.series-parts {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.series-part {
    padding: 8px 14px;
    background: var(--bg-deep);
    border: 1px solid var(--gold-border);
    border-radius: 4px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--text-muted);
    text-decoration: none;
    transition: all 0.3s;
}

.series-part:hover {
    border-color: var(--gold-primary);
    color: var(--gold-primary);
}

.series-part.current {
    background: var(--gold-primary);
    border-color: var(--gold-primary);
    color: var(--bg-deep);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════════════════════ */

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

    .cta-btn {
        margin-left: 0;
        margin-top: 12px;
    }

    .post-reactions {
        flex-direction: column;
        text-align: center;
    }

    .back-to-top {
        bottom: 20px;
        right: 20px;
    }
}

/* ═══════════════════════════════════════════════════════════════
   THE CHRONICLE — Editorial Newspaper Styling
═══════════════════════════════════════════════════════════════ */

/* Chronicle Layout */
.chronicle-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

@media (max-width: 768px) {
    .chronicle-layout {
        grid-template-columns: 1fr;
    }
}

/* Drop Cap (Editorial Feel) */
.drop-cap::first-letter {
    float: left;
    font-family: 'Playfair Display', 'Crimson Pro', serif;
    font-size: 4rem;
    line-height: 3.5rem;
    padding-right: 1rem;
    color: var(--gold-primary);
}

/* Sidebar Dispatches */
.dispatch-item {
    border-left: 2px solid var(--gold-border);
    padding-left: 1rem;
    margin-bottom: 2rem;
    transition: border-color 0.3s;
}

.dispatch-item:hover {
    border-left-color: var(--gold-primary);
}

.dispatch-date {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.7rem;
    color: var(--gold-primary);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.dispatch-title {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1rem;
    color: var(--text-primary);
    margin: 4px 0;
    line-height: 1.4;
}

.dispatch-excerpt {
    font-size: 0.85rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* Column Divider */
.column-divider {
    border-left: 1px solid var(--gold-border);
    padding-left: 2rem;
}

/* Pull Quote (Editorial) */
.pull-quote {
    font-family: 'Crimson Pro', Georgia, serif;
    font-size: 1.4rem;
    font-style: italic;
    color: var(--text-primary);
    border-left: 3px solid var(--gold-primary);
    padding: 1rem 1.5rem;
    margin: 2rem 0;
    background: rgba(212, 175, 55, 0.05);
}

/* Byline */
.byline {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 1rem;
}

.byline strong {
    color: var(--gold-primary);
}