/*
Theme Name: کابینت آرکید روشن
Theme URI: https://www.adidaswings.name/
Author: صبانت
Description: کابینت آرکید روشن — مجله بازی
Version: 1.0.1
Text Domain: arkid
*/

:root {
	--ink: #1c2a36;
	--muted: #5a6d7c;
	--mist: #eef3f7;
	--sheet: #ffffff;
	--line: #c8d4de;
	--cab: #c44a4a;
	--cab-deep: #9a3232;
	--lcd: #2bb8c4;
	--lcd-deep: #1a8f99;
	--coin: #d4a84b;
	--panel: #4a6274;
	--glow: #7de0e8;
}

* { box-sizing: border-box; }
body {
	margin: 0;
	background:
		radial-gradient(ellipse 44% 26% at 88% 0%, rgba(43, 184, 196, 0.16), transparent 55%),
		radial-gradient(ellipse 38% 22% at 10% 4%, rgba(196, 74, 74, 0.1), transparent 50%),
		linear-gradient(180deg, #d0dce6 0%, var(--mist) 38%, #f5f7fa 100%);
	color: var(--ink);
	font-family: "Trebuchet MS", Tahoma, "Segoe UI", sans-serif;
	line-height: 1.7;
}
a { color: var(--lcd-deep); text-decoration: none; }
a:hover { color: var(--cab); }
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);
}

/* —— arcade mast: visual only, no caption labels —— */
.arkid-mast {
	position: relative;
	overflow: hidden;
	min-height: 210px;
	background:
		linear-gradient(180deg, #8ea3b2 0%, #c2d0da 42%, #e6edf2 42%, #eef3f7 100%);
	border-bottom: 4px solid var(--cab-deep);
}
.arkid-mast .scan {
	position: absolute; inset: 0;
	background:
		repeating-linear-gradient(0deg, transparent, transparent 3px, rgba(28, 42, 54, 0.03) 3px, rgba(28, 42, 54, 0.03) 4px);
	pointer-events: none;
	z-index: 3;
}
.arkid-glow {
	position: absolute;
	inset: auto 8% 18% auto;
	width: 180px;
	height: 80px;
	background: radial-gradient(ellipse, rgba(125, 224, 232, 0.35), transparent 70%);
	pointer-events: none;
	z-index: 1;
}
.arkid-scene {
	position: absolute;
	inset: 0;
	z-index: 2;
	pointer-events: none;
}
.arkid-scene svg { width: 100%; height: 100%; display: block; }

.brand-bar {
	max-width: 1180px;
	margin: -18px auto 0;
	padding: 0 14px;
	position: relative;
	z-index: 5;
	direction: rtl;
}
.brand-plate {
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--sheet);
	border: 1px solid var(--line);
	border-top: 4px solid var(--lcd);
	padding: 12px 16px;
	box-shadow: 0 10px 24px rgba(28, 42, 54, 0.08);
}
.brand-plate .logo { width: 64px; height: 64px; flex-shrink: 0; }
.brand-plate .name {
	font-size: 1.15rem;
	font-weight: 800;
	color: var(--cab-deep);
	line-height: 1.3;
}
.brand-plate .tag {
	display: block;
	font-size: 0.78rem;
	color: var(--muted);
	margin-top: 2px;
}
.brand-nav {
	margin-right: auto;
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}
.brand-nav a {
	padding: 6px 10px;
	font-size: 0.8rem;
	color: var(--ink);
	border-bottom: 2px solid transparent;
}
.brand-nav a:hover,
.brand-nav a.on {
	color: var(--lcd-deep);
	border-bottom-color: var(--lcd);
}
.nav-toggle { display: none; }
.nav-btn {
	display: none;
	margin-right: auto;
	padding: 8px 12px;
	border: 1px solid var(--line);
	background: #fff;
	cursor: pointer;
	font-size: 0.82rem;
}

.shell {
	max-width: 1180px;
	margin: 18px auto 40px;
	padding: 0 14px;
	display: flex;
	flex-direction: row;
	gap: 16px;
	align-items: flex-start;
	direction: ltr;
}
.shell > .stage {
	flex: 1 1 auto;
	min-width: 0;
	direction: rtl;
}

