/* فاحص السيرة الذاتية — RTL، متناسق مع قالب "دليلك للوظائف" */

.dlcv {
	--cv-blue: #0073e6;
	--cv-blue-dark: #0a4fa3;
	--cv-ink: #14202e;
	--cv-muted: #5b6b7c;
	--cv-line: #e3e9f0;
	--cv-radius: 12px;

	direction: rtl;
	text-align: right;
	font-family: inherit;
	color: var(--cv-ink);
	max-width: 820px;
	margin-inline: auto;
}

.dlcv * { box-sizing: border-box; }

/* ===== وسام الهيرو ===== */

.dlcv-hero-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	padding: 9px 8px 9px 18px;
	border-radius: 999px;
	background: linear-gradient(135deg, #ffd76e 0%, #ffb020 100%);
	color: #4a2c00 !important;
	font-size: .92rem;
	font-weight: 800;
	text-decoration: none !important;
	box-shadow: 0 4px 16px rgba(255, 176, 32, .38);
	transition: transform .18s ease, box-shadow .18s ease;
}

.dlcv-hero-badge:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 24px rgba(255, 176, 32, .5);
}

.dlcv-hero-badge-tag {
	background: rgba(255, 255, 255, .75);
	padding: 3px 11px;
	border-radius: 999px;
	font-size: .78rem;
	font-weight: 800;
}

.dlcv-hero-badge-spark { font-size: 1rem; }

/* ===== البنر ===== */

.dlcv-banner {
	position: relative;
	overflow: hidden;
	direction: rtl;
	text-align: right;
	margin-block: 8px;
	padding: 34px 32px;
	border-radius: 18px;
	background: linear-gradient(135deg, #0a4fa3 0%, #0073e6 100%);
	color: #fff;
	box-shadow: 0 10px 34px rgba(10, 79, 163, .22);
}

/* توهّج ناعم — عنصر واحد لا صورة، فلا طلب شبكة إضافياً */
.dlcv-banner-glow {
	position: absolute;
	inset-inline-start: -80px;
	top: -120px;
	width: 320px;
	height: 320px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(255, 255, 255, .16) 0%, transparent 68%);
	pointer-events: none;
}

.dlcv-banner-body { position: relative; z-index: 1; }

.dlcv-banner-eyebrow {
	display: inline-block;
	margin-bottom: 12px;
	padding: 5px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, .18);
	border: 1px solid rgba(255, 255, 255, .3);
	font-size: .8rem;
	font-weight: 700;
}

.dlcv-banner h2 {
	margin: 0 0 10px;
	color: #fff;
	font-size: 1.6rem;
	font-weight: 800;
	line-height: 1.5;
}

.dlcv-banner > .dlcv-banner-body > p {
	margin: 0 0 22px;
	color: rgba(255, 255, 255, .9);
	font-size: 1rem;
	line-height: 1.9;
	max-width: 640px;
}

.dlcv-banner-feats {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
	margin: 0 0 26px;
	padding: 0;
	list-style: none;
}

.dlcv-banner-feats li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	margin: 0;
	padding: 14px;
	border-radius: 12px;
	background: rgba(255, 255, 255, .1);
	border: 1px solid rgba(255, 255, 255, .16);
}

.dlcv-feat-icon { font-size: 1.3rem; line-height: 1.2; }
.dlcv-feat-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dlcv-feat-text strong { font-size: .93rem; font-weight: 800; }
.dlcv-feat-text em { font-style: normal; font-size: .8rem; color: rgba(255, 255, 255, .78); line-height: 1.65; }

