/* ═══════════════════════════════════════════════════════════════════════════
   AlphaTeam · alpha_editorial_banners_v82.css
   بنر سرمقاله‌ای مرکز دانش — راند ۲۲ · مورد ۹ (ترمیم دارایی گمشده + ارتقای بصری)
   روی همهٔ ۱۳ تم پلتفرم درست دیده می‌شود، چون فقط از توکن‌های تم استفاده می‌کند.
   ساختار: <section class="aeb"> → .aeb-art (شبکهٔ گرافیکی) + .aeb-copy (متن)
   ═══════════════════════════════════════════════════════════════════════════ */

.aeb {
  /* ── توکن‌های محلی: نخست توکن‌های تازهٔ تم، سپس توکن‌های قدیمی، سپس مقدار پایه ── */
  --aeb-gold: var(--at-gold, var(--a-acc, #e0b862));
  --aeb-gold-hi: var(--at-gold-hi, var(--a-accHi, #fff0c4));
  --aeb-gold-lo: var(--at-gold-lo, var(--a-acc3, #b08a4c));
  --aeb-mint: var(--at-accent-2, var(--a-acc2, #6fe0cf));
  --aeb-ink: var(--at-ink, var(--a-tx, #eaeefb));
  --aeb-ink-2: var(--at-muted, var(--a-tx2, #9fabca));
  --aeb-line: var(--at-line, var(--a-line, rgba(224, 184, 98, .18)));
  --aeb-line-2: var(--a-line2, rgba(224, 184, 98, .34));
  --aeb-glass: var(--at-glass, var(--a-glass, rgba(10, 16, 30, .72)));
  --aeb-glass-2: var(--at-glass-strong, rgba(255, 255, 255, .06));
  --aeb-surface: var(--a-s2, linear-gradient(158deg, rgba(22, 31, 54, .90), rgba(9, 14, 26, .94)));
  --aeb-shadow: var(--at-shadow, var(--a-sh2, 0 26px 60px rgba(0, 0, 0, .34)));
  --aeb-radius: var(--at-r4, var(--a-rxl, 26px));
  --aeb-ease: var(--at-ease, cubic-bezier(.22, .61, .36, 1));
  --aeb-ring: var(--at-ring, 0 0 0 3px rgba(224, 184, 98, .22));

  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr);
  gap: clamp(10px, 1.6vw, 22px);
  align-items: stretch;
  min-height: 430px;
  margin: 26px 0 34px;
  padding: clamp(14px, 1.5vw, 20px);
  border: 1px solid var(--aeb-line);
  border-radius: var(--aeb-radius);
  background: var(--aeb-surface);
  box-shadow: var(--aeb-shadow), inset 0 1px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
}

/* هاله‌های نرم پشت کل بنر — در هر دو حالت روشن/تیره ملایم می‌مانند */
.aeb::before {
  content: "";
  position: absolute;
  inset: -30% -10% auto auto;
  width: 60%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--aeb-gold) 22%, transparent), transparent 72%);
  opacity: .55;
  pointer-events: none;
  z-index: -1;
}

.aeb::after {
  content: "";
  position: absolute;
  inset: auto auto -35% -12%;
  width: 46%;
  aspect-ratio: 1;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--aeb-mint) 18%, transparent), transparent 70%);
  opacity: .5;
  pointer-events: none;
  z-index: -1;
}

/* ── چیدمان: متن در سمت شروع (راست در RTL)، نگاره در سمت دیگر ── */
.aeb-copy {
  grid-column: 1;
  grid-row: 1;
  align-self: center;
  padding: clamp(16px, 2.4vw, 34px) clamp(14px, 2.2vw, 30px) clamp(18px, 2.4vw, 36px) clamp(12px, 1.6vw, 22px);
  order: 1;
}

.aeb-art {
  grid-column: 2;
  grid-row: 1;
  order: 2;
}

/* ─── متن ─── */
.aeb-index {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  padding: 7px 15px;
  border: 1px solid var(--aeb-line-2);
  border-radius: 999px;
  background: var(--aeb-glass-2);
  color: var(--aeb-gold);
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: .04em;
  backdrop-filter: blur(6px);
}

.aeb-index::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--aeb-gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--aeb-gold) 22%, transparent);
  animation: aebBeacon 2.6s var(--aeb-ease) infinite;
}

.aeb-copy h1 {
  position: relative;
  margin: 0 0 16px;
  padding-inline-start: 20px;
  color: var(--aeb-ink);
  font-size: clamp(27px, 3.5vw, 47px);
  font-weight: 900;
  line-height: 1.42;
  letter-spacing: -.01em;
}

.aeb-copy h1::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: .18em;
  bottom: .18em;
  width: 5px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--aeb-gold-hi), var(--aeb-gold), var(--aeb-gold-lo));
  box-shadow: 0 0 18px color-mix(in srgb, var(--aeb-gold) 55%, transparent);
}

