/* ============================================
   Single Post Styles — scoped under .content-single
   Loaded only on is_single()
   ============================================ */

.content-single {
    padding: 32px 20px 60px;
    min-height: 60vh;
    background: #f9fafb;
}

.content-single .w1200 {
    max-width: 1200px;
    margin: 0 auto;
}

.content-single .post-layout {
    display: flex;
    gap: 32px;
    align-items: flex-start;
}

.content-single .post-main {
    flex: 1;
    min-width: 0;
}

.content-single .post-sidebar {
    width: 300px;
    flex-shrink: 0;
    position: sticky;
    top: 32px;
}

/* ---------- Breadcrumb ---------- */
.content-single .post-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0 0 20px;
    font-size: 13px;
    color: #9ca3af;
}

.content-single .post-breadcrumb a {
    color: #6b7280;
    text-decoration: none;
    transition: color 0.2s ease;
}

.content-single .post-breadcrumb a:hover {
    color: #4f46e5;
}

.content-single .post-breadcrumb .sep {
    color: #d1d5db;
    font-size: 12px;
}

.content-single .post-breadcrumb .current {
    color: #4b5563;
    max-width: 320px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* ---------- Article Card ---------- */
.content-single article {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
}

.content-single .entry-header {
    padding: 32px 40px 0;
}

.content-single .entry-title {
    font-size: 28px;
    font-weight: 700;
    color: #111827;
    line-height: 1.3;
    margin: 0;
    letter-spacing: -0.3px;
}

.content-single .entry-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f3f4f6;
    font-size: 13px;
    color: #9ca3af;
}

.content-single .entry-meta .meta-date,
.content-single .entry-meta .meta-author {
    color: #9ca3af;
}

.content-single .entry-meta .meta-sep {
    color: #d1d5db;
    font-weight: 300;
}

.content-single .entry-body {
    padding: 24px 40px 40px;
}

/* ---------- Content Typography ---------- */
.content-single .entry-body strong {
    font-weight: 600;
    color: #1f2937;
}

.content-single .entry-body p {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    margin: 0 0 20px;
}

.content-single .entry-body p:last-child {
    margin-bottom: 0;
}

.content-single .entry-body h2 {
    font-size: 22px;
    font-weight: 700;
    color: #111827;
    margin: 36px 0 14px;
    line-height: 1.3;
}

.content-single .entry-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827;
    margin: 28px 0 12px;
    line-height: 1.4;
}

.content-single .entry-body ul,
.content-single .entry-body ol {
    margin: 0 0 20px;
    padding-left: 24px;
}

.content-single .entry-body ul li,
.content-single .entry-body ol li {
    font-size: 16px;
    line-height: 1.8;
    color: #374151;
    margin-bottom: 6px;
    list-style: disc;
}

.content-single .entry-body ol li {
    list-style: decimal;
}

.content-single .entry-body a {
    color: #4f46e5;
    text-decoration: underline;
    text-underline-offset: 2px;
    transition: color 0.2s ease;
}

.content-single .entry-body a:hover {
    color: #4338ca;
}

.content-single .entry-body img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 24px auto;
    display: block;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

.content-single .entry-body blockquote {
    margin: 24px 0;
    padding: 16px 20px;
    border-left: 4px solid #818cf8;
    background: #f9fafb;
    border-radius: 0 12px 12px 0;
    color: #4b5563;
    font-style: italic;
}

.content-single .entry-body blockquote p {
    margin-bottom: 0;
}

.content-single .entry-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 24px 0;
    font-size: 15px;
}

.content-single .entry-body table th {
    background: #f9fafb;
    font-weight: 600;
    color: #1f2937;
    text-align: left;
    padding: 12px 16px;
    border: 1px solid #e5e7eb;
}

.content-single .entry-body table td {
    padding: 10px 16px;
    border: 1px solid #e5e7eb;
    color: #374151;
}

.content-single .entry-body table tr:nth-child(even) td {
    background: #f9fafb;
}

.content-single .entry-body pre,
.content-single .entry-body code {
    font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace;
    font-size: 14px;
}

.content-single .entry-body code {
    padding: 2px 6px;
    background: #f3f4f6;
    border-radius: 4px;
    color: #1f2937;
}

