/* ====== إعادة تصميم صفحة المقالة ====== */

/* 1. العرض العام للمقال */
.entry-content-wrapper {
    width: 80%;
    margin: 0 auto;
    max-width: 1200px;
}

@media (max-width: 768px) {
    .entry-content-wrapper {
        width: 100%;
        padding: 0 20px;
    }
}

/* 2. عنوان المقال */
.entry-title {
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.3;
    margin-bottom: 0.5em;
    border-bottom: 2px solid var(--gold-accent);
    padding-bottom: 0.5em;
}

/* 3. الصورة المميزة */
.post-thumbnail {
    margin: 20px 0;
    width: 100%;
}

.post-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
}

/* 4. معلومات المقال */
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    color: var(--text-light);
    font-size: 0.9rem;
    margin: 20px 0 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.entry-meta span {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-info {
    display: flex;
    align-items: center;
    gap: 8px;
}

.author-avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 5. المحتوى النصي */
.entry-content {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-dark);
}

.entry-content p {
    margin-bottom: 1.8em;
}

/* 6. العناوين داخل المحتوى */
.entry-content h2 {
    font-size: 1.8rem;
    margin: 2em 0 1em;
    background: linear-gradient(to right, transparent, var(--bg-alt));
    padding: 10px 15px;
    border-right: 4px solid var(--brand-red);
    color: var(--primary);
}

.entry-content h3 {
    font-size: 1.4rem;
    margin: 1.5em 0 1em;
    background: linear-gradient(to right, transparent, var(--bg-alt));
    padding: 8px 15px;
    border-right: 3px solid var(--gold-accent);
    color: var(--primary);
}

.entry-content h4 {
    font-size: 1.2rem;
    margin: 1.5em 0 1em;
    color: var(--primary);
    font-weight: 700;
}

/* 7. الاقتباسات */
.entry-content blockquote {
    margin: 2em 0;
    padding: 1.5em 2em;
    background: var(--bg-alt);
    border-right: 4px solid var(--gold-accent);
    font-style: italic;
    font-size: 1.1rem;
    border-radius: 0 8px 8px 0;
    position: relative;
}

.entry-content blockquote::before {
    content: '"';
    font-size: 4rem;
    color: var(--gold-accent);
    opacity: 0.2;
    position: absolute;
    top: -10px;
    right: 10px;
}

/* 8. التصنيفات والوسوم */
.post-categories,
.post-tags {
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.post-categories a,
.post-tags a {
    display: inline-block;
    padding: 5px 15px;
    background: var(--bg-alt);
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.8rem;
    border-radius: 20px;
    margin-left: 8px;
    margin-bottom: 8px;
    transition: 0.2s;
}

.post-categories a:hover,
.post-tags a:hover {
    background: var(--brand-red);
    color: white;
}

/* 9. التنقل بين المقالات */
.post-navigation {
    display: flex;
    justify-content: space-between;
    margin: 50px 0 30px;
    padding: 20px 0;
    border-top: 2px solid var(--border);
}

.post-navigation div {
    flex: 1;
}

.post-navigation .nav-previous {
    text-align: right;
}

.post-navigation .nav-next {
    text-align: left;
}

.post-navigation a {
    display: inline-block;
    padding: 12px 25px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    font-size: 0.9rem;
    transition: 0.2s;
    border: 1px solid var(--primary);
}

.post-navigation a:hover {
    background: var(--brand-red);
    border-color: var(--brand-red);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(192, 0, 0, 0.2);
}

/* 10. التعليقات */
.comments-area {
    margin-top: 60px;
    padding-top: 30px;
    border-top: 3px solid var(--primary);
}

.comment-list {
    list-style: none;
    padding: 0;
}

.comment {
    padding: 25px;
    background: var(--bg-alt);
    border-radius: 8px;
    margin-bottom: 20px;
    border: 1px solid var(--border);
}

.comment .children {
    list-style: none;
    margin-right: 40px;
    margin-top: 20px;
}

.comment-author {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 10px;
}

.comment-author img {
    border-radius: 50%;
    border: 2px solid var(--gold-accent);
}

.comment-metadata {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 15px;
}

.reply {
    text-align: left;
}

.reply a {
    display: inline-block;
    padding: 5px 15px;
    background: var(--primary);
    color: white;
    text-decoration: none;
    font-size: 0.8rem;
    border-radius: 20px;
}

/* 11. الصور داخل المقال */
.entry-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    border: 1px solid var(--border);
    padding: 5px;
    background: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    margin: 1.5em 0;
}

.entry-content .wp-caption {
    max-width: 100%;
    margin: 1.5em 0;
    background: var(--bg-alt);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 5px;
}

.entry-content .wp-caption img {
    margin: 0;
    border: none;
    box-shadow: none;
}

.entry-content .wp-caption-text {
    font-size: 0.85rem;
    color: var(--text-light);
    text-align: center;
    padding: 10px;
    margin: 0;
}

/* معرض الصور */
.entry-content .wp-block-gallery {
    margin: 2em 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
}

.entry-content .wp-block-gallery img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    margin: 0;
}

/* 12. الجداول */
.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 2em 0;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
}

.entry-content th {
    background: var(--primary);
    color: white;
    padding: 12px;
    text-align: right;
    font-weight: 700;
}

.entry-content td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}

.entry-content tr:nth-child(even) {
    background: var(--bg-alt);
}

.entry-content tr:hover {
    background: #f0f0f0;
}