.dlcv-banner-cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	/* حواف غير متماثلة عن قصد: جهة الأيقونة تحتاج مساحة أقل من جهة النص،
	   وإلا بدا الزر مائلاً بصرياً. منطقية لا فيزيائية فتنضبط في RTL وLTR. */
	padding-block: 15px;
	padding-inline-start: 32px;
	padding-inline-end: 24px;
	border-radius: 999px;
	background: #fff;
	color: #0a4fa3 !important;
	font-size: 1.02rem;
	font-weight: 800;
	/* بدونه يرث ارتفاع سطر الفقرة (1.9) فيتضخّم الزر ويختل توازن الحواف */
	line-height: 1;
	white-space: nowrap;
	text-decoration: none !important;
	box-shadow: 0 6px 20px rgba(0, 0, 0, .18);
	transition: transform .18s ease, box-shadow .18s ease;
}

.dlcv-banner-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 28px rgba(0, 0, 0, .24);
}

.dlcv-banner-cta:focus-visible {
	outline: 3px solid #fff;
	outline-offset: 3px;
}

.dlcv-banner-cta svg {
	width: 17px;
	height: 17px;
	flex: none;          /* لا تنكمش الأيقونة إن ضاق الزر */
	display: block;      /* يزيل مسافة السطر أسفل العنصر السطري */
	transition: transform .18s ease;
}

/* السهم يتقدّم قليلاً عند التحويم — إشارة اتجاه لطيفة */
.dlcv-banner-cta:hover svg { transform: translateX(-3px); }

@media (prefers-reduced-motion: reduce) {
	.dlcv-banner-cta,
	.dlcv-banner-cta svg { transition: none; }
	.dlcv-banner-cta:hover { transform: none; }
	.dlcv-banner-cta:hover svg { transform: none; }
}

/* ===== الإدخال ===== */