/* attract lead = cabinet screen */
.attract {
	display: grid;
	grid-template-columns: 1fr 200px;
	background: var(--sheet);
	border: 1px solid var(--line);
	margin-bottom: 16px;
	overflow: hidden;
	box-shadow: 0 12px 26px rgba(28, 42, 54, 0.08);
	position: relative;
}
.attract::before {
	content: "";
	position: absolute;
	inset: 0 auto 0 0;
	width: 6px;
	background: linear-gradient(180deg, var(--lcd), var(--cab));
}
.attract .copy {
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.attract .kicker {
	font-size: 0.74rem;
	font-weight: 800;
	color: var(--cab);
	letter-spacing: 0.02em;
}
.attract h2 {
	margin: 6px 0 8px;
	font-size: 1.28rem;
	line-height: 1.35;
	color: var(--ink);
}
.attract h2 a { color: inherit; }
.attract .excerpt {
	margin: 0 0 12px;
	font-size: 0.88rem;
	color: var(--muted);
}
.attract .go {
	align-self: flex-start;
	padding: 7px 14px;
	background: var(--lcd);
	color: #fff !important;
	font-size: 0.84rem;
	font-weight: 700;
}
.attract .go:hover { background: var(--cab-deep); }
.attract .screen {
	position: relative;
	min-height: 180px;
	background:
		radial-gradient(ellipse at 50% 40%, rgba(125, 224, 232, 0.45), transparent 60%),
		linear-gradient(160deg, #2a4a58, #4a7a88);
	overflow: hidden;
}
.attract .screen img {
	width: 100%; height: 100%; object-fit: cover; min-height: 180px;
}
.attract .screen .empty {
	position: absolute; inset: 0;
	display: flex; align-items: center; justify-content: center;
}
.attract .screen .empty svg { width: 64px; height: 64px; opacity: 0.75; }

.section-hi {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 10px;
	font-size: 0.95rem;
	font-weight: 800;
	color: var(--panel);
}
.section-hi::before {
	content: "";
	width: 16px; height: 16px;
	background:
		linear-gradient(180deg, var(--coin) 0 40%, var(--cab) 40% 100%);
	border: 1px solid var(--panel);
}

/* high-score board rows */
.hi-board {
	display: flex;
	flex-direction: column;
	background: var(--sheet);
	border: 1px solid var(--line);
	overflow: hidden;
}
.hi-row {
	display: grid;
	grid-template-columns: 44px 72px 1fr auto;
	gap: 12px;
	align-items: center;
	padding: 11px 13px;
	border-bottom: 1px solid var(--line);
	animation: rise 0.35s ease both;
	transition: background 0.15s ease;
}
.hi-row:last-child { border-bottom: 0; }
.hi-row:nth-child(2) { animation-delay: 0.04s; }
.hi-row:nth-child(3) { animation-delay: 0.08s; }
.hi-row:hover { background: #f5fafb; }
.hi-row .rank {
	width: 36px; height: 36px;
	display: flex; align-items: center; justify-content: center;
	font-size: 0.86rem;
	font-weight: 800;
	color: #fff;
	background: var(--panel);
}
.hi-row:nth-child(1) .rank { background: var(--coin); color: var(--ink); }
.hi-row:nth-child(2) .rank { background: var(--lcd); }
.hi-row:nth-child(3) .rank { background: var(--cab); }
.hi-row .thumb {
	width: 72px; height: 54px;
	overflow: hidden;
	background: linear-gradient(135deg, #c5d4de, #d0e8e8);
	border: 1px solid var(--line);
}
.hi-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.hi-row .thumb .empty {
	width: 100%; height: 100%;
	display: flex; align-items: center; justify-content: center;
}
.hi-row .thumb .empty svg { width: 28px; height: 28px; opacity: 0.5; }
.hi-row .meta { min-width: 0; }
.hi-row .kicker {
	font-size: 0.7rem;
	font-weight: 800;
	color: var(--lcd-deep);
}
.hi-row h3 {
	margin: 3px 0 4px;
	font-size: 1.02rem;
	line-height: 1.35;
	color: var(--ink);
}
.hi-row .date { font-size: 0.74rem; color: var(--muted); }
.hi-row .score {
	padding: 5px 10px;
	font-size: 0.72rem;
	font-weight: 800;
	white-space: nowrap;
	background: rgba(43, 184, 196, 0.12);
	color: var(--lcd-deep);
	font-variant-numeric: tabular-nums;
}

/* token bay sidebar */
.bay {
	flex: 0 0 268px;
	width: 268px;
	direction: rtl;
}
.bay-head {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 13px;
	background: linear-gradient(90deg, var(--cab-deep), var(--panel));
	color: #fff;
	margin-bottom: 10px;
}
.bay-head svg { width: 26px; height: 26px; flex-shrink: 0; }
.bay-head strong { font-size: 0.9rem; }
.bay .widget {
	background: var(--sheet);
	border: 1px solid var(--line);
	border-top: 3px solid var(--coin);
	padding: 12px 13px;
	margin-bottom: 10px;
}
.bay .widget-title {
	margin: 0 0 9px;
	font-size: 0.86rem;
	color: var(--cab-deep);
	padding-bottom: 5px;
	border-bottom: 2px solid rgba(196, 74, 74, 0.3);
}
.bay .ads-widget .widget-title {
	font-size: 0; border: 0; padding: 0; margin: 0; height: 0; overflow: hidden;
}
.bay .behtarinseo { font-size: 0.86rem; line-height: 1.9; }
.bay .behtarinseo a { color: var(--ink); }
.bay .behtarinseo a:hover { color: var(--cab); }
.bay ul { margin: 0; padding: 0 1.1em 0 0; }
.bay li { margin: 0 0 6px; }
.bay input[type="search"],
.bay input[type="text"] {
	width: 100%;
	padding: 8px 10px;
	border: 1px solid var(--line);
	background: #f4f8fb;
}
.bay button,
.bay input[type="submit"] {
	margin-top: 8px;
	padding: 8px 14px;
	border: 0;
	background: var(--lcd);
	color: #fff;
	cursor: pointer;
}

.entry {
	background: var(--sheet);
	border: 1px solid var(--line);
	padding: 22px 24px 28px;
	border-top: 4px solid var(--cab);
}
.entry-title { margin: 0 0 8px; font-size: 1.55rem; color: var(--cab-deep); }
.entry .meta { color: var(--muted); font-size: 0.86rem; margin-bottom: 16px; }
.entry .kicker { color: var(--lcd-deep); font-size: 0.8rem; font-weight: 700; }
.entry-thumb { margin: 0 0 18px; }
.entry-content p { margin: 0 0 1em; }
.comments-area { margin-top: 28px; padding-top: 18px; border-top: 1px dashed var(--line); }

.pagination, .nav-links {
	display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px;
}
.pagination a, .pagination span, .nav-links a, .nav-links span {
	padding: 6px 12px;
	border: 1px solid var(--line);
	background: #fff;
	color: var(--ink);
	font-size: 0.86rem;
}
.pagination .current, .nav-links .current {
	background: var(--lcd);
	border-color: var(--lcd);
	color: #fff;
}

.site-footer {
	max-width: 1180px;
	margin: 0 auto 28px;
	padding: 16px;
	text-align: center;
	color: var(--muted);
	font-size: 0.86rem;
	border-top: 1px dashed var(--line);
	direction: rtl;
}

@keyframes rise {
	from { opacity: 0; transform: translateY(8px); }
	to { opacity: 1; transform: translateY(0); }
}
@keyframes blink {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.35; }
}
@keyframes glow {
	0%, 100% { opacity: 0.7; }
	50% { opacity: 1; }
}
.arkid-scene .lcd { animation: glow 2.6s ease-in-out infinite; }
.attract { animation: rise 0.4s ease both; }

@media (max-width: 980px) {
	.shell { flex-wrap: wrap; }
	.bay { width: 100%; flex-basis: 100%; order: 3; }
	.stage { order: 2; flex: 1 1 100%; }
	.brand-plate { flex-wrap: wrap; }
	.brand-nav { width: 100%; margin-right: 0; }
	.attract { grid-template-columns: 1fr 140px; }
}
@media (max-width: 640px) {
	.attract { grid-template-columns: 1fr; }
	.hi-row { grid-template-columns: 36px 56px 1fr; }
	.hi-row .score { display: none; }
	.hi-row .thumb { width: 56px; height: 48px; }
	.arkid-mast { min-height: 160px; }
	.arkid-scene { opacity: 0.85; }
	.nav-btn { display: block; }
	.brand-nav { display: none; width: 100%; }
	.nav-toggle:checked ~ .brand-nav { display: flex; }
}
