
/* ============================================================
   SECTION: SINGLE POST PAGE
   ============================================================ */
.single .site-main,
.single-post .site-main {
    background-color: var(--color-surface);
    color: var(--color-text);
    padding-top: calc(80px + 25px + 35px);
    padding-bottom: 80px;
    min-height: 100vh;
}

.single .site-main .type-post,
.single-post .site-main .type-post {
    max-width: 80%;
    margin: 0 auto;
    padding: 0 20px;
    background-color: transparent;
    box-shadow: none;
    border: none;
    border-radius: 0;
    height: auto;
}

.single .entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--color-white);
    margin-bottom: 16px;
    line-height: 1.2;
    margin-top: 0;
}
.single h1, .single h2, .single h3, .single h4, .single h5 {
    color: var(--color-white);
}
.single .entry-content p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--color-text);
    margin-bottom: 1.5rem;
}

.single .entry-meta {
    color: var(--color-muted);
    font-size: 0.95rem;
    margin-bottom: 24px;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.single .entry-meta a {
    color: var(--color-muted);
    text-decoration: none;
    transition: color 0.2s ease;
    font-weight: 500;
}
.single .entry-meta a:hover {
    color: var(--color-accent);
}

.single .entry-content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(59, 130, 246, 0.3);
    transition: all 0.2s ease;
}
.single .entry-content a:hover {
    color: var(--color-primary);
    text-decoration-color: var(--color-primary);
}

.single .entry-content pre,
.single .entry-content code {
    background-color: var(--color-secondary);
    color: var(--color-text);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font-family: 'Roboto Mono', monospace;
    padding: 4px 10px;
}
.single .entry-content pre {
    padding: 20px;
    overflow-x: auto;
}

.single .entry-content blockquote {
    border-left: 4px solid var(--color-accent);
    background-color: var(--color-secondary);
    padding: 16px 24px;
    margin: 24px 0;
    border-radius: 0 8px 8px 0;
    color: var(--color-text);
}
.single .entry-content blockquote p {
    margin: 0;
}

.single .entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
    border: 1px solid var(--color-border);
}

@media (max-width: 768px) {
    .single .entry-title { font-size: 1.8rem; }
    .single .entry-content p { font-size: 1rem; line-height: 1.7; }
}

/* ============================================================
   SECTION: POST FOOTER
   ============================================================ */

/* 1. The Container (Shared padding and top border) */
.single .entry-footer,
.single .post-navigation {
    max-width: 80%; /* Aligns perfectly with your 80% post content */
    margin: 0 auto;
}

/* 2. Top Row: Category Pills & Edit Link */
.single .entry-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    padding-top: 24px;
    border-top: 1px solid var(--border);
    gap: 12px;
}

/* The "Posted in" text wrapper */
.single .entry-footer .cat-links,
.single .entry-footer .tags-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}

/* Individual Category Pills */
.single .entry-footer .cat-links a,
.single .entry-footer .tags-links a {
    display: inline-block;
    padding: 4px 14px;
    background-color: var(--secondary);
    color: var(--text);
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* Make category pills turn blue on hover */
.single .entry-footer .cat-links a:hover {
    background-color: rgba(59, 130, 246, 0.1);
    color: var(--accent);
}

/* The "Edit" link aligned to the right */
.single .entry-footer .edit-link a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.85rem;
    transition: color 0.2s ease;
    font-weight: 500;
}
.single .entry-footer .edit-link a:hover {
    color: var(--white);
}

/* 3. Bottom Row: Previous / Next Navigation Cards */
.single .post-navigation {
    margin-top: 20px;
    margin-bottom: 60px;
}

.single .post-navigation .nav-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px; /* Default gap for mobile */
}

@media (min-width: 768px) {
    .single .post-navigation .nav-links {
        grid-template-columns: 1fr 1fr;
        gap: 70px; /* <--- Increase this number to widen the space between cards */
        margin: auto;
    }
}

/* --- NUCLEAR KILL-SWITCH: Destroys ALL floating ghost arrows --- */
.single .post-navigation *::before,
.single .post-navigation *::after {
    display: none !important;
    content: none !important;
    visibility: hidden !important;
}

/* The Navigation Card Styling */
.single .post-navigation .nav-previous a,
.single .post-navigation .nav-next a {
    display: flex;
    flex-direction: column;
    padding: 20px 24px;
    background-color: var(--color-secondary);
    border: 1px solid var(--color-border);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.25s ease;
    height: 100%;
    box-sizing: border-box;
    align-items: flex-start;
}

.single .post-navigation .nav-previous a:hover,
.single .post-navigation .nav-next a:hover {
    border-color: var(--color-accent);
    transform: translateY(-4px);
    background-color: rgba(26, 31, 48, 0.8);
}

/* The "Previous:" / "Next:" labels with arrows safely INSIDE */
.single .post-navigation .nav-previous .meta-nav,
.single .post-navigation .nav-next .meta-nav {
    display: inline-flex;
    align-items: center;
    color: var(--color-muted);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 6px;
    transition: color 0.2s ease;
}

/* Re-apply arrows exclusively to the label */
.single .post-navigation .nav-previous .meta-nav::before {
    content: '← ';
    display: inline-block;
    transition: transform 0.2s ease;
    visibility: visible !important; 
}
.single .post-navigation .nav-next .meta-nav::after {
    content: ' →';
    display: inline-block;
    transition: transform 0.2s ease;
    visibility: visible !important; 
}

/* Hover effects for arrows and text */
.single .post-navigation .nav-previous a:hover .meta-nav,
.single .post-navigation .nav-next a:hover .meta-nav {
    color: var(--color-accent);
}
.single .post-navigation .nav-previous a:hover .meta-nav::before {
    transform: translateX(-3px);
}
.single .post-navigation .nav-next a:hover .meta-nav::after {
    transform: translateX(3px);
}

/* The Post Title */
.single .post-navigation .nav-previous .post-title,
.single .post-navigation .nav-next .post-title {
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.single .post-navigation .nav-previous a:hover .post-title,
.single .post-navigation .nav-next a:hover .post-title {
    color: var(--color-accent);
}