/* ============================
   Blog Single Post Styles
   ============================ */

/* Article Container */
.pc-blog-single {
    min-height: calc(100vh - 400px);
    background: var(--pc-white);
    padding: 0;
}

.pc-blog-article {
    max-width: 56rem;
    margin: 0 auto;
    background: var(--pc-white);
    border-radius: 0;
    overflow: hidden;
    box-shadow: none;
    border: none;
}

/* Featured Image */
.pc-blog-featured-image {
    position: relative;
    width: 100%;
    height: 32rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pc-background) 0%, var(--pc-border) 100%);
}

.pc-blog-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pc-blog-category-tag {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: rgba(5, 150, 105, 0.95);
    backdrop-filter: blur(8px);
    color: var(--pc-white);
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    box-shadow: 0 4px 16px rgba(5, 150, 105, 0.4);
}

/* Article Content */
.pc-blog-content-wrapper {
    padding: 5rem 4rem 6rem !important;
    max-width: none !important;
    width: 100% !important;
    margin: 0 auto !important;
}

.pc-blog-header {
    margin-bottom: 4rem;
    text-align: center;
}

.pc-blog-title {
    font-size: 3rem;
    font-weight: 800;
    color: var(--pc-text);
    margin: 0 0 2rem 0;
    line-height: 1.2;
    letter-spacing: -0.03em;
}

.pc-blog-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    font-size: 0.875rem;
    color: var(--pc-text-light);
    padding-top: 1.5rem;
    border-top: 1px solid var(--pc-border);
}

.pc-blog-meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.pc-blog-meta-item svg {
    width: 1rem;
    height: 1rem;
    color: var(--pc-text-muted);
}

.pc-blog-author {
    color: var(--pc-primary);
    font-weight: 600;
}

/* Article Body */
.pc-blog-body {
    font-size: 1.1875rem;
    line-height: 2;
    color: var(--pc-text);
}

.pc-blog-body p {
    margin-bottom: 2rem;
}

.pc-blog-body h2 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--pc-text);
    margin: 3.5rem 0 1.5rem 0;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.pc-blog-body h3 {
    font-size: 1.625rem;
    font-weight: 600;
    color: var(--pc-text);
    margin: 3rem 0 1.25rem 0;
    line-height: 1.4;
}

.pc-blog-body ul,
.pc-blog-body ol {
    margin: 2.5rem 0;
    padding-left: 1.5rem;
}

.pc-blog-body li {
    margin-bottom: 1.25rem;
}

.pc-blog-body blockquote {
    margin: 3rem 0;
    padding: 2.5rem 3rem;
    border-left: 4px solid var(--pc-primary);
    background: linear-gradient(135deg, var(--pc-primary-50) 0%, var(--pc-primary-50) 100%);
    border-radius: 0 0.75rem 0.75rem 0;
    font-style: italic;
    color: var(--pc-primary-dark);
    font-size: 1.125rem;
}

.pc-blog-body a {
    color: var(--pc-primary);
    text-decoration: none;
    border-bottom: 2px solid rgba(5, 150, 105, 0.3);
    transition: all 0.25s ease;
    font-weight: 500;
}

.pc-blog-body a:hover {
    color: var(--pc-primary-dark);
    border-bottom-color: var(--pc-primary-dark);
}

/* Images in Content */
.pc-blog-body img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 2.5rem 0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.pc-blog-image-caption {
    text-align: center;
    font-size: 0.875rem;
    color: var(--pc-text-light);
    margin-top: 1rem;
    font-style: italic;
}

/* Article Footer */
.pc-blog-footer {
    padding-top: 3rem;
    border-top: 1px solid var(--pc-border);
    margin-top: 4rem;
}

.pc-blog-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2.5rem;
}

.pc-blog-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    background: var(--pc-background);
    color: var(--pc-text-light);
    border: 1px solid var(--pc-border);
    border-radius: 2rem;
    font-size: 0.8125rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.25s ease;
}

.pc-blog-tag:hover {
    background: var(--pc-primary);
    border-color: var(--pc-primary);
    color: var(--pc-white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(5, 150, 105, 0.25);
}

/* Share Section */
.pc-blog-share {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.pc-blog-share-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--pc-text-light);
}

.pc-blog-share-buttons {
    display: flex;
    gap: 0.75rem;
}

.pc-blog-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 50%;
    background: var(--pc-background);
    color: var(--pc-text-light);
    border: 1px solid var(--pc-border);
    transition: all 0.25s ease;
    text-decoration: none;
}

.pc-blog-share-btn:hover {
    background: var(--pc-primary);
    border-color: var(--pc-primary);
    color: var(--pc-white);
    transform: translateY(-3px);
    box-shadow: 0 6px 16px rgba(5, 150, 105, 0.3);
}

/* Related Posts */
.pc-related-posts {
    margin-top: 6rem;
    padding-top: 5rem;
    border-top: 1px solid var(--pc-border);
    max-width: none;
    margin-left: auto;
    margin-right: auto;
}

.pc-related-posts-title {
    font-size: 2.25rem;
    font-weight: 700;
    color: var(--pc-text);
    margin: 0 0 3rem 0;
    text-align: center;
}

.pc-related-posts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 56rem;
    margin: 0 auto;
}

/* Responsive */
@media (max-width: 1024px) {
    .pc-related-posts-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .pc-blog-single {
        padding: 0;
    }

    .pc-blog-article {
        border-radius: 0;
    }

    .pc-blog-content-wrapper {
        padding: 2.5rem 1.5rem 3rem;
    }

    .pc-blog-featured-image {
        height: 18rem;
    }

    .pc-blog-title {
        font-size: 2rem;
    }

    .pc-blog-meta {
        flex-direction: column;
        gap: 0.75rem;
    }

    .pc-blog-body {
        font-size: 1.0625rem;
    }

    .pc-blog-body h2 {
        font-size: 1.625rem;
    }

    .pc-blog-body h3 {
        font-size: 1.375rem;
    }

    .pc-related-posts {
        margin-top: 4rem;
        padding-top: 3rem;
    }

    .pc-related-posts-title {
        font-size: 1.75rem;
    }

    .pc-related-posts-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* Related Posts Card Styles */
.pc-related-posts .pc-search-blog-card {
    border-radius: 0.75rem;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    border: 1px solid var(--pc-border);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.pc-related-posts .pc-blog-image-wrapper {
    height: 14rem;
    overflow: hidden;
    background: linear-gradient(135deg, var(--pc-background) 0%, var(--pc-border) 100%);
}

.pc-related-posts .pc-blog-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.pc-related-posts .pc-search-blog-card:hover .pc-blog-image-wrapper img {
    transform: scale(1.08);
}

.pc-related-posts .pc-blog-info {
    padding: 1.5rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.pc-related-posts .pc-blog-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--pc-text);
    margin: 0 0 0.75rem 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
    text-align: left;
}

.pc-related-posts .pc-search-blog-card:hover .pc-blog-title {
    color: var(--pc-primary);
}

.pc-related-posts .pc-blog-excerpt {
    font-size: 0.875rem;
    color: var(--pc-text-light);
    margin: 0 0 1rem 0;
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pc-related-posts .pc-blog-meta {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--pc-border);
}

.pc-related-posts .pc-blog-meta time {
    font-size: 0.8125rem;
    color: var(--pc-text-muted);
}
