/* ===== SINGLE POST LAYOUT ===== */
.single-post-wrapper {
    width: 100%;
    background-color: #f8fafc;
    padding: 3rem 16px 6rem;
    direction: rtl;
}

.single-post-container {
    max-width: 900px;
    margin: 0 auto;
}

.single-article-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 24px;
    padding: 3.5rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* ===== HEADER & BREADCRUMBS ===== */
.single-breadcrumbs {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 13px;
    color: #64748b;
    margin-bottom: 1.5rem;
}

.single-breadcrumbs a {
    color: #64748b;
    transition: color 0.2s ease;
}

.single-breadcrumbs a:hover {
    color: #eab308;
}

.single-breadcrumbs .sep {
    color: #cbd5e1;
}

.single-breadcrumbs .current {
    color: #1e293b;
    font-weight: 600;
}

.single-category-badge {
    margin-bottom: 1rem;
}

.single-category-badge a {
    display: inline-block;
    background: #1d2128;
    color: #eab308;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 14px;
    border-radius: 8px;
    transition: background 0.3s ease;
}

.single-category-badge a:hover {
    background: #000;
}

.single-post-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #1d2128;
    line-height: 1.5;
    margin-bottom: 1.5rem;
}

.single-post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f1f5f9;
    margin-bottom: 2.5rem;
    font-size: 13px;
    color: #94a3b8;
}

.single-post-meta .meta-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* ===== FEATURED IMAGE ===== */
.single-featured-media {
    width: 100%;
    margin-bottom: 3rem;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
}

.single-featured-media img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
}

/* ===== TYPOGRAPHY & BODY CONTENT ===== */
.single-content-body {
    color: #334155;
    font-size: 16.5px;
    line-height: 2.3;
    text-align: justify;
}

/* هدینگ‌ها */
.single-content-body h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #1d2128;
    margin: 3rem 0 1.25rem;
    border-right: 4px solid #eab308;
    padding-right: 12px;
}

.single-content-body h3 {
    font-size: 1.35rem;
    font-weight: 700;
    color: #1d2128;
    margin: 2.5rem 0 1rem;
}

.single-content-body h4,
.single-content-body h5,
.single-content-body h6 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin: 2rem 0 1rem;
}

/* پاراگراف‌ها و پیوندها */
.single-content-body p {
    margin-bottom: 1.8rem;
}

.single-content-body a {
    color: #d97706;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s ease;
}

.single-content-body a:hover {
    color: #1d2128;
}

.single-content-body strong,
.single-content-body b {
    color: #0f172a;
    font-weight: 700;
}

/* نقل‌قول‌ها (Blockquotes) */
.single-content-body blockquote {
    background: #f8fafc;
    border-right: 4px solid #eab308;
    padding: 1.5rem 2rem;
    margin: 2.5rem 0;
    border-radius: 0 14px 14px 0;
    font-size: 1.05rem;
    font-style: italic;
    color: #1e293b;
    line-height: 2;
}

.single-content-body blockquote p:last-child {
    margin-bottom: 0;
}

/* لیست‌ها */
.single-content-body ul,
.single-content-body ol {
    margin: 1.5rem 0 2rem;
    padding-right: 1.75rem;
}

.single-content-body ul {
    list-style-type: disc;
}

.single-content-body ol {
    list-style-type: decimal;
}

.single-content-body li {
    margin-bottom: 0.75rem;
}

/* عکس‌های داخل متن */
.single-content-body img {
    max-width: 100%;
    height: auto;
    border-radius: 14px;
    margin: 2rem auto;
    display: block;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}

.single-content-body figure {
    margin: 2.5rem 0;
    text-align: center;
}

.single-content-body figcaption {
    font-size: 13px;
    color: #64748b;
    margin-top: 8px;
}

/* جداول */
.single-content-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 2.5rem 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}

.single-content-body th,
.single-content-body td {
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    text-align: right;
}

.single-content-body th {
    background: #1d2128;
    color: #fff;
    font-weight: 700;
}

.single-content-body tr:nth-child(even) {
    background: #f8fafc;
}

/* بلوک کد */
.single-content-body pre {
    background: #1d2128;
    color: #f8fafc;
    padding: 1.5rem;
    border-radius: 12px;
    direction: ltr;
    text-align: left;
    overflow-x: auto;
    margin: 2rem 0;
    font-size: 14px;
}

/* خط جداکننده */
.single-content-body hr {
    border: none;
    border-top: 1px dashed #cbd5e1;
    margin: 3rem 0;
}

/* ===== TAGS ===== */
.single-post-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid #f1f5f9;
}

.tags-title {
    font-size: 14px;
    font-weight: 700;
    color: #1d2128;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-link {
    background: #f1f5f9;
    color: #475569;
    font-size: 12px;
    padding: 5px 12px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.tag-link:hover {
    background: #eab308;
    color: #1d2128;
}

/* ===== POST NAVIGATION (PREV / NEXT) ===== */
.single-post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-top: 3rem;
    padding-top: 2.5rem;
    border-top: 1px solid #f1f5f9;
}

.nav-item {
    padding: 1.5rem;
    border-radius: 14px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.25s ease;
}

.nav-item:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.04);
}

.nav-direction {
    font-size: 12px;
    font-weight: 600;
    color: #94a3b8;
}

.nav-item a {
    color: #1e293b;
    font-size: 14.5px;
    font-weight: 700;
    line-height: 1.6;
    transition: color 0.2s ease;
}

.nav-item:hover a {
    color: #d97706;
}

.nav-next {
    text-align: left;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .single-post-wrapper {
        padding: 1.5rem 12px 4rem;
    }

    .single-article-card {
        padding: 2rem 1.25rem;
        border-radius: 16px;
    }

    .single-post-title {
        font-size: 1.6rem;
    }

    .single-content-body {
        font-size: 15.5px;
        line-height: 2.1;
    }

    .single-content-body h2 {
        font-size: 1.35rem;
    }

    .single-post-nav {
        grid-template-columns: 1fr;
    }

    .nav-next {
        text-align: right;
    }
}