/* ============================================================
   SPECTERS — WordPress theme stylesheet
   Standard CSS extracted from the HTML design references.
   Enqueue this in functions.php. All design tokens live in
   :root below — change brand colors in one place.
   ============================================================ */

:root {
  /* Brand */
  --spec-orange:        #FF9A00;
  --spec-orange-light:  #FFB547;
  --spec-orange-hi:     #FFD089;
  --spec-orange-dark:   #D67F00;
  --spec-orange-deep:   #C77400;
  --spec-grad: linear-gradient(135deg, #FFB547, #FF9A00 55%, #D67F00);
  --spec-grad-text: linear-gradient(115deg, #FFD089, #FF9A00 50%, #C77400);

  /* Surfaces */
  --spec-bg:        #070707;  /* page background */
  --spec-bg-alt:    #0B0B0B;  /* alternating sections */
  --spec-card-a:    #131313;  /* card gradient top */
  --spec-card-b:    #0D0D0D;  /* card gradient bottom */

  /* Text */
  --spec-text:       #ffffff;
  --spec-text-soft:  #9A9A9A;
  --spec-text-mute:  #909090;
  --spec-text-faint: #6E6E6E;
  --spec-ghost:      rgba(255,255,255,0.24); /* faded "shadow" headline line */

  /* Lines / borders */
  --spec-border:      rgba(255,255,255,0.08);
  --spec-border-soft: rgba(255,255,255,0.10);

  /* Radius */
  --spec-r-card:  20px;
  --spec-r-lg:    24px;
  --spec-r-btn:   13px;
  --spec-r-pill:  100px;

  /* Type */
  --spec-font-head: 'Tajawal', sans-serif;
  --spec-font-body: 'IBM Plex Sans Arabic', sans-serif;

  /* Layout */
  --spec-maxw: 1280px;
}

/* ---- base ---- */
* { box-sizing: border-box; }
body.spec {
  margin: 0;
  background: var(--spec-bg);
  color: var(--spec-text);
  font-family: var(--spec-font-body);
  direction: rtl;
  overflow-x: hidden;
}
.spec a { text-decoration: none; }
.spec-wrap { max-width: var(--spec-maxw); margin: 0 auto; padding-inline: 32px; }

/* ---- header ---- */
.spec-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,10,0.72);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
}
.spec-header__inner {
  max-width: var(--spec-maxw); margin: 0 auto; padding: 0 32px;
  height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.spec-logo { display: flex; align-items: center; gap: 12px; }
.spec-logo img { width: 38px; height: 38px; object-fit: contain; }
.spec-logo span {
  font-family: var(--spec-font-head); font-weight: 800; font-size: 23px;
  letter-spacing: 0.22em; color: #fff;
}
.spec-nav { display: flex; align-items: center; gap: 38px; }
.spec-nav a { font-size: 15.5px; font-weight: 500; color: #C8C8C8; transition: color .2s; }
.spec-nav a:hover, .spec-nav a.current-menu-item { color: var(--spec-orange); }

/* ---- buttons ---- */
.spec-btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-family: var(--spec-font-head); font-weight: 700;
  border-radius: var(--spec-r-btn); transition: transform .2s, box-shadow .2s;
}
.spec-btn--primary {
  background: var(--spec-grad); color: #0A0A0A;
  padding: 15px 30px; font-size: 16px;
  box-shadow: 0 14px 36px -10px rgba(255,154,0,0.6);
}
.spec-btn--primary:hover { transform: translateY(-2px); box-shadow: 0 20px 44px -10px rgba(255,154,0,0.75); }
.spec-btn--ghost {
  background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.14);
  color: #fff; padding: 15px 30px; font-size: 16px;
}
.spec-btn--ghost:hover { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.3); }

