/* ========== صفحه جزئیات مقاله ========== */
.article-detail-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 16px;
}

/* مسیریابی یک خطی بدون اسکرول‌بار */
.article-breadcrumb {
    margin-bottom: 20px;
    overflow: hidden;
}

.breadcrumb-list {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    /* Firefox */
    scrollbar-width: none;
    /* IE/Edge */
    -ms-overflow-style: none;
}

    /* Chrome, Safari, Edge جدید */
    .breadcrumb-list::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
        background: transparent;
    }

.breadcrumb-link,
.breadcrumb-current,
.breadcrumb-sep {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    white-space: nowrap;
}

/* بقیه استایل‌ها مانند قبل */
.breadcrumb-link {
    color: #64748b;
    text-decoration: none;
    transition: color 0.3s;
    display: flex;
    align-items: center;
    gap: 4px;
}




/* هدر مقاله */
.article-header {
    margin-bottom: 24px;
}

.article-category {
    display: inline-block;
    background: linear-gradient(135deg, #0052D4, #4364F7);
    color: white;
    padding: 4px 14px;
    border-radius: 30px;
    font-size: 12px;
    font-weight: 600;
    margin-bottom: 16px;
}

.article-title {
    font-size: 28px;
    font-weight: 800;
    color: #1e293b;
    line-height: 1.3;
    margin-bottom: 16px;
}

body.dark .article-title {
    color: #f1f5f9;
}

.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

body.dark .article-meta {
    border-bottom-color: #334155;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #64748b;
}

.meta-item i {
    color: #0052D4;
}

.article-stats {
    display: flex;
    gap: 16px;
}

.stat {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #94a3b8;
}

/* بخش‌ها */
.detail-section {
    scroll-margin-top: 80px;
    margin-bottom: 24px;
}

.section-card {
    background: white;
    border-radius: 24px;
    padding: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.05);
    border: 1px solid #e2e8f0;
}

body.dark .section-card {
    background: #1e293b;
    border-color: #334155;
}

/* گالری */
.media-main {
    position: relative;
    width: 100%;
    height: 220px;
    border-radius: 20px;
    overflow: hidden;
    background: #1e293b;
}

.media-main img,
.media-main video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb {
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
    position: relative;
    flex-shrink: 0;
}

.thumb.active {
    opacity: 1;
    border: 2px solid #0052D4;
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* محتوای مقاله */
.article-content {
    background: white;
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid #e2e8f0;
}

body.dark .article-content {
    background: #1e293b;
    border-color: #334155;
}

.article-content p {
    font-size: 16px;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 20px;
}

body.dark .article-content p {
    color: #cbd5e1;
}

.article-content h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 24px 0 16px;
    color: #1e293b;
}

body.dark .article-content h2 {
    color: #f1f5f9;
}

.article-content h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 20px 0 12px;
    color: #1e293b;
}

.article-content ul,
.article-content ol {
    margin: 16px 0;
    padding-right: 24px;
}

.article-content li {
    margin-bottom: 8px;
    color: #475569;
}

