/*
Theme Name: اتاق ماه
Theme URI: https://www.poloralphlauren.net.co/
Author: الو کمپانی
Description: اتاق ماه برای خواب، تشک و تخت
Version: 1.0.0
Text Domain: mah
*/

:root {
	--night: #0b1424;
	--indigo: #15233a;
	--pane: #1c2d4a;
	--moon: #e9eef8;
	--glow: #b7c8e6;
	--lamp: #c9925a;
	--linen: #d8cfc2;
	--ink: #e8eef6;
	--muted: #8fa0b8;
	--line: #2a3c58;
	--panel: #121c2e;
}

* { box-sizing: border-box; }
body {
	margin: 0;
	background:
		radial-gradient(720px 340px at 70% -8%, rgba(183, 200, 230, 0.18), transparent 55%),
		radial-gradient(520px 280px at 12% 0%, rgba(201, 146, 90, 0.12), transparent 50%),
		var(--night);
	color: var(--ink);
	font-family: Tahoma, "Segoe UI", sans-serif;
	line-height: 1.75;
}
a { color: var(--lamp); }
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);
}

/* Night window scene */
.window-scene {
	position: relative;
	overflow: hidden;
	min-height: 210px;
	background:
		linear-gradient(180deg, #07101c 0%, #122038 55%, #182744 100%);
	border-bottom: 3px solid rgba(201, 146, 90, 0.55);
}
.window-sky {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(circle at 72% 28%, rgba(233, 238, 248, 0.22), transparent 26%),
		radial-gradient(circle at 18% 40%, rgba(183, 200, 230, 0.08), transparent 30%);
	pointer-events: none;
}
.star {
	position: absolute;
	width: 2px;
	height: 2px;
	background: var(--moon);
	border-radius: 50%;
	opacity: 0.75;
	animation: twinkle 3.8s ease-in-out infinite;
}
.star.s1 { top: 18%; left: 12%; }
.star.s2 { top: 28%; left: 34%; animation-delay: 0.6s; }
.star.s3 { top: 14%; left: 58%; animation-delay: 1.1s; width: 3px; height: 3px; }
.star.s4 { top: 36%; left: 78%; animation-delay: 1.7s; }
.star.s5 { top: 22%; left: 88%; animation-delay: 0.3s; }
@keyframes twinkle {
	0%, 100% { opacity: 0.35; }
	50% { opacity: 1; }
}
.moon {
	position: absolute;
	top: 28px;
	left: 58px;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 35% 35%, #fff, var(--moon) 45%, var(--glow) 78%);
	box-shadow: 0 0 36px rgba(233, 238, 248, 0.45);
	animation: moon-drift 9s ease-in-out infinite alternate;
}
.moon::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: 50%;
	background: radial-gradient(circle at 68% 40%, transparent 42%, rgba(11, 20, 36, 0.35) 43%);
}
@keyframes moon-drift {
	from { transform: translateY(0); }
	to { transform: translateY(8px); }
}
.bed-sill {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 78px;
	background: linear-gradient(180deg, transparent, rgba(12, 18, 30, 0.85) 30%, #0d1626 100%);
	pointer-events: none;
}
.bed-svg {
	position: absolute;
	left: 50%;
	bottom: 6px;
	transform: translateX(-50%);
	width: min(420px, 88vw);
	opacity: 0.92;
}
.window-frame {
	position: absolute;
	inset: 12px 10% 0;
	border: 2px solid rgba(183, 200, 230, 0.22);
	border-bottom: 0;
	border-radius: 18px 18px 0 0;
	box-shadow: inset 0 0 40px rgba(0, 0, 0, 0.25);
	pointer-events: none;
}
.window-mullion {
	position: absolute;
	top: 12px;
	bottom: 78px;
	left: 50%;
	width: 2px;
	background: rgba(183, 200, 230, 0.18);
	pointer-events: none;
}
.window-cross {
	position: absolute;
	top: 42%;
	left: 10%;
	right: 10%;
	height: 2px;
	background: rgba(183, 200, 230, 0.16);
	pointer-events: none;
}
.scene-note {
	position: absolute;
	right: 14%;
	top: 28px;
	z-index: 2;
	color: var(--glow);
	font-size: 12px;
	letter-spacing: 0.04em;
	background: rgba(11, 20, 36, 0.45);
	padding: 6px 10px;
	border: 1px solid rgba(183, 200, 230, 0.25);
}

/* Nav under window */
.moon-nav {
	background: rgba(18, 28, 46, 0.96);
	border-bottom: 1px solid var(--line);
}
.moon-nav-inner {
	max-width: 1180px;
	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(--lamp);
	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(--moon);
	border-bottom-color: var(--lamp);
}

/* Vertical brand tower + content left + sidebar RIGHT */
.shell {
	max-width: 1180px;
	margin: 0 auto;
	padding: 18px 14px 48px;
	display: flex;
	flex-direction: row;
	direction: ltr;
	gap: 16px;
	align-items: stretch;
}
.shell > .tower,
.shell > main,
.shell > .side { direction: rtl; }
.tower {
	width: 92px;
	flex: 0 0 92px;
	background:
		linear-gradient(180deg, rgba(233, 238, 248, 0.08), transparent 28%),
		var(--panel);
	border: 1px solid var(--line);
	border-radius: 0 0 18px 18px;
	padding: 16px 10px 22px;
	position: sticky;
	top: 10px;
	align-self: flex-start;
	min-height: 320px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 18px;
}
.tower .logo {
	width: 58px;
	height: 58px;
	flex: 0 0 auto;
}
.tower-brand {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	text-decoration: none;
	color: var(--moon);
	font-size: 18px;
	font-weight: bold;
	letter-spacing: 0.08em;
	line-height: 1.2;
	max-height: 260px;
	overflow: hidden;
}
.tower-brand:hover { color: var(--lamp); }
.tower-desc {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	color: var(--muted);
	font-size: 11px;
	max-height: 180px;
	overflow: hidden;
}
.tower-lamp {
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: var(--lamp);
	box-shadow: 0 0 14px rgba(201, 146, 90, 0.8);
	margin-top: auto;
	animation: lamp-pulse 2.8s ease-in-out infinite;
}
@keyframes lamp-pulse {
	0%, 100% { opacity: 0.55; }
	50% { opacity: 1; }
}

.shell > main { flex: 1; min-width: 0; }
.shell > .side { width: 280px; flex: 0 0 280px; }

/* Moonbeam lead — vertical strip feature, not a white card */
.moonbeam {
	display: grid;
	grid-template-columns: 118px minmax(0, 1fr);
	gap: 0;
	margin-bottom: 16px;
	background: var(--indigo);
	border: 1px solid var(--line);
	overflow: hidden;
	min-height: 180px;
}
.moonbeam-rail {
	background:
		linear-gradient(180deg, rgba(233, 238, 248, 0.2), transparent 40%),
		linear-gradient(180deg, #24375a, #15233a);
	padding: 14px 10px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	border-left: 1px solid var(--line);
}
.moonbeam-rail .kicker {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	color: var(--lamp);
	font-size: 12px;
	font-weight: bold;
}
.moonbeam-rail .go {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	text-decoration: none;
	color: var(--moon);
	font-size: 12px;
	border-bottom: 1px solid rgba(233, 238, 248, 0.35);
	padding-bottom: 4px;
}
.moonbeam-body {
	padding: 16px 18px 18px;
	display: grid;
	grid-template-columns: minmax(0, 1fr) minmax(120px, 180px);
	gap: 14px;
	align-items: center;
}
.moonbeam h2 {
	margin: 6px 0 10px;
	font-size: 24px;
	line-height: 1.45;
}
.moonbeam h2 a {
	color: var(--moon);
	text-decoration: none;
}
.moonbeam-art {
	min-height: 120px;
	background: #0d1626;
	overflow: hidden;
}
.moonbeam-art a,
.moonbeam-art img {
	width: 100%;
	height: 100%;
	min-height: 120px;
	object-fit: cover;
	display: block;
}

.shelf-label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 4px 0 12px;
	color: var(--glow);
	font-size: 13px;
	font-weight: bold;
}
.shelf-label::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, rgba(183, 200, 230, 0.45), transparent);
}

