/* Blog Post Page Styles */

/* Breadcrumb Navigation */
.breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 0.875rem;
}

.breadcrumb a {
    color: #3E6BB7;
    text-decoration: none;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #2d5494;
    text-decoration: underline;
}

.breadcrumb .separator {
    color: #94a3b8;
}

.breadcrumb #breadcrumb-title {
    color: #64748b;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Post Meta in Hero */
.post-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    color: #64748b;
    font-size: 0.875rem;
    margin-top: 16px;
}

.post-meta .post-date,
.post-meta .post-author {
    display: flex;
    align-items: center;
    gap: 6px;
}

.post-meta .post-date::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'/%3E%3Cline x1='16' y1='2' x2='16' y2='6'/%3E%3Cline x1='8' y1='2' x2='8' y2='6'/%3E%3Cline x1='3' y1='10' x2='21' y2='10'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

.post-meta .post-author::before {
    content: "";
    display: inline-block;
    width: 16px;
    height: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2'%3E%3Cpath d='M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E") no-repeat center;
    background-size: contain;
}

/* Post Section */
.post-section {
    padding: 60px 0 80px;
    background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.post-container {
    max-width: 800px;
    margin: 0 auto;
}

/* Loading State */
.post-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 80px 20px;
    gap: 20px;
}

/* Error State */
.post-error {
    text-align: center;
    padding: 80px 20px;
}

.post-error h2 {
    color: #1e293b;
    font-size: 1.75rem;
    margin-bottom: 16px;
}

.post-error p {
    color: #64748b;
    margin-bottom: 32px;
}

/* Post Content */
.post-content {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    border: 1px solid #e2e8f0;
}

.post-featured-image {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
}

.post-body {
    padding: 48px;
}

/* Post Body Typography */
.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4 {
    color: #1e293b;
    margin-top: 32px;
    margin-bottom: 16px;
    line-height: 1.3;
}

.post-body h1:first-child,
.post-body h2:first-child,
.post-body h3:first-child {
    margin-top: 0;
}

.post-body h1 {
    font-size: 1.75rem;
}

.post-body h2 {
    font-size: 1.5rem;
}

.post-body h3 {
    font-size: 1.25rem;
}

.post-body h4 {
    font-size: 1.125rem;
}

.post-body p {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 16px;
    font-size: 1.0625rem;
}

.post-body ul,
.post-body ol {
    color: #475569;
    line-height: 1.8;
    margin-bottom: 16px;
    padding-left: 24px;
}

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

.post-body a {
    color: #3E6BB7;
    text-decoration: underline;
}

.post-body a:hover {
    color: #2d5494;
}

.post-body img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 24px 0;
}

.post-body blockquote {
    border-left: 4px solid #3E6BB7;
    padding-left: 20px;
    margin: 24px 0;
    font-style: italic;
    color: #64748b;
}

.post-body strong {
    color: #1e293b;
    font-weight: 600;
}

/* Hide HubSpot tracking pixels */
.post-body img[src*="track.hubspot.com"],
.post-body img[width="1"][height="1"] {
    display: none !important;
}

/* Post CTA */
.post-cta {
    padding: 40px 0;
    text-align: center;
    background: #ffffff;
}

.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-back svg {
    transition: transform 0.3s ease;
}

.btn-back:hover svg {
    transform: translateX(-4px);
}

/* Responsive */
@media (max-width: 768px) {
    .post-body {
        padding: 24px;
    }

    .post-featured-image {
        max-height: 250px;
    }

    .breadcrumb #breadcrumb-title {
        max-width: 150px;
    }

    .post-meta {
        flex-direction: column;
        gap: 8px;
    }

    .post-error {
        padding: 60px 20px;
    }

    .post-error h2 {
        font-size: 1.5rem;
    }
}
