
/* ============================================
   SINGLE BLOG POST — /blog/post-slug/
   ============================================ */

.single-post-wrapper {
    max-width: 1300px;
    margin: 48px auto;
    padding: 0 24px;
    display: flex;
    gap: 48px;
    align-items: flex-start;
}

/* --- Two-column layout --- */
.post-main-column {
    flex: 0 0 calc(65% - 24px);
    min-width: 0; /* prevents content overflow */
}

.post-sidebar-column {
    flex: 0 0 calc(35% - 24px);
    min-width: 0;
}

/* --- Breadcrumb --- */
.post-breadcrumb {
    font-size: 12px;
    color: var(--pneu-text-muted);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-breadcrumb a {
    color: var(--pneu-text-muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

.post-breadcrumb a:hover { color: var(--pneu-blue); }
.post-breadcrumb .sep { opacity: 0.4; }

/* --- Post header --- */
.post-header-meta {
    margin-bottom: 32px;
}

.post-header-meta h1 {
    font-size: 36px;
    font-weight: 800;
    color: var(--pneu-dark);
    line-height: 1.2;
    max-width: 720px;
    margin: 16px 0 20px;
}

.author-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: var(--pneu-text-muted);
    flex-wrap: wrap;
}

.author-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
    background: rgba(43, 112, 255, 0.08); /* fallback when no avatar */
    flex-shrink: 0;
}

.author-name {
    color: var(--pneu-dark);
    font-weight: 600;
}

.meta-sep { opacity: 0.4; }

/* --- Featured image --- */
.post-featured-image {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 12px;
    object-fit: cover;
    display: block;
    margin-bottom: 36px;
    background: var(--pneu-white);
}

/* --- Content typography --- */
.blog-post-content {
    font-size: 16px;
    line-height: 1.75;
    color: var(--pneu-dark);
}

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

.blog-post-content h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--pneu-dark);
    margin: 40px 0 16px;
    padding-left: 14px;
    border-left: 3px solid var(--pneu-blue);
    line-height: 1.3;
}

.blog-post-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--pneu-dark);
    margin: 32px 0 12px;
    line-height: 1.3;
}

.blog-post-content h4 {
    font-size: 17px;
    font-weight: 700;
    color: var(--pneu-dark);
    margin: 24px 0 10px;
}

.blog-post-content ul,
.blog-post-content ol {
    padding-left: 24px;
    margin-bottom: 20px;
}

.blog-post-content li {
    margin-bottom: 8px;
    line-height: 1.65;
}

.blog-post-content li::marker {
    color: var(--pneu-blue);
    font-weight: 700;
}

.blog-post-content blockquote {
    background: rgba(43, 112, 255, 0.04);
    border-left: 3px solid var(--pneu-blue);
    padding: 16px 20px;
    border-radius: 0 8px 8px 0;
    font-style: italic;
    color: var(--pneu-text-muted);
    margin: 24px 0;
}

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

.blog-post-content a {
    color: var(--pneu-blue);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.blog-post-content a:hover {
    border-bottom-color: var(--pneu-blue);
}

.blog-post-content strong {
    font-weight: 700;
    color: var(--pneu-dark);
}

.blog-post-content em {
    font-style: italic;
}

.blog-post-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 8px 0 20px;
}

.blog-post-content code {
    font-family: 'Courier New', Courier, monospace;
    background: rgba(43, 112, 255, 0.08);
    color: var(--pneu-blue);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
}

.blog-post-content pre {
    background: var(--pneu-dark);
    color: #E2E8F0;
    padding: 20px 24px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.6;
}

.blog-post-content pre code {
    background: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

/* Table */
.blog-post-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
    font-size: 14px;
}

.blog-post-content th {
    background: var(--pneu-white);
    font-weight: 700;
    text-align: left;
    padding: 10px 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--pneu-dark);
}

.blog-post-content td {
    padding: 10px 14px;
    border: 1px solid rgba(15, 23, 42, 0.08);
    color: var(--pneu-dark);
    vertical-align: top;
}

.blog-post-content tr:nth-child(even) td {
    background: rgba(248, 250, 252, 0.6);
}

/* --- Post footer --- */
.post-footer {
    margin-top: 48px;
    padding-top: 32px;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
}

/* Tag pills */
.post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 32px;
}

