/* ============================================================
   Publisher Tool Hub — Blog & Content Styles (blog.css)
   ============================================================ */

/* ---------- Color Tokens & Variables ---------- */
:root {
    --pth-indigo: #4f46e5;
    --pth-indigo-dark: #3730a3;
    --pth-indigo-light: #eef2ff;
    --pth-indigo-border: #c7d2fe;
    --pth-violet: #7c3aed;
    --pth-slate-900: #0f172a;
    --pth-slate-800: #1e293b;
    --pth-slate-700: #334155;
    --pth-slate-600: #475569;
    --pth-slate-500: #64748b;
    --pth-slate-400: #94a3b8;
    --pth-slate-200: #e2e8f0;
    --pth-slate-100: #f1f5f9;
    --pth-slate-50: #f8fafc;
    --pth-white: #ffffff;
    --pth-emerald: #10b981;
    --pth-emerald-light: #ecfdf5;
    --pth-amber: #f59e0b;
    --pth-amber-light: #fffbeb;
    --pth-cyan: #06b6d4;
    --pth-font: 'Inter', 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --pth-radius: 16px;
    --pth-radius-sm: 10px;
    --pth-shadow: 0 4px 24px rgba(0,0,0,0.06);
    --pth-shadow-lg: 0 12px 40px rgba(0,0,0,0.10);
    --pth-shadow-glow: 0 0 40px rgba(79, 70, 229, 0.12);
}

/* ---------- Global Resets for Blog ---------- */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

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

body.blog-page {
    font-family: var(--pth-font);
    background-color: var(--pth-slate-50);
    color: var(--pth-slate-700);
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* ---------- Navigation Header (Matches Homepage) ---------- */
.pth-nav {
    position: sticky;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--pth-slate-200);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    padding: 14px 28px;
    transition: all 0.3s ease;
}

.pth-nav-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.pth-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.pth-logo-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, var(--pth-indigo), var(--pth-violet));
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(79, 70, 229, 0.3);
}

.pth-logo-text {
    font-size: 18px;
    font-weight: 800;
    color: var(--pth-slate-900);
    letter-spacing: -0.3px;
}

.pth-logo-text span {
    color: var(--pth-indigo);
}

.pth-nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
}

.pth-nav-links a {
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    color: var(--pth-slate-600);
    transition: color 0.2s;
    position: relative;
}

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

.pth-nav-links a.active::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--pth-indigo);
    border-radius: 2px;
}

.pth-nav-cta {
    background: linear-gradient(135deg, var(--pth-indigo), var(--pth-violet));
    color: #fff !important;
    padding: 9px 22px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 3px 14px rgba(79, 70, 229, 0.3);
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pth-nav-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.4);
}

.pth-hamburger {
    display: none;
    background: none;
    border: none;
    font-size: 22px;
    color: var(--pth-slate-700);
    cursor: pointer;
    padding: 4px;
}

/* ---------- Breadcrumb Bar ---------- */
.blog-breadcrumb-bar {
    background: #ffffff;
    border-bottom: 1px solid var(--pth-slate-200);
    padding: 12px 24px;
    font-size: 13px;
    color: var(--pth-slate-500);
}

.blog-breadcrumb-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    overflow-wrap: break-word;
    word-break: break-word;
}

.blog-breadcrumb-inner span.current {
    color: var(--pth-slate-900);
    font-weight: 600;
    word-break: break-word;
}

