﻿/* تنظیمات پایه */
.editorial-article-area {
    direction: rtl;
    text-align: right;
    background-color: #ffffff; /* پس‌زمینه کاملا تمیز */
    font-family: inherit;
}

/* نوار پیشرفت بالا */
.editorial-progress-wrap {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: #f0f0f0;
    z-index: 9999;
}

.editorial-progress-bar {
    height: 100%;
    width: 0%;
    background: #0056b3; /* رنگ سازمانی شیک */
    transition: width 0.1s ease;
}

/* هدر مقاله */
.article-header-modern {
    margin-bottom: 40px;
    animation: fadeInDown 0.8s ease-out;
}

.article-meta-modern {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.meta-date {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #6c757d;
    background: #f8f9fa;
    padding: 6px 15px;
    border-radius: 50px;
    font-weight: 500;
}

.meta-category {
    color: #0056b3;
    background: rgba(0, 86, 179, 0.1);
    padding: 6px 15px;
    border-radius: 50px;
    font-weight: 600;
}

.article-title-modern {
    font-size: 2.4rem;
    font-weight: 900;
    color: #1a1d20;
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.title-divider-modern {
    width: 80px;
    height: 4px;
    background: #0056b3;
    border-radius: 2px;
}

/* قاب تصویر (حل مشکل تصویر قبلی) */
.article-image-showcase {
    position: relative;
    width: 100%;
    background: #f8f9fc; /* پس زمینه نرم برای تصاویر شفاف یا لوگوها */
    border-radius: 24px;
    padding: 30px;
    text-align: center;
    margin-bottom: 50px;
    box-shadow: inset 0 0 20px rgba(0,0,0,0.02), 0 20px 40px rgba(0,0,0,0.04);
    animation: scaleIn 0.8s ease-out forwards;
}

/* هاله نوری ملایم پشت تصویر */
.showcase-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    height: 60%;
    background: radial-gradient(circle, rgba(0,86,179,0.05) 0%, rgba(255,255,255,0) 70%);
    z-index: 1;
    pointer-events: none;
}

.article-img-modern {
    position: relative;
    z-index: 2;
    max-width: 100%;
    max-height: 500px; /* محدود کردن ارتفاع */
    object-fit: contain; /* 🔴 این دستور باعث می‌شود لوگو هرگز بریده نشود */
    border-radius: 12px;
    transition: transform 0.4s ease;
}

.article-image-showcase:hover .article-img-modern {
    transform: scale(1.02);
}

/* بدنه متن مقاله */
.article-content-modern {
    font-size: 1.15rem;
    line-height: 2.4;
    color: #343a40;
    text-align: justify;
    animation: fadeInUp 1s ease-out 0.3s forwards;
    opacity: 0;
}

    .article-content-modern p {
        margin-bottom: 25px;
    }

    /* زیباتر کردن عکس‌های داخل متن */
    .article-content-modern img {
        max-width: 100%;
        height: auto;
        border-radius: 16px;
        margin: 30px 0;
        box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    }

/* انیمیشن‌ها */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.97);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ریسپانسیو */
@media (max-width: 768px) {
    .article-title-modern {
        font-size: 1.8rem;
    }

    .article-image-showcase {
        padding: 15px;
        border-radius: 16px;
    }

    .article-content-modern {
        font-size: 1.05rem;
    }
}
