/*
Theme Name: ستون غدیر
Theme URI: https://lgvitrin.ir/
Author: غدیر نیوز
Description: ستون غدیر برای خبر و تحلیل
Version: 1.0.0
Text Domain: sotun
*/

:root {
	--grove: #0b1f18;
	--leaf: #143528;
	--gold: #d4b45a;
	--gold-deep: #9a7428;
	--mist: #e8f0eb;
	--panel: #f4f8f5;
	--ink: #102018;
	--muted: #5a6e62;
	--line: #c5d4ca;
}

* { box-sizing: border-box; }
body {
	margin: 0;
	background:
		linear-gradient(90deg, #0b1f18 0 72px, transparent 72px),
		radial-gradient(900px 500px at 100% 0%, rgba(212, 180, 90, 0.12), transparent 55%),
		var(--mist);
	color: var(--ink);
	font-family: Tahoma, "Segoe UI", sans-serif;
	line-height: 1.75;
}
a { color: #1f5c40; }
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);
}

/* Vertical brand tower — distinct from horizontal mastheads */
.frame {
	display: flex;
	flex-direction: row;
	direction: ltr;
	min-height: 100vh;
	align-items: stretch;
}
.tower {
	position: relative;
	width: 72px;
	flex: 0 0 72px;
	background:
		linear-gradient(180deg, #0f2a20 0%, #0b1f18 40%, #071510 100%);
	border-left: 3px solid var(--gold);
	color: #f3ead0;
	overflow: hidden;
	z-index: 5;
}
.tower-shine {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		transparent 0%,
		rgba(212, 180, 90, 0.18) 45%,
		transparent 70%
	);
	background-size: 100% 220%;
	animation: gold-flow 7s ease-in-out infinite;
	pointer-events: none;
}
@keyframes gold-flow {
	0%, 100% { background-position: 0 0; }
	50% { background-position: 0 100%; }
}
.tower-inner {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 18px 8px 24px;
	min-height: 100%;
}
.tower .brand {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
	text-decoration: none;
	color: #f3ead0;
}
.logo {
	width: 48px;
	height: 56px;
	filter: drop-shadow(0 0 10px rgba(212, 180, 90, 0.45));
}
.tower-name {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-size: 18px;
	font-weight: bold;
	letter-spacing: 0.08em;
	color: var(--gold);
	line-height: 1.2;
}
.tower-desc {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	font-size: 11px;
	color: #a8c0b0;
	max-height: 160px;
	overflow: hidden;
}
.tower-nav {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	margin-top: auto;
	padding-top: 12px;
	border-top: 1px solid rgba(212, 180, 90, 0.25);
	width: 100%;
}
.tower-nav a {
	writing-mode: vertical-rl;
	transform: rotate(180deg);
	text-decoration: none;
	color: #c5d9cc;
	font-size: 12px;
	padding: 8px 0;
}
.tower-nav a.on,
.tower-nav a:hover {
	color: var(--gold);
}

.work {
	flex: 1;
	min-width: 0;
	direction: rtl;
	display: flex;
	flex-direction: column;
}
.topbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 12px 18px;
	background: rgba(11, 31, 24, 0.92);
	color: #e8f0eb;
	border-bottom: 2px solid var(--gold);
}
.topbar-tag {
	font-size: 13px;
	color: var(--gold);
	font-weight: bold;
}
.topbar-note { font-size: 13px; color: #b7cfc2; }
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }
.nav-btn {
	display: none;
	width: 40px;
	height: 34px;
	border: 1px solid var(--gold);
	background: transparent;
	cursor: pointer;
	position: relative;
}
.nav-btn span {
	display: block;
	width: 18px;
	height: 2px;
	background: var(--gold);
	margin: 6px auto;
}

.shell {
	max-width: 1080px;
	width: 100%;
	margin: 0 auto;
	padding: 20px 16px 44px;
	display: flex;
	flex-direction: row;
	direction: ltr;
	gap: 20px;
	align-items: start;
	flex: 1;
}
.shell > main,
.shell > .side { direction: rtl; }
.shell > main { flex: 1; min-width: 0; }
.shell > .side { width: 290px; flex: 0 0 290px; }

