/*
Theme Name: سالن تاریک
Theme URI: https://gznisu.ir/
Author: مک کافه فراب
Description: سالن تاریک برای فیلم و سریال
Version: 1.0.0
Text Domain: salon
*/

:root {
	--void: #0b0a0f;
	--stage: #14121c;
	--curtain: #7a1228;
	--curtain-deep: #4a0b18;
	--gold: #e6c35c;
	--beam: rgba(230, 195, 92, 0.28);
	--seat: #1c2433;
	--ink: #f2ebe0;
	--muted: #9aa3b2;
	--line: #2a3142;
	--panel: #18161f;
}

* { box-sizing: border-box; }
body {
	margin: 0;
	background:
		radial-gradient(900px 420px at 50% -10%, rgba(122, 18, 40, 0.35), transparent 60%),
		var(--void);
	color: var(--ink);
	font-family: Tahoma, "Segoe UI", sans-serif;
	line-height: 1.75;
}
a { color: var(--gold); }
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);
}

/* Cinema hall masthead — curtains + projector, not a floating brand plate */
.hall {
	position: relative;
	overflow: hidden;
	background:
		linear-gradient(180deg, #1a0c12 0%, #0b0a0f 70%);
	border-bottom: 3px solid var(--gold);
}
.curtain {
	position: absolute;
	top: 0;
	bottom: 0;
	width: 18%;
	background:
		repeating-linear-gradient(
			90deg,
			var(--curtain-deep) 0 10px,
			var(--curtain) 10px 20px
		);
	opacity: 0.92;
	pointer-events: none;
	z-index: 2;
}
.curtain.left {
	left: 0;
	box-shadow: 12px 0 28px rgba(0, 0, 0, 0.45);
	transform-origin: left center;
	animation: curtain-sway 7s ease-in-out infinite alternate;
}
.curtain.right {
	right: 0;
	box-shadow: -12px 0 28px rgba(0, 0, 0, 0.45);
	transform-origin: right center;
	animation: curtain-sway 7s ease-in-out infinite alternate-reverse;
}
@keyframes curtain-sway {
	from { transform: scaleX(1); }
	to { transform: scaleX(1.04); }
}
.beam {
	position: absolute;
	left: 50%;
	top: -20px;
	width: 0;
	height: 0;
	border-left: 160px solid transparent;
	border-right: 160px solid transparent;
	border-top: 220px solid var(--beam);
	transform: translateX(-50%);
	filter: blur(1px);
	animation: beam-pulse 3.5s ease-in-out infinite alternate;
	pointer-events: none;
	z-index: 1;
}
@keyframes beam-pulse {
	from { opacity: 0.45; }
	to { opacity: 0.9; }
}
.seats-art {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 54px;
	background:
		repeating-linear-gradient(
			90deg,
			transparent 0 14px,
			#121821 14px 26px,
			transparent 26px 40px
		);
	opacity: 0.55;
	pointer-events: none;
	z-index: 1;
	mask-image: linear-gradient(180deg, transparent, #000 40%);
}

.hall-inner {
	position: relative;
	z-index: 3;
	max-width: 1120px;
	margin: 0 auto;
	padding: 22px 16px 18px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
}
.brand {
	display: flex;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: var(--ink);
	min-width: 0;
}
.logo {
	width: 58px;
	height: 52px;
	flex: 0 0 58px;
	filter: drop-shadow(0 0 12px rgba(230, 195, 92, 0.35));
}
.brand-name {
	display: block;
	font-size: 22px;
	font-weight: bold;
	line-height: 1.35;
	color: #fff6df;
}
.brand-desc {
	display: block;
	margin-top: 4px;
	font-size: 13px;
	color: #cbb99a;
}
.now-tag {
	display: inline-block;
	margin-top: 10px;
	padding: 5px 12px;
	background: var(--curtain);
	color: #ffe8c8;
	font-size: 12px;
	font-weight: bold;
	border: 1px solid var(--gold);
	letter-spacing: 0.04em;
	animation: now-glow 2.2s ease-in-out infinite alternate;
}
@keyframes now-glow {
	from { box-shadow: 0 0 0 0 rgba(230, 195, 92, 0.2); }
	to { box-shadow: 0 0 0 6px rgba(230, 195, 92, 0); }
}
.proj {
	width: 150px;
	flex: 0 0 150px;
}
.proj svg { width: 100%; height: auto; display: block; }

.nav-wrap {
	position: relative;
	z-index: 3;
	background: rgba(0, 0, 0, 0.45);
	border-top: 1px solid rgba(230, 195, 92, 0.25);
}
.nav-inner {
	max-width: 1120px;
	margin: 0 auto;
	padding: 0 16px;
}
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-btn {
	display: none;
	width: 42px;
	height: 34px;
	border: 1px solid var(--gold);
	background: transparent;
	cursor: pointer;
	margin: 8px 0;
}
.nav-btn span {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--gold);
	margin: 6px auto;
}
.nav {
	display: flex;
	flex-wrap: wrap;
	gap: 0;
}
.nav a {
	text-decoration: none;
	color: #d7c7a8;
	padding: 11px 14px;
	display: inline-block;
	border-bottom: 2px solid transparent;
}
.nav a.on,
.nav a:hover {
	color: var(--gold);
	border-bottom-color: var(--gold);
	background: rgba(230, 195, 92, 0.08);
}

/* Featured as cinema SCREEN — full width above aisle */
.screen-wrap {
	max-width: 1120px;
	margin: 18px auto 0;
	padding: 0 16px;
}
.screen {
	position: relative;
	background: #050507;
	border: 4px solid #2a2430;
	box-shadow:
		0 0 0 2px rgba(230, 195, 92, 0.25),
		0 24px 48px rgba(0, 0, 0, 0.55);
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(160px, 0.85fr);
	overflow: hidden;
}
.screen::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(120deg, transparent 40%, rgba(230, 195, 92, 0.08), transparent 70%);
	pointer-events: none;
	animation: screen-glint 5s linear infinite;
}
@keyframes screen-glint {
	from { transform: translateX(-30%); }
	to { transform: translateX(30%); }
}
.screen-copy {
	padding: 18px 20px 20px;
	position: relative;
	z-index: 1;
}
.screen-art {
	background: #111018;
	min-height: 190px;
	overflow: hidden;
	border-right: 1px solid #2a2430;
}
.screen-art a,
.screen-art img {
	width: 100%;
	height: 100%;
	min-height: 190px;
	object-fit: cover;
	display: block;
}
.kicker {
	color: var(--gold);
	font-size: 12px;
	font-weight: bold;
}
.screen h2 {
	margin: 8px 0 12px;
	font-size: 26px;
	line-height: 1.45;
}
.screen h2 a {
	color: #fff8ea;
	text-decoration: none;
}
.go {
	display: inline-block;
	background: var(--gold);
	color: #1a1208;
	text-decoration: none;
	padding: 8px 14px;
	font-weight: bold;
	border: 0;
}
.go:hover { background: #f0d578; }

/* Content left, sidebar RIGHT */
.shell {
	max-width: 1120px;
	margin: 0 auto;
	padding: 16px 16px 44px;
	display: flex;
	flex-direction: row;
	direction: ltr;
	gap: 18px;
	align-items: start;
}
.shell > main,
.shell > .side { direction: rtl; }
.shell > main { flex: 1; min-width: 0; }
.shell > .side { width: 290px; flex: 0 0 290px; }

.row-label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 4px 0 10px;
	color: var(--gold);
	font-size: 13px;
	font-weight: bold;
}
.row-label::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, rgba(230, 195, 92, 0.55), transparent);
}