.aeb-copy h1::after {
  content: "";
  display: block;
  width: 96px;
  height: 3px;
  margin-top: 16px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--aeb-gold), transparent);
  opacity: .75;
}

.aeb-copy > p {
  margin: 0 0 26px;
  max-width: 62ch;
  color: var(--aeb-ink-2);
  font-size: clamp(14.5px, 1.15vw, 16.5px);
  line-height: 2.05;
}

/* ─── دکمه‌ها ─── */
.aeb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.aeb-actions a {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 850;
  text-decoration: none;
  cursor: pointer;
  transition: transform .32s var(--aeb-ease), box-shadow .32s var(--aeb-ease),
              background-color .32s var(--aeb-ease), border-color .32s var(--aeb-ease), color .32s var(--aeb-ease);
  will-change: transform;
}

body .aeb .aeb-actions a:first-child {
  /* جوهری تیره روی زمینهٔ طلایی: در هر ۱۳ تم خوانا می‌ماند
     (پلتفرم برای همهٔ لینک‌ها color:var(--a-accInk)!important می‌گذارد، پس اینجا آگاهانه
      و با اولویت بالاتر، رنگ خوانا را برمی‌گزینیم) */
  background: linear-gradient(135deg, var(--aeb-gold-hi), var(--aeb-gold) 58%, var(--aeb-gold-lo));
  color: #1b1408 !important;
  box-shadow: 0 12px 30px color-mix(in srgb, var(--aeb-gold) 30%, transparent);
}

body .aeb .aeb-actions a:first-child:hover,
body .aeb .aeb-actions a:first-child:focus-visible { color: #14100a !important; }

.aeb-actions a:first-child::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(105deg, transparent 32%, rgba(255, 255, 255, .55) 48%, transparent 62%);
  transform: translateX(-120%);
  transition: transform .8s var(--aeb-ease);
  pointer-events: none;
}

.aeb-actions a:first-child:hover::after { transform: translateX(120%); }

.aeb-actions a + a {
  border-color: var(--aeb-line-2);
  background: var(--aeb-glass-2);
  color: var(--aeb-ink);
}

.aeb-actions a:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 34px color-mix(in srgb, var(--aeb-gold) 26%, transparent);
}

.aeb-actions a + a:hover {
  border-color: var(--aeb-gold);
  color: var(--aeb-gold);
}

.aeb-actions a:focus-visible {
  outline: 2px solid var(--aeb-gold);
  outline-offset: 3px;
  box-shadow: none;
}

.aeb-actions a:active { transform: translateY(-1px) scale(.985); }

/* نوار نشان‌های اعتماد (در صورت استفاده در همین بلوک) */
.aeb-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--aeb-line);
  list-style: none;
}

.aeb-trust li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--aeb-ink-2);
  font-size: 13px;
  font-weight: 700;
}

.aeb-trust li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 2px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--aeb-mint), var(--aeb-gold));
  box-shadow: 0 0 10px color-mix(in srgb, var(--aeb-mint) 40%, transparent);
}

