/*
Theme Name: دکل سیگنال
Theme URI: http://webiruni.ir/
Author: صبانت
Description: دکل سیگنال برای مجله اینترنت و اتصالات
Version: 1.0.0
Text Domain: dekal
*/

:root {
	--night: #07111f;
	--sky: #0c1a2e;
	--panel: #101c30;
	--line: #24364f;
	--signal: #3fd0c9;
	--signal-dim: rgba(63, 208, 201, 0.28);
	--amber: #e0a045;
	--ink: #e8eef6;
	--muted: #8fa3bb;
	--city: #15253c;
}

* { box-sizing: border-box; }
body {
	margin: 0;
	background:
		radial-gradient(700px 320px at 18% -5%, rgba(63, 208, 201, 0.16), transparent 55%),
		radial-gradient(520px 260px at 88% 0%, rgba(224, 160, 69, 0.1), transparent 50%),
		var(--night);
	color: var(--ink);
	font-family: Tahoma, "Segoe UI", sans-serif;
	line-height: 1.75;
}
a { color: var(--signal); }
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);
}

/* Antenna masthead — night city + tower waves */
.mast {
	position: relative;
	overflow: hidden;
	min-height: 220px;
	background:
		linear-gradient(180deg, #050d18 0%, #0c1a2e 58%, #101c30 100%);
	border-bottom: 3px solid rgba(63, 208, 201, 0.45);
}
.mast-sky {
	position: absolute;
	inset: 0;
	pointer-events: none;
	background:
		radial-gradient(circle at 22% 30%, rgba(63, 208, 201, 0.18), transparent 28%),
		radial-gradient(circle at 70% 20%, rgba(224, 160, 69, 0.08), transparent 24%);
}
.city {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 72px;
	background:
		linear-gradient(180deg, transparent, rgba(7, 17, 31, 0.55) 40%, #07111f),
		repeating-linear-gradient(
			90deg,
			var(--city) 0 14px,
			#1a2d46 14px 18px,
			var(--city) 18px 34px,
			#122033 34px 40px
		);
	opacity: 0.95;
	clip-path: polygon(
		0 100%, 0 48%, 4% 48%, 4% 28%, 7% 28%, 7% 55%, 11% 55%, 11% 20%, 15% 20%, 15% 60%,
		20% 60%, 20% 35%, 24% 35%, 24% 50%, 30% 50%, 30% 18%, 35% 18%, 35% 58%, 42% 58%,
		42% 30%, 48% 30%, 48% 45%, 55% 45%, 55% 22%, 62% 22%, 62% 52%, 70% 52%, 70% 26%,
		78% 26%, 78% 48%, 85% 48%, 85% 16%, 92% 16%, 92% 55%, 100% 55%, 100% 100%
	);
}
.tower-art {
	position: absolute;
	left: 8%;
	bottom: 48px;
	width: 120px;
	height: 140px;
	z-index: 2;
}
.tower-art .pole {
	position: absolute;
	left: 50%;
	bottom: 0;
	width: 6px;
	height: 100%;
	margin-left: -3px;
	background: linear-gradient(180deg, var(--signal), #7a8ea8);
}
.tower-art .arm {
	position: absolute;
	left: 20%;
	right: 20%;
	height: 3px;
	background: #9eb0c6;
}
.tower-art .arm.a1 { top: 28%; }
.tower-art .arm.a2 { top: 48%; }
.tower-art .arm.a3 { top: 68%; }
.wave {
	position: absolute;
	left: 50%;
	top: 18%;
	width: 24px;
	height: 24px;
	margin-left: -12px;
	border: 2px solid var(--signal);
	border-radius: 50%;
	opacity: 0;
	animation: pulse-wave 3.2s ease-out infinite;
}
.wave.w2 { animation-delay: 0.7s; }
.wave.w3 { animation-delay: 1.4s; }
@keyframes pulse-wave {
	0% { transform: scale(0.4); opacity: 0.7; }
	100% { transform: scale(3.2); opacity: 0; }
}
.mast-inner {
	position: relative;
	z-index: 3;
	max-width: 1140px;
	margin: 0 auto;
	padding: 28px 16px 36px;
	display: flex;
	align-items: flex-end;
	justify-content: flex-end;
	min-height: 180px;
}
.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: inherit;
	background: rgba(7, 17, 31, 0.55);
	border: 1px solid rgba(63, 208, 201, 0.35);
	padding: 10px 14px;
}
.brand .logo { width: 56px; height: 56px; flex: 0 0 auto; }
.brand-name {
	display: block;
	color: var(--signal);
	font-size: 22px;
	font-weight: bold;
	line-height: 1.3;
}
.brand-desc {
	display: block;
	color: var(--muted);
	font-size: 12px;
	margin-top: 2px;
}
.mast-note {
	position: absolute;
	left: 16%;
	top: 28px;
	color: var(--amber);
	font-size: 12px;
	letter-spacing: 0.04em;
	border-bottom: 1px solid rgba(224, 160, 69, 0.45);
	padding-bottom: 3px;
	z-index: 3;
}

.nav-wrap {
	background: rgba(16, 28, 48, 0.96);
	border-bottom: 1px solid var(--line);
}
.nav-inner {
	max-width: 1140px;
	margin: 0 auto;
	padding: 0 12px;
	display: flex;
	align-items: center;
	gap: 10px;
}
.nav-toggle { display: none; }
.nav-btn {
	display: none;
	width: 40px;
	height: 36px;
	border: 1px solid var(--line);
	background: var(--panel);
	cursor: pointer;
	margin: 8px 0;
}
.nav-btn span {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--signal);
	margin: 6px auto;
}
.nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
}
.nav a {
	text-decoration: none;
	color: var(--muted);
	padding: 12px 14px;
	display: inline-block;
	border-bottom: 2px solid transparent;
}
.nav a.on,
.nav a:hover {
	color: var(--ink);
	border-bottom-color: var(--signal);
}

