/* DeepCraft — تنسيق صفحات المحتوى (المقالات والمراجعات والأدلة) */

/* ------------------------------------------------------------ المقدمة */

.review-lede {
  font-size: 1.12rem;
  line-height: 2;
  color: var(--text);
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-inline-start: 4px solid var(--turquoise);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin: 1.4rem 0 2rem;
}

/* -------------------------------------------------------- فهرس المحتوى */

.toc {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.4rem;
  margin: 0 0 2.2rem;
}

.toc > strong {
  display: block;
  font-family: var(--font-display, inherit);
  font-size: 1rem;
  color: var(--turquoise);
  margin-bottom: 0.7rem;
}

.toc ol {
  margin: 0;
  padding-inline-start: 1.3rem;
  columns: 2;
  column-gap: 1.8rem;
}

.toc li {
  margin: 0.3rem 0;
  break-inside: avoid;
}

.toc a {
  color: var(--text-muted);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.toc a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

@media (max-width: 640px) {
  .toc ol {
    columns: 1;
  }
}

/* ---------------------------------------------------- جدول المواصفات */

.spec-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.4rem 0 2rem;
  font-size: 0.96rem;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.spec-table th,
.spec-table td {
  padding: 0.75rem 1rem;
  text-align: start;
  border-bottom: 1px solid var(--glass-border);
  vertical-align: top;
}

.spec-table tr:last-child th,
.spec-table tr:last-child td {
  border-bottom: 0;
}

.spec-table th {
  width: 38%;
  font-weight: 600;
  color: var(--turquoise);
  background: rgba(255, 255, 255, 0.03);
  white-space: nowrap;
}

.spec-table td {
  color: var(--text);
}

@media (max-width: 560px) {
  .spec-table th {
    width: 45%;
    white-space: normal;
  }
}

/* --------------------------------------------------- المميزات والعيوب */

.proscons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  margin: 1.4rem 0 2rem;
}

.pros,
.cons {
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  background: var(--glass);
}

.pros {
  border-inline-start: 4px solid #2fbf71;
}

.cons {
  border-inline-start: 4px solid #e2574c;
}

.pros h3,
.cons h3 {
  margin: 0 0 0.7rem;
  font-size: 1.02rem;
}

.pros h3 {
  color: #4fd995;
}

.cons h3 {
  color: #ff8078;
}

.pros ul,
.cons ul {
  margin: 0;
  padding-inline-start: 1.2rem;
}

.pros li,
.cons li {
  margin: 0.45rem 0;
  line-height: 1.85;
}

@media (max-width: 720px) {
  .proscons {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------ الحكم النهائي */

.verdict-box {
  display: flex;
  align-items: center;
  gap: 1.3rem;
  background: var(--glass-strong, var(--glass));
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg, var(--radius));
  padding: 1.4rem 1.5rem;
  margin: 1.6rem 0 2rem;
  box-shadow: var(--shadow-card);
}

.verdict-score {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, var(--ocean-bright), var(--ocean-primary));
  border: 2px solid var(--turquoise);
  box-shadow: var(--shadow-glow);
  font-family: var(--font-display, inherit);
  color: #fff;
  line-height: 1;
  text-align: center;
}

.verdict-score strong {
  font-size: 1.7rem;
  font-weight: 800;
}

.verdict-score small {
  margin-top: 0.15rem;
  font-size: 0.72rem;
  font-weight: 600;
  opacity: 0.85;
}

.verdict-box p {
  margin: 0;
  line-height: 1.95;
}

@media (max-width: 560px) {
  .verdict-box {
    flex-direction: column;
    text-align: center;
  }
}

/* ------------------------------------------------------ أسئلة شائعة */

.faq-list {
  margin: 1.2rem 0 2rem;
  display: grid;
  gap: 0.7rem;
}

.faq-item {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 0.9rem 1.2rem;
}

.faq-item > summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--turquoise);
  list-style: none;
  position: relative;
  padding-inline-end: 1.6rem;
}

.faq-item > summary::-webkit-details-marker {
  display: none;
}

.faq-item > summary::after {
  content: "+";
  position: absolute;
  inset-inline-end: 0;
  top: 50%;
  transform: translateY(-50%);
  font-size: 1.25rem;
  color: var(--cyan);
  line-height: 1;
}

.faq-item[open] > summary::after {
  content: "−";
}

.faq-item > div,
.faq-item > p {
  margin: 0.7rem 0 0;
  color: var(--text-muted);
  line-height: 1.95;
}

/* --------------------------------------------------- تذييل المقال */

.article-footnote {
  margin-top: 2rem;
  padding: 1rem 1.2rem;
  border: 1px dashed var(--glass-border);
  border-radius: var(--radius);
  font-size: 0.9rem;
  color: var(--text-dim, var(--text-muted));
  line-height: 1.9;
}

/* -------------------------------------------------- دليل المودات hub */

.hub-section {
  margin: 2.2rem 0;
}

.hub-list {
  list-style: none;
  margin: 1.1rem 0 1.2rem;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.hub-list > li {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 0.95rem 1.2rem;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.hub-list > li:hover {
  border-color: var(--turquoise);
  transform: translateY(-2px);
}

.hub-list > li > a {
  font-size: 1.05rem;
  text-decoration: none;
}

.hub-list > li > p {
  margin: 0.45rem 0 0;
  color: var(--text-muted);
  font-size: 0.94rem;
  line-height: 1.85;
}

.hub-platform {
  display: inline-block;
  margin-inline-start: 0.6rem;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--glass-border);
  font-size: 0.78rem;
  color: var(--text-dim, var(--text-muted));
  vertical-align: middle;
}

/* -------------------------------------------------------- كروت المقالات */

.blog-card__meta {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.83rem;
  color: var(--turquoise);
}

/* ----------------------------------------------------- بطاقة مود ثابتة */

.mod-card__desc {
  margin: 0.4rem 0 0;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-muted);
}

.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  color: var(--text);
  text-decoration: none;
  font-size: 0.92rem;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.cat-chip:hover {
  border-color: var(--turquoise);
  color: var(--cyan);
}

.cat-chip .cat-count {
  font-size: 0.78rem;
  color: var(--text-dim, var(--text-muted));
}

/* ----------------------------------------------- أقسام ثابتة إضافية */

.category-static-intro,
.mod-static-guide {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  padding: 1.1rem 1.3rem;
  margin: 1.4rem 0;
  line-height: 1.95;
}

.browse-main {
  min-width: 0;
}

.sound-icon--on {
  opacity: 1;
}

/* ------------------------------------------ تحسينات قراءة عامة للمقالات */

.blog-article h2,
.legal-doc h2 {
  margin-top: 2.4rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--glass-border);
}

.blog-article h3,
.legal-doc h3 {
  margin-top: 1.7rem;
  color: var(--turquoise);
}

.blog-article p,
.legal-doc p,
.blog-article li,
.legal-doc li {
  line-height: 2;
}

.blog-article ul,
.blog-article ol,
.legal-doc ul,
.legal-doc ol {
  padding-inline-start: 1.4rem;
}

.blog-article li,
.legal-doc li {
  margin: 0.5rem 0;
}

/* ------------------------------------------------------ صورة وزر المصدر في المراجعة */

.review-hero {
  margin: 1.1rem 0 1.2rem;
  border-radius: var(--radius-lg, 16px);
  overflow: hidden;
  border: 1px solid var(--glass-border);
  background: var(--glass);
}

.review-hero img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.review-official {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0 0 1.6rem;
}

.review-official .btn {
  text-decoration: none;
}
