/* ===========================================================
   Purple Fox — theme styles
   هوية الترويسة: خلفية بنفسجية + شعار + شعار ثلاثي اللغات،
   وشريط تصفّح بلون لكل لغة، وعنقود موحّد (بحث + لغة).
   الأكواد كمتغيّرات CSS لضبطها بسهولة.
   =========================================================== */

:root {
	--fox-band: #3e3680;        /* خلفية الهيدر — مطابق للإنتاج تمامًا */
	--nav-ar: #d8f4c8;          /* شريط التصفّح — العربية (أخضر خفيف) */
	--nav-fr: #a9dcf6;          /* شريط التصفّح — الفرنسية (أزرق سماوي خفيف) */
	--nav-en: #f3b9bf;          /* شريط التصفّح — الإنجليزية (زهري طوبي) */
	--nav-ink: #46368a;         /* حبر روابط التصفّح */
	--fox-purple: #6f4bbb;
	--fox-purple-deep: #4b2e83;
	--fox-footer: #9b65b5;      /* خلفية الفوتر — مطابق للإنتاج تمامًا */
	--fox-glow: #a58dd4;
}

body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
/* شبكة أمان ضد أي انحراف أفقي (clip لا يكسر sticky بعكس hidden) */
html, body { overflow-x: clip; }
main img { max-width: 100%; }

/* ---------- الترويسة ---------- */
.fox-header { position: sticky; top: 0; z-index: 60; }
/* إزالة الفراغ بين شريط الهوية وشريط التصفّح */
.fox-header.wp-block-group > * + * { margin-block-start: 0 !important; }
.fox-brandband, .fox-navbar { margin: 0 !important; }

