/* =========================================================
   مدونة سطوع بالهوية الجديدة — نفس ألوان وخطوط الموقع (sutoua.com)
   هيدر كحلي + ورقة قراءة فاتحة للمقال (القراءة الطويلة أريح على فاتح) + زر الفحص الكروم الفضي
   ========================================================= */
:root {
  --sb-night: #03041f;
  --sb-navy: #01033f;
  --sb-blue: #0336fd;
  --sb-violet: #947cfd;
  --sb-violet-2: #bfb2ff;
  --sb-mist: #efe5ec;
  --sb-mist-2: #b9b3cf;
  --sb-paper: #f7f5fd;
  --sb-ink: #14163f;
  --sb-sub: #4a4c72;
  --sb-line: rgba(191, 178, 255, 0.18);
  --sb-d: 'Alexandria', 'IBM Plex Sans Arabic', Tahoma, sans-serif;
  --sb-b: 'IBM Plex Sans Arabic', 'Alexandria', Tahoma, sans-serif;
  --sb-gut: clamp(16px, 4vw, 56px);
  --sb-ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}
html { scroll-behavior: smooth; }
body.sb {
  margin: 0;
  background: var(--sb-night);
  color: var(--sb-mist);
  font: 400 17px/1.8 var(--sb-b);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
}
.sb *, .sb *::before, .sb *::after { box-sizing: border-box; }
.sb img { max-width: 100%; height: auto; }
.sb a { color: inherit; }
.sb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sb-skip { position: absolute; top: -60px; right: 16px; z-index: 50; padding: 10px 16px; border-radius: 10px; background: var(--sb-blue); color: #fff; text-decoration: none; }
.sb-skip:focus { top: 12px; }
.sb a:focus-visible, .sb button:focus-visible, .sb summary:focus-visible, .sb input:focus-visible { outline: 2px solid var(--sb-violet); outline-offset: 3px; }

/* ---------- الهيدر ---------- */
.sb-nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 10px var(--sb-gut);
  background: rgba(3, 4, 31, 0.86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--sb-line);
}
.admin-bar .sb-nav { top: 32px; }
.sb-nav__logo { display: block; color: #fff; }
.sb-logo { display: block; height: 56px; width: auto; }
.sb-nav__links { display: flex; gap: 26px; margin-inline-start: auto; font-size: 15px; }
.sb-nav__links a { text-decoration: none; color: var(--sb-mist-2); transition: color 0.25s; }
.sb-nav__links a:hover, .sb-nav__links a[aria-current] { color: #fff; }
.sb-nav__cta { padding: 9px 18px; border-radius: 999px; border: 1px solid rgba(191, 178, 255, 0.4); text-decoration: none; font: 700 14px var(--sb-d); color: #fff; }
.sb-nav__cta:hover { border-color: var(--sb-violet-2); }

/* زر الفحص: كروم فضي (نفس الموقع) */
.sb-check, .sb-btn--chrome {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border-radius: 999px;
  color: #01033f !important;
  text-decoration: none;
  font: 700 14px var(--sb-d);
  background: linear-gradient(180deg, #ffffff 0%, #e6e9f4 34%, #b3bad1 50%, #eef0f8 68%, #cfd4e6 100%);
  box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(1, 3, 63, 0.28), 0 0 0 1px rgba(1, 3, 63, 0.45), 0 12px 30px rgba(1, 3, 63, 0.5);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.7);
  transition: transform 0.5s var(--sb-ease), box-shadow 0.5s;
}
.sb-check { padding: 10px 18px; }
.sb-check::after, .sb-btn--chrome::after {
  content: '';
  position: absolute;
  z-index: -1;
  top: -40%;
  bottom: -40%;
  left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  transform: skewX(-18deg) translateX(-120%);
}
.sb-check:hover::after, .sb-btn--chrome:hover::after { transform: skewX(-18deg) translateX(520%); transition: transform 1.1s var(--sb-ease); }
.sb-check:hover, .sb-btn--chrome:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 #fff, inset 0 -1px 0 rgba(1, 3, 63, 0.28), 0 0 0 1px rgba(1, 3, 63, 0.5), 0 18px 40px rgba(1, 3, 63, 0.6), 0 0 26px rgba(148, 124, 253, 0.35); }
.sb-check .sb-mark { width: 17px; color: var(--sb-blue); flex: none; }
.sb-check__short { display: none; }

.sb-menu { display: none; position: relative; }
.sb-menu summary { list-style: none; display: grid; place-content: center; gap: 6px; width: 44px; height: 44px; border-radius: 50%; background: rgba(255, 255, 255, 0.08); cursor: pointer; }
.sb-menu summary::-webkit-details-marker { display: none; }
.sb-menu summary i { display: block; width: 18px; height: 2px; border-radius: 2px; background: #fff; }
.sb-menu__panel { position: absolute; top: calc(100% + 10px); left: 0; min-width: 200px; display: grid; padding: 10px; border-radius: 16px; background: #0a0d4a; border: 1px solid var(--sb-line); box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5); }
.sb-menu__panel a { padding: 10px 12px; border-radius: 10px; text-decoration: none; font: 600 15px var(--sb-d); }
.sb-menu__panel a:hover { background: rgba(148, 124, 253, 0.16); }

/* ---------- الهيرو ---------- */
.sb-hero {
  position: relative;
  padding: clamp(48px, 8vw, 96px) var(--sb-gut) clamp(56px, 7vw, 88px);
  background:
    radial-gradient(60% 90% at 85% 10%, rgba(3, 54, 253, 0.55), transparent 60%),
    radial-gradient(50% 80% at 10% 90%, rgba(148, 124, 253, 0.35), transparent 65%),
    linear-gradient(180deg, #0a0f6b, var(--sb-night));
  overflow: hidden;
}
.sb-hero__in { position: relative; max-width: 1080px; margin: 0 auto; display: grid; gap: 14px; justify-items: start; }
.sb-hero--post .sb-hero__in { max-width: 920px; }
.sb-kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0; font: 700 14px var(--sb-d); color: var(--sb-violet-2); }
.sb-kicker .sb-mark { width: 18px; }
.sb-hero__title { margin: 0; font: 800 clamp(2rem, 4.4vw, 3.6rem)/1.3 var(--sb-d); color: #fff; text-wrap: balance; }
.sb-hero--post .sb-hero__title { font-size: clamp(1.8rem, 3.6vw, 3rem); }
.sb-hero__sub { margin: 0; max-width: 62ch; color: var(--sb-mist-2); font-size: 1.1rem; }
.sb-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--sb-mist-2); }
.sb-crumbs a { text-decoration: none; }
.sb-crumbs a:hover { color: #fff; }
.sb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; font-size: 14px; color: var(--sb-sub); }
.sb-meta--hero { color: var(--sb-mist-2); font-size: 15px; }
.sb-search { display: flex; width: min(560px, 100%); margin-top: 10px; padding: 5px; border-radius: 999px; background: #fff; box-shadow: 0 16px 40px rgba(1, 3, 63, 0.45); }
.sb-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; padding: 0 16px; font: 500 15px var(--sb-b); color: var(--sb-ink); }
.sb-search button { flex: none; border: 0; border-radius: 999px; padding: 11px 22px; background: var(--sb-blue); color: #fff; font: 700 15px var(--sb-d); cursor: pointer; }

/* ---------- الكروت ---------- */
.sb-list, .sb-related { max-width: 1180px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--sb-gut); }
.sb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.sb-card { display: grid; grid-template-rows: auto 1fr; overflow: hidden; border-radius: 22px; background: #0b0e45; border: 1px solid var(--sb-line); transition: transform 0.5s var(--sb-ease), border-color 0.5s, box-shadow 0.5s; }
.sb-card:hover { transform: translateY(-4px); border-color: rgba(191, 178, 255, 0.45); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35); }
.sb-card__img { display: block; aspect-ratio: 16 / 10; background: linear-gradient(140deg, #1a2190, #070a3d); overflow: hidden; }
.sb-card__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--sb-ease); }
.sb-card:hover .sb-card__img img { transform: scale(1.04); }
.sb-card__ph { display: grid; place-items: center; height: 100%; color: rgba(191, 178, 255, 0.5); }
.sb-card__ph .sb-mark { width: 64px; }
.sb-card__body { display: grid; align-content: start; gap: 10px; padding: 20px 22px 22px; }
.sb-card__title { margin: 0; font: 800 1.2rem/1.5 var(--sb-d); text-wrap: balance; }
.sb-card__title a { text-decoration: none; color: #fff; }
.sb-card__title a:hover { color: var(--sb-violet-2); }
.sb-card__ex { margin: 0; color: var(--sb-mist-2); font-size: 15px; line-height: 1.8; }
.sb-card .sb-meta { color: rgba(185, 179, 207, 0.75); font-size: 13px; }
.sb-card--big { grid-column: 1 / -1; grid-template-columns: 1.15fr 1fr; grid-template-rows: none; }
.sb-card--big .sb-card__img { aspect-ratio: auto; min-height: 320px; }
.sb-card--big .sb-card__body { align-content: center; padding: clamp(24px, 3vw, 44px); gap: 14px; }
.sb-card--big .sb-card__title { font-size: clamp(1.5rem, 2.4vw, 2.1rem); }
.sb-card--big .sb-card__ex { font-size: 16.5px; }
.sb-chip { justify-self: start; padding: 4px 12px; border-radius: 999px; background: rgba(148, 124, 253, 0.16); color: var(--sb-violet-2); font: 700 12.5px var(--sb-d); text-decoration: none; }
.sb-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 40px; }
.sb-pages .page-numbers { min-width: 44px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--sb-line); text-align: center; text-decoration: none; font: 700 15px var(--sb-d); }
.sb-pages .page-numbers.current { background: var(--sb-blue); border-color: var(--sb-blue); color: #fff; }
.sb-pages a.page-numbers:hover { border-color: var(--sb-violet-2); }
.sb-empty { padding: 40px; border-radius: 20px; border: 1px dashed var(--sb-line); text-align: center; color: var(--sb-mist-2); }
.sb-empty a { color: var(--sb-violet-2); }
.sb-sec-title { margin: 0 0 24px; font: 800 clamp(1.5rem, 2.6vw, 2.1rem)/1.3 var(--sb-d); color: #fff; }

/* ---------- المقال ---------- */
.sb-post { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 var(--sb-gut); }
.sb-post__cover { margin: -36px auto 0; max-width: 920px; overflow: hidden; border-radius: 24px; border: 1px solid var(--sb-line); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.45); }
.sb-post__cover img { display: block; width: 100%; height: auto; max-height: 520px; object-fit: cover; }
.sb-post__grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 28px; align-items: start; margin-top: 28px; }
.sb-paper { min-width: 0; padding: clamp(24px, 4vw, 56px); border-radius: 26px; background: var(--sb-paper); color: var(--sb-ink); box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35); }
.sb-aside { position: sticky; top: 100px; display: grid; gap: 16px; }
.sb-toc { padding: 20px 22px; border-radius: 20px; background: #0b0e45; border: 1px solid var(--sb-line); }
.sb-toc[hidden] { display: none; }
.sb-toc__t { display: flex; align-items: center; justify-content: space-between; margin: 0; font: 800 15px var(--sb-d); color: #fff; cursor: pointer; list-style: none; }
.sb-toc__t::-webkit-details-marker { display: none; }
.sb-toc__t::after { content: '+'; font-size: 18px; color: var(--sb-violet-2); }
.sb-toc[open] .sb-toc__t::after { content: '–'; }
.sb-toc[open] .sb-toc__t { margin-bottom: 10px; }
.sb-body h2:has(img)::before, .sb-body h2:empty::before { display: none; }
.sb-toc ol { margin: 0; padding: 0 18px 0 0; display: grid; gap: 8px; font-size: 14px; line-height: 1.6; color: var(--sb-mist-2); }
.sb-toc a { text-decoration: none; }
.sb-toc a:hover { color: #fff; }
.sb-mini { display: grid; gap: 10px; padding: 22px; border-radius: 20px; background: linear-gradient(160deg, rgba(3, 54, 253, 0.55), #0b0e45 70%); border: 1px solid rgba(106, 146, 255, 0.35); }
.sb-mini__t { margin: 0; font: 800 1.1rem/1.5 var(--sb-d); color: #fff; }
.sb-mini p { margin: 0; font-size: 14.5px; color: var(--sb-mist-2); line-height: 1.7; }
.sb-mini .sb-btn--chrome { padding: 11px 18px; }

/* محتوى المقال (بلوكات وردبريس) */
.sb-body { font-size: 1.12rem; line-height: 2; }
.sb-body > * + * { margin-top: 1.1em; }
.sb-body p { margin: 0; }
.sb-body h1, .sb-body h2 { margin: 1.8em 0 0.5em; font: 800 clamp(1.4rem, 2.2vw, 1.75rem)/1.45 var(--sb-d); color: var(--sb-navy); scroll-margin-top: 110px; }
.sb-body h2::before { content: ''; display: inline-block; width: 10px; height: 10px; margin-inline-end: 12px; border-radius: 3px; background: linear-gradient(135deg, var(--sb-blue), var(--sb-violet)); transform: rotate(45deg) translateY(-3px); }
.sb-body h3 { margin: 1.5em 0 0.4em; font: 800 1.25rem/1.5 var(--sb-d); color: var(--sb-navy); }
.sb-body h4 { margin: 1.3em 0 0.3em; font: 700 1.1rem/1.5 var(--sb-d); color: var(--sb-ink); }
.sb-body > :first-child { margin-top: 0; }
.sb-body a { color: var(--sb-blue); text-decoration: underline; text-decoration-color: rgba(3, 54, 253, 0.35); text-underline-offset: 4px; }
.sb-body a:hover { text-decoration-color: var(--sb-blue); }
.sb-body strong { color: var(--sb-navy); }
.sb-body ul, .sb-body ol { margin: 0.6em 0; padding: 0 1.4em 0 0; display: grid; gap: 0.45em; }
.sb-body ul { list-style: none; padding-right: 1.6em; }
.sb-body ul li { position: relative; }
.sb-body ul li::before { content: ''; position: absolute; right: -1.2em; top: 0.85em; width: 8px; height: 8px; border-radius: 50%; background: var(--sb-violet); }
.sb-body ul li:has(> img, > figure)::before { display: none; }
.sb-body ol li::marker { color: var(--sb-blue); font-weight: 700; }
.sb-body img { border-radius: 16px; }
.sb-body figure { margin: 1.6em 0; }
.sb-body figcaption { margin-top: 8px; font-size: 14px; color: var(--sb-sub); text-align: center; }
.sb-body blockquote { margin: 1.6em 0; padding: 18px 22px; border-radius: 16px; border-right: 4px solid var(--sb-violet); background: #ece8fb; color: var(--sb-ink); }
.sb-body blockquote p { margin: 0; }
.sb-body table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.sb-body .wp-block-table { overflow-x: auto; }
.sb-body th, .sb-body td { padding: 10px 12px; border-bottom: 1px solid #e1dcf3; text-align: right; }
.sb-body th { background: #ece8fb; font-family: var(--sb-d); }
.sb-body hr { border: 0; height: 1px; background: #e1dcf3; margin: 2em 0; }
.sb-body .wp-block-button__link { display: inline-block; padding: 12px 22px; border-radius: 999px; background: var(--sb-blue); color: #fff; text-decoration: none; font: 700 15px var(--sb-d); }

/* ---------- دعوة الفحص ---------- */
.sb-cta { padding: clamp(40px, 6vw, 72px) var(--sb-gut) 0; }
.sb-cta__in {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: clamp(32px, 5vw, 60px) clamp(20px, 4vw, 48px);
  border-radius: 28px;
  text-align: center;
  background: radial-gradient(80% 120% at 50% 0%, rgba(148, 124, 253, 0.45), transparent 60%), linear-gradient(135deg, #2a5bff, var(--sb-blue) 50%, #4a33e6);
  box-shadow: 0 30px 80px rgba(3, 54, 253, 0.35);
}
.sb-cta__kicker { display: inline-flex; align-items: center; gap: 8px; font: 700 14px var(--sb-d); color: #fff; }
.sb-cta__kicker .sb-mark { width: 18px; }
.sb-cta h2 { margin: 0; font: 800 clamp(1.8rem, 3.6vw, 2.8rem)/1.3 var(--sb-d); color: #fff; }
.sb-cta p { margin: 0; max-width: 56ch; color: #e3e8ff; font-size: 1.05rem; }
.sb-cta__btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.sb-btn { display: inline-flex; align-items: center; justify-content: center; padding: 14px 26px; border-radius: 999px; font: 800 15.5px var(--sb-d); text-decoration: none; }
.sb-btn--line { border: 2px solid rgba(255, 255, 255, 0.6); color: #fff; }
.sb-btn--line:hover { border-color: #fff; background: rgba(255, 255, 255, 0.08); }

/* ---------- الفوتر ---------- */
.sb-foot { margin-top: clamp(56px, 8vw, 96px); padding: 48px var(--sb-gut) 32px; border-top: 1px solid var(--sb-line); }
.sb-foot__in { max-width: 1080px; margin: 0 auto; display: grid; justify-items: center; gap: 14px; text-align: center; }
.sb-foot__logo { color: #fff; }
.sb-foot__logo .sb-logo { height: 92px; }
.sb-foot__slogan { margin: 0; font: 700 1.05rem var(--sb-d); color: var(--sb-violet-2); }
.sb-foot__links, .sb-foot__social { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; font-size: 15px; }
.sb-foot__links a, .sb-foot__social a { text-decoration: none; color: var(--sb-mist-2); }
.sb-foot__links a:hover, .sb-foot__social a:hover { color: #fff; }
.sb-foot__copy { margin: 6px 0 0; font-size: 13px; color: rgba(185, 179, 207, 0.6); }

/* ---------- الجوال ---------- */
@media (max-width: 1024px) {
  .sb-post__grid { grid-template-columns: 1fr; }
  .sb-aside { position: static; order: -1; }
  .sb-mini { display: none; }
  .sb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .sb-nav__links, .sb-nav__cta { display: none; }
  .sb-menu { display: block; margin-inline-start: 0; }
  .sb-check { margin-inline-start: auto; }
  .sb-card--big { grid-template-columns: 1fr; }
  .sb-card--big .sb-card__img { min-height: 0; aspect-ratio: 16 / 10; }
}
@media (max-width: 640px) {
  body.sb { font-size: 16px; }
  .sb-logo { height: 44px; }
  .sb-nav { gap: 10px; }
  .sb-check { padding: 8px 14px; font-size: 13px; }
  .sb-check__full { display: none; }
  .sb-check__short { display: inline; }
  .sb-grid { grid-template-columns: 1fr; }
  .sb-post__cover { margin-top: -24px; border-radius: 18px; }
  .sb-paper { border-radius: 20px; }
  .sb-body { font-size: 1.05rem; line-height: 1.95; }
  .sb-search button { padding: 10px 16px; }
  .admin-bar .sb-nav { top: 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .sb-card, .sb-card__img img, .sb-check, .sb-btn--chrome, .sb-check::after, .sb-btn--chrome::after { transition: none !important; }
}
