/* ==========================================================================
   Wordsmith Creations - Premium Blog Detail Page Styles
   Scoped specifically to .wsc-blog-detail-page and child components
   ========================================================================== */

/* Main Page Container */
.wsc-blog-detail-page {
    background-color: #f8fafc;
    padding: 50px 0 80px;
    color: #334155;
    font-family: inherit;
}

/* Two-Column Layout Grid */
.wsc-blog-detail-grid {
    display: flex;
    gap: 36px;
    align-items: flex-start;
}

.wsc-article-main-col {
    flex: 0 0 calc(72% - 18px);
    max-width: calc(72% - 18px);
    width: 100%;
}

.wsc-sidebar-col {
    flex: 0 0 calc(28% - 18px);
    max-width: calc(28% - 18px);
    width: 100%;
    position: sticky;
    top: 90px;
}

/* Main Article Card */
.wsc-article-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    box-shadow: 0 4px 25px rgba(15, 23, 42, 0.04);
    padding: 44px 48px;
    overflow: hidden;
}

/* Featured Image Banner */
.wsc-featured-image-box {
    width: 100%;
    background-color: #f1f5f9;
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 30px;
    border: 1px solid #e2e8f0;
    text-align: center;
}

.wsc-featured-image-box img {
    width: 100%;
    height: auto;
    max-height: 520px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.3s ease;
}

/* Article Metadata Row */
.wsc-article-meta-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    padding-bottom: 24px;
    margin-bottom: 34px;
    border-bottom: 1px solid #f1f5f9;
    font-size: 14.5px;
    color: #64748b;
}

.wsc-article-meta-row .wsc-meta-item {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-weight: 500;
}

.wsc-article-meta-row .wsc-meta-item i {
    color: #3b82f6;
    font-size: 15px;
}

.wsc-article-meta-row .wsc-meta-item.updated i {
    color: #8b5cf6;
}

.wsc-meta-cat-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #eff6ff;
    color: #2563eb;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.wsc-meta-cat-pill:hover {
    background: #2563eb;
    color: #ffffff;
}

/* Article Typography (Scoped Strictly to .wsc-article-body) */
.wsc-article-body {
    font-size: 17.5px;
    line-height: 1.78;
    color: #334155;
    word-break: break-word;
}

.wsc-article-body p {
    font-size: 17.5px;
    line-height: 1.78;
    color: #334155;
    margin-bottom: 24px;
}

.wsc-article-body h2 {
    font-size: 29px;
    line-height: 1.35;
    color: #0f172a;
    font-weight: 700;
    margin: 40px 0 18px;
    letter-spacing: -0.02em;
}

.wsc-article-body h3 {
    font-size: 23px;
    line-height: 1.4;
    color: #0f172a;
    font-weight: 700;
    margin: 32px 0 14px;
    letter-spacing: -0.01em;
}

.wsc-article-body h4 {
    font-size: 19.5px;
    line-height: 1.45;
    color: #1e293b;
    font-weight: 600;
    margin: 26px 0 12px;
}

.wsc-article-body h5 {
    font-size: 17px;
    line-height: 1.5;
    color: #1e293b;
    font-weight: 600;
    margin: 20px 0 10px;
}

.wsc-article-body ul, 
.wsc-article-body ol {
    margin: 20px 0 28px 24px;
    padding-left: 10px;
}

.wsc-article-body ul li, 
.wsc-article-body ol li {
    font-size: 17px;
    line-height: 1.72;
    color: #334155;
    margin-bottom: 12px;
}

.wsc-article-body ul {
    list-style-type: disc;
}

.wsc-article-body ul li::marker {
    color: #2563eb;
}

.wsc-article-body strong, 
.wsc-article-body b {
    font-weight: 600;
    color: #0f172a;
}

.wsc-article-body a {
    color: #2563eb;
    text-decoration: underline;
    text-underline-offset: 3px;
    font-weight: 500;
    transition: color 0.2s ease;
}

.wsc-article-body a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

.wsc-article-body blockquote {
    background: #f8fafc;
    border-left: 4px solid #3b82f6;
    padding: 22px 28px;
    border-radius: 0 14px 14px 0;
    margin: 32px 0;
    font-style: italic;
    color: #1e293b;
    font-size: 18px;
    line-height: 1.75;
}

.wsc-article-body blockquote p:last-child {
    margin-bottom: 0;
}

.wsc-article-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 28px auto;
    display: block;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.05);
    border: 1px solid #e2e8f0;
}

/* Article Section Box */
.wsc-article-section {
    margin-bottom: 34px;
}

.wsc-section-thumb {
    margin: 26px 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
}

.wsc-section-thumb img {
    width: 100%;
    height: auto;
    max-height: 480px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
}

/* Tables inside Article */
.wsc-article-body .wsc-table-wrap,
.wsc-article-body table {
    width: 100%;
    margin: 28px 0;
    overflow-x: auto;
    display: block;
    border-collapse: collapse;
}