/* Dual-rail strip then magazine grid */
.rails {
	max-width: 1140px;
	margin: 16px auto 0;
	padding: 0 14px;
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.65fr);
	gap: 12px;
	direction: rtl;
}
.rail-hot {
	background: var(--panel);
	border: 1px solid var(--line);
	border-right: 4px solid var(--signal);
	padding: 14px 16px;
	min-height: 150px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(110px, 160px);
	gap: 12px;
	align-items: center;
	text-decoration: none;
	color: inherit;
}
.rail-hot:hover { border-color: var(--signal); }
.rail-hot .kicker {
	color: var(--amber);
	font-size: 12px;
	font-weight: bold;
}
.rail-hot h2 {
	margin: 6px 0 8px;
	font-size: 22px;
	line-height: 1.45;
	color: var(--ink);
}
.rail-hot .meta { color: var(--muted); font-size: 12px; }
.rail-hot-art {
	min-height: 110px;
	background: #0a1524;
	overflow: hidden;
}
.rail-hot-art img {
	width: 100%;
	height: 100%;
	min-height: 110px;
	object-fit: cover;
}
.rail-meter {
	background:
		linear-gradient(180deg, rgba(63, 208, 201, 0.12), transparent 40%),
		var(--panel);
	border: 1px solid var(--line);
	padding: 14px 12px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 10px;
}
.rail-meter .label {
	color: var(--signal);
	font-size: 12px;
	font-weight: bold;
}
.bars {
	display: flex;
	align-items: flex-end;
	gap: 5px;
	height: 72px;
}
.bars span {
	flex: 1;
	background: var(--signal-dim);
	border-radius: 2px 2px 0 0;
	animation: bar-pulse 1.8s ease-in-out infinite;
}
.bars span:nth-child(1) { height: 35%; animation-delay: 0s; }
.bars span:nth-child(2) { height: 55%; animation-delay: 0.15s; }
.bars span:nth-child(3) { height: 80%; animation-delay: 0.3s; }
.bars span:nth-child(4) { height: 48%; animation-delay: 0.45s; }
.bars span:nth-child(5) { height: 95%; animation-delay: 0.6s; }
.bars span:nth-child(6) { height: 62%; animation-delay: 0.75s; }
@keyframes bar-pulse {
	0%, 100% { filter: brightness(0.85); }
	50% { filter: brightness(1.25); background: rgba(63, 208, 201, 0.55); }
}
.rail-meter .note {
	color: var(--muted);
	font-size: 11px;
	line-height: 1.5;
}

.shell {
	max-width: 1140px;
	margin: 0 auto;
	padding: 16px 14px 48px;
	display: flex;
	flex-direction: row;
	direction: ltr;
	gap: 16px;
	align-items: start;
}
.shell > main,
.shell > .side { direction: rtl; }
.shell > main { flex: 1; min-width: 0; }
.shell > .side { width: 280px; flex: 0 0 280px; }