/* ---- hero (spotlight) ---- */
.spec-hero { position: relative; overflow: hidden; background: var(--spec-bg); }
.spec-hero__grid {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 40%, #000, transparent 78%);
          mask-image: radial-gradient(circle at 50% 40%, #000, transparent 78%);
}
.spec-hero__spot {
  position: absolute; top: 0; left: 0; width: 760px; height: 760px;
  margin-left: -380px; margin-top: -380px; pointer-events: none; will-change: transform;
  transition: transform .12s ease-out;
  background: radial-gradient(circle, rgba(255,154,0,0.22), rgba(255,154,0,0.06) 38%, transparent 66%);
}
.spec-hero__inner { position: relative; max-width: var(--spec-maxw); margin: 0 auto; padding: 90px 32px; }

/* headline with ghosted "shadow" first line — keep Arabic connected: NO -webkit-text-stroke */
.spec-h1 {
  font-family: var(--spec-font-head); font-weight: 900;
  font-size: clamp(38px, 5.2vw, 72px); line-height: 1.34; letter-spacing: -0.01em;
  margin: 26px 0 0; color: #fff;
}
.spec-h1 .ghost { display: block; color: var(--spec-ghost); }            /* "نتحرك في الظل" */
.spec-h1 .plain { display: block; }
.spec-h1 .grad  { display: block; background: var(--spec-grad-text);
  -webkit-background-clip: text; background-clip: text; color: transparent; }

.spec-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.1);
  color: var(--spec-orange-light); font-size: 14px; font-weight: 600;
  padding: 9px 18px; border-radius: var(--spec-r-pill); backdrop-filter: blur(6px);
}
.spec-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--spec-orange); box-shadow: 0 0 12px var(--spec-orange); }

/* ---- section heading eyebrow ---- */
.spec-kicker { color: var(--spec-orange); font-weight: 700; font-size: 15px; letter-spacing: .05em; }
.spec-h2 { font-family: var(--spec-font-head); font-weight: 900; font-size: clamp(32px,4.4vw,52px); line-height: 1.12; margin: 14px 0 0; }

/* ---- cards / bento ---- */
.spec-card {
  background: linear-gradient(180deg, var(--spec-card-a), var(--spec-card-b));
  border: 1px solid var(--spec-border); border-radius: var(--spec-r-card);
  transition: transform .3s, border-color .3s;
}
.spec-card:hover { transform: translateY(-6px); border-color: rgba(255,154,0,0.4); }
.spec-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.spec-bento .col-2 { grid-column: span 2; }
.spec-bento .col-3 { grid-column: span 3; }
.spec-bento .row-2 { grid-row: span 2; }

.spec-icon {
  width: 48px; height: 48px; border-radius: 13px;
  background: rgba(255,154,0,0.1); border: 1px solid rgba(255,154,0,0.22);
  display: flex; align-items: center; justify-content: center; color: var(--spec-orange);
}
.spec-icon svg { width: 24px; height: 24px; }