/* ---------- Blog Index Hero ---------- */
.blog-index-hero {
    padding: 60px 24px 40px;
    text-align: center;
    background: linear-gradient(180deg, #ffffff 0%, var(--pth-slate-50) 100%);
    border-bottom: 1px solid var(--pth-slate-200);
}

.blog-index-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    border-radius: 20px;
    background: var(--pth-indigo-light);
    color: var(--pth-indigo);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.blog-index-title {
    font-size: 38px;
    font-weight: 800;
    color: var(--pth-slate-900);
    letter-spacing: -0.8px;
    margin-bottom: 14px;
    overflow-wrap: break-word;
}

.blog-index-subtitle {
    font-size: 17px;
    color: var(--pth-slate-600);
    max-width: 680px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---------- Blog Cards Grid ---------- */
.blog-container {
    max-width: 1160px;
    margin: 40px auto 80px;
    padding: 0 24px;
    width: 100%;
}

.blog-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 32px;
}

.blog-card {
    background: var(--pth-white);
    border: 1px solid var(--pth-slate-200);
    border-radius: var(--pth-radius);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: var(--pth-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--pth-shadow-lg);
    border-color: var(--pth-indigo-border);
}

.blog-card-thumb {
    width: 100%;
    height: 200px;
    background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
}

.blog-card-thumb-icon {
    font-size: 52px;
    opacity: 0.85;
    transition: transform 0.3s ease;
}

.blog-card:hover .blog-card-thumb-icon {
    transform: scale(1.08);
}

.blog-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(6px);
    color: #fff;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.blog-card-body {
    padding: 24px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.blog-card-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: var(--pth-slate-500);
    margin-bottom: 12px;
}

.blog-card-title {
    font-size: 20px;
    font-weight: 800;
    color: var(--pth-slate-900);
    line-height: 1.35;
    margin-bottom: 10px;
    transition: color 0.2s;
    overflow-wrap: break-word;
}

.blog-card:hover .blog-card-title {
    color: var(--pth-indigo);
}

.blog-card-excerpt {
    font-size: 14px;
    color: var(--pth-slate-600);
    line-height: 1.6;
    margin-bottom: 20px;
    flex-grow: 1;
}

.blog-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 14px;
    border-top: 1px solid var(--pth-slate-100);
    font-size: 13px;
    font-weight: 700;
    color: var(--pth-indigo);
}

/* ---------- Single Post Layout ---------- */
.post-header {
    background: #ffffff;
    border-bottom: 1px solid var(--pth-slate-200);
    padding: 50px 24px 40px;
    text-align: center;
}

.post-header-inner {
    max-width: 860px;
    margin: 0 auto;
}

.post-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 14px;
    border-radius: 20px;
    background: var(--pth-indigo-light);
    color: var(--pth-indigo);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.post-title {
    font-size: 40px;
    font-weight: 800;
    color: var(--pth-slate-900);
    line-height: 1.25;
    letter-spacing: -0.9px;
    margin-bottom: 18px;
    overflow-wrap: break-word;
}

.post-meta-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 13px;
    color: var(--pth-slate-500);
}

.post-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Article Container */
.post-layout-container {
    max-width: 820px;
    margin: 40px auto 80px;
    padding: 0 24px;
    width: 100%;
}

.post-content {
    background: var(--pth-white);
    border: 1px solid var(--pth-slate-200);
    border-radius: var(--pth-radius);
    padding: 48px 44px;
    box-shadow: var(--pth-shadow);
    font-size: 16px;
    line-height: 1.8;
    color: var(--pth-slate-700);
    overflow-wrap: break-word;
    word-break: break-word;
    overflow: hidden;
}

/* Post Typography */
.post-content h2 {
    font-size: 26px;
    font-weight: 800;
    color: var(--pth-slate-900);
    margin: 38px 0 16px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--pth-slate-100);
    letter-spacing: -0.4px;
    overflow-wrap: break-word;
}

.post-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--pth-slate-800);
    margin: 28px 0 12px;
    overflow-wrap: break-word;
}

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

.post-content ul, .post-content ol {
    margin: 0 0 24px 24px;
}

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

.post-content a {
    color: var(--pth-indigo);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: color 0.2s;
}

.post-content a:hover {
    color: var(--pth-indigo-dark);
}

.post-content strong {
    color: var(--pth-slate-900);
    font-weight: 700;
}

/* Lead Paragraph */
.post-lead {
    font-size: 18px;
    line-height: 1.7;
    color: var(--pth-slate-800);
    margin-bottom: 28px;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--pth-slate-200);
}