/* Nightstand / shelf rows */
.shelves {
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.shelf {
	display: grid;
	grid-template-columns: 108px minmax(0, 1fr) auto;
	gap: 12px;
	align-items: center;
	padding: 10px 12px;
	text-decoration: none;
	color: inherit;
	background: var(--panel);
	border: 1px solid var(--line);
	border-right: 3px solid rgba(201, 146, 90, 0.55);
	transition: border-color 0.2s ease, background 0.2s ease;
}
.shelf:hover {
	background: #172338;
	border-right-color: var(--lamp);
}
.shelf-art {
	width: 108px;
	height: 78px;
	background: #0d1626;
	overflow: hidden;
}
.shelf-art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.shelf .kicker {
	color: var(--lamp);
	font-size: 12px;
	font-weight: bold;
}
.shelf h3 {
	margin: 4px 0;
	font-size: 17px;
	line-height: 1.45;
}
.shelf h3 span { color: var(--moon); }
.shelf .meta {
	color: var(--muted);
	font-size: 12px;
}
.shelf-num {
	color: var(--glow);
	font-size: 20px;
	font-weight: bold;
	opacity: 0.55;
	min-width: 28px;
	text-align: center;
}

.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: #0d1626;
	overflow: hidden;
}
.card-art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.card h3 {
	margin: 4px 0;
	font-size: 16px;
	line-height: 1.45;
}
.card h3 span { color: var(--moon); }
.card .meta { color: var(--muted); font-size: 12px; }
.kicker {
	color: var(--lamp);
	font-size: 12px;
	font-weight: bold;
}

