/* ==========================================================
   ۱. نوار پیشرفت مطالعه
   ========================================================== */
.reading-progress-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: transparent;
    z-index: 9999; /* بالاتر از هدر سایت */
}

.reading-progress-bar {
    height: 100%;
    background: linear-gradient(90deg, #e6ca00, #ccb200);
    width: 0%;
    transition: width 0.1s ease;
    box-shadow: 0 1px 5px rgba(204, 178, 0, 0.5);
}

/* ==========================================================
   ۲. هدر جذاب (Hero Section)
   ========================================================== */
.single-hero {
    position: relative;
    width: 100%;
    height: 60vh;
    min-height: 450px;
    background-size: cover;
    background-position: center;
    background-attachment: fixed; /* افکت پارالاکس ملایم */
}

.single-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.7) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
}

.single-hero-glass-box {
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    max-width: 900px;
    width: 100%;
    text-align: center;
    box-shadow: 0 20px 40px rgba(0,0,0,0.3);
}

.single-cats { margin-bottom: 20px; }
.single-cats a {
    display: inline-block;
    background: rgba(204, 178, 0, 0.9);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 16px;
    border-radius: 50px;
    text-decoration: none;
    margin: 0 4px;
    transition: 0.3s;
}
.single-cats a:hover { background: #fff; color: #ccb200; }

.single-title {
    color: #ffffff !important;
    font-size: 36px !important;
    font-weight: 900 !important;
    line-height: 1.5 !important;
    margin: 0 0 30px 0 !important;
}

.single-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
}

.meta-item { display: flex; flex-direction: column; gap: 4px; }
.meta-label { font-size: 11px; color: #aaaaaa; text-transform: uppercase; letter-spacing: 1px; }
.meta-value { font-size: 14px; color: #ffffff; font-weight: 600; }
.meta-divider { width: 1px; height: 30px; background: rgba(255,255,255,0.2); }

/* ==========================================================
   ۳. محتوای مقاله (تایپوگرافی)
   ========================================================== */
.single-content-container {
    max-width: 850px;
    margin: -40px auto 60px auto;
    position: relative;
    z-index: 10;
    padding: 0 20px;
}

.single-article-body {
    background: #ffffff;
    border-radius: 24px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    border: 1px solid #e2e8f0;
}

.single-content {
    font-family: inherit;
    color: #333333;
    font-size: 17px;
    line-height: 2.2;
}

/* استایل‌دهی تگ‌های داخل ادیتور وردپرس */
.single-content p { margin-bottom: 25px !important; text-align: justify; }
.single-content h2, .single-content h3 { color: #111; margin: 40px 0 20px 0 !important; font-weight: 800; line-height: 1.5;}
.single-content h2 { font-size: 24px; border-right: 4px solid #ccb200; padding-right: 15px; }
.single-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 30px 0; box-shadow: 0 5px 15px rgba(0,0,0,0.05); }
.single-content ul, .single-content ol { margin-bottom: 25px; padding-right: 20px; }
.single-content li { margin-bottom: 10px; }
.single-content a { color: #ccb200; text-decoration: none; font-weight: bold; border-bottom: 1px dashed #ccb200; padding-bottom: 2px;}

/* نقل قول (Blockquote) مدرن */
.single-content blockquote {
    background: #fdfdfd;
    border-right: 5px solid #ccb200;
    margin: 30px 0;
    padding: 25px 30px;
    border-radius: 8px 0 0 8px;
    font-style: italic;
    color: #555;
    font-size: 18px;
    position: relative;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.single-content blockquote p { margin-bottom: 0 !important; }

/* ==========================================================
   ۴. برچسب‌ها و نویسنده
   ========================================================== */
.single-tags { margin-top: 50px; padding-top: 30px; border-top: 1px solid #f0f0f0; display: flex; flex-wrap: wrap; gap: 10px; align-items: center;}
.tags-title { font-weight: bold; color: #222; font-size: 15px; }
.single-tags a { background: #f4f4f4; color: #666; padding: 6px 14px; border-radius: 8px; font-size: 13px; text-decoration: none; transition: 0.3s; }
.single-tags a:hover { background: #ccb200; color: #fff; }

.author-box { display: flex; align-items: center; gap: 20px; background: #fdfdfd; border: 1px solid #f0f0f0; padding: 30px; border-radius: 16px; margin-top: 40px; }
.author-avatar img { border-radius: 50%; width: 80px; height: 80px; border: 3px solid #fff; box-shadow: 0 5px 15px rgba(0,0,0,0.1); }
.author-info h4 { margin: 0 0 10px 0; font-size: 18px; font-weight: 800; color: #222; }
.author-info p { margin: 0; font-size: 14px; color: #666; line-height: 1.8; }

/* ==========================================================
   ۵. مقالات مرتبط
   ========================================================== */
.related-posts-section { background: #f8f9fa; padding: 60px 0; margin-top: 40px; border-top: 1px solid #e2e8f0;}
.related-container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.related-title { font-size: 24px; font-weight: 800; margin-bottom: 30px; color: #222; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.related-card { background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #e2e8f0; transition: 0.3s; box-shadow: 0 5px 15px rgba(0,0,0,0.02);}
.related-card:hover { transform: translateY(-5px); box-shadow: 0 15px 30px rgba(204,178,0,0.15); border-color: rgba(204,178,0,0.4);}
.related-img { width: 100%; height: 180px; overflow: hidden; }
.related-img img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.related-card:hover .related-img img { transform: scale(1.05); }
.related-content { padding: 20px; }
.related-post-title { font-size: 15px; margin: 0 0 10px 0; line-height: 1.6; }
.related-post-title a { color: #222; text-decoration: none; transition: 0.3s; }
.related-post-title a:hover { color: #ccb200; }
.related-date { font-size: 12px; color: #888; }

/* ==========================================================
   ۶. واکنش‌گرایی
   ========================================================== */
@media (max-width: 992px) { .related-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 768px) {
    .single-hero-glass-box { padding: 25px 20px; }
    .single-title { font-size: 24px !important; }
    .single-article-body { padding: 30px 20px; margin-top: -20px;}
    .single-content { font-size: 16px; }
    .author-box { flex-direction: column; text-align: center; }
    .related-grid { grid-template-columns: 1fr; }
}