.section-label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 4px 0 12px;
	color: var(--signal);
	font-size: 13px;
	font-weight: bold;
}
.section-label::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, rgba(63, 208, 201, 0.5), transparent);
}

/* Magazine grid */
.mag-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
}
.mag-card {
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
	background: var(--panel);
	border: 1px solid var(--line);
	overflow: hidden;
	min-height: 100%;
	transition: border-color 0.2s ease;
}
.mag-card:hover { border-color: var(--signal); }
.mag-card .art {
	height: 140px;
	background: #0a1524;
	overflow: hidden;
	position: relative;
}
.mag-card .art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.mag-card .art::after {
	content: "";
	position: absolute;
	inset: auto 0 0 0;
	height: 40%;
	background: linear-gradient(180deg, transparent, rgba(7, 17, 31, 0.75));
}
.mag-card .body { padding: 12px 12px 14px; }
.mag-card .kicker {
	color: var(--amber);
	font-size: 12px;
	font-weight: bold;
}
.mag-card h3 {
	margin: 6px 0 8px;
	font-size: 16px;
	line-height: 1.45;
	color: var(--ink);
}
.mag-card .meta { color: var(--muted); font-size: 12px; }

.stack {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.card {
	display: grid;
	grid-template-columns: 96px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding: 10px 12px;
	text-decoration: none;
	color: inherit;
	background: var(--panel);
	border: 1px solid var(--line);
}
.card-art {
	width: 96px;
	height: 72px;
	background: #0a1524;
	overflow: hidden;
}
.card-art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.card h3 {
	margin: 4px 0;
	font-size: 16px;
	line-height: 1.45;
	color: var(--ink);
}
.card .meta { color: var(--muted); font-size: 12px; }
.kicker {
	color: var(--amber);
	font-size: 12px;
	font-weight: bold;
}

.page-head h1,
.entry-title { color: var(--ink); line-height: 1.45; }
.entry {
	background: var(--panel);
	border: 1px solid var(--line);
	padding: 18px 18px 24px;
}
.entry .meta { color: var(--muted); margin-bottom: 12px; }
.entry-thumb { margin: 0 0 16px; }
.entry-content { color: #d5deeb; }
.entry-content a { color: var(--signal); }
.nav-links,
.pagination {
	margin-top: 18px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.nav-links a,
.page-numbers {
	text-decoration: none;
	color: var(--ink);
	border: 1px solid var(--line);
	padding: 6px 10px;
	background: var(--panel);
}
.page-numbers.current {
	border-color: var(--signal);
	color: var(--signal);
}
.go {
	display: inline-block;
	color: var(--signal);
	text-decoration: none;
	font-weight: bold;
	border-bottom: 1px solid var(--signal);
	padding-bottom: 2px;
}

.side .widget {
	background: var(--panel);
	border: 1px solid var(--line);
	padding: 12px 14px 14px;
	margin-bottom: 12px;
}
.side .widget-title {
	margin: 0 0 10px;
	color: var(--ink);
	font-size: 15px;
	position: relative;
	padding-right: 22px;
}
.side .widget-title::before {
	content: "";
	position: absolute;
	right: 0;
	top: 50%;
	width: 14px;
	height: 14px;
	margin-top: -7px;
	border: 2px solid var(--signal);
	border-radius: 50%;
	box-shadow: 0 0 0 3px rgba(63, 208, 201, 0.15);
}
.side ul { margin: 0; padding: 0 16px 0 0; }
.side li { margin: 0 0 8px; }
.side a { color: #b7c8dc; text-decoration: none; }
.side a:hover { color: var(--signal); }
.behtarinseo { overflow: hidden; }

.site-footer {
	max-width: 1140px;
	margin: 0 auto;
	padding: 8px 14px 28px;
	color: var(--muted);
	font-size: 13px;
	border-top: 1px solid var(--line);
}

@media (max-width: 980px) {
	.shell { flex-wrap: wrap; }
	.shell > .side {
		width: 100%;
		flex: 1 1 100%;
	}
	.rails { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
	.nav-btn { display: block; }
	.nav { display: none; width: 100%; flex-direction: column; }
	.nav-toggle:checked ~ .nav { display: flex; }
	.mag-grid { grid-template-columns: 1fr; }
	.rail-hot { grid-template-columns: 1fr; }
	.mast-note { display: none; }
	.tower-art { left: 4%; transform: scale(0.85); transform-origin: bottom left; }
}