/* ═══════════ نگاره: مدار، گره‌ها، مسیرها، سیگنال و واژهٔ ALPHA ═══════════ */
.aeb-art {
  position: relative;
  min-height: 100%;
  border: 1px solid var(--aeb-line);
  border-radius: calc(var(--aeb-radius) - 8px);
  background:
    radial-gradient(120% 90% at 78% 12%, color-mix(in srgb, var(--aeb-gold) 16%, transparent), transparent 60%),
    radial-gradient(90% 80% at 12% 88%, color-mix(in srgb, var(--aeb-mint) 14%, transparent), transparent 62%),
    linear-gradient(160deg, rgba(0, 0, 0, .14), rgba(0, 0, 0, .32)),
    var(--at-night, var(--a-side2, #0a1020));
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .04), inset 0 -40px 80px rgba(0, 0, 0, .22);
}

/* تم‌های روشن: پنل نگاره به‌جای خاکستری‌شدن، شامپاینی روشن و درخشان می‌شود */
body.at-theme-sepideh .aeb-art,
body.at-theme-nasim .aeb-art,
body.at-theme-rose .aeb-art,
body.at-theme-light .aeb-art,
body.at-theme-soft .aeb-art {
  background-image:
    radial-gradient(120% 90% at 78% 12%, color-mix(in srgb, var(--aeb-gold) 34%, transparent), transparent 62%),
    radial-gradient(95% 85% at 10% 92%, color-mix(in srgb, var(--aeb-mint) 26%, transparent), transparent 64%),
    linear-gradient(160deg, rgba(0, 0, 0, .04), rgba(0, 0, 0, .18));
}

body.at-theme-sepideh .aeb-word,
body.at-theme-nasim .aeb-word,
body.at-theme-rose .aeb-word,
body.at-theme-light .aeb-word,
body.at-theme-soft .aeb-word { opacity: .42; }

body.at-theme-sepideh .aeb-art::before,
body.at-theme-nasim .aeb-art::before,
body.at-theme-rose .aeb-art::before,
body.at-theme-light .aeb-art::before,
body.at-theme-soft .aeb-art::before { opacity: .26; }

/* شبکهٔ ریزی از نقطه‌ها برای بافت مهندسی */
.aeb-art::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(currentColor 1px, transparent 1.4px);
  background-size: 26px 26px;
  color: color-mix(in srgb, var(--aeb-gold) 34%, transparent);
  opacity: .16;
  mask-image: radial-gradient(115% 95% at 60% 40%, #000 22%, transparent 78%);
  -webkit-mask-image: radial-gradient(115% 95% at 60% 40%, #000 22%, transparent 78%);
}

/* حلقهٔ نورانی پایین نگاره */
.aeb-art::after {
  content: "";
  position: absolute;
  inset: auto 6% -28% 6%;
  height: 52%;
  border-radius: 50%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--aeb-gold) 26%, transparent), transparent 72%);
  filter: blur(14px);
  opacity: .7;
}

/* ── مدار مرکزی: سه حلقهٔ چرخان ── */
.aeb-orbit,
.aeb-orbit::before,
.aeb-orbit::after {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  border-radius: 50%;
  pointer-events: none;
}

.aeb-orbit {
  width: min(74%, 340px);
  aspect-ratio: 1;
  background: conic-gradient(from 0turn,
              transparent 0 52%, color-mix(in srgb, var(--aeb-gold) 85%, transparent) 72%,
              transparent 84%, color-mix(in srgb, var(--aeb-mint) 70%, transparent) 94%, transparent 100%);
  mask-image: radial-gradient(closest-side, transparent 74%, #000 75%, #000 100%);
  -webkit-mask-image: radial-gradient(closest-side, transparent 74%, #000 75%, #000 100%);
  filter: drop-shadow(0 0 14px color-mix(in srgb, var(--aeb-gold) 35%, transparent));
  animation: aebSpin 26s linear infinite;
}

.aeb-orbit::before {
  content: "";
  width: 132%;
  height: 132%;
  border: 1px dashed color-mix(in srgb, var(--aeb-line-2) 130%, transparent);
  mask-image: none;
  -webkit-mask-image: none;
  background: none;
  opacity: .55;
  animation: aebSpin 48s linear infinite reverse;
}

.aeb-orbit::after {
  content: "";
  width: 68%;
  height: 68%;
  border: 1px solid color-mix(in srgb, var(--aeb-mint) 45%, transparent);
  background: radial-gradient(closest-side, color-mix(in srgb, var(--aeb-mint) 12%, transparent), transparent 76%);
  animation: aebSpin 34s linear infinite;
}

/* ── گره‌های شبکه ── */
.aeb-node {
  position: absolute;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, var(--aeb-gold-hi), var(--aeb-gold) 62%, var(--aeb-gold-lo));
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--aeb-gold) 14%, transparent),
              0 0 20px color-mix(in srgb, var(--aeb-gold) 60%, transparent);
  animation: aebFloat 6.4s var(--aeb-ease) infinite;
}