/* ---- marquee ---- */
.spec-marquee { overflow: hidden; padding: 26px 0; border-top: 1px solid rgba(255,255,255,0.07); border-bottom: 1px solid rgba(255,255,255,0.07); }
.spec-marquee__track { display: flex; width: max-content; animation: specMarquee 32s linear infinite; }
.spec-marquee__track > div { display: flex; align-items: center; gap: 38px; padding-inline-end: 38px; }
.spec-marquee span.word { font-family: var(--spec-font-head); font-weight: 800; font-size: 26px; white-space: nowrap; }
.spec-marquee span.word.solid { color: #fff; }
.spec-marquee span.word.faint { color: rgba(255,154,0,0.55); }
.spec-marquee .pip { width: 7px; height: 7px; border-radius: 50%; background: var(--spec-orange); flex: none; }
@keyframes specMarquee { from { transform: translateX(0); } to { transform: translateX(50%); } }

/* ---- process path (scroll-filling line) ---- */
.spec-proc { position: relative; }
.spec-proc__track { position: absolute; top: 0; bottom: 0; right: 31px; width: 2px; background: rgba(255,255,255,0.09); }
.spec-proc__fill  { position: absolute; top: 0; right: 31px; width: 2px; height: 0%;
  background: linear-gradient(#FFB547, #FF9A00, #D67F00); box-shadow: 0 0 14px rgba(255,154,0,0.6); }
.spec-proc-row { position: relative; display: flex; gap: 30px; align-items: flex-start; }
.spec-proc-num {
  flex: none; position: relative; z-index: 2; width: 64px; height: 64px; border-radius: 50%;
  background: #0E0E0E; border: 2px solid rgba(255,154,0,0.45);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--spec-font-head); font-weight: 900; font-size: 22px; color: var(--spec-orange);
}
.spec-proc-card { flex: 1; min-width: 0; margin-top: 2px;
  background: linear-gradient(180deg, var(--spec-card-a), var(--spec-card-b));
  border: 1px solid var(--spec-border); border-radius: 18px; padding: 26px 30px; }

/* ---- stats band ---- */
.spec-stats { position: relative; overflow: hidden;
  background: linear-gradient(135deg, #150E03, #0A0A0A 60%);
  border-top: 1px solid rgba(255,154,0,0.18); border-bottom: 1px solid rgba(255,154,0,0.18); }
.spec-counter { font-family: var(--spec-font-head); font-weight: 900; font-size: clamp(40px,5vw,62px); line-height: 1;
  background: linear-gradient(135deg, #FFD089, #FF9A00, #C77400);
  -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---- footer ---- */
.spec-footer { background: #070707; border-top: 1px solid rgba(255,255,255,0.07); color: #9A9A9A; }

/* ---- forms ---- */
.spec-input, .spec-textarea, .spec-select {
  width: 100%; box-sizing: border-box; background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12); border-radius: 11px; padding: 14px 16px;
  color: #fff; font-family: var(--spec-font-body); font-size: 15px; outline: none;
}
.spec-input:focus, .spec-textarea:focus, .spec-select:focus { border-color: var(--spec-orange); }

/* ============================================================
   ARTICLE (single.php) — the SEO-critical template
   ============================================================ */
.spec-progress { position: fixed; top: 0; right: 0; left: 0; height: 3px; z-index: 60; background: transparent; }
.spec-progress__bar { height: 100%; width: 0%;
  background: linear-gradient(90deg, #FFB547, #FF9A00, #D67F00); box-shadow: 0 0 12px rgba(255,154,0,0.6); transition: width .1s linear; }

.spec-article-body { }
.spec-article-body p  { font-size: 18px; line-height: 1.98; color: #BFBFBF; margin: 0 0 22px; }
.spec-article-body h2 { font-family: var(--spec-font-head); font-weight: 800; font-size: 30px; color: #fff; margin: 52px 0 18px; scroll-margin-top: 96px; }
.spec-article-body h3 { font-family: var(--spec-font-head); font-weight: 700; font-size: 22px; color: #fff; margin: 34px 0 12px; }
.spec-article-body ul, .spec-article-body ol { margin: 0 0 22px; padding-inline-start: 8px; list-style: none; }
.spec-article-body li { font-size: 18px; line-height: 1.9; color: #BFBFBF; margin: 0 0 13px; padding-inline-start: 30px; position: relative; }
.spec-article-body li::before { content: ''; position: absolute; right: 0; top: 11px; width: 9px; height: 9px; border-radius: 3px; background: linear-gradient(135deg, #FFB547, #D67F00); }
.spec-article-body strong { color: #fff; font-weight: 700; }
.spec-article-body a { color: var(--spec-orange); border-bottom: 1px solid rgba(255,154,0,0.4); }
.spec-article-body blockquote { margin: 34px 0; padding: 24px 28px; border-right: 3px solid var(--spec-orange);
  background: rgba(255,154,0,0.05); border-radius: 0 14px 14px 0; }
.spec-article-body blockquote p { margin: 0; font-family: var(--spec-font-head); font-weight: 500; font-size: 21px; line-height: 1.7; color: #E8E8E8; }

.spec-toc { position: sticky; top: 100px;
  background: linear-gradient(180deg, var(--spec-card-a), var(--spec-card-b));
  border: 1px solid var(--spec-border); border-radius: 18px; padding: 26px 24px; }
.spec-toc a { display: block; font-size: 14px; line-height: 1.5; color: #9A9A9A; padding: 8px 12px;
  border-radius: 8px; border-right: 2px solid transparent; transition: color .2s, background .2s, border-color .2s; }
.spec-toc a:hover, .spec-toc a.active { color: var(--spec-orange); background: rgba(255,154,0,0.07); border-color: var(--spec-orange); }

/* ---- reveal-on-scroll (fail-safe: content visible by default) ---- */
@keyframes specReveal { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }
.reveal { opacity: 1; }
.reveal.in { animation: specReveal .8s cubic-bezier(.16,1,.3,1) both; }

/* ---- floating + pulse ---- */
@keyframes specFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes specPulse { 0%,100% { opacity: .5; transform: scale(1); } 50% { opacity: .85; transform: scale(1.06); } }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .spec-bento { grid-template-columns: repeat(2, 1fr); }
  .spec-bento .col-2, .spec-bento .col-3 { grid-column: span 2; }
  .spec-bento .row-2 { grid-row: auto; }
}
@media (max-width: 640px) {
  .spec-nav { display: none; } /* replace with a mobile menu toggle */
  .spec-bento { grid-template-columns: 1fr; }
  .spec-bento .col-2, .spec-bento .col-3 { grid-column: auto; }
  .spec-proc-row { gap: 18px; }
  .spec-proc-card { padding: 18px 20px; }
  .spec-proc-num { width: 52px; height: 52px; font-size: 18px; }
}