.page-head h1,
.entry-title {
	color: var(--moon);
	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(--lamp); }
.nav-links,
.pagination {
	margin-top: 18px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.nav-links a,
.page-numbers {
	text-decoration: none;
	color: var(--moon);
	border: 1px solid var(--line);
	padding: 6px 10px;
	background: var(--panel);
}
.page-numbers.current {
	border-color: var(--lamp);
	color: var(--lamp);
}
.go {
	display: inline-block;
	background: transparent;
	color: var(--lamp);
	text-decoration: none;
	padding: 8px 0;
	font-weight: bold;
	border-bottom: 1px solid var(--lamp);
}
.go:hover { color: var(--moon); border-bottom-color: var(--moon); }

/* Sidebar */
.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(--moon);
	font-size: 15px;
	display: flex;
	align-items: center;
	gap: 8px;
}
.side .widget-title::before {
	content: "";
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background:
		radial-gradient(circle at 30% 30%, #fff, var(--moon) 50%, transparent 51%),
		var(--pane);
	box-shadow: 0 0 8px rgba(233, 238, 248, 0.35);
	flex: 0 0 auto;
}
.side ul { margin: 0; padding: 0 16px 0 0; }
.side li { margin: 0 0 8px; }
.side a { color: var(--glow); text-decoration: none; }
.side a:hover { color: var(--lamp); }
.behtarinseo { overflow: hidden; }

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

@media (max-width: 980px) {
	.tower { display: none; }
	.shell { flex-wrap: wrap; }
	.shell > .side {
		width: 100%;
		flex: 1 1 100%;
		order: 3;
	}
	.shell > main { flex: 1 1 100%; }
	.moonbeam {
		grid-template-columns: 1fr;
	}
	.moonbeam-rail {
		flex-direction: row;
		align-items: center;
		border-left: 0;
		border-bottom: 1px solid var(--line);
	}
	.moonbeam-rail .kicker,
	.moonbeam-rail .go {
		writing-mode: horizontal-tb;
		transform: none;
	}
	.moonbeam-body { 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; }
	.shelf {
		grid-template-columns: 84px minmax(0, 1fr);
	}
	.shelf-num { display: none; }
	.scene-note { display: none; }
	.window-frame { inset: 10px 4% 0; }
}