/* Highlight / Tool Callout Box */
.post-callout {
    background: var(--pth-indigo-light);
    border: 1px solid var(--pth-indigo-border);
    border-left: 5px solid var(--pth-indigo);
    border-radius: var(--pth-radius-sm);
    padding: 20px 24px;
    margin: 28px 0;
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.post-callout-icon {
    font-size: 24px;
    color: var(--pth-indigo);
    flex-shrink: 0;
    margin-top: 2px;
}

.post-callout-body {
    font-size: 15px;
    line-height: 1.6;
}

.post-callout-body h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--pth-slate-900);
    margin-bottom: 4px;
}

/* Callout Table of Contents List */
.post-callout-toc {
    margin: 12px 0 0 20px !important;
    padding: 0;
    columns: 2;
    column-gap: 32px;
}

.post-callout-toc li {
    break-inside: avoid;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 1.6;
}

@media (max-width: 640px) {
    .post-callout-toc {
        columns: 1;
        column-gap: 0;
    }
}

/* Screenshot Placeholder Frame */
.post-img-frame {
    margin: 32px 0;
    border: 1px solid var(--pth-slate-200);
    border-radius: var(--pth-radius-sm);
    overflow: hidden;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(0,0,0,0.04);
}

.post-img-placeholder {
    width: 100%;
    min-height: 280px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    text-align: center;
    border-bottom: 1px solid var(--pth-slate-200);
}

.post-img-placeholder i {
    font-size: 44px;
    color: var(--pth-indigo);
    margin-bottom: 12px;
    opacity: 0.85;
}

.post-img-placeholder .placeholder-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--pth-slate-800);
    margin-bottom: 6px;
}

.post-img-placeholder .placeholder-desc {
    font-size: 13px;
    color: var(--pth-slate-500);
    max-width: 480px;
    line-height: 1.5;
}

.post-img-caption {
    padding: 10px 16px;
    font-size: 13px;
    color: var(--pth-slate-500);
    text-align: center;
    background: #fcfcfd;
    font-style: italic;
}

/* Trim Size Table Wrapper (Responsive Scroll) */
.post-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 28px 0;
    max-width: 100%;
    border: 1px solid var(--pth-slate-200);
    border-radius: var(--pth-radius-sm);
}

.post-table {
    width: 100%;
    min-width: 500px;
    border-collapse: collapse;
    font-size: 14px;
    text-align: left;
}

.post-table th {
    background: var(--pth-slate-100);
    color: var(--pth-slate-900);
    font-weight: 700;
    padding: 12px 14px;
    border-bottom: 2px solid var(--pth-slate-200);
}

.post-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--pth-slate-200);
    color: var(--pth-slate-700);
}

.post-table tr:hover td {
    background: var(--pth-slate-50);
}

/* Post FAQ Accordion */
.post-faq-section {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 2px solid var(--pth-slate-200);
}

.post-faq-item {
    background: var(--pth-slate-50);
    border: 1px solid var(--pth-slate-200);
    border-radius: var(--pth-radius-sm);
    margin-bottom: 14px;
    overflow: hidden;
    transition: border-color 0.2s;
}

.post-faq-item[open] {
    border-color: var(--pth-indigo-border);
    background: #ffffff;
}

.post-faq-item summary {
    padding: 16px 20px;
    font-weight: 700;
    font-size: 15px;
    color: var(--pth-slate-900);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.post-faq-item summary::-webkit-details-marker {
    display: none;
}

.post-faq-item summary::after {
    content: '+';
    font-size: 20px;
    font-weight: 400;
    color: var(--pth-indigo);
    flex-shrink: 0;
}

.post-faq-item[open] summary::after {
    content: '−';
}

.post-faq-answer {
    padding: 0 20px 18px;
    font-size: 14px;
    line-height: 1.65;
    color: var(--pth-slate-600);
}

/* Post Closing CTA Card */
.post-cta-card {
    margin-top: 48px;
    background: linear-gradient(135deg, var(--pth-indigo-dark) 0%, var(--pth-indigo) 60%, var(--pth-violet) 100%);
    color: #ffffff;
    border-radius: var(--pth-radius);
    padding: 40px 28px;
    text-align: center;
    box-shadow: var(--pth-shadow-lg);
}

.post-cta-card h3 {
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 10px;
}

.post-cta-card p {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    max-width: 520px;
    margin: 0 auto 24px;
    line-height: 1.6;
}

.post-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    color: var(--pth-indigo) !important;
    font-weight: 800;
    font-size: 14px;
    padding: 12px 26px;
    border-radius: 25px;
    text-decoration: none !important;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.22);
}