.wsc-article-body table th {
    background-color: #f1f5f9;
    color: #0f172a;
    font-weight: 600;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    text-align: left;
    font-size: 15.5px;
}

.wsc-article-body table td {
    padding: 12px 18px;
    border: 1px solid #e2e8f0;
    color: #334155;
    font-size: 15px;
}

.wsc-article-body table tr:nth-child(even) {
    background-color: #f8fafc;
}

/* Code Blocks inside Article */
.wsc-article-body pre {
    background: #0f172a;
    color: #f8fafc;
    padding: 20px 24px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 14.5px;
    line-height: 1.6;
    margin: 28px 0;
}

.wsc-article-body code {
    background: #eff6ff;
    color: #1e40af;
    padding: 3px 6px;
    border-radius: 6px;
    font-size: 0.9em;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.wsc-article-body pre code {
    background: transparent;
    color: inherit;
    padding: 0;
}

/* ==========================================================================
   Social Sharing Component
   ========================================================================== */
.wsc-blog-share-card {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 26px 30px;
    margin: 44px 0 34px;
    position: relative;
}

.wsc-share-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 18px;
}

.wsc-share-title {
    font-size: 16.5px;
    font-weight: 700;
    color: #0f172a;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.wsc-share-title i {
    color: #3b82f6;
}

.wsc-share-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.wsc-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    color: #ffffff !important;
}

.wsc-share-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    color: #ffffff !important;
    text-decoration: none !important;
}

/* Platform Colors */
.wsc-share-fb {
    background-color: #1877f2;
}

.wsc-share-tw {
    background-color: #0f172a;
}

.wsc-share-li {
    background-color: #0a66c2;
}

.wsc-share-wa {
    background-color: #25d366;
}

.wsc-share-copy {
    background-color: #4f46e5;
}

.wsc-share-native {
    background-color: #0284c7;
}

/* Copy Link Toast */
.wsc-copy-alert {
    position: absolute;
    bottom: -16px;
    left: 30px;
    background: #0f172a;
    color: #ffffff;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 500;
    opacity: 0;
    transform: translateY(10px);
    transition: all 0.25s ease;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    z-index: 10;
}

.wsc-copy-alert.show {
    opacity: 1;
    transform: translateY(0);
}

/* ==========================================================================
   Previous / Next Blog Navigation
   ========================================================================== */
.wsc-post-navigation {
    margin-top: 36px;
    padding-top: 32px;
    border-top: 1px solid #f1f5f9;
}

.wsc-nav-row {
    display: flex;
    gap: 20px;
}

.wsc-nav-col {
    flex: 1;
    min-width: 0;
}

.wsc-nav-card {
    display: flex;
    flex-direction: column;
    padding: 20px 22px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.25s ease;
    height: 100%;
}

.wsc-nav-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 16px rgba(59, 130, 246, 0.08);
    transform: translateY(-2px);
    text-decoration: none;
}

.wsc-nav-label {
    font-size: 12.5px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: #3b82f6;
    margin-bottom: 10px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.wsc-nav-card.next .wsc-nav-label {
    justify-content: flex-end;
}

.wsc-nav-content {
    display: flex;
    align-items: center;
    gap: 14px;
}

.wsc-nav-thumb {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
}

.wsc-nav-title {
    font-size: 15px;
    line-height: 1.45;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.wsc-nav-card:hover .wsc-nav-title {
    color: #2563eb;
}

/* ==========================================================================
   Sidebar Widgets
   ========================================================================== */
.wsc-sidebar-widget {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 26px 24px;
    margin-bottom: 28px;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
}

.wsc-widget-title {
    font-size: 18px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 18px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
    display: flex;
    align-items: center;
    gap: 8px;
    position: relative;
}

.wsc-widget-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 38px;
    height: 2px;
    background: #2563eb;
    border-radius: 2px;
}

/* Recent Posts Widget */
.wsc-recent-posts-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wsc-recent-post-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.wsc-recent-post-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.wsc-recent-post-item:first-child {
    padding-top: 0;
}

.wsc-recent-thumb {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    border: 1px solid #e2e8f0;
    background: #f1f5f9;
}

.wsc-recent-info {
    flex: 1;
    min-width: 0;
}

.wsc-recent-date {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 500;
}

.wsc-recent-title {
    font-size: 14px;
    line-height: 1.4;
    font-weight: 600;
    color: #0f172a;
    margin: 0;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.wsc-recent-post-item a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s ease;
}

.wsc-recent-post-item a:hover .wsc-recent-title {
    color: #2563eb;
}

/* Category List Widget */
.wsc-cat-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.wsc-cat-item {
    margin-bottom: 8px;
}

.wsc-cat-item:last-child {
    margin-bottom: 0;
}

.wsc-cat-link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 8px;
    color: #334155;
    text-decoration: none;
    font-size: 14.5px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.wsc-cat-link:hover {
    background: #eff6ff;
    color: #2563eb;
    text-decoration: none;
    transform: translateX(4px);
}

.wsc-cat-count {
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 12px;
    transition: all 0.2s ease;
}

.wsc-cat-link:hover .wsc-cat-count {
    background: #2563eb;
    color: #ffffff;
}

/* Follow Us Widget */
.wsc-social-links-grid {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    list-style: none;
}

.wsc-social-icon-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #ffffff !important;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.25s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.wsc-social-icon-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
    color: #ffffff !important;
}