.aeb-node::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px solid color-mix(in srgb, var(--aeb-gold) 45%, transparent);
  animation: aebPing 3.6s var(--aeb-ease) infinite;
}

.aeb-node.n1 { top: 16%; left: 18%; }
.aeb-node.n2 { top: 30%; left: 74%; animation-delay: .5s; }
.aeb-node.n3 { top: 58%; left: 86%; animation-delay: .9s; }
.aeb-node.n4 { top: 78%; left: 56%; animation-delay: 1.4s; }
.aeb-node.n5 { top: 70%; left: 22%; animation-delay: 1.9s; }
.aeb-node.n6 { top: 42%; left: 40%; animation-delay: 2.4s; }

.aeb-node.n2,
.aeb-node.n4 {
  width: 10px;
  height: 10px;
  background: radial-gradient(circle at 32% 28%, #fff, var(--aeb-mint) 60%, #1f7f72);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--aeb-mint) 16%, transparent),
              0 0 18px color-mix(in srgb, var(--aeb-mint) 55%, transparent);
}

.aeb-node.n2::after,
.aeb-node.n4::after { border-color: color-mix(in srgb, var(--aeb-mint) 40%, transparent); }

/* ── مسیرهای داده با جریان نور ── */
.aeb-path {
  position: absolute;
  height: 2px;
  border-radius: 999px;
  background-image: linear-gradient(90deg,
      color-mix(in srgb, var(--aeb-gold) 55%, transparent) 0 12%,
      transparent 12% 26%,
      color-mix(in srgb, var(--aeb-mint) 60%, transparent) 26% 33%,
      transparent 33% 100%);
  background-size: 190px 100%;
  opacity: .75;
  animation: aebFlow 4.4s linear infinite;
  transform-origin: 0 50%;
}

.aeb-path.p1 { top: 22%; left: 20%; width: 34%; rotate: 14deg; }
.aeb-path.p2 { top: 36%; left: 44%; width: 40%; rotate: -18deg; animation-duration: 5.6s; }
.aeb-path.p3 { top: 62%; left: 26%; width: 38%; rotate: -34deg; animation-duration: 6.4s; animation-direction: reverse; }
.aeb-path.p4 { top: 74%; left: 44%; width: 30%; rotate: 22deg; animation-duration: 5s; opacity: .55; }

/* ── سیگنال: پرتوی نورِ کشیده که از نگاره می‌گذرد ── */
.aeb-signal {
  position: absolute;
  top: -12%;
  left: -30%;
  width: 26%;
  height: 124%;
  background: linear-gradient(100deg, transparent, color-mix(in srgb, var(--aeb-gold-hi) 26%, transparent) 46%, transparent);
  filter: blur(16px);
  transform: skewX(-12deg);
  animation: aebSweep 7.5s var(--aeb-ease) infinite;
  pointer-events: none;
}

/* ── واژهٔ ALPHA به‌شکل حروف حکاکی‌شده ── */
.aeb-word {
  position: absolute;
  bottom: 4%;
  left: 5%;
  font-family: ui-sans-serif, system-ui, "Segoe UI", Arial, sans-serif;
  font-size: clamp(38px, 6.6vw, 86px);
  font-weight: 900;
  letter-spacing: .22em;
  line-height: 1;
  background: linear-gradient(100deg, var(--aeb-gold-hi), var(--aeb-gold) 44%, transparent 96%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  opacity: .3;
  pointer-events: none;
  user-select: none;
}

/* ═══════════ واکنش‌گرایی ═══════════ */
@media (max-width: 1024px) {
  .aeb { min-height: 0; grid-template-columns: minmax(0, 1fr); }
  .aeb-art { grid-column: 1; grid-row: 1; min-height: 300px; order: 1; }
  .aeb-copy { grid-column: 1; grid-row: 2; order: 2; padding-inline: 6px; }
  .aeb-art::after { inset: auto 4% -22% 4%; }
}

@media (max-width: 620px) {
  .aeb { margin: 16px 0 26px; padding: 12px; gap: 8px; }
  .aeb-art { min-height: 232px; }
  .aeb-copy h1 { padding-inline-start: 15px; font-size: clamp(24px, 7vw, 32px); }
  .aeb-copy h1::before { width: 4px; }
  .aeb-copy > p { font-size: 14.5px; line-height: 1.95; }
  .aeb-actions { gap: 10px; }
  .aeb-actions a { flex: 1 1 100%; min-height: 44px; }
  .aeb-orbit { width: min(80%, 250px); }
  .aeb-path.p3, .aeb-path.p4 { display: none; }
  .aeb-node.n5, .aeb-node.n6 { display: none; }
  .aeb-word { font-size: clamp(30px, 12vw, 52px); letter-spacing: .16em; bottom: 6%; }
}

/* ═══════════ پویانمایی‌ها ═══════════ */
@keyframes aebSpin { to { rotate: 360deg; } }

@keyframes aebFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -9px, 0); }
}