.tag-pill {
    padding: 5px 12px;
    background: rgba(15, 23, 42, 0.05);
    color: var(--pneu-dark);
    font-size: 12px;
    font-weight: 600;
    border-radius: 100px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: border-color 0.3s ease, color 0.3s ease;
}

.tag-pill:hover {
    border-color: var(--pneu-blue);
    color: var(--pneu-blue);
}

/* Author bio */
.author-bio-box {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    background: var(--pneu-white);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 32px;
}

.author-bio-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(43, 112, 255, 0.08);
}

.author-bio-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--pneu-dark);
    margin-bottom: 6px;
}

.author-bio-text {
    font-size: 13px;
    color: var(--pneu-text-muted);
    line-height: 1.6;
    margin: 0;
}

/* --- Post navigation --- */
.post-nav {
    display: flex;
    gap: 16px;
    margin-top: 32px;
}

.nav-card {
    flex: 1;
    background: var(--pneu-dark);
    padding: 20px 24px;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    min-width: 0;
}

.nav-card:hover { background: var(--pneu-blue); }

.nav-card:focus-visible {
    outline: 2px solid var(--pneu-blue);
    outline-offset: 3px;
}

.nav-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(148, 163, 184, 0.7);
    margin-bottom: 8px;
    display: block;
}

.nav-title {
    font-size: 14px;
    font-weight: 700;
    color: var(--white);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.4;
}

/* --- Sidebar --- */
.sticky-sidebar {
    position: sticky;
    top: 100px;
}

.sidebar-widget {
    background: var(--white);
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 24px;
}

.widget-title {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pneu-dark);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

/* TOC */
.toc-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.toc-list li {
    margin-bottom: 2px;
}

.toc-list a {
    display: block;
    font-size: 13px;
    color: var(--pneu-text-muted);
    text-decoration: none;
    padding: 6px 10px;
    border-left: 2px solid transparent;
    border-radius: 0 4px 4px 0;
    transition: color 0.3s ease, border-color 0.3s ease, background 0.3s ease;
    line-height: 1.4;
}

.toc-list a:hover,
.toc-list a.active {
    color: var(--pneu-blue);
    border-left-color: var(--pneu-blue);
    background: rgba(43, 112, 255, 0.04);
}

/* Related posts */
.related-post-row {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
    text-decoration: none;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.related-post-row:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.related-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: var(--pneu-white);
}

.related-info {
    min-width: 0;
}

.related-info h4 {
    font-size: 13px;
    font-weight: 600;
    color: var(--pneu-dark);
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.3s ease;
}

.related-post-row:hover .related-info h4 { color: var(--pneu-blue); }

.related-date {
    font-size: 11px;
    color: var(--pneu-text-muted);
    font-weight: 500;
}

/* CTA widget */
.cta-widget {
    background: var(--pneu-blue);
    border: none;
}

.cta-widget .widget-title {
    color: var(--white);
    border-bottom-color: rgba(255, 255, 255, 0.15);
}

.cta-headline {
    font-size: 16px;
    font-weight: 700;
    color: var(--white);
    margin-bottom: 8px;
}

.cta-subtext {
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
    margin-bottom: 0;
    line-height: 1.5;
}

.cta-btn {
    display: block;
    width: 90%;
    background: var(--white);
    color: var(--pneu-blue);
    padding: 12px;
    text-align: center;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    margin-top: 16px;
    transition: background 0.3s ease, color 0.3s ease;
}

.cta-btn:hover {
    background: var(--pneu-dark);
    color: var(--white);
}

.cta-btn:focus-visible {
    outline: 2px solid var(--white);
    outline-offset: 2px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .single-post-wrapper {
        flex-direction: column;
        gap: 40px;
    }

    .post-main-column,
    .post-sidebar-column {
        flex: none;
        width: 100%;
    }

    .sticky-sidebar { position: static; }

    .post-header-meta h1 { font-size: 28px; }
}

@media (max-width: 600px) {
    .single-post-wrapper { padding: 0 16px; margin: 32px auto; }
    .post-header-meta h1 { font-size: 24px; }
    .blog-post-content h2 { font-size: 20px; }
    .blog-post-content h3 { font-size: 18px; }
    .post-nav { flex-direction: column; }
    .author-bio-box { flex-direction: column; align-items: center; text-align: center; }
}
