﻿/* ===== صفحه جزئیات وبلاگ ===== */
.blog-hero {
    padding: 100px 0 60px;
    text-align: center;
}

    .blog-hero h1 {
        font-weight: 500;
        margin-bottom: 20px;
    }

.blog-details {
    padding: 60px 0;
    background: #f9f9f9;
}

.details-container {
    margin: 0 auto;
    background: #fff;
    border: 1px solid #f6f2ec;
}

/* هدر مقاله */
.details-header {
    padding: 40px 40px 0 40px;
    border-bottom: 1px solid #f6f2ec;
}

.details-category {
    display: inline-block;
    background: var(--accent);
    color: #fff;
    font-size: 12px;
    padding: 4px 12px;
    margin-bottom: 20px;
}

.details-title {
    font-size: 32px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 20px;
    line-height: 1.4;
}

.details-meta {
    display: block;
    gap: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}

    .details-meta span {
        font-size: 13px;
        color: var(--muted);
    }

    .details-meta i {
        margin-left: 6px;
    }

/* تصویر اصلی */
.details-image {
    margin-bottom: 30px;
}

    .details-image img {
        width: 100%;
        height: 450px;
        display: block;
        object-fit: cover;
    }

/* محتوای مقاله */
.details-content {
    padding: 0 40px;
}

    .details-content p {
        font-size: 15px;
        line-height: 2;
        color: #444;
        margin-bottom: 20px;
    }

    .details-content h2 {
        font-size: 24px;
        font-weight: 500;
        color: var(--text);
        margin: 30px 0 15px;
        padding-right: 12px;
        border-right: 3px solid var(--accent);
    }

    .details-content h3 {
        font-size: 20px;
        font-weight: 500;
        color: var(--text);
        margin: 25px 0 12px;
    }

    .details-content ul,
    .details-content ol {
        margin: 15px 0;
        padding-right: 25px;
    }

    .details-content li {
        font-size: 15px;
        line-height: 2;
        color: #444;
        margin-bottom: 8px;
    }

    .details-content img {
        max-width: 100%;
        height: auto;
        margin: 20px 0;
        border: 1px solid var(--border);
    }

    .details-content blockquote {
        background: #f5f5f5;
        border-right: 3px solid var(--accent);
        padding: 20px 25px;
        margin: 25px 0;
        font-size: 15px;
        line-height: 2;
        color: #555;
    }

/* تگ‌ها */
.details-tags {
    padding: 30px 40px;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin: 30px 0;
}

.tags-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 12px;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-link {
    display: inline-block;
    background: none;
    border: 1px solid var(--border);
    padding: 5px 14px;
    font-size: 12px;
    text-decoration: none;
    color: var(--muted);
    transition: all 0.3s;
}

    .tag-link:hover {
        border-color: var(--accent);
        color: var(--accent);
    }

/* فوتر مقاله */
.details-footer {
    text-align:left;
    padding: 0 40px 40px 40px;
}

.back-link {
    display: inline-block;
    padding: 10px 24px;
    border: 1px solid var(--border);
    text-decoration: none;
    font-size: 14px;
    color: var(--text);
    transition: all 0.3s;
}

    .back-link:hover {
        border-color: var(--accent);
        color: var(--accent);
    }

/* پست‌های مرتبط */
.related-posts {
    max-width: 860px;
    margin: 50px auto 0;
}

.related-title {
    font-size: 20px;
    font-weight: 500;
    color: var(--text);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.related-item {
    border: 1px solid var(--border);
    transition: border-color 0.3s;
}

    .related-item:hover {
        border-color: var(--accent);
    }

    .related-item a {
        text-decoration: none;
        display: block;
    }

.related-image img {
    width: 100%;
    height: auto;
    display: block;
    border-bottom: 1px solid var(--border);
}

.related-content {
    padding: 15px;
}

    .related-content h4 {
        font-size: 15px;
        font-weight: 500;
        color: var(--text);
        line-height: 1.5;
    }

.related-item:hover .related-content h4 {
    color: var(--accent);
}

.related-date {
    font-size: 11px;
    color: var(--muted);
    margin-top: 8px;
    display: block;
}

@media (max-width: 768px) {
    .details-header {
        padding: 25px 20px 0 20px;
    }

    .details-title {
        font-size: 24px;
    }

    .details-content {
        padding: 0 20px;
    }

    .details-tags {
        padding: 20px;
    }

    .details-footer {
        padding: 0 20px 30px 20px;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 0 15px;
    }

    .related-posts {
        padding: 0 15px;
    }
}

/* حالت فارسی و عربی (RTL) */
.dir-rtl .details-content h2 {
    font-size: 24px;
    font-weight: 500;
    color: var(--text);
    margin: 30px 0 15px;
    padding-right: 12px;
    border-right: 3px solid var(--accent);
}

/* حالت انگلیسی و ترکی و روسی (LTR) */
.dir-ltr .details-content h2 {
    font-size: 24px;
    font-weight: 500;
    color: var(--text);
    margin: 30px 0 15px;
    padding-left: 12px;
    border-left: 3px solid var(--accent);
    border-right: none;
}