@keyframes aebPing {
  0% { transform: scale(.72); opacity: .9; }
  70% { transform: scale(1.5); opacity: 0; }
  100% { transform: scale(1.5); opacity: 0; }
}

@keyframes aebFlow {
  0% { background-position: 0 0; }
  100% { background-position: 190px 0; }
}

@keyframes aebSweep {
  0% { transform: translateX(0) skewX(-12deg); opacity: 0; }
  18% { opacity: .85; }
  62% { opacity: .5; }
  100% { transform: translateX(520%) skewX(-12deg); opacity: 0; }
}

@keyframes aebBeacon {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.82); }
}

/* اگر مرورگر color-mix را نشناسد، رنگ‌های جایگزین ساده اعمال می‌شوند */
@supports not (color: color-mix(in srgb, red 50%, blue)) {
  .aeb::before, .aeb::after { background: none; }
  .aeb-art::before { background-image: radial-gradient(rgba(224, 184, 98, .35) 1px, transparent 1.4px); }
  .aeb-art::after { background: radial-gradient(closest-side, rgba(224, 184, 98, .22), transparent 72%); }
  .aeb-orbit {
    background: conic-gradient(from 0turn, transparent 0 52%, rgba(224, 184, 98, .85) 72%, transparent 84%, rgba(111, 224, 207, .7) 94%, transparent 100%);
  }
  .aeb-orbit::before { border-color: rgba(224, 184, 98, .35); }
  .aeb-orbit::after { border-color: rgba(111, 224, 207, .45); }
  .aeb-node { box-shadow: 0 0 0 5px rgba(224, 184, 98, .14), 0 0 20px rgba(224, 184, 98, .6); }
  .aeb-node.n2, .aeb-node.n4 { box-shadow: 0 0 0 5px rgba(111, 224, 207, .16), 0 0 18px rgba(111, 224, 207, .55); }
  .aeb-signal { background: linear-gradient(100deg, transparent, rgba(255, 240, 196, .24) 46%, transparent); }
  .aeb-actions a:first-child { box-shadow: 0 12px 30px rgba(224, 184, 98, .3); }
  .aeb-actions a:hover { box-shadow: 0 16px 34px rgba(224, 184, 98, .26); }
  .aeb-index::before { box-shadow: 0 0 0 3px rgba(224, 184, 98, .22); }
  .aeb-trust li::before { box-shadow: 0 0 10px rgba(111, 224, 207, .4); }
}

/* احترام به تنظیم کاهش حرکت */
@media (prefers-reduced-motion: reduce) {
  .aeb-orbit, .aeb-orbit::before, .aeb-orbit::after,
  .aeb-node, .aeb-node::after, .aeb-path, .aeb-signal, .aeb-index::before {
    animation: none !important;
  }
  .aeb-actions a { transition: none; }
}

/* چاپ: بدون سیگنال و پویانمایی */
@media print {
  .aeb { box-shadow: none; background: #fff; }
  .aeb-signal, .aeb-orbit { display: none; }
}