/* ---------- Author Box ---------- */
.post-author-box {
    margin-top: 40px;
    padding: 22px;
    background: var(--pth-slate-50);
    border: 1px solid var(--pth-slate-200);
    border-radius: var(--pth-radius-sm);
    display: flex;
    gap: 16px;
    align-items: center;
}

.post-author-avatar {
    width: 54px;
    height: 54px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--pth-indigo), var(--pth-violet));
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 800;
    flex-shrink: 0;
}

.post-author-info h4 {
    font-size: 15px;
    font-weight: 700;
    color: var(--pth-slate-900);
    margin-bottom: 4px;
}

.post-author-info p {
    font-size: 13px;
    color: var(--pth-slate-600);
    line-height: 1.5;
    margin: 0;
}

/* ---------- Footer (Matches Suite) ---------- */
.pth-footer {
    background: #ffffff;
    border-top: 1px solid var(--pth-slate-200);
    padding: 50px 24px 30px;
    margin-top: auto;
}

.pth-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
}

.pth-footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

.pth-footer-brand p {
    font-size: 14px;
    color: var(--pth-slate-500);
    line-height: 1.6;
    max-width: 380px;
}

.pth-footer-links {
    list-style: none;
}

.pth-footer-links li {
    margin-bottom: 10px;
}

.pth-footer-links a {
    color: var(--pth-slate-600);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.2s;
}

.pth-footer-links a:hover {
    color: var(--pth-indigo);
}

.pth-footer-divider {
    border: none;
    border-top: 1px solid var(--pth-slate-200);
    margin-bottom: 24px;
}

.pth-footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    color: var(--pth-slate-400);
    flex-wrap: wrap;
    gap: 12px;
}

/* ---------- Responsive Breakpoints ---------- */
@media (max-width: 900px) {
    .pth-footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .post-content {
        padding: 36px 28px;
    }
    .post-title {
        font-size: 32px;
    }
}

@media (max-width: 768px) {
    .pth-nav {
        padding: 12px 18px;
    }
    .pth-hamburger { 
        display: block; 
    }
    .pth-nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #ffffff;
        border-bottom: 1px solid var(--pth-slate-200);
        flex-direction: column;
        padding: 20px;
        gap: 16px;
        box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    }
    .pth-nav-links.mobile-open { 
        display: flex; 
    }
    .pth-nav-cta { 
        display: none; 
    }
}

@media (max-width: 600px) {
    .post-layout-container {
        padding: 0 12px;
        margin: 20px auto 40px;
    }
    .post-content {
        padding: 24px 16px;
        border-radius: 12px;
    }
    .post-title {
        font-size: 24px;
        line-height: 1.3;
    }
    .post-header {
        padding: 32px 14px 24px;
    }
    .post-meta-row {
        gap: 10px;
        font-size: 12px;
    }
    .post-lead {
        font-size: 16px;
    }
    .post-callout {
        padding: 16px;
        flex-direction: column;
        gap: 8px;
    }
    .post-cta-card {
        padding: 28px 16px;
    }
    .post-cta-card h3 {
        font-size: 20px;
    }
    .blog-index-title {
        font-size: 26px;
    }
    .post-author-box {
        flex-direction: column;
        text-align: center;
    }
    .blog-breadcrumb-bar {
        padding: 10px 14px;
    }
}