/* Seat-row posters */
.rows {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.poster {
	display: grid;
	grid-template-columns: 48px 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);
	border-right: 4px solid var(--curtain);
	box-shadow: inset 0 -10px 0 rgba(0, 0, 0, 0.25);
}
.poster:hover {
	border-color: rgba(230, 195, 92, 0.45);
	background: #1e1b28;
}
.seat-num {
	width: 40px;
	height: 40px;
	border-radius: 6px 6px 10px 10px;
	background: var(--seat);
	border: 1px solid #334055;
	color: var(--gold);
	font-weight: bold;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
}
.poster-art {
	width: 96px;
	height: 72px;
	background: #0f121a;
	overflow: hidden;
	border: 1px solid #2d3548;
}
.poster-art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.poster h3 {
	margin: 2px 0 4px;
	font-size: 16px;
	line-height: 1.45;
	color: #f7f0e4;
}
.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:hover { background: #1e1b28; }
.card-art {
	width: 96px;
	height: 72px;
	background: #0f121a;
	overflow: hidden;
	border: 1px solid #2d3548;
}
.card-art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.card h3 {
	margin: 2px 0 4px;
	font-size: 16px;
	line-height: 1.45;
	color: #f7f0e4;
}

.page-head h1 {
	margin: 0 0 14px;
	font-size: 22px;
	padding-right: 10px;
	border-right: 4px solid var(--gold);
}

.entry {
	background: var(--panel);
	padding: 18px 18px 24px;
	border: 1px solid var(--line);
	border-right: 4px solid var(--curtain);
}
.entry-title { margin: 6px 0 8px; font-size: 24px; line-height: 1.45; }
.entry-thumb { margin: 12px 0 16px; }
.entry-content { font-size: 15px; color: #e8e0d4; }
.entry-content a { color: var(--gold); }

.side .widget {
	background: var(--panel);
	border: 1px solid var(--line);
	border-top: 3px solid var(--gold);
	padding: 12px 12px 14px;
	margin-bottom: 12px;
}
.widget-title {
	margin: 0 0 10px;
	font-size: 14px;
	color: var(--gold);
	padding-bottom: 6px;
	border-bottom: 1px solid var(--line);
}
.side ul { margin: 0; padding: 0 16px 0 0; }
.side li { margin: 0 0 6px; }
.side a { text-decoration: none; color: #d7c7a8; }
.side a:hover { color: var(--gold); }
.side input[type="search"],
.side input[type="text"] {
	width: 100%;
	padding: 8px;
	border: 1px solid var(--line);
	background: #0f121a;
	color: var(--ink);
}
.side input[type="submit"],
.side button {
	background: var(--curtain);
	color: #ffe8c8;
	border: 1px solid var(--gold);
	padding: 8px 12px;
	cursor: pointer;
	margin-top: 6px;
	font-weight: bold;
}
.behtarinseo a { word-break: break-word; }

.site-footer {
	padding: 16px;
	text-align: center;
	background: #050507;
	color: #9aa3b2;
	font-size: 13px;
	border-top: 2px solid var(--gold);
}
.site-footer p { margin: 0; }

.nav-links,
.pagination {
	margin-top: 16px;
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}
.nav-links a,
.pagination a,
.pagination span {
	display: inline-block;
	padding: 6px 10px;
	background: var(--panel);
	border: 1px solid var(--line);
	text-decoration: none;
	color: var(--ink);
}
.pagination .current {
	background: var(--curtain);
	color: #ffe8c8;
	border-color: var(--gold);
}

@media (max-width: 900px) {
	.curtain { width: 10%; opacity: 0.7; }
	.proj { display: none; }
	.shell {
		flex-direction: column;
		direction: rtl;
	}
	.shell > .side { width: 100%; flex: none; }
	.screen {
		grid-template-columns: 1fr;
	}
	.screen-art {
		border-right: 0;
		border-top: 1px solid #2a2430;
		order: -1;
	}
	.screen-art a,
	.screen-art img { min-height: 160px; }
}

@media (max-width: 560px) {
	.nav-btn { display: block; }
	.nav { display: none; }
	.nav-toggle:checked ~ .nav { display: flex; }
	.poster { grid-template-columns: 40px minmax(0, 1fr); }
	.poster-art { display: none; }
	.brand-name { font-size: 18px; }
	.screen h2 { font-size: 20px; }
	.beam { border-left-width: 90px; border-right-width: 90px; border-top-width: 160px; }
}
