﻿
/* ============================================
       استایل‌های اختصاصی صفحه جزئیات مقاله
       ============================================ */
.article-detail-page {
    max-width: 1600px;
    margin: 0 auto;
    padding: 0 20px;
}

/* تنظیمات سفارشی برای عرض ستون‌ها */
.col-sidebar {
    flex: 0 0 auto;
    width: 20.83333333%; /* 2.5 از 12 */
}

.col-main {
    flex: 0 0 auto;
    width: 58.33333333%; /* 7 از 12 */
}

@media (min-width: 1400px) {
    .col-sidebar {
        width: 20%;
    }

    .col-main {
        width: 60%;
    }
}

/* Breadcrumb */
.article-breadcrumb {
    background: transparent;
    padding: 10px 0;
    margin-bottom: 20px;
    border-bottom: 1px solid #eef2f6;
}

.article-breadcrumb-list {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.article-breadcrumb-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #6c757d;
}

    .article-breadcrumb-item a {
        color: #4a5568;
        text-decoration: none;
        transition: color 0.3s ease;
    }

        .article-breadcrumb-item a:hover {
            color: #dc3545;
        }

    .article-breadcrumb-item.active {
        color: #dc3545;
        font-weight: 500;
    }

.article-breadcrumb-sep {
    color: #cbd5e0;
    font-size: 12px;
}

/* عنوان مقاله */
.article-title-section {
    text-align: center;
    margin-bottom: 30px;
}

    .article-title-section h1 {
        font-size: 30px;
        font-weight: 800;
        color: #2d3748;
        margin-bottom: 15px;
        line-height: 1.4;
    }

.article-meta-info {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    font-size: 13px;
    color: #6c757d;
}

    .article-meta-info i {
        color: #dc3545;
        margin-left: 5px;
    }

/* تصویر اصلی */
.article-main-image {
    text-align: center;
    margin-bottom: 30px;
}

    .article-main-image img {
        max-width: 100%;
        max-height: 500px;
        border-radius: 20px;
        box-shadow: 0 10px 30px rgba(0,0,0,0.1);
        object-fit: contain;
        background: #f8f9fa;
    }

/* محتوای مقاله */
.article-content {
    line-height: 1.9;
    color: #4a5568;
    font-size: 16px;
    text-align: justify;
}

    .article-content p {
        margin-bottom: 20px;
    }

    .article-content h2, .article-content h3, .article-content h4 {
        color: #2d3748;
        margin-top: 25px;
        margin-bottom: 15px;
    }

    .article-content img {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        margin: 20px 0;
    }

/* سایدبار - اندازه متعادل */
.article-sidebar {
    background: white;
    border-radius: 18px;
    padding: 18px;
    margin-bottom: 25px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
    border: 1px solid #eef2f6;
}

.article-sidebar-title {
    font-size: 17px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 3px solid #dc3545;
    display: inline-block;
}

.article-sidebar-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    transition: all 0.3s ease;
    border-bottom: 1px solid #eef2f6;
    text-decoration: none;
}

    .article-sidebar-item:last-child {
        border-bottom: none;
    }

    .article-sidebar-item:hover {
        transform: translateX(-5px);
        background-color: #fef2f2;
        padding-right: 10px;
        border-radius: 10px;
    }

.article-sidebar-img {
    width: 55px;
    height: 55px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.article-sidebar-text {
    font-size: 13px;
    font-weight: 500;
    color: #4a5568;
    line-height: 1.45;
    flex: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

    .article-sidebar-text:hover {
        color: #dc3545;
    }

/* برچسب‌ها (کلمات کلیدی) */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 25px 0;
    padding-top: 20px;
    border-top: 1px solid #eef2f6;
}

.article-tag {
    display: inline-block;
    background: #f8f9fa;
    color: #4a5568;
    padding: 5px 14px;
    border-radius: 25px;
    font-size: 12px;
    transition: all 0.3s ease;
    text-decoration: none;
}

    .article-tag:hover {
        background: #dc3545;
        color: white;
        transform: translateY(-2px);
    }

/* محصول پیشنهادی درون مقاله */
.article-suggestion-product {
    background: linear-gradient(135deg, #f8f9fa, #fff);
    border-radius: 20px;
    padding: 25px;
    margin: 30px 0;
    text-align: center;
    border: 1px solid #e5e7eb;
}

    .article-suggestion-product h4 {
        font-size: 18px;
        font-weight: 700;
        color: #2d3748;
        margin-bottom: 18px;
    }

.suggestion-product-card {
    max-width: 280px;
    margin: 0 auto;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

    .suggestion-product-card:hover {
        transform: translateY(-5px);
        box-shadow: 0 15px 30px rgba(220,53,69,0.15);
    }

.suggestion-product-img {
    height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px;
    background: #f8f9fa;
}

    .suggestion-product-img img {
        max-width: 100%;
        max-height: 140px;
    }

.suggestion-product-title {
    font-size: 14px;
    font-weight: 600;
    padding: 12px;
    text-align: center;
    color: #2d3748;
}

.suggestion-product-btn {
    display: block;
    background: #dc3545;
    color: white;
    text-decoration: none;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    transition: all 0.3s ease;
}

    .suggestion-product-btn:hover {
        background: #c82333;
    }

/* نظرات کاربران */
.comments-section {
    margin-top: 45px;
}

.comments-title {
    font-size: 22px;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 3px solid #dc3545;
    display: inline-block;
}

.comment-card {
    background: white;
    border-radius: 18px;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #eef2f6;
    transition: all 0.3s ease;
}

    .comment-card:hover {
        box-shadow: 0 5px 20px rgba(0,0,0,0.05);
    }

.comment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eef2f6;
}

.comment-author {
    font-weight: 700;
    color: #2d3748;
    font-size: 14px;
}

.comment-date {
    font-size: 12px;
    color: #6c757d;
}

.comment-text {
    color: #4a5568;
    line-height: 1.7;
    margin-bottom: 12px;
    font-size: 14px;
}

.comment-positives {
    background: #e8f5e9;
    border-radius: 12px;
    padding: 8px 12px;
    margin-top: 8px;
    font-size: 12px;
}

.comment-negatives {
    background: #ffebee;
    border-radius: 12px;
    padding: 8px 12px;
    margin-top: 8px;
    font-size: 12px;
}

.comment-response {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 12px;
    margin-top: 12px;
    border-right: 3px solid #dc3545;
}

.comment-form {
    background: #f8f9fa;
    border-radius: 18px;
    padding: 25px;
    margin-top: 30px;
}

/* ریسپانسیو */
@media (max-width: 1200px) {
    .article-title-section h1 {
        font-size: 26px;
    }

    .article-sidebar-img {
        width: 50px;
        height: 50px;
    }

    .article-sidebar-text {
        font-size: 12px;
    }

    .article-sidebar-title {
        font-size: 16px;
    }

    .col-sidebar {
        width: 25%;
    }

    .col-main {
        width: 75%;
    }
}

@media (max-width: 992px) {
    .article-title-section h1 {
        font-size: 24px;
    }

    .article-meta-info {
        font-size: 12px;
        gap: 15px;
    }

    .col-sidebar, .col-main {
        width: 100%;
    }

    .article-sidebar {
        margin-top: 20px;
    }
}

@media (max-width: 768px) {
    .article-detail-page {
        padding: 0 15px;
    }

    .article-title-section h1 {
        font-size: 20px;
    }

    .article-sidebar-img {
        width: 48px;
        height: 48px;
    }
}