/* شريط الهوية البنفسجي */
.fox-brandband { position: relative; background: var(--fox-band); color: #efeafc; padding-block: 1rem; padding-inline: clamp(1rem, 4vw, 2.5rem); }
/* الهيدر الداكن: البرغر (بداية) + الشعار (وسط) موحّدًا على كل المقاسات */
.fox-brandband__inner { display: flex !important; align-items: center; gap: .6rem; }
.fox-burger--top { flex: 0 0 auto; }
.fox-lockup { flex: 1 1 auto; min-width: 0; display: flex; justify-content: center; line-height: 0; }
.fox-lockup, .fox-lockup picture { display: flex; justify-content: center; line-height: 0; }
.fox-lockup img { max-height: clamp(50px, 7.5vw, 96px); max-width: 100%; width: auto; height: auto; display: block; }

/* شريط التصفّح — لون لكل لغة */
.fox-navbar { position: relative; background: var(--nav-ar); padding-block: .5rem; box-shadow: 0 2px 12px rgba(58,42,124,.12); }
/* لمسة الشبكة النقطية من بطاقات الثعلب */
.fox-navbar::after {
	content: ""; position: absolute; bottom: 7px; inset-inline-start: 16px; width: 42px; height: 18px; opacity: .32; pointer-events: none;
	background-image: radial-gradient(currentColor 1.2px, transparent 1.4px); background-size: 8px 8px; color: var(--nav-ink);
}
body.fox-lang-fr .fox-navbar { background: var(--nav-fr); }
body.fox-lang-en .fox-navbar { background: var(--nav-en); }
.fox-navbar__inner { gap: .75rem 1.25rem; }

/* العنقود الموحّد: بحث + لغة داخل حبّة واحدة */
.fox-controls { display: flex; align-items: center; gap: .4rem; background: rgba(255,255,255,.6); border-radius: 999px; padding: 3px 5px; }
.fox-search { display: inline-flex; align-items: center; border-inline-end: 1px solid rgba(70,54,138,.22); padding-inline-end: 4px; }
.fox-search__btn { background: transparent; border: 0; color: var(--nav-ink); cursor: pointer; display: inline-flex; padding: 3px; border-radius: 999px; }
.fox-search__btn:hover { color: var(--fox-purple-deep); }
.fox-search__input {
	border: 0; background: transparent; width: 0; padding: 0; opacity: 0;
	transition: width .25s ease, padding .25s ease, opacity .2s; font-size: .85rem; color: var(--nav-ink); outline: none;
	font-family: "Cairo", system-ui, sans-serif;
}
/* يُفتح بالتركيز (سطح المكتب) أو بالنقر عبر JS (الجوال) */
.fox-search:focus-within .fox-search__input,
.fox-search.is-open .fox-search__input { width: clamp(90px, 42vw, 160px); padding: 2px 6px; opacity: 1; }
.fox-search__input::placeholder { color: rgba(70,54,138,.55); }

.fox-lang { display: inline-flex; align-items: center; gap: 2px; }
.fox-lang__item {
	display: inline-flex; align-items: center; justify-content: center; gap: 4px;
	height: 24px; padding: 0 8px; border-radius: 999px;
	text-decoration: none; font-family: "Cairo", system-ui, sans-serif; font-weight: 700; font-size: .78rem;
	color: var(--nav-ink); transition: transform .18s, background .2s, color .2s;
}
.fox-lang__flag { width: 16px; height: auto; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.08); display: inline-block; }
.fox-lang__item:hover { transform: translateY(-1px); color: var(--fox-purple-deep); }
.fox-lang__item.is-current { background: var(--fox-band); color: #fff; }

/* ---------- الزرّ + قائمة ملء الشاشة الفنية ---------- */
.fox-burger { display: inline-flex; flex-direction: column; justify-content: center; gap: 5px; width: 46px; height: 36px; padding: 8px 9px; background: rgba(255,255,255,.55); border-radius: 12px; cursor: pointer; text-decoration: none; transition: background .2s; }
.fox-burger span { display: block; height: 3px; border-radius: 3px; background: var(--nav-ink); transition: transform .25s; }
.fox-burger:hover { background: rgba(255,255,255,.9); }
.fox-burger:hover span:nth-child(1) { transform: translateX(3px); }
.fox-burger:hover span:nth-child(3) { transform: translateX(-3px); }
/* البرغر الموحّد في الشريط الأرجواني الداكن (كل المقاسات) */
.fox-burger--top { display: inline-flex; background: rgba(255,255,255,.16); }
.fox-burger--top span { background: #efeafc; }
.fox-burger--top:hover { background: rgba(255,255,255,.3); }

.fox-overlay {
	position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
	background: linear-gradient(140deg, #17111f 0%, #3d2f66 45%, #6f4bbb 100%);
	/* scale(.97) لا (1.03): التكبير كان يوسّع الطبقة الثابتة فوق عرض الشاشة
	   وسفاري iOS يحتسبها ضمن حدود التمرير فتنحرف الصفحة أفقيًا. */
	opacity: 0; visibility: hidden; transform: scale(.97);
	transition: opacity .4s ease, transform .4s ease, visibility .4s; overflow: auto;
}
.fox-overlay:target { opacity: 1; visibility: visible; transform: none; }
html:has(#fox-overlay:target) { overflow: hidden; }
.fox-overlay__scrim { position: absolute; inset: 0; }
.fox-overlay__close {
	position: absolute; top: 1.3rem; inset-inline-end: 1.6rem; z-index: 3; color: #efeafc; font-size: 1.6rem; line-height: 1;
	text-decoration: none; width: 46px; height: 46px; display: inline-flex; align-items: center; justify-content: center;
	border-radius: 50%; background: rgba(255,255,255,.08); transition: background .2s, transform .2s;
}
.fox-overlay__close:hover { background: rgba(255,255,255,.2); color: #fff; transform: rotate(90deg); }
.fox-overlay__inner { position: relative; z-index: 2; text-align: center; padding: 2rem; }

.fox-overlay__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; }
/* عناصر ثانوية (الرئيسية/من نحن/اتصل بنا/الخصوصية): أصغر وأخفت */
.fox-overlay__list a {
	display: inline-block; text-decoration: none;
	font-family: "Cairo", system-ui, sans-serif; font-weight: 600; letter-spacing: -.01em; line-height: 1.2;
	font-size: clamp(1.05rem, 2.4vw, 1.4rem); color: rgba(239,234,252,.6);
	transition: color .2s, transform .2s;
}
.fox-overlay__list a:hover { color: #fff; transform: translateY(-2px); }
/* الأبواب الستة: أكبر، وبلونها الإنتاجي دائمًا (مضيّأ قليلًا للوضوح على الخلفية الداكنة) */
.fox-overlay__list li.fox-bab-item a {
	font-weight: 800; line-height: 1.1; font-size: clamp(1.95rem, 5.6vw, 3.6rem);
	color: color-mix(in srgb, var(--item-accent) 60%, #f3eefe);
}
.fox-overlay__list li.fox-bab-item a:hover {
	color: color-mix(in srgb, var(--item-accent) 35%, #ffffff); transform: translateY(-2px) scale(1.02);
}
.fox-overlay__list .lang-item, .fox-overlay__list .pll-parent-menu-item { display: none !important; }
.fox-overlay__list li > a::before {
	content: ""; display: inline-block; width: .55em; height: .13em; vertical-align: middle; margin-inline-end: .55rem;
	border-radius: 3px; background: var(--item-accent, transparent); transform: scaleX(0); transform-origin: center; transition: transform .25s;
}
.fox-overlay__list li > a:hover::before { transform: scaleX(1); }

.fox-overlay:target .fox-overlay__list li { animation: foxIn .5s both; }
.fox-overlay:target .fox-overlay__list li:nth-child(1){animation-delay:.04s}
.fox-overlay:target .fox-overlay__list li:nth-child(2){animation-delay:.08s}
.fox-overlay:target .fox-overlay__list li:nth-child(3){animation-delay:.12s}
.fox-overlay:target .fox-overlay__list li:nth-child(4){animation-delay:.16s}
.fox-overlay:target .fox-overlay__list li:nth-child(5){animation-delay:.20s}
.fox-overlay:target .fox-overlay__list li:nth-child(6){animation-delay:.24s}
.fox-overlay:target .fox-overlay__list li:nth-child(7){animation-delay:.28s}
.fox-overlay:target .fox-overlay__list li:nth-child(8){animation-delay:.32s}
.fox-overlay:target .fox-overlay__list li:nth-child(9){animation-delay:.36s}
.fox-overlay:target .fox-overlay__list li:nth-child(10){animation-delay:.40s}
.fox-overlay:target .fox-overlay__list li:nth-child(11){animation-delay:.44s}
.fox-overlay:target .fox-overlay__list li:nth-child(12){animation-delay:.48s}
@keyframes foxIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.fox-overlay__foot { margin-block-start: 2rem; display: flex; justify-content: center; }
.fox-overlay__foot .fox-lang { background: rgba(255,255,255,.12); }
.fox-overlay__foot .fox-lang__item { color: #efeafc; }
.fox-overlay__foot .fox-lang__item.is-current { background: #fff; color: var(--fox-purple-deep); }

.fox-overlay__dots { position: absolute; inset-inline-end: 8%; bottom: 12%; width: 120px; height: 72px; opacity: .5;
	background-image: radial-gradient(rgba(255,255,255,.6) 2px, transparent 2.4px); background-size: 16px 16px; pointer-events: none; }
.fox-overlay__fox { position: absolute; inset-inline-start: 6%; bottom: 5%; width: clamp(110px, 16vw, 210px); height: auto; opacity: .92; pointer-events: none; filter: drop-shadow(0 10px 26px rgba(0,0,0,.28)); }

/* ---------- الرابط الأنيق ---------- */
/* صندوق الرابط المختصر أسفل المادة — ملاحظة مرحة بهوية الثعلب، خارج نسيج المقالة */
.fox-shortlink-box {
	display: flex; align-items: flex-start; gap: .8rem;
	margin: 2.8rem 0 0; padding: 1rem 1.15rem;
	border: 1.5px dashed rgba(111,75,187,.45); border-radius: 16px;
	background: rgba(111,75,187,.055);
}
.fox-shortlink-box__fox { flex: 0 0 auto; width: 34px; height: 34px; object-fit: contain; margin-block-start: .15rem; filter: drop-shadow(0 2px 5px rgba(75,46,131,.25)); }
.fox-shortlink-box__inner { min-width: 0; }
.fox-shortlink-note {
	margin: 0; font-family: "Cairo", system-ui, sans-serif; font-style: italic;
	font-size: .92rem; line-height: 1.7; color: var(--fox-purple-deep); opacity: .92;
}
.fox-shortlink-box .fox-permalink { margin: .35rem 0 0; max-width: 100%; }
.fox-shortlink-box .fox-permalink__btn { max-width: 100%; flex-wrap: wrap; }
.fox-shortlink-box .fox-permalink__url { overflow-wrap: anywhere; }

/* الإمالة مفهوم لاتيني: سفاري iOS يصنعها صناعيًا للعربية فتنزاح نقاط الحروف
   (ث تبدو ن) — نعرض العربية قائمة دائمًا. */
body.fox-lang-ar .fox-shortlink-note,
body.fox-lang-ar .fox-letter-hero__sub,
body.fox-lang-ar .fox-letter-empty p { font-style: normal; }
/* افتراضيًا يحاذي بداية السطر (كالعنوان)؛ ويتوسّط في صفحة الشخص فقط */
.fox-permalink { margin: .7rem 0; display: flex; justify-content: flex-start; }
body.single-person .fox-permalink { justify-content: center; margin-top: .25rem; }
.fox-permalink__btn {
	display: inline-flex; align-items: center; gap: .5rem; background: transparent; border: 0; cursor: pointer;
	color: var(--fox-purple); font-family: "Cairo", system-ui, sans-serif; font-size: .92rem; padding: .3rem .2rem;
	transition: color .2s ease, transform .2s ease;
}
.fox-permalink__btn:hover { color: var(--fox-purple-deep); transform: translateY(-1px); }
.fox-permalink__btn svg { flex: 0 0 auto; opacity: .85; transition: transform .3s ease; }
.fox-permalink__btn:hover svg { transform: rotate(-18deg); }
.fox-permalink__url { direction: ltr; letter-spacing: .01em; padding-bottom: 3px; border-bottom: 1px dashed rgba(111,75,187,.45); transition: border-color .2s; }
.fox-permalink__btn:hover .fox-permalink__url { border-bottom-color: var(--fox-purple); }
.fox-permalink__btn.is-copied { color: #3fae7a; }
.fox-permalink__btn.is-copied .fox-permalink__url { border-bottom-color: transparent; opacity: .6; }
.fox-permalink__done { display: none; color: #3fae7a; font-weight: 700; margin-inline-start: .45rem; }
.fox-permalink__btn.is-copied .fox-permalink__done { display: inline; }

/* ---------- عدّاد المشاهدات (عين ثعلب) ---------- */
.fox-views { display: inline-flex; align-items: center; gap: .35rem; color: var(--fox-purple); font-size: .85rem; }
.fox-views__icon { display: inline-flex; align-items: center; }
.fox-views__icon .fox-eye { width: 1.15em; height: auto; }
.fox-views-num { margin: 0; display: inline-flex; align-items: center; gap: .35rem; }
.fox-views-num::before {
	content: ""; display: inline-block; width: 1.2em; height: .82em; vertical-align: -0.06em; background-color: currentColor;
	-webkit-mask: url("../img/fox-eye.svg") center / contain no-repeat;
	        mask: url("../img/fox-eye.svg") center / contain no-repeat;
}

/* ---------- التذييل ---------- */
.fox-footer { background: var(--fox-footer); color: #fff; margin-block-start: 3rem; }
.fox-footer p { margin: 0; opacity: .96; }
.fox-footer a { color: #fff; }
/* القلب أبيض دائمًا — محدِّد &#xFE0E; في الوسم يمنع تحويله لإيموجي أحمر،
   و!important يحسم أي تعارض من أنماط أخرى. */
.fox-footer__heart, .fox-footer__heart * { color: #ffffff !important; }
.fox-social--footer .wp-block-social-link,
.fox-social--footer .wp-block-social-link a { color: #fff; }

/* ---------- المقال ---------- */
.wp-block-post-title { letter-spacing: -0.01em; }
.entry-featured img, .wp-block-post-featured-image img { border-radius: 14px; }
.wp-block-post-terms a {
	display: inline-block; background: var(--fox-purple); color: #fff !important;
	text-decoration: none; font-size: .72rem; font-weight: 700; padding: .18rem .6rem; border-radius: 999px;
}
body.single-person .wp-block-post-featured-image img {
	border-radius: 50%; width: 168px; height: 168px; object-fit: cover;
	box-shadow: 0 8px 40px rgba(111,75,187,.18);
}

/* ---------- رأس صفحة الباب ---------- */
.fox-bab-head { text-align: center; padding-block: 1rem 1.5rem; }
.fox-bab-head .wp-block-query-title { margin: 0; font-weight: 800; }
/* الثعلب العام حرًّا بلا دائرة (للأبواب التي لم تجهز صفحة هبوطها بعد) */
.fox-bab-emblem--free { display: flex; justify-content: center; margin: .6rem auto 1rem; }
.fox-bab-emblem__img { width: auto; height: 120px; object-fit: contain; display: block; filter: drop-shadow(0 6px 16px rgba(75,46,131,.25)); }
.fox-bab-head .wp-block-term-description { max-width: 620px; margin-inline: auto; color: var(--nav-ink); opacity: .85; }

/* ---------- الهيرو (آخر مقالة) ---------- */
.fox-hero { margin: 0 0 2.2rem; }
.fox-hero__media { position: relative; display: block; border-radius: 18px; overflow: hidden; aspect-ratio: 16 / 8; background: #efeaf6; box-shadow: 0 12px 44px rgba(58,42,124,.20); }
.fox-hero__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.fox-hero__media:hover img { transform: scale(1.03); }
.fox-hero__overlay { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: .6rem; padding: clamp(1.1rem, 3vw, 2.2rem);
	background: linear-gradient(to top, rgba(23,17,31,.9) 0%, rgba(23,17,31,.35) 45%, transparent 78%); }
.fox-hero__tags { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.fox-hero__badge {
	display: inline-flex; align-items: center; gap: .42rem; background: #fff; color: var(--fox-purple-deep);
	font-family: "Cairo", system-ui, sans-serif; font-weight: 800; font-size: .74rem; padding: .2rem .75rem;
	border-radius: 999px; box-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.fox-hero__badge-dot { width: .55em; height: .55em; border-radius: 50%; background: var(--hero-accent, var(--fox-purple)); animation: foxPulse 2.2s ease-in-out infinite; }
@keyframes foxPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.55); opacity: .5; } }
.fox-hero__cat { background: var(--hero-accent, var(--fox-purple)); color: #fff; font-family: "Cairo", system-ui, sans-serif; font-weight: 700; font-size: .74rem; padding: .2rem .75rem; border-radius: 999px; }
.fox-hero__title { font-family: "Cairo", system-ui, sans-serif; font-weight: 800; color: #fff; font-size: clamp(1.4rem, 3.6vw, 2.7rem); line-height: 1.18; margin: 0; max-width: 26ch; text-shadow: 0 2px 20px rgba(0,0,0,.35); }
.fox-hero__meta { display: flex; align-items: center; gap: 1rem; color: #efeafc; font-size: .85rem; opacity: .92; }
.fox-hero__meta .fox-views { color: #efeafc; }
@media (max-width: 600px) { .fox-hero__media { aspect-ratio: 4 / 3.4; } }

/* ---------- صفحات هبوط الأبواب (عامة، مصبوغة بلون الباب) ---------- */
.fox-bab-land {
	position: relative; overflow: hidden; text-align: center;
	margin: .5rem 0 2.8rem; padding: clamp(2.8rem, 7vw, 4.6rem) 1.5rem;
	border-radius: 22px; color: #efeafc;
	background:
		radial-gradient(ellipse at 50% 0%, color-mix(in srgb, var(--bab, #6f4bbb) 50%, transparent), transparent 62%),
		linear-gradient(160deg, #14101f 0%, color-mix(in srgb, var(--bab, #6f4bbb) 28%, #17111f) 55%, color-mix(in srgb, var(--bab, #6f4bbb) 60%, #241b40) 100%);
	box-shadow: 0 18px 60px rgba(23,17,31,.4);
}
.fox-bab-land__dots {
	position: absolute; inset-inline-end: 7%; top: 12%; width: 120px; height: 72px; opacity: .38; pointer-events: none;
	background-image: radial-gradient(rgba(255,255,255,.65) 2px, transparent 2.4px); background-size: 16px 16px;
}
.fox-bab-land__dots--start { inset-inline-end: auto; inset-inline-start: 6%; top: auto; bottom: 10%; opacity: .26; }
.fox-bab-land__icon {
	width: clamp(190px, 32vw, 320px); max-width: 74vw; height: auto; margin-block-end: .7rem;
	filter: drop-shadow(0 16px 34px rgba(0,0,0,.4));
	animation: foxLetterFloat 5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .fox-bab-land__icon { animation: none; } }
.fox-bab-land__title {
	margin: 0; font-family: "Cairo", system-ui, sans-serif; font-weight: 800;
	font-size: clamp(2.1rem, 6.5vw, 3.6rem); line-height: 1.15; letter-spacing: -.01em;
	background: linear-gradient(180deg, #ffffff 30%, color-mix(in srgb, var(--bab, #6f4bbb) 45%, #ffffff));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.fox-bab-land__desc { margin: 1rem auto 0; max-width: 58ch; font-size: 1rem; color: rgba(239,234,252,.82); }
.fox-bab-land__desc p { margin: 0; }

/* ---------- نظرة: صفحة هبوط سينمائية ---------- */
.fox-gaze-hero {
	position: relative; overflow: hidden; text-align: center;
	margin: .5rem 0 2.8rem; padding: clamp(3.2rem, 8vw, 5.2rem) 1.5rem;
	border-radius: 22px; color: #efeafc;
	background:
		radial-gradient(ellipse at 50% 0%, rgba(71,55,144,.6), transparent 62%),
		radial-gradient(ellipse at 85% 100%, rgba(111,75,187,.35), transparent 55%),
		linear-gradient(165deg, #0d0a16 0%, #1c1533 55%, #2f2560 100%);
	box-shadow: 0 18px 60px rgba(23,17,31,.45);
}
/* شريطا فيلم مثقوبان أعلى وأسفل القاعة */
.fox-gaze-hero__strip {
	position: absolute; inset-inline: 24px; height: 12px; opacity: .4; pointer-events: none; border-radius: 3px;
	background-image: repeating-linear-gradient(90deg, transparent 0 7px, rgba(239,234,252,.65) 7px 20px, transparent 20px 27px);
}
.fox-gaze-hero__strip--top { top: 16px; }
.fox-gaze-hero__strip--bottom { bottom: 16px; }
.fox-gaze-hero__icon {
	width: clamp(190px, 32vw, 310px); max-width: 72vw; height: auto; margin-block-end: .4rem;
	filter: drop-shadow(0 16px 34px rgba(0,0,0,.45));
	animation: foxGazeTrack 5.5s ease-in-out infinite;
}
@keyframes foxGazeTrack { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-9px); } }
@media (prefers-reduced-motion: reduce) { .fox-gaze-hero__icon { animation: none; } }
.fox-gaze-hero__title {
	margin: 0; font-family: "Cairo", system-ui, sans-serif; font-weight: 800;
	font-size: clamp(2.2rem, 7vw, 4rem); line-height: 1.15; letter-spacing: -.01em;
	background: linear-gradient(180deg, #ffffff 30%, #b9a7e6); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.fox-gaze-hero__desc { margin: 1.1rem auto 0; max-width: 58ch; font-size: 1rem; color: rgba(239,234,252,.82); }
.fox-gaze-hero__desc p { margin: 0; }

/* ---------- رسالة فوكس: صفحة هبوط النشرة البريدية ---------- */
.fox-letter-hero {
	position: relative; overflow: hidden; text-align: center;
	margin: .5rem 0 2.8rem; padding: clamp(2.6rem, 7vw, 4.8rem) 1.5rem;
	border-radius: 22px;
	background:
		radial-gradient(ellipse at 80% 0%, rgba(185,167,230,.4), transparent 55%),
		radial-gradient(ellipse at 12% 90%, rgba(111,75,187,.5), transparent 60%),
		linear-gradient(145deg, #17111f 0%, #3d2f66 55%, #6f4bbb 100%);
	box-shadow: 0 18px 60px rgba(58,42,124,.35);
}
.fox-letter-hero__dots {
	position: absolute; inset-inline-end: 7%; top: 12%; width: 130px; height: 78px; opacity: .4; pointer-events: none;
	background-image: radial-gradient(rgba(255,255,255,.65) 2px, transparent 2.4px); background-size: 16px 16px;
}
.fox-letter-hero__dots--start { inset-inline-end: auto; inset-inline-start: 6%; top: auto; bottom: 10%; opacity: .28; }
.fox-letter-hero__icon {
	width: clamp(130px, 22vw, 200px); height: auto; margin-block-end: 1rem;
	filter: drop-shadow(0 14px 30px rgba(0,0,0,.35));
	animation: foxLetterFloat 4.5s ease-in-out infinite;
}
@keyframes foxLetterFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (prefers-reduced-motion: reduce) { .fox-letter-hero__icon { animation: none; } }
.fox-letter-hero__title {
	margin: 0 auto; max-width: 22ch; font-family: "Cairo", system-ui, sans-serif; font-weight: 800;
	font-size: clamp(1.55rem, 4.6vw, 2.7rem); line-height: 1.25; color: #fff;
}
.fox-letter-hero__sub {
	margin: .9rem auto 0; max-width: 42ch; font-style: italic;
	font-size: clamp(1.05rem, 2.6vw, 1.35rem); color: #d9cdf3;
}

/* أرشيف الرسائل: بطاقات كمظاريف بطوابعها */
.fox-letter-list .wp-block-post-template { display: flex; flex-direction: column; gap: 1.1rem; }
.fox-letter-card {
	position: relative; background: #fff; border: 1.5px dashed rgba(111,75,187,.4);
	border-radius: 14px; padding: 1.05rem 1.25rem;
	transition: transform .2s ease, box-shadow .25s ease;
}
.fox-letter-card:hover { transform: translateY(-2px); box-shadow: 0 10px 30px rgba(111,75,187,.16); }
.fox-letter-card::after { /* طابع بريدي بأيقونة الثعلب */
	content: ""; position: absolute; top: 12px; inset-inline-end: 14px; width: 36px; height: 42px;
	border: 1px dashed rgba(111,75,187,.45); border-radius: 4px;
	background: url("../../../../uploads/2026/07/fox-general.png") center / 68% no-repeat; opacity: .75;
}
.fox-letter-card .wp-block-post-title { margin: .15rem 0 0; }
.fox-letter-card .wp-block-post-title a { text-decoration: none; }
.fox-letter-card__date { color: #6b6280; }
.fox-letter-card .wp-block-post-excerpt { margin-block-start: .35rem; }

.fox-letter-empty { text-align: center; padding: 2.2rem 1rem 1rem; color: var(--fox-purple-deep); }
.fox-letter-empty img { width: 96px; height: auto; opacity: .9; margin-block-end: .6rem; }
.fox-letter-empty p { margin: 0; font-style: italic; font-size: 1.05rem; opacity: .85; }

/* ---------- 404 ---------- */
.fox-404 { text-align: center; padding-block: clamp(3rem, 10vw, 7rem); }
.fox-404__code {
	font-family: "Cairo", system-ui, sans-serif; font-weight: 800; font-size: clamp(4rem, 18vw, 11rem); line-height: 1;
	background: linear-gradient(135deg, var(--fox-purple), var(--fox-glow));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.fox-404__msg { color: var(--fox-purple-deep); font-size: clamp(1.1rem, 2.4vw, 1.5rem); margin-block-start: .5rem; }
.fox-404__sub { color: var(--fox-purple); opacity: .8; }

/* ---------- عناوين الأقسام (الأكثر قراءة / بقية المواد) ---------- */
.fox-sec-title { display: flex; align-items: center; gap: .55rem; margin-block: 0 1.1rem; }
.fox-sec-title::before {
	content: ""; flex: 0 0 auto; width: .62em; height: .3em; border-radius: 4px;
	background: linear-gradient(90deg, var(--sec-accent, var(--fox-purple)), var(--fox-glow));
}

/* ---------- الأكثر قراءة (توب-٥) ---------- */
.fox-top5 { margin: 0 0 2.6rem; }
.fox-top5__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1rem; }
.fox-top5__item { border-block-end: 1px dashed rgba(111,75,187,.2); padding-block-end: 1rem; }
.fox-top5__item:last-child { border-block-end: 0; padding-block-end: 0; }
.fox-top5__link { display: flex; align-items: center; gap: clamp(.8rem, 2.4vw, 1.35rem); text-decoration: none; }
.fox-top5__rank {
	flex: 0 0 auto; min-width: 1.5ch; text-align: center; font-family: "Cairo", system-ui, sans-serif;
	font-weight: 800; font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1;
	background: linear-gradient(160deg, var(--sec-accent, var(--fox-purple)), var(--fox-glow));
	-webkit-background-clip: text; background-clip: text; color: transparent;
}
.fox-top5__thumb { flex: 0 0 auto; width: clamp(92px, 15vw, 138px); aspect-ratio: 16 / 10; border-radius: 12px; overflow: hidden; background: #efeaf6; }
.fox-top5__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.fox-top5__link:hover .fox-top5__thumb img { transform: scale(1.06); }
.fox-top5__body { display: flex; flex-direction: column; align-items: flex-start; gap: .32rem; min-width: 0; }
.fox-top5__title { font-family: "Cairo", system-ui, sans-serif; font-weight: 700; font-size: clamp(1rem, 2.1vw, 1.22rem); line-height: 1.35; color: var(--fox-purple-deep); transition: color .2s; }
.fox-top5__link:hover .fox-top5__title { color: var(--fox-purple); }
.fox-top5__meta { display: flex; align-items: center; gap: .9rem; color: #6b6280; font-size: .82rem; }
@media (max-width: 520px) {
	.fox-top5__thumb { width: 96px; aspect-ratio: 4 / 3; }
	.fox-top5__rank { font-size: 1.5rem; }
}

/* بحث بلا نتائج: رسالة بارزة + نخبة الأكثر قراءة */
.fox-search-empty { max-width: 780px; margin-inline: auto; }
.fox-search-empty__msg {
	display: flex; align-items: baseline; gap: .55rem;
	margin: .8rem 0 1.8rem; font-family: "Cairo", system-ui, sans-serif; font-weight: 800;
	font-size: clamp(1.35rem, 3.6vw, 1.95rem); line-height: 1.4; color: var(--fox-purple-deep);
}
.fox-search-empty__msg::before {
	content: ""; flex: 0 0 auto; width: .6em; height: .28em; border-radius: 4px; align-self: center;
	background: linear-gradient(90deg, var(--fox-purple), var(--fox-glow));
}

/* ---------- شارة القسم فوق بطاقات الأرشيف ---------- */
.fox-card-cat-wrap { line-height: 1; margin-block: .55rem .15rem; }
.fox-card-cat {
	display: inline-block; background: var(--item-accent, var(--fox-purple)); color: #fff !important;
	font-family: "Cairo", system-ui, sans-serif; font-weight: 700; font-size: .72rem;
	padding: .18rem .62rem; border-radius: 999px; text-decoration: none;
	transition: transform .18s ease, filter .2s ease;
}
a.fox-card-cat:hover { transform: translateY(-1px); filter: brightness(1.1); }

/* ---------- شبكة ---------- */
.fox-grid .wp-block-post-template { gap: clamp(1.5rem, 3vw, 2.5rem); }

/* «عرض المزيد»: يحلّ محل الترقيم عند توفر JS (الترقيم يبقى في الوسم للزحف) */
.fox-has-loadmore .wp-block-query-pagination { display: none; }
.fox-loadmore {
	display: flex; align-items: center; justify-content: center; gap: .5rem;
	margin: 2.2rem auto 0; padding: .6rem 1.9rem;
	background: transparent; border: 1.5px dashed rgba(111,75,187,.55); border-radius: 999px;
	color: var(--fox-purple); font-family: "Cairo", system-ui, sans-serif; font-weight: 700;
	font-size: .95rem; cursor: pointer;
	transition: background .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.fox-loadmore:hover { background: var(--fox-purple); border-color: var(--fox-purple); border-style: solid; color: #fff; transform: translateY(-1px); }
.fox-loadmore.is-loading { opacity: .55; pointer-events: none; }
.fox-loadmore.is-loading .fox-loadmore__label::after { content: "…"; }

.fox-navbar__inner { justify-content: center; }
