/* atheer-article-patch-v3 */

/* تحسين بنية المقال ونظام الفراغات */
body.frontend-shell .editor-content,
body.frontend-shell .article-content,
body.frontend-shell .post-content,
body.frontend-shell .entry-content,
body.frontend-shell .prose,
body.frontend-shell .single-article,
body.frontend-shell .single-post{
  color:#111827 !important;
  font-size:1.045rem;
  line-height:2.15;
  letter-spacing:0;
  word-break:normal;
}

body.frontend-shell .editor-content > * + *,
body.frontend-shell .article-content > * + *,
body.frontend-shell .post-content > * + *,
body.frontend-shell .entry-content > * + *,
body.frontend-shell .prose > * + *{
  margin-top:1.15rem;
}

body.frontend-shell .editor-content p,
body.frontend-shell .article-content p,
body.frontend-shell .post-content p,
body.frontend-shell .entry-content p,
body.frontend-shell .prose p{
  color:#111827 !important;
  line-height:2.2;
  margin:0 0 1.15rem !important;
  text-wrap:pretty;
}

body.frontend-shell .editor-content h1,
body.frontend-shell .editor-content h2,
body.frontend-shell .editor-content h3,
body.frontend-shell .editor-content h4,
body.frontend-shell .article-content h1,
body.frontend-shell .article-content h2,
body.frontend-shell .article-content h3,
body.frontend-shell .article-content h4,
body.frontend-shell .post-content h1,
body.frontend-shell .post-content h2,
body.frontend-shell .post-content h3,
body.frontend-shell .post-content h4,
body.frontend-shell .entry-content h1,
body.frontend-shell .entry-content h2,
body.frontend-shell .entry-content h3,
body.frontend-shell .entry-content h4{
  color:#0f172a !important;
  line-height:1.45;
  margin:1.75rem 0 .9rem !important;
  padding-top:.2rem;
  font-weight:900;
}

body.frontend-shell .editor-content h2,
body.frontend-shell .article-content h2,
body.frontend-shell .post-content h2,
body.frontend-shell .entry-content h2{
  position:relative;
  padding-bottom:.7rem;
  border-bottom:1px solid rgba(203,213,225,.82);
}
body.frontend-shell .editor-content h2::after,
body.frontend-shell .article-content h2::after,
body.frontend-shell .post-content h2::after,
body.frontend-shell .entry-content h2::after{
  content:"";
  position:absolute;
  right:0;
  bottom:-1px;
  width:76px;
  height:3px;
  border-radius:999px;
  background:linear-gradient(90deg,#7c3aed,#06b6d4);
}

body.frontend-shell .editor-content h3,
body.frontend-shell .article-content h3,
body.frontend-shell .post-content h3,
body.frontend-shell .entry-content h3{
  padding-right:.85rem;
  border-right:4px solid rgba(79,70,229,.26);
}

body.frontend-shell .editor-content ul,
body.frontend-shell .editor-content ol,
body.frontend-shell .article-content ul,
body.frontend-shell .article-content ol,
body.frontend-shell .post-content ul,
body.frontend-shell .post-content ol,
body.frontend-shell .entry-content ul,
body.frontend-shell .entry-content ol{
  margin:0 0 1.2rem !important;
  padding-right:1.5rem !important;
  line-height:2.1;
}
body.frontend-shell .editor-content li,
body.frontend-shell .article-content li,
body.frontend-shell .post-content li,
body.frontend-shell .entry-content li{
  margin-bottom:.45rem;
  color:#111827 !important;
}
body.frontend-shell .editor-content li::marker,
body.frontend-shell .article-content li::marker,
body.frontend-shell .post-content li::marker,
body.frontend-shell .entry-content li::marker{
  color:#7c3aed;
}

body.frontend-shell .editor-content hr,
body.frontend-shell .article-content hr,
body.frontend-shell .post-content hr,
body.frontend-shell .entry-content hr,
body.frontend-shell .prose hr{
  border:none;
  height:1px;
  margin:1.8rem 0 1.9rem !important;
  background:linear-gradient(90deg,transparent,rgba(148,163,184,.65),transparent);
  position:relative;
  overflow:visible;
}
body.frontend-shell .editor-content hr::after,
body.frontend-shell .article-content hr::after,
body.frontend-shell .post-content hr::after,
body.frontend-shell .entry-content hr::after,
body.frontend-shell .prose hr::after{
  content:"✦";
  position:absolute;
  left:50%;
  top:50%;
  transform:translate(-50%,-50%);
  color:#7c3aed;
  background:rgba(255,255,255,.95);
  padding:0 .65rem;
  font-size:.9rem;
}

body.frontend-shell .editor-content blockquote,
body.frontend-shell .article-content blockquote,
body.frontend-shell .post-content blockquote,
body.frontend-shell .entry-content blockquote{
  margin:1.4rem 0;
  padding:1rem 1.15rem;
  border-right:4px solid rgba(79,70,229,.40);
  background:linear-gradient(180deg,rgba(255,255,255,.80),rgba(245,247,255,.92));
  border-radius:1rem;
  color:#334155 !important;
  box-shadow:0 10px 28px rgba(57,72,112,.05);
}

body.frontend-shell .editor-content table,
body.frontend-shell .article-content table,
body.frontend-shell .post-content table,
body.frontend-shell .entry-content table{
  margin:1.4rem 0;
}

body.frontend-shell .article-shell,
body.frontend-shell .post-shell,
body.frontend-shell .single-article-shell{
  overflow:hidden;
}

/* صندوق مشاركة المقال */
.atheer-share-wrap{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:.75rem;
  margin-top:2rem;
  padding:1rem 1.1rem;
  border-radius:1.35rem;
  background:linear-gradient(180deg,rgba(255,255,255,.92),rgba(255,255,255,.84));
  border:1px solid rgba(203,213,225,.82);
  box-shadow:0 14px 32px rgba(57,72,112,.06);
}
.atheer-share-title{
  font-weight:900;
  color:#0f172a;
  margin-left:.4rem;
}
.atheer-share-buttons{
  display:flex;
  flex-wrap:wrap;
  gap:.55rem;
}
.atheer-share-btn{
  display:inline-flex;
  align-items:center;
  gap:.5rem;
  padding:.78rem 1rem;
  border-radius:999px;
  background:linear-gradient(135deg,#ffffff,#f5f7ff);
  border:1px solid rgba(203,213,225,.82);
  color:#334155 !important;
  font-weight:800;
  box-shadow:0 8px 22px rgba(57,72,112,.07);
  transition:.22s ease;
  text-decoration:none !important;
  cursor:pointer;
}
.atheer-share-btn:hover{
  transform:translateY(-2px);
  box-shadow:0 14px 28px rgba(57,72,112,.11);
}
.atheer-share-btn svg{
  width:1rem;
  height:1rem;
  flex:0 0 auto;
}
.atheer-share-btn.copy.ok{
  border-color:rgba(34,197,94,.45);
  color:#166534 !important;
}

@media (max-width: 767px){
  body.frontend-shell .editor-content,
  body.frontend-shell .article-content,
  body.frontend-shell .post-content,
  body.frontend-shell .entry-content,
  body.frontend-shell .prose{
    font-size:1rem;
    line-height:2.05;
  }
  .atheer-share-wrap{
    padding:.9rem;
    border-radius:1.1rem;
  }
  .atheer-share-btn{
    width:100%;
    justify-content:center;
  }
}