﻿/* ===== استایل صفحه مقاله/خبر ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    background: #f8fafc;
    color: #1E2B37;
    line-height: 1.8;
}

a {
    text-decoration: none;
}

.article-page {
    background: #f8fafc;
    min-height: 100vh;
}

/* ===== هدر صفحه ===== */
.article-header {
    background: linear-gradient(135deg, #0B4F6C 0%, #1A6D8A 100%);
    padding: 40px 0 30px;
    position: relative;
    overflow: hidden;
}

    .article-header::before {
        content: '';
        position: absolute;
        top: -50%;
        right: -10%;
        width: 500px;
        height: 500px;
        background: rgba(255, 255, 255, 0.05);
        border-radius: 50%;
    }

    .article-header::after {
        content: '';
        position: absolute;
        bottom: -30%;
        left: -5%;
        width: 400px;
        height: 400px;
        background: rgba(255, 255, 255, 0.03);
        border-radius: 50%;
    }

.article-header-content {
    position: relative;
    z-index: 1;
}

.article-header .breadcrumb {
    background: transparent;
    padding: 0;
    margin: 0;
}

.article-header .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
}

    .article-header .breadcrumb-item a:hover {
        color: #F4B400;
    }

.article-header .breadcrumb-item.active {
    color: white;
    font-weight: 600;
}

.article-header .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.5);
}

.article-header h1 {
    color: white;
    font-size: 2rem;
    font-weight: 800;
    margin-top: 1rem;
    margin-bottom: 0.5rem;
}

/* ===== بخش اصلی ===== */
.article-main {
    padding: 40px 0 60px;
}

/* ===== کارت مقاله ===== */
.article-card {
    background: white;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.04);
    border: 1px solid #e2e8f0;
}

/* ===== تصویر مقاله ===== */
.article-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f0f4f8;
}

    .article-image-wrapper img {
        width: 100%;
        height: auto;
        max-height: 450px;
        object-fit: cover;
        transition: transform 0.5s ease;
    }

    .article-image-wrapper:hover img {
        transform: scale(1.02);
    }

.article-image-overlay {
    position: absolute;
    bottom: 0;
    right: 0;
    left: 0;
    padding: 2rem 2rem 1.5rem;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.6));
}

    .article-image-overlay .badge-category {
        background: #F4B400;
        color: #0B4F6C;
        padding: 0.3rem 1.2rem;
        border-radius: 50px;
        font-weight: 700;
        font-size: 0.85rem;
        display: inline-block;
    }

/* ===== محتوای مقاله ===== */
.article-body {
    padding: 2.5rem;
}

/* ===== عنوان ===== */
.article-title {
    font-size: 2rem;
    font-weight: 800;
    color: #1E2B37;
    margin-bottom: 1rem;
    line-height: 1.4;
}

/* ===== متا اطلاعات ===== */
.article-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 2px solid #f0f4f8;
    margin-bottom: 2rem;
}

    .article-meta .meta-item {
        display: flex;
        align-items: center;
        gap: 8px;
        color: #7a8a9e;
        font-size: 0.95rem;
    }

        .article-meta .meta-item i {
            color: #F4B400;
            width: 18px;
        }

        .article-meta .meta-item .author-name {
            font-weight: 600;
            color: #0B4F6C;
        }

        .article-meta .meta-item .badge-status {
            background: #27AE60;
            color: white;
            padding: 0.2rem 0.8rem;
            border-radius: 50px;
            font-size: 0.75rem;
            font-weight: 600;
        }

/* ===== متن مقاله ===== */
.article-content {
    color: #3d4f60;
    font-size: 1.1rem;
    line-height: 2;
}

    .article-content p {
        margin-bottom: 1.5rem;
    }

    .article-content h2 {
        font-size: 1.5rem;
        font-weight: 700;
        color: #0B4F6C;
        margin-top: 2rem;
        margin-bottom: 1rem;
    }

    .article-content h3 {
        font-size: 1.3rem;
        font-weight: 700;
        color: #0B4F6C;
        margin-top: 1.5rem;
        margin-bottom: 0.8rem;
    }

    .article-content ul,
    .article-content ol {
        padding-right: 1.5rem;
        margin-bottom: 1.5rem;
    }

        .article-content ul li,
        .article-content ol li {
            margin-bottom: 0.5rem;
        }

    .article-content blockquote {
        background: #f0f8ff;
        border-right: 5px solid #F4B400;
        padding: 1.5rem 2rem;
        border-radius: 0 12px 12px 0;
        margin: 1.5rem 0;
        font-size: 1.1rem;
        color: #1E2B37;
    }

        .article-content blockquote i {
            color: #F4B400;
            font-size: 1.5rem;
            opacity: 0.5;
            margin-bottom: 0.5rem;
            display: block;
        }

    .article-content img {
        max-width: 100%;
        border-radius: 12px;
        margin: 1.5rem 0;
    }

    .article-content .highlight-box {
        background: linear-gradient(135deg, #f0f8ff, #f8fafc);
        border-radius: 16px;
        padding: 1.5rem 2rem;
        margin: 1.5rem 0;
        border: 1px solid #e2e8f0;
    }

        .article-content .highlight-box h4 {
            color: #0B4F6C;
            font-weight: 700;
            margin-bottom: 0.5rem;
        }

/* ===== برچسب‌ها ===== */
.article-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f4f8;
    margin-top: 2rem;
}

    .article-tags .tag {
        background: #f0f4f8;
        color: #546E7A;
        padding: 0.3rem 1.2rem;
        border-radius: 50px;
        font-size: 0.85rem;
        font-weight: 600;
        transition: all 0.3s ease;
    }

        .article-tags .tag:hover {
            background: #0B4F6C;
            color: white;
            transform: translateY(-2px);
        }

