/*
Theme Name: اتاق فرمان
Theme URI: https://www.mihangame.com/
Author: صبانت
Description: اتاق فرمان برای میهن‌گیم — مجله اخبار بازی
Version: 1.0.0
Text Domain: farmon
*/

:root {
	--ink: #eef6ff;
	--muted: #8b9bb3;
	--bg: #07090f;
	--panel: #0e1420;
	--line: #1c2940;
	--lime: #b8ff3c;
	--cyan: #3cf0ff;
	--hot: #ff5c7a;
	--warn: #ffc857;
	--card: #111926;
	--feed: #0c121c;
}

* { box-sizing: border-box; }
body {
	margin: 0;
	background:
		radial-gradient(700px 320px at 12% -8%, rgba(60, 240, 255, 0.12), transparent 55%),
		radial-gradient(560px 280px at 92% 0%, rgba(184, 255, 60, 0.08), transparent 50%),
		var(--bg);
	color: var(--ink);
	font-family: "Segoe UI", Tahoma, sans-serif;
	line-height: 1.7;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { color: #9af7ff; }
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);
}

/* Console command-room HUD */
.hud {
	position: relative;
	overflow: hidden;
	min-height: 210px;
	background:
		linear-gradient(180deg, #05070c 0%, #0b1220 55%, #0e1624 100%);
	border-bottom: 1px solid rgba(60, 240, 255, 0.28);
}
.hud::before {
	content: "";
	position: absolute; inset: 0;
	background: repeating-linear-gradient(
		180deg,
		rgba(255,255,255,0.025) 0 1px,
		transparent 1px 3px
	);
	pointer-events: none;
	opacity: .35;
}
.hud-grid {
	position: absolute; inset: 0;
	background-image:
		linear-gradient(rgba(60,240,255,.05) 1px, transparent 1px),
		linear-gradient(90deg, rgba(60,240,255,.05) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: linear-gradient(180deg, #000 20%, transparent 90%);
}
.hud-status {
	position: relative; z-index: 2;
	max-width: 1180px; margin: 0 auto;
	padding: 10px 18px 0;
	display: flex; flex-wrap: wrap; gap: 8px;
}
.hud-status span {
	font-size: .7rem; letter-spacing: .06em;
	padding: 3px 9px;
	border: 1px solid rgba(184,255,60,.35);
	color: var(--lime); background: rgba(10,16,24,.75);
}
.hud-status span.live {
	border-color: rgba(255,92,122,.45); color: var(--hot);
}
.hud-brand {
	position: relative; z-index: 2;
	max-width: 1180px; margin: 0 auto;
	padding: 22px 18px 28px;
	display: flex; align-items: center; gap: 16px;
}
.hud-brand .logo {
	width: 72px; height: 72px; flex: 0 0 auto;
	filter: drop-shadow(0 0 14px rgba(60,240,255,.35));
}
.brand-text { min-width: 0; }
.brand-text .name {
	display: block; font-size: 1.85rem; font-weight: 800;
	color: #f5fbff; letter-spacing: .01em; line-height: 1.15;
}
.brand-text .tag {
	display: block; margin-top: 6px; color: var(--muted); font-size: .92rem;
}
.hud-meters {
	margin-right: auto;
	display: flex; flex-direction: column; gap: 8px; min-width: 160px;
}
.meter {
	height: 6px; background: #152033; border: 1px solid #243552; overflow: hidden;
}
.meter i {
	display: block; height: 100%;
	background: linear-gradient(90deg, var(--cyan), var(--lime));
}
.meter:nth-child(1) i { width: 86%; }
.meter:nth-child(2) i { width: 64%; }
.meter-label { font-size: .68rem; color: var(--muted); }

.plat-nav {
	background: #0a101a;
	border-bottom: 1px solid var(--line);
}
.plat-inner {
	max-width: 1180px; 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: #121a2a; cursor: pointer;
}
.nav-btn span, .nav-btn::before, .nav-btn::after {
	display: block; height: 2px; margin: 6px 8px 0; background: var(--lime);
}
.nav-btn::before, .nav-btn::after { content: ""; margin-top: 6px; }
.nav { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.nav a {
	color: #c5d3e8; font-size: .9rem;
	padding: 4px 2px; border-bottom: 2px solid transparent;
}
.nav a:hover, .nav a.on { color: var(--lime); border-bottom-color: var(--lime); }

/* LTR shell: feed left, sidebar right — no sticky scroll cage */
.shell {
	direction: ltr;
	display: flex; align-items: flex-start; gap: 22px;
	max-width: 1180px; margin: 0 auto;
	padding: 18px 16px 48px;
}
.shell > * { direction: rtl; }
main { flex: 1 1 auto; min-width: 0; }

.cover {
	display: grid;
	grid-template-columns: 1.25fr 1fr;
	min-height: 280px;
	margin-bottom: 18px;
	background: var(--card);
	border: 1px solid rgba(60,240,255,.28);
	overflow: hidden;
	color: var(--ink);
	position: relative;
}
.cover::after {
	content: "";
	position: absolute; inset: 0 auto 0 0; width: 3px;
	background: linear-gradient(180deg, var(--lime), var(--cyan));
}
.cover-art {
	position: relative; min-height: 240px;
	background: linear-gradient(135deg, #15233a, #1a2f28);
}
.cover-art img {
	width: 100%; height: 100%; object-fit: cover;
	position: absolute; inset: 0;
}
.cover-body { padding: 20px 18px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.badge {
	display: inline-flex; align-items: center; gap: 6px;
	font-size: .68rem; font-weight: 800; letter-spacing: .08em;
	padding: 3px 8px; width: fit-content;
	border: 1px solid rgba(184,255,60,.4); color: var(--lime);
	background: rgba(184,255,60,.08);
}
.badge.hot {
	border-color: rgba(255,92,122,.45); color: var(--hot);
	background: rgba(255,92,122,.08);
}
.kicker { font-size: .75rem; color: var(--cyan); font-weight: 700; }
.cover-body h2 {
	margin: 0; font-size: 1.55rem; line-height: 1.35; color: #f7fbff;
}
.meta { font-size: .78rem; color: var(--muted); }
.cover-excerpt { margin: 0; color: #b7c6db; font-size: .95rem; }

.section-label {
	display: flex; align-items: center; gap: 10px;
	margin: 0 0 12px; font-size: .88rem; font-weight: 800; color: #dce8ff;
}
.section-label::before {
	content: ""; width: 10px; height: 10px;
	background: var(--lime);
	box-shadow: 0 0 0 3px rgba(184,255,60,.2);
}

.feed { display: flex; flex-direction: column; gap: 0; }
.feed-row {
	display: grid;
	grid-template-columns: 56px 88px 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);
}
.feed-row:last-child { border-bottom: 1px solid var(--line); }
.feed-row:hover {
	border-color: rgba(60,240,255,.4);
	background: #141e2e;
	z-index: 1;
}
.feed-idx {
	font-size: .78rem; font-weight: 800; color: var(--lime);
	font-variant-numeric: tabular-nums;
}
.feed-art {
	width: 88px; height: 64px; overflow: hidden;
	background: linear-gradient(135deg, #1a2a40, #1d3330);
	border: 1px solid #243552;
}
.feed-art img { width: 100%; height: 100%; object-fit: cover; }
.feed-body { min-width: 0; }
.feed-body h3 { margin: 2px 0 4px; font-size: 1.02rem; line-height: 1.4; color: #f2f7ff; }
.feed-flag {
	font-size: .68rem; font-weight: 800; letter-spacing: .06em;
	padding: 4px 8px; border: 1px solid rgba(60,240,255,.35); color: var(--cyan);
	white-space: nowrap;
}
.feed-flag.new {
	border-color: rgba(184,255,60,.4); color: var(--lime);
}

/* Fast feed sidebar — natural height, no inner scroll cage */
.fastfeed {
	flex: 0 0 300px;
	background: var(--feed);
	border: 1px solid #1e2d45;
	padding: 14px 12px 16px;
}
.fastfeed-head {
	display: flex; align-items: center; gap: 10px;
	padding-bottom: 12px; margin-bottom: 12px;
	border-bottom: 1px solid rgba(60,240,255,.22);
}
.fastfeed-head svg { width: 34px; height: 34px; }
.fastfeed-head strong {
	display: block; color: var(--lime); font-size: .98rem; letter-spacing: .02em;
}
.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: #c5d6ef; }
.widget ul { margin: 0; padding: 0 16px 0 0; }
.widget li { margin: 0 0 6px; }
.widget a { color: #d0dceb; }
.widget a:hover { color: var(--lime); }
.search-form { display: flex; gap: 6px; }
.search-field {
	flex: 1; min-width: 0; border: 1px solid #2a3f5f; background: #070b12;
	color: #fff; padding: 7px 8px;
}
.search-submit {
	border: 0; background: var(--lime); color: #0a1008;
	padding: 7px 10px; font-weight: 800; cursor: pointer;
}
.behtarinseo, .behtarinseo a { color: #d0dceb; }
.behtarinseo a:hover { color: var(--lime); }

.entry {
	background: var(--card); border: 1px solid var(--line); padding: 18px 18px 24px;
}
.entry-title { margin: 6px 0 8px; font-size: 1.6rem; color: #f5fbff; 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: #05070c; color: var(--muted);
	padding: 18px 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: 960px) {
	.shell { flex-direction: column; }
	.fastfeed { width: 100%; flex-basis: auto; }
	.cover { grid-template-columns: 1fr; }
	.cover-art { min-height: 200px; }
	.hud-meters { display: none; }
}
@media (max-width: 640px) {
	.brand-text .name { font-size: 1.35rem; }
	.feed-row { grid-template-columns: 40px minmax(0, 1fr); }
	.feed-row .feed-art, .feed-row .feed-flag { display: none; }
	.nav-btn { display: block; }
	.nav { display: none; width: 100%; }
	.nav-toggle:checked ~ .nav { display: flex; flex-direction: column; }
	.cover-body h2 { font-size: 1.25rem; }
}