.wsc-social-icon-btn.fb { background: #1877f2; }
.wsc-social-icon-btn.tw { background: #0f172a; }
.wsc-social-icon-btn.li { background: #0a66c2; }
.wsc-social-icon-btn.ig { background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%); }
.wsc-social-icon-btn.yt { background: #ff0000; }

/* ==========================================================================
   Related Posts Section ("You May Also Like")
   ========================================================================== */
.wsc-related-posts-section {
    background-color: #ffffff;
    padding: 70px 0 80px;
    border-top: 1px solid #e2e8f0;
}

.wsc-related-header {
    text-align: center;
    max-width: 680px;
    margin: 0 auto 45px;
}

.wsc-related-subtitle {
    font-size: 13.5px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
    color: #2563eb;
    display: block;
    margin-bottom: 8px;
}

.wsc-related-title {
    font-size: 32px;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.02em;
    margin-bottom: 12px;
}

.wsc-related-desc {
    font-size: 16px;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

.wsc-related-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    box-shadow: 0 4px 20px rgba(15, 23, 42, 0.03);
    transition: all 0.3s ease;
}

.wsc-related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    border-color: #cbd5e1;
}

.wsc-related-thumb {
    position: relative;
    width: 100%;
    background: #f1f5f9;
    overflow: hidden;
    text-align: center;
}

.wsc-related-thumb img {
    width: 100%;
    height: auto;
    max-height: 230px;
    object-fit: contain;
    display: block;
    margin: 0 auto;
    transition: transform 0.4s ease;
}

.wsc-related-card:hover .wsc-related-thumb img {
    transform: scale(1.03);
}

.wsc-related-cat {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(15, 23, 42, 0.85);
    backdrop-filter: blur(4px);
    color: #ffffff;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.wsc-related-body {
    padding: 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.wsc-related-meta {
    font-size: 13px;
    color: #64748b;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.wsc-related-meta i {
    color: #3b82f6;
}

.wsc-related-card-title {
    font-size: 17.5px;
    line-height: 1.45;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 12px 0;
}

.wsc-related-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.wsc-related-card-title a:hover {
    color: #2563eb;
}

.wsc-related-excerpt {
    font-size: 14.5px;
    line-height: 1.6;
    color: #64748b;
    margin-bottom: 18px;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.wsc-related-link {
    font-size: 14px;
    font-weight: 600;
    color: #2563eb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: auto;
    transition: gap 0.2s ease;
}

.wsc-related-link:hover {
    color: #1d4ed8;
    text-decoration: none;
    gap: 10px;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 991px) {
    .wsc-blog-detail-grid {
        flex-direction: column;
        gap: 40px;
    }

    .wsc-article-main-col {
        flex: 0 0 100%;
        max-width: 100%;
    }

    .wsc-sidebar-col {
        flex: 0 0 100%;
        max-width: 100%;
        position: static;
    }

    .wsc-article-card {
        padding: 30px 24px;
    }

    .wsc-article-body h2 {
        font-size: 25px;
    }

    .wsc-article-body h3 {
        font-size: 21px;
    }

    .wsc-article-body {
        font-size: 16.5px;
    }
}

@media (max-width: 767px) {
    .wsc-blog-detail-page {
        padding: 30px 0 60px;
    }

    .wsc-article-card {
        padding: 22px 18px;
        border-radius: 12px;
    }

    .wsc-article-meta-row {
        gap: 12px;
        font-size: 13.5px;
        margin-bottom: 24px;
        padding-bottom: 18px;
    }

    .wsc-article-body {
        font-size: 16px;
        line-height: 1.72;
    }

    .wsc-article-body h2 {
        font-size: 22px;
        margin: 30px 0 14px;
    }

    .wsc-article-body h3 {
        font-size: 19px;
    }

    .wsc-nav-row {
        flex-direction: column;
    }

    .wsc-nav-card.next .wsc-nav-label {
        justify-content: flex-start;
    }

    .wsc-share-buttons {
        gap: 8px;
    }

    .wsc-share-btn {
        padding: 8px 14px;
        font-size: 13px;
    }

    .wsc-related-posts-section {
        padding: 50px 0 60px;
    }

    .wsc-related-title {
        font-size: 26px;
    }
}
