/*
Theme Name: ویترین دیسک
Theme URI: https://yareshivasokhan.ir/
Author: صبانت
Description: ویترین دیسک — مجله بازی‌های رایانه‌ای
Version: 1.0.0
Text Domain: diskvitrin
*/

:root {
	--ink: #1c2a3a;
	--muted: #5a6b7c;
	--paper: #f4f8fc;
	--shelf: #e8eef5;
	--wood: #c9b8a0;
	--wood-deep: #9a8468;
	--sky: #d7ebf8;
	--box: #ffffff;
	--line: #c5d4e2;
	--accent: #e23d6e;
	--accent-deep: #b91d4f;
	--cool: #2a7eb8;
}

* { box-sizing: border-box; }
body {
	margin: 0;
	background:
		radial-gradient(ellipse 90% 50% at 50% -5%, #cfe8f7 0%, transparent 55%),
		linear-gradient(180deg, var(--sky) 0%, var(--paper) 28%, #eef3f8 100%);
	color: var(--ink);
	font-family: "Trebuchet MS", Tahoma, "Segoe UI", sans-serif;
	line-height: 1.7;
}
a { color: var(--cool); text-decoration: none; }
a:hover { color: var(--accent-deep); }
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);
}

/* Light disk-shelf masthead — not dark HUD */
.disk-mast {
	position: relative;
	overflow: hidden;
	min-height: 220px;
	background:
		linear-gradient(180deg, #b9daf0 0%, #d7ebf8 42%, #eef2f6 42%, #eef2f6 100%);
	border-bottom: 4px solid var(--wood-deep);
}
.disk-mast .sky-soft {
	position: absolute; inset: 0 0 48% 0;
	background:
		radial-gradient(100px 60px at 18% 40%, rgba(255,255,255,.7), transparent 70%),
		radial-gradient(80px 50px at 78% 30%, rgba(255,220,160,.45), transparent 70%);
}
.shelf-plank {
	position: absolute; left: 0; right: 0; bottom: 0; height: 52%;
	z-index: 1;
}
.shelf-plank .board {
	position: absolute; left: 0; right: 0; bottom: 0; height: 18px;
	background: linear-gradient(180deg, #d4c4ae, var(--wood-deep));
	box-shadow: 0 -2px 0 rgba(255,255,255,.35);
}
.shelf-plank .back {
	position: absolute; left: 3%; right: 3%; bottom: 18px; top: 8%;
	background: linear-gradient(180deg, #dde6ee, #cfd9e4);
	border: 2px solid #b8c6d4;
	border-bottom: 0;
}
.disks {
	position: absolute; inset: 0; z-index: 2; pointer-events: none;
}
.disks svg {
	position: absolute; bottom: 22px; width: 52px; height: 52px;
	filter: drop-shadow(1px 3px 2px rgba(0,0,0,.15));
}

.mast-brand {
	position: relative; z-index: 4;
	max-width: 1140px; margin: 0 auto;
	padding: 26px 16px 78px;
	display: flex; align-items: flex-end; gap: 14px;
}
.mast-brand .logo {
	width: 70px; height: 70px; flex: 0 0 auto;
	filter: drop-shadow(0 4px 8px rgba(28,42,58,.18));
}
.mast-label {
	background: #fff;
	border: 2px solid var(--wood-deep);
	border-bottom-width: 5px;
	padding: 10px 16px 12px;
	min-width: 0;
	box-shadow: 0 6px 16px rgba(28,42,58,.1);
}
.mast-label .name {
	display: block;
	font-size: 1.55rem;
	font-weight: 700;
	color: var(--accent-deep);
	line-height: 1.25;
	letter-spacing: -0.01em;
}
.mast-label .tag {
	display: block;
	margin-top: 3px;
	font-size: .86rem;
	color: var(--muted);
}
.mast-chips {
	margin-inline-start: auto;
	display: flex; flex-wrap: wrap; gap: 6px;
	max-width: 200px;
	justify-content: flex-end;
	padding-bottom: 6px;
}
.mast-chips span {
	font-size: .72rem;
	padding: 4px 9px;
	background: #fff;
	border: 1px solid var(--line);
	color: var(--cool);
	font-family: Tahoma, sans-serif;
}

/* Tab nav under shelf */
.tab-nav {
	background: #fff;
	border-bottom: 2px solid var(--line);
	box-shadow: 0 2px 8px rgba(28,42,58,.04);
}
.tab-inner {
	max-width: 1140px; margin: 0 auto;
	padding: 0 14px;
	display: flex; align-items: center;
}
.nav-toggle { display: none; }
.nav-btn {
	display: none; width: 40px; height: 40px;
	align-items: center; justify-content: center; cursor: pointer;
}
.nav-btn span {
	display: block; width: 20px; height: 2px; background: var(--accent);
	box-shadow: 0 6px 0 var(--accent), 0 -6px 0 var(--accent);
}
.nav {
	display: flex; flex-wrap: wrap;
	padding: 4px 0;
	font-family: Tahoma, sans-serif;
}
.nav a {
	color: var(--muted);
	padding: 10px 13px;
	font-size: .9rem;
	border-bottom: 3px solid transparent;
}
.nav a:hover, .nav a.on {
	color: var(--accent-deep);
	border-bottom-color: var(--accent);
}

/* LTR shell: covers left, shelf sidebar right */
.shell {
	max-width: 1140px;
	margin: 20px auto 44px;
	padding: 0 14px;
	display: flex;
	flex-direction: row;
	gap: 22px;
	align-items: flex-start;
	direction: ltr;
}
.shell > main,
.shell > .suggest {
	direction: rtl;
	text-align: right;
	font-family: Tahoma, "Segoe UI", sans-serif;
}
.shell > main { flex: 1 1 auto; min-width: 0; }
.shell > .suggest { flex: 0 0 280px; width: 280px; }

.section-label {
	font-size: 1.05rem;
	color: var(--ink);
	margin: 0 0 14px;
	padding-bottom: 8px;
	border-bottom: 2px solid var(--accent);
	display: inline-block;
	min-width: 40%;
	font-weight: 700;
}

/* Square game-box cover mosaic — NOT rows/status/lead */
.cover-wall {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px 14px;
}
.game-box {
	display: flex;
	flex-direction: column;
	background: transparent;
	color: inherit;
	min-width: 0;
	transition: transform .15s ease;
}
.game-box:hover {
	transform: translateY(-4px);
	color: inherit;
}
.game-box .sleeve {
	aspect-ratio: 1 / 1;
	background: var(--box);
	border: 2px solid var(--line);
	border-bottom-width: 5px;
	border-bottom-color: var(--wood-deep);
	overflow: hidden;
	position: relative;
	box-shadow: 0 8px 18px rgba(28,42,58,.08);
}
.game-box:hover .sleeve {
	border-color: var(--accent);
	border-bottom-color: var(--accent-deep);
}
.game-box .sleeve img {
	width: 100%; height: 100%; object-fit: cover;
}
.game-box .sleeve .empty {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(145deg, #eaf3fa, #f7fafc);
}
.game-box .sleeve .empty svg { width: 56px; height: 56px; opacity: .55; }
.game-box .spine-dot {
	position: absolute; top: 8px; inset-inline-start: 8px;
	width: 10px; height: 10px;
	background: var(--accent);
	border: 2px solid #fff;
	z-index: 1;
}
.game-box .caption {
	padding: 10px 2px 0;
}
.game-box .caption .kicker {
	font-size: .72rem;
	color: var(--cool);
	font-weight: 700;
}
.game-box .caption h2,
.game-box .caption h3 {
	margin: 3px 0 4px;
	font-size: .95rem;
	line-height: 1.4;
	color: var(--ink);
	font-weight: 700;
}
.game-box .caption .meta {
	font-size: .76rem;
	color: var(--muted);
}

/* Suggested shelf sidebar */
.suggest {
	background: #fff;
	border: 2px solid var(--line);
	border-top: 4px solid var(--accent);
	padding: 14px;
	box-shadow: 0 8px 20px rgba(28,42,58,.06);
}
.suggest-head {
	display: flex; align-items: center; gap: 10px;
	margin-bottom: 12px;
	padding-bottom: 10px;
	border-bottom: 2px dashed var(--line);
}
.suggest-head svg { width: 34px; height: 34px; flex: 0 0 auto; }
.suggest-head strong {
	display: block;
	font-size: 1rem;
	color: var(--accent-deep);
}
.widget {
	margin-bottom: 14px;
	padding-bottom: 12px;
	border-bottom: 1px dashed var(--line);
}
.widget:last-child { border-bottom: 0; margin-bottom: 0; }
.widget-title {
	margin: 0 0 8px;
	font-size: .9rem;
	color: var(--cool);
	border-inline-start: 3px solid var(--accent);
	padding-inline-start: 8px;
}
.widget ul { margin: 0; padding: 0 1.1em 0 0; }
.widget li { margin-bottom: 6px; }
.widget a { color: var(--ink); }
.widget a:hover { color: var(--accent-deep); }
.widget input[type="search"],
.widget input[type="text"] {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--line);
	background: var(--paper);
	color: var(--ink);
}
.behtarinseo { font-size: .85rem; line-height: 1.7; }
.behtarinseo a { color: var(--cool); }
.behtarinseo table { width: 100%; border-collapse: collapse; }
.behtarinseo td { padding: 4px 0; vertical-align: top; }
.behtarinseo div[style*="border"] {
	border-color: var(--line) !important;
	background: var(--paper);
	margin-bottom: 4px;
	padding: 4px;
}

.entry {
	background: #fff;
	border: 2px solid var(--line);
	border-top: 4px solid var(--accent);
	padding: 22px 24px 30px;
	box-shadow: 0 8px 20px rgba(28,42,58,.05);
}
.entry-title {
	margin: 6px 0 8px;
	font-size: 1.55rem;
	color: var(--ink);
	line-height: 1.35;
}
.entry .kicker { color: var(--cool); font-size: .8rem; font-weight: 700; }
.entry .meta { color: var(--muted); font-size: .85rem; margin-bottom: 14px; }
.entry-thumb { margin: 0 0 16px; }
.entry-thumb img { width: 100%; }
.entry-content { font-size: .98rem; }
.entry-content p { margin: 0 0 1em; }
.entry-content h2, .entry-content h3 { color: var(--accent-deep); }

.site-footer {
	max-width: 1140px;
	margin: 0 auto 28px;
	padding: 14px 18px;
	text-align: center;
	font-size: .85rem;
	color: var(--muted);
	border-top: 2px solid var(--line);
}
.nav-links {
	display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px;
}
.nav-links a {
	padding: 6px 12px;
	border: 1px solid var(--line);
	background: #fff;
	color: var(--ink);
}
.nav-links a:hover { border-color: var(--accent); color: var(--accent-deep); }
.comments-area { margin-top: 22px; padding-top: 14px; border-top: 1px dashed var(--line); }

@media (max-width: 960px) {
	.shell { flex-direction: column; }
	.shell > .suggest { flex: 1 1 auto; width: 100%; }
	.cover-wall { grid-template-columns: repeat(2, 1fr); }
	.mast-chips { display: none; }
}
@media (max-width: 560px) {
	.cover-wall { grid-template-columns: 1fr 1fr; gap: 12px 10px; }
	.mast-brand { padding-bottom: 64px; }
	.nav-btn { display: flex; }
	.nav { display: none; width: 100%; flex-direction: column; }
	.nav-toggle:checked ~ .nav { display: flex; }
}