/* Analysis spine — oversized titles, not a white lead card clone */
.spine {
	position: relative;
	display: grid;
	grid-template-columns: 140px minmax(0, 1fr);
	gap: 0;
	margin-bottom: 22px;
	background: var(--grove);
	color: #f3ead0;
	overflow: hidden;
	box-shadow: 8px 8px 0 rgba(212, 180, 90, 0.35);
}
.spine-art {
	background: #143528;
	min-height: 220px;
	overflow: hidden;
	border-left: 1px solid rgba(212, 180, 90, 0.35);
}
.spine-art a,
.spine-art img {
	width: 100%;
	height: 100%;
	min-height: 220px;
	object-fit: cover;
	display: block;
}
.spine-copy {
	padding: 22px 22px 24px;
	position: relative;
}
.spine-copy::before {
	content: "";
	position: absolute;
	top: 18px;
	bottom: 18px;
	right: 0;
	width: 3px;
	background: linear-gradient(180deg, var(--gold), transparent);
}
.spine .kicker {
	color: var(--gold);
	font-size: 12px;
	font-weight: bold;
	letter-spacing: 0.04em;
}
.spine h2 {
	margin: 10px 0 14px;
	font-size: 28px;
	line-height: 1.45;
}
.spine h2 a {
	color: #fff8e8;
	text-decoration: none;
}
.go {
	display: inline-block;
	background: var(--gold);
	color: #0b1f18;
	text-decoration: none;
	padding: 8px 16px;
	font-weight: bold;
	border: 0;
}
.go:hover { background: #e6c96e; }

.section-label {
	display: flex;
	align-items: center;
	gap: 10px;
	margin: 0 0 12px;
	color: var(--gold-deep);
	font-size: 13px;
	font-weight: bold;
}
.section-label::after {
	content: "";
	flex: 1;
	height: 1px;
	background: linear-gradient(90deg, var(--gold), transparent);
}

.spine-list {
	display: flex;
	flex-direction: column;
	gap: 0;
	border-top: 2px solid var(--grove);
	background: var(--panel);
}
.row {
	display: grid;
	grid-template-columns: 52px 88px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding: 12px 10px;
	text-decoration: none;
	color: inherit;
	border-bottom: 1px solid var(--line);
	transition: background 0.2s ease;
}
.row:hover { background: #e7f0ea; }
.row-num {
	font-size: 22px;
	font-weight: bold;
	color: var(--gold-deep);
	text-align: center;
	font-variant-numeric: tabular-nums;
}
.row-art {
	width: 88px;
	height: 66px;
	background: #d5e2da;
	overflow: hidden;
}
.row-art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.row .kicker {
	color: #2a6b4a;
	font-size: 11px;
	font-weight: bold;
}
.row h3 {
	margin: 2px 0 4px;
	font-size: 16px;
	line-height: 1.45;
}
.row .meta { color: var(--muted); font-size: 12px; }

.stack {
	display: flex;
	flex-direction: column;
	gap: 0;
	border-top: 2px solid var(--grove);
	background: var(--panel);
}
.card {
	display: grid;
	grid-template-columns: 88px minmax(0, 1fr);
	gap: 12px;
	align-items: center;
	padding: 12px 10px;
	text-decoration: none;
	color: inherit;
	border-bottom: 1px solid var(--line);
}
.card:hover { background: #e7f0ea; }
.card-art {
	width: 88px;
	height: 66px;
	background: #d5e2da;
	overflow: hidden;
}
.card-art img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.kicker {
	color: #2a6b4a;
	font-size: 12px;
	font-weight: bold;
}
.card h3 { margin: 2px 0 4px; font-size: 16px; line-height: 1.45; }
.meta { color: var(--muted); font-size: 12px; }

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

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

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

.site-footer {
	padding: 16px;
	text-align: center;
	background: var(--grove);
	color: #b7cfc2;
	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(--grove);
	color: #f3ead0;
	border-color: var(--grove);
}

@media (max-width: 900px) {
	body {
		background: var(--mist);
	}
	.frame { flex-direction: column; }
	.tower {
		width: 100%;
		flex: none;
		border-left: 0;
		border-bottom: 3px solid var(--gold);
	}
	.tower-inner {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		padding: 12px 14px;
		gap: 10px;
	}
	.tower .brand { flex-direction: row; }
	.tower-name,
	.tower-desc {
		writing-mode: horizontal-tb;
		transform: none;
		max-height: none;
	}
	.tower-desc { display: none; }
	.tower-nav {
		flex-direction: row;
		flex-wrap: wrap;
		margin-top: 0;
		padding-top: 0;
		border-top: 0;
		width: auto;
		margin-right: auto;
	}
	.tower-nav a {
		writing-mode: horizontal-tb;
		transform: none;
		padding: 6px 8px;
	}
	.shell {
		flex-direction: column;
		direction: rtl;
	}
	.shell > .side { width: 100%; flex: none; }
	.spine {
		grid-template-columns: 1fr;
		box-shadow: 0 8px 0 rgba(212, 180, 90, 0.35);
	}
	.spine-art { min-height: 160px; border-left: 0; border-bottom: 1px solid rgba(212, 180, 90, 0.35); }
	.spine-art a, .spine-art img { min-height: 160px; }
	.row { grid-template-columns: 40px 72px minmax(0, 1fr); }
}

@media (max-width: 560px) {
	.nav-btn { display: block; flex: 0 0 40px; }
	.tower-nav {
		display: none;
		flex-direction: row;
		flex-wrap: wrap;
		width: 100%;
		order: 5;
		margin-top: 4px;
		padding-top: 8px;
		border-top: 1px solid rgba(212, 180, 90, 0.25);
	}
	.nav-toggle:checked ~ .tower-nav { display: flex; }
	.row { grid-template-columns: 36px minmax(0, 1fr); }
	.row-art { display: none; }
	.spine h2 { font-size: 22px; }
}
