/*
Theme Name: اتاق لینک‌سازی
Theme URI: https://ivermectin3.com/
Author: صبانت
Description: اتاق لینک‌سازی برای سئو، بک‌لینک و طراحی سایت
Version: 1.0.0
Text Domain: zanjir
*/

:root {
	--ink: #e8eef7;
	--muted: #8b9bb0;
	--bg: #0b1220;
	--panel: #121b2d;
	--line: #24334d;
	--node: #3dffa8;
	--node-dim: rgba(61, 255, 168, 0.22);
	--edge: #4d7cff;
	--warn: #ffc857;
	--card: #152238;
}

* { box-sizing: border-box; }
body {
	margin: 0;
	background:
		radial-gradient(600px 280px at 10% -10%, rgba(77,124,255,.18), transparent 55%),
		radial-gradient(480px 240px at 90% 0%, rgba(61,255,168,.1), transparent 50%),
		var(--bg);
	color: var(--ink);
	font-family: "Segoe UI", Tahoma, sans-serif;
	line-height: 1.7;
}
a { color: var(--node); text-decoration: none; }
a:hover { color: #9bffd0; }
img { max-width: 100%; height: auto; display: block; }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0);
}

/* Link-graph header scene */
.graph-head {
	position: relative;
	overflow: hidden;
	min-height: 210px;
	background:
		linear-gradient(180deg, #070d18 0%, #101a2e 55%, #152238 100%);
	border-bottom: 1px solid rgba(61,255,168,.28);
}
.graph-canvas {
	position: absolute; inset: 0;
	width: 100%; height: 100%;
	opacity: .9;
}
.graph-brand {
	position: relative; z-index: 2;
	max-width: 1140px; margin: 0 auto;
	padding: 28px 18px 54px;
	display: flex; align-items: center; gap: 14px;
}
.graph-brand .logo {
	width: 66px; height: 66px; flex: 0 0 auto;
	filter: drop-shadow(0 0 12px rgba(61,255,168,.35));
}
.brand-text { min-width: 0; }
.brand-text .name {
	display: block; font-size: 1.5rem; font-weight: 700;
	color: #f3f7ff; line-height: 1.25;
}
.brand-text .tag { display: block; color: #9eb0c8; font-size: .88rem; margin-top: 4px; }
.graph-chip {
	position: absolute; z-index: 2; left: 18px; bottom: 12px;
	padding: 4px 10px; font-size: .76rem;
	border: 1px solid rgba(61,255,168,.35);
	background: rgba(11,18,32,.75); color: var(--node);
}

/* Domain progress strip */
.domain-bar {
	background: #0e1728;
	border-bottom: 1px solid var(--line);
}
.domain-inner {
	max-width: 1140px; margin: 0 auto;
	padding: 10px 16px;
	display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
}
.domain-label { font-size: .78rem; color: var(--muted); white-space: nowrap; }
.domain-track {
	flex: 1 1 180px; height: 8px; background: #1a2740;
	border: 1px solid #2a3c5c; overflow: hidden; position: relative;
}
.domain-fill {
	height: 100%; width: 72%;
	background: linear-gradient(90deg, var(--edge), var(--node));
}
.domain-meta { font-size: .78rem; color: var(--warn); }

.mesh-nav {
	background: var(--panel);
	border-bottom: 1px solid var(--line);
}
.mesh-inner {
	max-width: 1140px; margin: 0 auto;
	padding: 8px 16px;
	display: flex; align-items: center; gap: 10px;
}
.nav-toggle { display: none; }
.nav-btn {
	display: none; width: 42px; height: 34px;
	border: 1px solid var(--line); background: #182640; cursor: pointer;
}
.nav-btn span, .nav-btn::before, .nav-btn::after {
	display: block; height: 2px; margin: 6px 8px 0; background: var(--node);
}
.nav-btn::before, .nav-btn::after { content: ""; margin-top: 6px; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 16px; }
.nav a {
	color: #c5d2e6; font-size: .9rem;
	padding: 3px 0; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.on { color: var(--node); border-bottom-color: var(--node); }

/* LTR shell */
.shell {
	direction: ltr;
	display: flex; align-items: flex-start; gap: 20px;
	max-width: 1140px; margin: 0 auto;
	padding: 18px 16px 42px;
}
.shell > * { direction: rtl; }
main { flex: 1 1 auto; min-width: 0; }

.section-label {
	display: flex; align-items: center; gap: 10px;
	margin: 0 0 14px; font-size: .88rem; font-weight: 700; color: #cfe0ff;
}
.section-label::before {
	content: ""; width: 10px; height: 10px; border-radius: 50%;
	background: var(--node); box-shadow: 0 0 0 4px var(--node-dim);
}

/* Link-chain post list */
.chain { display: flex; flex-direction: column; gap: 0; }
.link-row {
	display: grid;
	grid-template-columns: 42px 72px minmax(0, 1fr) auto;
	gap: 12px; align-items: center;
	padding: 14px 12px;
	background: var(--card);
	border: 1px solid var(--line);
	border-bottom: none;
	color: var(--ink);
	position: relative;
}
.link-row:last-child { border-bottom: 1px solid var(--line); }
.link-row.lead {
	grid-template-columns: 42px minmax(120px, 200px) minmax(0, 1fr);
	min-height: 150px;
	background: linear-gradient(120deg, #152238, #182b48);
	border-color: rgba(61,255,168,.35);
}
.link-row:hover { border-color: rgba(77,124,255,.55); z-index: 1; }
.node-num {
	width: 34px; height: 34px; border-radius: 50%;
	display: grid; place-items: center;
	border: 2px solid var(--node); color: var(--node);
	font-size: .78rem; font-weight: 700; background: #0d1626;
}
.link-row::after {
	content: "";
	position: absolute; right: 32px; top: 48px; bottom: -1px; width: 2px;
	background: linear-gradient(180deg, var(--edge), transparent);
	opacity: .45; pointer-events: none;
}
.link-row:last-child::after { display: none; }
.link-art {
	width: 72px; height: 56px; overflow: hidden;
	background: linear-gradient(135deg, #1a2c4d, #1d3a36);
	border: 1px solid #2a3f5f;
}
.link-row.lead .link-art {
	width: auto; height: 100%; min-height: 120px; align-self: stretch;
}
.link-art img { width: 100%; height: 100%; object-fit: cover; }
.link-body { min-width: 0; }
.kicker { font-size: .72rem; color: var(--edge); font-weight: 700; }
.link-body h2, .link-body h3 {
	margin: 2px 0 4px; font-size: 1.02rem; line-height: 1.4; color: #f2f6ff;
}
.link-row.lead h2 { font-size: 1.28rem; }
.meta { font-size: .76rem; color: var(--muted); }
.link-edge {
	font-size: .72rem; color: var(--node);
	border: 1px solid rgba(61,255,168,.3); padding: 3px 8px; white-space: nowrap;
}

/* Sticky link queue sidebar */
.queue {
	flex: 0 0 290px;
	position: sticky; top: 12px;
	background: #0f1a2c;
	border: 1px solid #2a4060;
	padding: 12px;
	max-height: calc(100vh - 24px);
	overflow: auto;
}
.queue-head {
	display: flex; align-items: center; gap: 10px;
	padding: 4px 2px 12px;
	border-bottom: 1px dashed rgba(61,255,168,.28);
	margin-bottom: 12px;
}
.queue-head svg { width: 34px; height: 34px; }
.queue-head strong { display: block; color: var(--node); font-size: .95rem; }
.queue-head span { display: block; color: var(--muted); font-size: .72rem; }
.widget { margin: 0 0 14px; padding-bottom: 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.widget:last-child { border-bottom: 0; margin: 0; }
.widget-title { margin: 0 0 8px; font-size: .84rem; color: #b8c9e6; }
.widget ul { margin: 0; padding: 0 16px 0 0; }
.widget li { margin: 0 0 6px; }
.widget a { color: #c9d7ec; }
.widget a:hover { color: var(--node); }
.search-form { display: flex; gap: 6px; }
.search-field {
	flex: 1; min-width: 0; border: 1px solid #334d72; background: #0b1220;
	color: #fff; padding: 7px 8px;
}
.search-submit {
	border: 0; background: var(--node); color: #0b1220;
	padding: 7px 10px; font-weight: 700; cursor: pointer;
}
.behtarinseo, .behtarinseo a { color: #c9d7ec; }
.behtarinseo a:hover { color: var(--node); }

.entry {
	background: var(--card); border: 1px solid var(--line); padding: 18px 18px 24px;
}
.entry-title { margin: 6px 0 8px; font-size: 1.5rem; color: #f3f7ff; line-height: 1.35; }
.entry-thumb { margin: 12px 0 16px; }
.entry-content p { margin: 0 0 1em; }

.site-footer {
	border-top: 1px solid var(--line);
	background: #070d18; color: var(--muted);
	padding: 16px; text-align: center; font-size: .84rem;
}
.nav-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.nav-links a, .nav-links span {
	padding: 6px 11px; border: 1px solid var(--line); background: var(--card); color: #d7e3f7;
}

@media (max-width: 920px) {
	.shell { flex-direction: column; }
	.queue { width: 100%; flex-basis: auto; position: static; max-height: none; }
	.link-row.lead { grid-template-columns: 42px 1fr; }
	.link-row.lead .link-art { grid-column: 1 / -1; min-height: 160px; }
}
@media (max-width: 640px) {
	.link-row { grid-template-columns: 34px minmax(0, 1fr); }
	.link-row .link-art, .link-row .link-edge { display: none; }
	.nav-btn { display: block; }
	.nav { display: none; width: 100%; }
	.nav-toggle:checked ~ .nav { display: flex; flex-direction: column; }
	.brand-text .name { font-size: 1.18rem; }
}
