/* ==========================================================================
   KEYSHU BLOG DETAIL PAGE COMPONENT STYLESHEET
   ========================================================================== */

/* Core Theme Variables */
:root {
    --primary-color: #03B0B1; /* Brand Teal */
    --primary-hover: #029495;
    --text-color: #475569;
    --heading-color: #1e293b;
    --light-bg: #f8fafc;
    --border-color: #e2e8f0;
    --orange-accent: #f28524; /* E-commerce Add to Cart orange */
    --orange-hover: #d97216;
}

/* ==========================================================================
   MAIN CONTAINER & BREADCRUMBS
   ========================================================================== */
.blog-detail-container {
    max-width: 1216px;
    margin: 0 auto;
    padding: 0 24px;
}

.blog-detail-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding: 24px 0;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: #94a3b8;
    border-bottom: 1px solid #f1f5f9;
}

.blog-detail-breadcrumb a {
    color: #94a3b8;
    text-decoration: none;
    transition: color 0.2s ease;
}

.blog-detail-breadcrumb a:hover {
    color: var(--primary-color);
}

.blog-detail-breadcrumb i {
    font-size: 9px;
}

.blog-detail-breadcrumb .active-crumb {
    color: #475569;
    font-weight: 700;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ==========================================================================
   2-COLUMN DETAIL GRID
   ========================================================================== */
.blog-detail-grid {
    display: grid;
    grid-template-columns: 6.8fr 3.2fr;
    gap: 48px;
    margin-top: 32px;
    margin-bottom: 64px;
    align-items: start;
}

/* ==========================================================================
   LEFT COLUMN: MAIN ARTICLE CONTENT
   ========================================================================== */
.blog-detail-main {
    background: #ffffff;
}

.post-detail-title {
    font-size: 34px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--heading-color);
    margin: 0 0 16px 0;
    letter-spacing: -0.5px;
}

.post-meta-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 24px;
}

.post-meta-date {
    font-size: 14px;
    color: #64748b;
    font-weight: 500;
}

.post-share-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
    transition: all 0.25s ease;
}

.post-share-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(3, 176, 177, 0.08);
}

.post-share-btn i {
    font-size: 14px;
}

/* Typography Inside Post Body */
.post-detail-body {
    color: #334155;
    font-size: 15.5px;
    line-height: 1.8;
}

.post-detail-body p {
    margin: 0 0 20px 0;
}

.post-category-tag {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 24px !important;
}

.post-category-tag strong {
    color: var(--primary-color);
    font-weight: 700;
}

.post-lead-text {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.75;
    color: #1e293b;
    border-left: 4px solid var(--primary-color);
    padding-left: 16px;
    margin-bottom: 28px !important;
}

.post-detail-body h2 {
    font-size: 20px;
    font-weight: 800;
    line-height: 1.4;
    color: var(--heading-color);
    margin-top: 36px;
    margin-bottom: 16px;
    letter-spacing: 0.2px;
}

.post-detail-body strong {
    color: #0f172a;
    font-weight: 700;
}

/* Embedded Images */
.post-body-img-wrap {
    margin: 32px 0;
    border-radius: 16px;
    overflow: hidden;
}

.post-body-img-wrap img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 16px;
}

.post-img-caption {
    display: block;
    text-align: center;
    font-size: 13px;
    color: #64748b;
    font-style: italic;
    margin-top: 12px;
}

/* ==========================================================================
   RIGHT COLUMN: SIDEBAR
   ========================================================================== */
.blog-detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* Sidebar Block Global */
.sidebar-block {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 20px;
    overflow: hidden;
}

/* Filter Tags Block */
.filter-tags-block {
    background: #f8fafc;
    padding: 24px;
}

.sidebar-filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sidebar-tag-btn {
    background: #ffffff;
    color: #64748b;
    border: 1px solid #e2e8f0;
    border-radius: 100px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.sidebar-tag-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    background: rgba(3, 176, 177, 0.02);
}

.sidebar-tag-btn.active {
    background: #e2e8f0;
    color: #334155;
    border-color: #e2e8f0;
}

/* Related Products Block */
.related-products-block {
    padding: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
}

.sidebar-block-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--heading-color);
    margin: 0 0 20px 0;
    text-transform: capitalize;
}

.related-products-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.related-product-card {
    display: flex;
    gap: 16px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f1f5f9;
}

.related-product-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.related-prod-img-wrap {
    width: 80px;
    height: 80px;
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.related-prod-img-wrap img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.related-prod-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.related-prod-title {
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0 0 6px 0;
}

.related-prod-title a {
    color: var(--heading-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.related-prod-title a:hover {
    color: var(--primary-color);
}

.related-prod-price {
    font-size: 14px;
    font-weight: 800;
    color: #ef4444;
    margin-bottom: 10px;
}

/* Add to cart orange button */
.add-to-cart-btn {
    background: var(--orange-accent);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.25s ease;
    width: 100%;
}

.add-to-cart-btn:hover {
    background: var(--orange-hover);
    box-shadow: 0 4px 12px rgba(242, 133, 36, 0.2);
    transform: translateY(-1px);
}

.add-to-cart-btn:active {
    transform: translateY(0);
}

/* ==========================================================================
   RESPONSIVE DESIGN (MEDIA QUERIES)
   ========================================================================== */

/* Tablet Viewports */
@media (max-width: 1024px) {
    .blog-detail-container {
        padding: 0 24px;
    }

    .blog-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .post-detail-title {
        font-size: 26px;
    }

    .sidebar-block {
        border-radius: 16px;
    }
}

/* Mobile Viewports */
@media (max-width: 768px) {
    .blog-detail-container {
        padding: 0 16px;
    }

    .blog-detail-breadcrumb {
        padding: 16px 0;
        font-size: 11px;
    }

    .post-detail-title {
        font-size: 22px;
        line-height: 1.35;
    }

    .post-lead-text {
        font-size: 15px;
        padding-left: 12px;
        margin-bottom: 20px !important;
    }

    .post-detail-body {
        font-size: 14.5px;
        line-height: 1.7;
    }

    .post-detail-body h2 {
        font-size: 17px;
        margin-top: 28px;
        margin-bottom: 12px;
    }

    .post-body-img-wrap {
        margin: 24px 0;
        border-radius: 12px;
    }

    .post-body-img-wrap img {
        border-radius: 12px;
    }

    .filter-tags-block, .related-products-block {
        padding: 16px;
    }

    .related-product-card {
        gap: 12px;
    }

    .related-prod-img-wrap {
        width: 70px;
        height: 70px;
    }
}