/* ===== اشتراک‌گذاری ===== */
.article-share {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-top: 1.5rem;
    border-top: 2px solid #f0f4f8;
    margin-top: 2rem;
    flex-wrap: wrap;
}

    .article-share .share-label {
        font-weight: 600;
        color: #1E2B37;
    }

    .article-share .share-link {
        width: 45px;
        height: 45px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 1.2rem;
        transition: all 0.3s ease;
    }

        .article-share .share-link:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
        }

.share-telegram {
    background: #0088cc;
}

.share-whatsapp {
    background: #25D366;
}

.share-linkedin {
    background: #0077b5;
}

.share-twitter {
    background: #1DA1F2;
}

.share-email {
    background: #7a8a9e;
}

.share-copy {
    background: #0B4F6C;
}

/* ===== بخش پیشنهاد مطالعه ===== */
.suggested-section {
    margin-top: 3rem;
}

.suggested-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1E2B37;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

    .suggested-title i {
        color: #F4B400;
    }

.suggested-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
    border: 1px solid #e2e8f0;
    transition: all 0.4s ease;
    height: 100%;
}

    .suggested-card:hover {
        transform: translateY(-10px);
        box-shadow: 0 20px 40px rgba(11, 79, 108, 0.1);
    }

    .suggested-card .suggested-img {
        height: 180px;
        background: #f0f4f8;
        overflow: hidden;
    }

        .suggested-card .suggested-img img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            transition: transform 0.4s ease;
        }

    .suggested-card:hover .suggested-img img {
        transform: scale(1.05);
    }

    .suggested-card .suggested-body {
        padding: 1.2rem 1.5rem;
    }

        .suggested-card .suggested-body h5 {
            font-size: 1.1rem;
            font-weight: 700;
            color: #1E2B37;
            margin-bottom: 0.5rem;
            line-height: 1.5;
        }

        .suggested-card .suggested-body .suggested-meta {
            font-size: 0.85rem;
            color: #7a8a9e;
        }

            .suggested-card .suggested-body .suggested-meta i {
                color: #F4B400;
                margin-left: 5px;
            }

/* ===== ریسپانسیو ===== */
@media (max-width: 992px) {
    .article-title {
        font-size: 1.7rem;
    }

    .article-body {
        padding: 2rem;
    }
}

@media (max-width: 768px) {
    .article-header {
        padding: 25px 0 20px;
    }

        .article-header h1 {
            font-size: 1.5rem;
        }

    .article-title {
        font-size: 1.4rem;
    }

    .article-body {
        padding: 1.5rem;
    }

    .article-meta {
        gap: 1rem;
        flex-direction: column;
        align-items: flex-start;
    }

    .article-content {
        font-size: 1rem;
    }

    .article-image-wrapper img {
        max-height: 250px;
    }

    .article-share {
        justify-content: center;
    }

    .suggested-card .suggested-img {
        height: 140px;
    }
}

@media (max-width: 576px) {
    .article-header h1 {
        font-size: 1.2rem;
    }

    .article-title {
        font-size: 1.2rem;
    }

    .article-body {
        padding: 1rem;
    }

    .article-image-wrapper img {
        max-height: 200px;
    }

    .article-content blockquote {
        padding: 1rem 1.2rem;
        font-size: 1rem;
    }
}
.suggested-card .suggested-link {
    display: inline-block;
    margin-top: 0.8rem;
    color: #0B4F6C;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

    .suggested-card .suggested-link i {
        margin-right: 5px;
        transition: all 0.3s ease;
    }

    .suggested-card .suggested-link:hover {
        color: #F4B400;
    }

        .suggested-card .suggested-link:hover i {
            transform: translateX(-5px);
        }

/* ===== تصویر مقاله ===== */
.article-image-wrapper {
    position: relative;
    overflow: hidden;
    background: #f0f4f8;
    width: 100%;
    /* ارتفاع ثابت با حفظ نسبت تصویر */
    aspect-ratio: 16 / 9;
    max-height: 450px;
}

    .article-image-wrapper img {
        width: 100%;
        height: 100%;
        object-fit: cover; /* این باعث می‌شود تصویر بدون کشیدگی و با برش هوشمند پر شود */
        transition: transform 0.5s ease;
        display: block;
    }

    .article-image-wrapper:hover img {
        transform: scale(1.02);
    }

/* ===== اگر می‌خواهید تصویر کامل نشان داده شود بدون برش ===== */
.alternative .article-image-wrapper img {
    object-fit: contain;
    background: #f0f4f8;
}

/* ===== برای سازگاری با موبایل ===== */
@media (max-width: 768px) {
    .article-image-wrapper {
        aspect-ratio: 16 / 10;
        max-height: 300px;
    }
}

@media (max-width: 576px) {
    .article-image-wrapper {
        aspect-ratio: 4 / 3;
        max-height: 250px;
    }
}