.article-quote {
    background: linear-gradient(135deg, #f0f9ff, #e0f2fe);
    padding: 24px;
    border-radius: 20px;
    margin: 24px 0;
    border-right: 4px solid #0052D4;
}

body.dark .article-quote {
    background: #0f172a;
}

.article-quote p {
    font-size: 16px;
    font-style: italic;
    margin-bottom: 0;
    color: #1e293b;
}

body.dark .article-quote p {
    color: #e2e8f0;
}

/* بخش نویسنده */
.author-section {
    background: white;
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid #e2e8f0;
    display: flex;
    gap: 20px;
    align-items: center;
}

body.dark .author-section {
    background: #1e293b;
    border-color: #334155;
}

.author-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: linear-gradient(135deg, #0052D4, #4364F7);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.author-avatar i {
    font-size: 48px;
    color: white;
}

.author-info {
    flex: 1;
}

.author-name {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

body.dark .author-name {
    color: #f1f5f9;
}

.author-bio {
    font-size: 13px;
    color: #64748b;
    line-height: 1.5;
}

/* مقالات مرتبط - اسلایدر */
.related-articles {
    margin-bottom: 32px;
}

.related-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.related-header h3 {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
    display: flex;
    align-items: center;
    gap: 8px;
}

body.dark .related-header h3 {
    color: #f1f5f9;
}

.related-slider-container {
    position: relative;
}

.related-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 8px 4px 16px 4px;
}

.related-slider::-webkit-scrollbar {
    display: none;
}

.related-card {
    min-width: 260px;
    width: 260px;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
    cursor: pointer;
    flex-shrink: 0;
}

body.dark .related-card {
    background: #1e293b;
    border-color: #334155;
}

.related-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.related-image {
    height: 140px;
    overflow: hidden;
}

.related-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.related-card:hover .related-image img {
    transform: scale(1.05);
}

.related-content {
    padding: 12px;
}

.related-title {
    font-size: 13px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

body.dark .related-title {
    color: #e2e8f0;
}

.related-date {
    font-size: 11px;
    color: #94a3b8;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* دکمه‌های ناوبری */
.related-slider-nav {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 16px;
}

.related-prev,
.related-next {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: white;
    border: 1px solid #e2e8f0;
    color: #0052D4;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

body.dark .related-prev,
body.dark .related-next {
    background: #1e293b;
    border-color: #334155;
    color: #6FB1FC;
}

.related-prev:hover,
.related-next:hover {
    background: linear-gradient(135deg, #0052D4, #4364F7);
    color: white;
    transform: scale(1.05);
}

/* مخفی کردن دکمه‌ها در موبایل (اختیاری) */
@media (max-width: 576px) {
    .related-slider-nav {
        display: none;
    }
}

@media (max-width: 500px) {
    .related-card {
        min-width: 240px;
        width: 240px;
    }
}

/* بخش نظرات */
.comments-section {
    background: white;
    border-radius: 24px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid #e2e8f0;
}

body.dark .comments-section {
    background: #1e293b;
    border-color: #334155;
}

.comments-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #e2e8f0;
}

.comments-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
}

.comment-form {
    margin-bottom: 32px;
}

.comment-input {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 16px;
}

.comment-input input {
    flex: 1;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 13px;
    background: white;
}

body.dark .comment-input input {
    background: #0f172a;
    border-color: #334155;
    color: #e2e8f0;
}

.comment-textarea {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 13px;
    resize: vertical;
    margin-bottom: 16px;
    font-family: inherit;
}

.comment-submit {
    background: linear-gradient(135deg, #0052D4, #4364F7);
    color: white;
    border: none;
    padding: 10px 24px;
    border-radius: 40px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.comment-submit:hover {
    transform: translateY(-2px);
}

.comments-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.comment-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #f8fafc;
    border-radius: 16px;
}

body.dark .comment-item {
    background: #0f172a;
}

.comment-avatar {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, #0052D4, #4364F7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.comment-avatar i {
    color: white;
    font-size: 20px;
}

.comment-body {
    flex: 1;
}

.comment-name {
    font-weight: 700;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 4px;
}

body.dark .comment-name {
    color: #e2e8f0;
}

.comment-date {
    font-size: 10px;
    color: #94a3b8;
    margin-bottom: 8px;
}

.comment-text {
    font-size: 13px;
    color: #475569;
    line-height: 1.5;
}

/* ریسپانسیو */
@media (max-width: 700px) {
    .article-title {
        font-size: 22px;
    }

    .media-main {
        height: auto;
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .author-section {
        flex-direction: column;
        text-align: center;
    }
}

@media (max-width: 500px) {
    .related-grid {
        grid-template-columns: 1fr;
    }

    .article-meta {
        align-items: flex-start;
    }
}
.related-views{
    font-size:12px;
}
.read-more {
    color: #2b2b2b;
    text-decoration: none;
}