.content-single .entry-body pre {
    margin: 24px 0;
    padding: 20px 24px;
    background: #111827;
    border-radius: 12px;
    color: #e5e7eb;
    overflow-x: auto;
    line-height: 1.6;
}

.content-single .entry-body pre code {
    padding: 0;
    background: transparent;
    color: inherit;
    border-radius: 0;
}

/* ---------- Post Navigation ---------- */
.content-single .post-navigation {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
    gap: 16px;
}

.content-single .post-navigation .nav-previous,
.content-single .post-navigation .nav-next {
    flex: 1;
}

.content-single .post-navigation a {
    display: block;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    color: #111827;
    font-size: 14px;
    line-height: 1.5;
    text-decoration: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.content-single .post-navigation a:hover {
    border-color: #4f46e5;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.12);
}

.content-single .post-navigation .nav-previous a {
    text-align: left;
}

.content-single .post-navigation .nav-next a {
    text-align: right;
}

/* ---------- Related Tools ---------- */
.content-single .related-tools {
    margin-top: 24px;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    padding: 28px 32px 32px;
}

.content-single .related-tools-header {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 20px;
}

.content-single .related-tools-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #eef2ff, #e0e7ff);
    border-radius: 8px;
    color: #4f46e5;
}

.content-single .related-tools-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.content-single .related-tool-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.25s ease;
    gap: 8px;
}

.content-single .related-tool-item:hover {
    border-color: #818cf8;
    background: #fff;
    box-shadow: 0 2px 8px rgba(79, 70, 229, 0.08);
    transform: translateY(-1px);
}

.content-single .tool-item-title {
    font-size: 14px;
    font-weight: 500;
    color: #374151;
    line-height: 1.4;
    transition: color 0.2s ease;
}

.content-single .related-tool-item:hover .tool-item-title {
    color: #4f46e5;
}

.content-single .tool-item-arrow {
    flex-shrink: 0;
    color: #d1d5db;
    transition: all 0.25s ease;
}

.content-single .related-tool-item:hover .tool-item-arrow {
    color: #4f46e5;
    transform: translateX(3px);
}

/* ---------- Sidebar ---------- */
.content-single .post-sidebar .ads {
    margin-bottom: 20px;
}

.content-single .post-sidebar .hot-tools {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    overflow: hidden;
    margin-top: 0;
}

.content-single .post-sidebar .hot-tools-title {
    font-size: 14px;
    font-weight: 700;
    color: #111827;
    padding: 16px 20px;
    border-bottom: 1px solid #e5e7eb;
    margin: 0;
}

.content-single .post-sidebar .hot-tools-list {
    padding: 6px;
}

.content-single .post-sidebar .hot-tools-list ul {
    padding: 0;
    margin: 0;
    list-style: none;
}

.content-single .post-sidebar .hot-tools-list ul li {
    display: flex;
    align-items: center;
    padding: 10px 14px;
    margin: 2px;
    border-radius: 8px;
    transition: background 0.15s ease;
}

.content-single .post-sidebar .hot-tools-list ul li:hover {
    background: #f9fafb;
}

.content-single .post-sidebar .hot-tools-list ul li i {
    width: 22px;
    height: 22px;
    line-height: 22px;
    text-align: center;
    background: #f3f4f6;
    border-radius: 6px;
    color: #9ca3af;
    font-size: 11px;
    font-weight: 700;
    font-style: normal;
    margin-right: 12px;
    flex-shrink: 0;
    transition: all 0.15s ease;
}

.content-single .post-sidebar .hot-tools-list ul li:hover i {
    background: #eef2ff;
    color: #4f46e5;
}

.content-single .post-sidebar .hot-tools-list ul li a {
    font-size: 13px;
    color: #4b5563;
    text-decoration: none;
    flex: 1;
    line-height: 1.4;
    transition: color 0.15s ease;
}

.content-single .post-sidebar .hot-tools-list ul li:hover a {
    color: #4f46e5;
}

/* ---------- Ad in Sidebar ---------- */
.content-single .post-sidebar #RightAd1.ads {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
    padding: 50px 0 20px;
    position: relative;
    overflow: hidden;
    width: 100%;
    height: auto;
    box-sizing: border-box;
}