.dlcv-form {
	background: #fff;
	border: 1px solid var(--cv-line);
	border-radius: var(--cv-radius);
	padding: 22px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.dlcv-drop {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 34px 18px;
	border: 2px dashed #c9dcf5;
	border-radius: var(--cv-radius);
	background: #f7fbff;
	cursor: pointer;
	text-align: center;
	transition: border-color .15s, background .15s;
}

.dlcv-drop:hover,
.dlcv-drop:focus-visible,
.dlcv-drop.is-over {
	border-color: var(--cv-blue);
	background: #eaf3ff;
	outline: none;
}

.dlcv-drop.has-file { border-style: solid; border-color: #16a34a; background: #f2fbf5; }

.dlcv-drop-icon { width: 40px; height: 40px; color: var(--cv-blue); }
.dlcv-drop strong { font-size: 1.02rem; }
.dlcv-drop span { font-size: .85rem; color: var(--cv-muted); }

.dlcv-file-name {
	margin: 10px 0 0;
	font-size: .9rem;
	font-weight: 600;
	color: #16a34a;
}

.dlcv-details { margin-top: 14px; }

.dlcv-details summary {
	cursor: pointer;
	font-weight: 600;
	font-size: .92rem;
	color: var(--cv-blue-dark);
	padding: 8px 0;
	user-select: none;
}

.dlcv-details textarea {
	width: 100%;
	margin-top: 8px;
	padding: 12px;
	border: 1px solid var(--cv-line);
	border-radius: 8px;
	font: inherit;
	font-size: .92rem;
	line-height: 1.8;
	resize: vertical;
	direction: rtl;
}

.dlcv-details textarea:focus {
	outline: none;
	border-color: var(--cv-blue);
	box-shadow: 0 0 0 3px rgba(0, 115, 230, .12);
}

.dlcv-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	width: 100%;
	margin-top: 18px;
	padding: 14px 22px;
	border: 0;
	border-radius: 999px;
	background: var(--cv-blue);
	color: #fff;
	font: inherit;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s, transform .15s;
}

.dlcv-btn:hover:not(:disabled) { background: var(--cv-blue-dark); transform: translateY(-1px); }
.dlcv-btn:disabled { cursor: progress; }

.dlcv-spinner {
	width: 18px;
	height: 18px;
	border: 2px solid rgba(255, 255, 255, .35);
	border-top-color: #fff;
	border-radius: 50%;
	animation: dlcv-spin .7s linear infinite;
}

@keyframes dlcv-spin { to { transform: rotate(360deg); } }

.dlcv-error {
	margin: 12px 0 0;
	padding: 10px 14px;
	border-radius: 8px;
	background: #fef2f2;
	color: #b91c1c;
	font-size: .9rem;
	font-weight: 600;
}

/* ===== الملخص ===== */

.dlcv-results { margin-top: 22px; }

.dlcv-summary {
	display: flex;
	align-items: center;
	gap: 28px;
	background: #fff;
	border: 1px solid var(--cv-line);
	border-radius: var(--cv-radius);
	padding: 26px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.dlcv-gauge { position: relative; flex: 0 0 150px; width: 150px; height: 150px; }
.dlcv-gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }

.dlcv-gauge circle { fill: none; stroke-width: 11; stroke-linecap: round; }
.dlcv-gauge-bg { stroke: #eef2f6; }
.dlcv-gauge-fg { transition: stroke-dashoffset .1s linear; }

.dlcv-gauge-value {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
}

.dlcv-gauge-value strong { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.dlcv-gauge-value span { font-size: .75rem; color: var(--cv-muted); }

.dlcv-bars { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 14px; }

.dlcv-bar-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 10px;
	margin-bottom: 6px;
	font-size: .88rem;
}

.dlcv-bar-head b { font-weight: 800; }

.dlcv-bar {
	height: 9px;
	border-radius: 99px;
	background: #eef2f6;
	overflow: hidden;
}

.dlcv-bar i {
	display: block;
	height: 100%;
	width: 0;
	border-radius: 99px;
	transition: width .9s cubic-bezier(.22, 1, .36, 1);
}

/* ===== القفل والتقرير ===== */

.dlcv-detail { margin-top: 18px; }

.dlcv-locked {
	text-align: center;
	background: #fff;
	border: 1px solid var(--cv-line);
	border-radius: var(--cv-radius);
	padding: 34px 22px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
	position: relative;
	overflow: hidden;
}

/* خطوط باهتة توحي بوجود محتوى خلف القفل */
.dlcv-locked::before {
	content: "";
	position: absolute;
	inset: auto 22px 0 22px;
	height: 78px;
	background:
		linear-gradient(#eef2f6 10px, transparent 0) 0 0 / 100% 22px repeat-y;
	filter: blur(2px);
	opacity: .7;
	pointer-events: none;
}

.dlcv-lock { width: 40px; height: 40px; color: var(--cv-blue); }
.dlcv-locked h3 { margin: 10px 0 6px; font-size: 1.15rem; font-weight: 800; }
.dlcv-locked p { margin: 0 0 4px; color: var(--cv-muted); font-size: .93rem; }
.dlcv-locked .dlcv-btn { max-width: 280px; position: relative; z-index: 1; }

.dlcv-report { display: flex; flex-direction: column; gap: 14px; }

.dlcv-card {
	background: #fff;
	border: 1px solid var(--cv-line);
	border-inline-start: 4px solid var(--cv-line);
	border-radius: var(--cv-radius);
	padding: 18px 20px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.dlcv-card h4 {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 10px;
	font-size: 1.02rem;
	font-weight: 800;
}

.dlcv-card ul { margin: 0; padding-inline-start: 20px; }
.dlcv-card li { margin-bottom: 8px; line-height: 1.85; font-size: .94rem; }
.dlcv-card li:last-child { margin-bottom: 0; }

.dlcv-card.is-good { border-inline-start-color: #16a34a; }
.dlcv-card.is-bad { border-inline-start-color: #f59e0b; }
.dlcv-card.is-todo { border-inline-start-color: var(--cv-blue); }
.dlcv-card.is-keys { border-inline-start-color: #8b5cf6; }

.dlcv-keys { display: flex; flex-wrap: wrap; gap: 8px; }

.dlcv-keys span {
	background: #f3f0ff;
	color: #6d28d9;
	padding: 5px 12px;
	border-radius: 999px;
	font-size: .85rem;
	font-weight: 600;
}

/* ===== النموذج ===== */

.dlcv-modal {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(16, 32, 48, .55);
	backdrop-filter: blur(3px);
}

.dlcv-modal[hidden] { display: none; }

.dlcv-modal-box {
	position: relative;
	width: 100%;
	max-width: 420px;
	background: #fff;
	border-radius: 16px;
	padding: 28px 24px 24px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, .25);
	animation: dlcv-pop .22s ease;
	direction: rtl;
	text-align: right;
}

@keyframes dlcv-pop {
	from { opacity: 0; transform: translateY(14px) scale(.97); }
	to { opacity: 1; transform: none; }
}

.dlcv-modal-close {
	position: absolute;
	top: 10px;
	inset-inline-start: 14px;
	background: none;
	border: 0;
	font-size: 1.8rem;
	line-height: 1;
	color: var(--cv-muted);
	cursor: pointer;
}

.dlcv-modal-box h3 { margin: 0 0 6px; font-size: 1.25rem; font-weight: 800; }
.dlcv-modal-box > p { margin: 0 0 18px; color: var(--cv-muted); font-size: .93rem; }

.dlcv-modal-box label {
	display: block;
	margin-bottom: 12px;
	font-size: .88rem;
	font-weight: 700;
}

.dlcv-modal-box input {
	width: 100%;
	margin-top: 6px;
	padding: 11px 14px;
	border: 1px solid var(--cv-line);
	border-radius: 8px;
	font: inherit;
	font-weight: 400;
	direction: rtl;
}

.dlcv-modal-box input:focus {
	outline: none;
	border-color: var(--cv-blue);
	box-shadow: 0 0 0 3px rgba(0, 115, 230, .12);
}

.dlcv-modal-box input[type="tel"],
.dlcv-modal-box input[type="email"] { direction: ltr; text-align: right; }

/* ===== صفحة الهبوط: العنوان والخطوات والأسئلة ===== */

/* عنوان صفحة الفاحص — يُوسَّط بلا أن يتأثر عنوان أي صفحة أخرى.
   الصنف dlcv-page تضعه الإضافة على <body> عند وجود الشورت كود. */
.dlcv-page .wp-block-post-title,
.dlcv-page .entry-title,
.dlcv-page .wp-block-post-title a {
	text-align: center;
	display: block;
}

.dlcv-lead { text-align: center; margin-bottom: 26px; }

.dlcv-lead-eyebrow {
	display: inline-block;
	margin-bottom: 12px;
	padding: 5px 15px;
	border-radius: 999px;
	background: #eaf3ff;
	color: var(--cv-blue-dark);
	font-size: .82rem;
	font-weight: 700;
}

.dlcv-lead h1 {
	margin: 0 0 10px;
	font-size: 2rem;
	font-weight: 800;
	line-height: 1.45;
	color: var(--cv-ink);
}

.dlcv-lead p {
	margin: 0 auto;
	max-width: 620px;
	color: var(--cv-muted);
	font-size: 1.02rem;
	line-height: 1.9;
}

/* الكارت الرئيسي أبرز في وضع صفحة الهبوط */
.dlcv.is-landing .dlcv-form {
	padding: 28px;
	border: 0;
	box-shadow: 0 8px 30px rgba(16, 32, 48, .10), 0 2px 6px rgba(16, 32, 48, .05);
}

.dlcv-steps, .dlcv-faq { margin-top: 38px; }

.dlcv-steps h2, .dlcv-faq h2 {
	margin: 0 0 18px;
	font-size: 1.3rem;
	font-weight: 800;
	text-align: center;
	color: var(--cv-ink);
}

.dlcv-steps ol {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: none;
}

.dlcv-steps li {
	position: relative;
	margin: 0;
	padding: 24px 18px 20px;
	background: #fff;
	border: 1px solid var(--cv-line);
	border-radius: var(--cv-radius);
	text-align: center;
	box-shadow: 0 2px 8px rgba(0, 0, 0, .04);
}

.dlcv-step-num {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin-bottom: 10px;
	border-radius: 50%;
	background: var(--cv-blue);
	color: #fff;
	font-size: 1.05rem;
	font-weight: 800;
}

.dlcv-steps li strong { display: block; margin-bottom: 5px; font-size: 1rem; font-weight: 800; }
.dlcv-steps li span:not(.dlcv-step-num) { display: block; color: var(--cv-muted); font-size: .88rem; line-height: 1.8; }

.dlcv-faq details {
	background: #fff;
	border: 1px solid var(--cv-line);
	border-radius: var(--cv-radius);
	margin-bottom: 10px;
	overflow: hidden;
}

.dlcv-faq summary {
	cursor: pointer;
	padding: 15px 18px;
	font-size: .97rem;
	font-weight: 700;
	color: var(--cv-ink);
	list-style: none;
	position: relative;
	padding-inline-end: 44px;
}

.dlcv-faq summary::-webkit-details-marker { display: none; }

.dlcv-faq summary::after {
	content: "+";
	position: absolute;
	inset-inline-end: 18px;
	top: 50%;
	transform: translateY(-50%);
	font-size: 1.35rem;
	font-weight: 400;
	color: var(--cv-blue);
	line-height: 1;
}

.dlcv-faq details[open] summary::after { content: "−"; }

.dlcv-faq details p {
	margin: 0;
	padding: 0 18px 16px;
	color: var(--cv-muted);
	font-size: .92rem;
	line-height: 1.9;
}

/* ===== شارة "جديد" في قائمة الهيدر ===== */

.dlcv-nav-new > a::after,
.dlcv-nav-new .wp-block-navigation-item__label::after {
	content: "جديد";
	display: inline-block;
	margin-inline-start: 6px;
	padding: 1px 7px;
	border-radius: 999px;
	background: #dc2626;
	color: #fff;
	font-size: .62rem;
	font-weight: 800;
	vertical-align: middle;
	line-height: 1.6;
}

/* الشارة مرة واحدة: إن وُجد عنصر الليبل نُلغي شارة الرابط */
.dlcv-nav-new:has(.wp-block-navigation-item__label) > a::after { content: none; }

/* ===== الجوال ===== */

@media (max-width: 900px) {
	.dlcv-banner-feats { grid-template-columns: 1fr; gap: 10px; }
	.dlcv-steps ol { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
	.dlcv-banner { padding: 24px 18px; border-radius: 14px; }
	.dlcv-banner h2 { font-size: 1.28rem; }
	.dlcv-banner > .dlcv-banner-body > p { font-size: .93rem; }
	.dlcv-banner-cta { width: 100%; justify-content: center; padding: 13px 20px; }

	.dlcv-lead h1 { font-size: 1.5rem; }
	.dlcv-lead p { font-size: .95rem; }
	.dlcv.is-landing .dlcv-form { padding: 18px; }

	.dlcv-hero-badge { font-size: .84rem; padding: 8px 7px 8px 14px; }

	.dlcv-form { padding: 16px; }
	.dlcv-drop { padding: 26px 14px; }

	.dlcv-summary {
		flex-direction: column;
		gap: 20px;
		padding: 20px 16px;
	}

	.dlcv-gauge { flex: 0 0 130px; width: 130px; height: 130px; }
	.dlcv-gauge-value strong { font-size: 2rem; }
	.dlcv-bars { width: 100%; }
	.dlcv-card { padding: 15px 16px; }
	.dlcv-modal-box { padding: 24px 18px 20px; }
}

@media (prefers-reduced-motion: reduce) {
	.dlcv-bar i,
	.dlcv-gauge-fg,
	.dlcv-modal-box { transition: none; animation: none; }
}