.content-single .post-sidebar #RightAd1.ads::before {
    content: 'Advertisement';
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 10px;
    font-weight: 500;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ============================================
   Responsive
   ============================================ */
@media screen and (max-width: 992px) {
    .content-single .post-layout {
        flex-direction: column;
        gap: 24px;
    }

    .content-single .post-sidebar {
        width: 100%;
        position: static;
    }

    .content-single .post-sidebar .hot-tools {
        max-width: 100%;
    }

    .content-single .entry-header {
        padding: 24px 24px 0;
    }

    .content-single .entry-title {
        font-size: 24px;
    }

    .content-single .entry-body {
        padding: 20px 24px 28px;
    }

    .content-single .post-navigation {
        margin-top: 20px;
    }

    .content-single .post-navigation a {
        padding: 14px 16px;
        font-size: 13px;
    }

    .content-single .related-tools {
        padding: 20px 20px 24px;
    }

    .content-single .related-tools-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .content-single {
        padding: 20px 16px 40px;
    }

    .content-single .post-breadcrumb {
        padding: 0 0 16px;
    }

    .content-single .entry-body h2 {
        font-size: 20px;
    }
}

@media screen and (max-width: 600px) {

    html,
    body {
        overflow-x: hidden;
    }

    .content-single {
        padding: 12px 0 32px;
        background: #fff;
    }

    .content-single .post-layout {
        gap: 16px;
        overflow: hidden;
    }

    .content-single .post-breadcrumb {
        padding: 0 16px 12px;
        font-size: 13px;
        box-sizing: border-box;
    }

    .content-single .post-breadcrumb .current {
        max-width: 200px;
    }

    .content-single article {
        border-left: none;
        border-right: none;
        border-radius: 0;
        box-shadow: none;
    }

    .content-single .entry-header {
        padding: 20px 16px 0;
    }

    .content-single .entry-title {
        font-size: 22px;
        letter-spacing: -0.2px;
    }

    .content-single .entry-meta {
        font-size: 14px;
    }

    .content-single .entry-body {
        padding: 16px 16px 24px;
    }

    .content-single .post-navigation {
        margin-top: 20px;
    }

    .content-single .post-navigation a {
        padding: 14px 16px;
        font-size: 13px;
    }

    .content-single .entry-body p {
        font-size: 16px;
        line-height: 1.8;
    }

    .content-single .entry-body h2 {
        font-size: 19px;
        margin: 28px 0 12px;
    }

    .content-single .entry-body h3 {
        font-size: 17px;
    }

    .content-single .entry-body ul li,
    .content-single .entry-body ol li {
        font-size: 16px;
    }

    .content-single .entry-body img {
        border-radius: 8px;
        margin: 16px auto;
    }

    .content-single .entry-body table {
        font-size: 14px;
        display: block;
        overflow-x: auto;
    }

    .content-single .entry-body table th,
    .content-single .entry-body table td {
        padding: 8px 10px;
    }

    .content-single .entry-body blockquote {
        padding: 14px 18px;
        margin: 18px 0;
    }

    .content-single .entry-body pre {
        padding: 16px;
        margin: 16px 0;
        border-radius: 8px;
        font-size: 14px;
    }

    .content-single .related-tools {
        border-left: none;
        border-right: none;
        border-radius: 0;
        margin-top: 0;
        padding: 20px 16px 24px;
    }

    .content-single .related-tools-grid {
        grid-template-columns: 1fr;
    }

    .content-single .related-tool-item {
        padding: 10px 14px;
    }

    .content-single .related-tools-header {
        font-size: 15px;
    }

    .content-single .tool-item-title {
        font-size: 15px;
    }

    .content-single .post-sidebar {
        padding: 0 16px;
        box-sizing: border-box;
        overflow: hidden;
    }

    .content-single .post-sidebar #RightAd1.ads {
        border-left: none;
        border-right: none;
        border-radius: 0;
    }

    .content-single .post-sidebar .hot-tools {
        border-left: none;
        border-right: none;
        border-radius: 0;
    }
}

@media screen and (max-width: 480px) {
    .content-single .post-navigation {
        flex-direction: column;
        margin-top: 16px;
    }

    .content-single .post-navigation a {
        padding: 12px 16px;
        font-size: 13px;
    }
}