/* Magazine listing — uses theme font (iranyekan/bon) via body */
.hc-mag-page-wrap {
	margin-top: 100px;
}
.hc-mag * { box-sizing: border-box; }
.hc-mag {
	--hc-mag-primary: #f44336;
	--hc-mag-border: #e2e8f0;
	--hc-mag-slate: #1e293b;
	--hc-mag-muted: #64748b;
	width: 100%;
	max-width: 100%;
	padding: 1.5rem 0 3rem;
	color: var(--hc-mag-slate);
	font-family: var(--hc-theme-font, var(--font-iranyekan, inherit));
}
.hc-mag__container {
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 1rem;
	display: grid;
	gap: 1.75rem;
}
.hc-mag__featured {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}
@media (min-width: 1024px) {
	.hc-mag__featured { grid-template-columns: 2fr 1fr; }
}
.hc-mag__hero {
	position: relative;
	min-height: 360px;
	border: 1px solid var(--hc-mag-border);
	border-radius: 8px;
	overflow: hidden;
	background: #0f172a;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}
@media (min-width: 640px) {
	.hc-mag__hero { min-height: 420px; }
}
.hc-mag__hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .55;
	transition: transform .5s ease;
}
.hc-mag__hero:hover .hc-mag__hero-img { transform: scale(1.04); }
.hc-mag__hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, #020617 10%, rgba(15,23,42,.55) 55%, transparent);
}
.hc-mag__hero-body {
	position: relative;
	z-index: 1;
	padding: 1.5rem;
	display: grid;
	gap: .75rem;
}
@media (min-width: 640px) {
	.hc-mag__hero-body { padding: 2rem; }
}
.hc-mag__hero-meta {
	display: flex;
	align-items: center;
	gap: .6rem;
	flex-wrap: wrap;
}
.hc-mag__badge {
	background: var(--hc-mag-primary);
	color: #fff;
	font-size: .7rem;
	font-weight: 800;
	padding: .2rem .65rem;
	border-radius: 4px;
}
.hc-mag__muted { color: #cbd5e1; font-size: .75rem; }
.hc-mag__hero-title {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 900;
	line-height: 1.55;
}
@media (min-width: 640px) {
	.hc-mag__hero-title { font-size: 1.5rem; }
}
.hc-mag__hero-title a { color: #fff; text-decoration: none; }
.hc-mag__hero-title a:hover { color: #fca5a5; }
.hc-mag__hero-excerpt {
	margin: 0;
	color: #cbd5e1;
	font-size: .8rem;
	line-height: 1.8;
	max-width: 40rem;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.hc-mag__hero-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	padding-top: 1rem;
	border-top: 1px solid rgba(51,65,85,.7);
	font-size: .75rem;
	color: #cbd5e1;
}
.hc-mag__author-name { color: #fff; font-weight: 800; }
.hc-mag__btn {
	display: inline-flex;
	align-items: center;
	gap: .45rem;
	background: var(--hc-mag-primary);
	color: #fff;
	border: 0;
	border-radius: 6px;
	padding: .55rem 1rem;
	font: inherit;
	font-size: .75rem;
	font-weight: 800;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s ease;
}
.hc-mag__btn:hover { background: #e02e21; color: #fff; }
.hc-mag__btn--dark {
	width: 100%;
	justify-content: center;
	background: #0f172a;
}
.hc-mag__btn--dark:hover { background: #1e293b; }

.hc-mag__side {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}
.hc-mag__side-card {
	position: relative;
	height: 198px;
	border: 1px solid var(--hc-mag-border);
	border-radius: 8px;
	overflow: hidden;
	background: #0f172a;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}
.hc-mag__side-card img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: .55;
	transition: transform .5s ease;
}
.hc-mag__side-card:hover img { transform: scale(1.04); }
.hc-mag__side-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, #020617, rgba(15,23,42,.45), transparent);
}
.hc-mag__side-body {
	position: relative;
	z-index: 1;
	padding: 1.15rem;
	display: grid;
	gap: .4rem;
}
.hc-mag__side-cat {
	color: #fca5a5;
	font-size: .7rem;
	font-weight: 800;
}
.hc-mag__side-body h3 {
	margin: 0;
	font-size: .85rem;
	font-weight: 800;
	line-height: 1.55;
}
.hc-mag__side-body h3 a { color: #fff; text-decoration: none; }
.hc-mag__side-body h3 a:hover { color: #fca5a5; }
.hc-mag__side-foot {
	font-size: .7rem;
	color: #cbd5e1;
}

.hc-mag__toolbar {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	background: #fff;
	border: 1px solid var(--hc-mag-border);
	border-radius: 8px;
	padding: 1rem;
}
@media (min-width: 640px) {
	.hc-mag__toolbar {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}
.hc-mag__sorts {
	display: flex;
	gap: .45rem;
	overflow-x: auto;
	scrollbar-width: none;
}
.hc-mag__sorts::-webkit-scrollbar { display: none; }
.hc-mag__sort {
	flex-shrink: 0;
	padding: .5rem .85rem;
	border: 1px solid var(--hc-mag-border);
	border-radius: 6px;
	background: #fff;
	color: #475569;
	font-size: .75rem;
	font-weight: 600;
	text-decoration: none;
}
.hc-mag__sort.is-active {
	background: var(--hc-mag-primary);
	border-color: var(--hc-mag-primary);
	color: #fff;
	font-weight: 800;
}
.hc-mag__toolbar-end {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	font-size: .75rem;
	color: var(--hc-mag-muted);
}
.hc-mag__view-switch {
	display: flex;
	border: 1px solid var(--hc-mag-border);
	background: #f8fafc;
	border-radius: 6px;
	padding: 2px;
}
.hc-mag__view-switch button {
	width: 2rem;
	height: 2rem;
	border: 0;
	background: transparent;
	color: #64748b;
	border-radius: 4px;
	cursor: pointer;
}
.hc-mag__view-switch button.is-active {
	background: #fff;
	color: var(--hc-mag-primary);
	border: 1px solid var(--hc-mag-border);
	box-shadow: 0 1px 2px rgba(15,23,42,.06);
}

.hc-mag__layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.75rem;
}
@media (min-width: 1024px) {
	.hc-mag__layout { grid-template-columns: 3fr 1fr; align-items: start; }
}
.hc-mag__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.25rem;
}
@media (min-width: 768px) {
	.hc-mag__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
	.hc-mag__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.hc-mag__grid.is-list {
	grid-template-columns: 1fr;
}
.hc-mag__grid.is-list .hc-mag__card {
	flex-direction: row;
}
.hc-mag__grid.is-list .hc-mag__card-media {
	width: 220px;
	flex-shrink: 0;
	aspect-ratio: auto;
	min-height: 140px;
}
@media (max-width: 639px) {
	.hc-mag__grid.is-list .hc-mag__card { flex-direction: column; }
	.hc-mag__grid.is-list .hc-mag__card-media {
		width: 100%;
		aspect-ratio: 16 / 9;
	}
}

.hc-mag__card {
	background: #fff;
	border: 1px solid var(--hc-mag-border);
	border-radius: 8px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow .2s ease;
}
.hc-mag__card:hover { box-shadow: 0 8px 24px rgba(15,23,42,.08); }
.hc-mag__card-media {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #f1f5f9;
	overflow: hidden;
}
.hc-mag__card-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .3s ease;
}
.hc-mag__card:hover .hc-mag__card-media img { transform: scale(1.04); }
.hc-mag__card-badge {
	position: absolute;
	top: .75rem;
	right: .75rem;
	background: rgba(255,255,255,.96);
	border: 1px solid var(--hc-mag-border);
	color: var(--hc-mag-primary);
	font-size: .65rem;
	font-weight: 800;
	padding: .2rem .55rem;
	border-radius: 4px;
}
.hc-mag__card-body {
	padding: 1.15rem;
	display: flex;
	flex-direction: column;
	gap: .65rem;
	flex: 1;
}
.hc-mag__card-meta {
	display: flex;
	align-items: center;
	gap: .4rem;
	font-size: .7rem;
	color: #94a3b8;
}
.hc-mag__card-title {
	margin: 0;
	font-size: .875rem;
	font-weight: 800;
	line-height: 1.6;
}
.hc-mag__card-title a {
	color: #0f172a;
	text-decoration: none;
}
.hc-mag__card-title a:hover { color: var(--hc-mag-primary); }
.hc-mag__card-excerpt {
	margin: 0;
	font-size: .75rem;
	color: var(--hc-mag-muted);
	line-height: 1.75;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.hc-mag__card-foot {
	margin-top: auto;
	padding-top: .75rem;
	border-top: 1px solid #f1f5f9;
	display: flex;
	justify-content: space-between;
	gap: .5rem;
	font-size: .75rem;
	color: #475569;
	font-weight: 600;
}
.hc-mag__views { color: #94a3b8; font-weight: 500; }

.hc-mag__empty {
	text-align: center;
	padding: 3rem 1rem;
	background: #fff;
	border: 1px solid var(--hc-mag-border);
	border-radius: 8px;
	color: var(--hc-mag-muted);
}
.hc-mag__empty i { font-size: 1.5rem; margin-bottom: .5rem; display: block; }

.hc-mag__pager { margin-top: 1.5rem; margin-bottom: 50px; }
.hc-mag__pager .page-numbers {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem;
	justify-content: center;
	list-style: none;
	margin: 0;
	padding: 0;
}
.hc-mag__pager .page-numbers a,
.hc-mag__pager .page-numbers button,
.hc-mag__pager .page-numbers span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2rem;
	height: 2rem;
	padding: 0 .55rem;
	border: 1px solid var(--hc-mag-border);
	border-radius: 6px;
	background: #fff;
	color: #334155;
	font: inherit;
	font-size: .75rem;
	text-decoration: none;
	cursor: pointer;
}
.hc-mag__pager .page-numbers button:hover {
	border-color: var(--hc-mag-primary);
	color: var(--hc-mag-primary);
}
.hc-mag__pager .page-numbers .current {
	background: var(--hc-mag-primary);
	border-color: var(--hc-mag-primary);
	color: #fff;
	font-weight: 800;
	cursor: default;
}
.hc-mag__pager .page-numbers .dots {
	border: 0;
	background: transparent;
	cursor: default;
}
.hc-mag__main.is-loading {
	opacity: .55;
	pointer-events: none;
	transition: opacity .2s ease;
}

.hc-mag__aside {
	display: grid;
	gap: 1.25rem;
}
.hc-mag__widget {
	background: #fff;
	border: 1px solid var(--hc-mag-border);
	border-radius: 8px;
	padding: 1.15rem;
}
.hc-mag__widget p {
	margin: 0 0 1rem;
	font-size: .75rem;
	color: var(--hc-mag-muted);
	line-height: 1.8;
}
.hc-mag__widget-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	padding-bottom: .75rem;
	border-bottom: 1px solid #f1f5f9;
	margin-bottom: 1rem;
}
.hc-mag__widget-head h3,
.hc-mag__widget-title {
	margin: 0;
	font-size: .875rem;
	font-weight: 800;
	color: #0f172a;
	display: flex;
	align-items: center;
	gap: .45rem;
}
.hc-mag__widget-title {
	padding-bottom: .65rem;
	border-bottom: 1px solid #f1f5f9;
	margin-bottom: .75rem;
}
.hc-mag__widget-head i,
.hc-mag__widget-title i { color: var(--hc-mag-primary); }
.hc-mag__chip {
	font-size: .65rem;
	background: rgba(244,67,54,.1);
	color: var(--hc-mag-primary);
	font-weight: 800;
	padding: .15rem .45rem;
	border-radius: 4px;
}
.hc-mag__popular {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	gap: 1rem;
}
.hc-mag__popular a {
	display: flex;
	gap: .75rem;
	text-decoration: none;
	align-items: flex-start;
}
.hc-mag__popular-num {
	font-size: 1.15rem;
	font-weight: 900;
	color: #cbd5e1;
	line-height: 1;
	min-width: 1.5rem;
}
.hc-mag__popular a:hover .hc-mag__popular-num,
.hc-mag__popular a:hover .hc-mag__popular-title { color: var(--hc-mag-primary); }
.hc-mag__popular-body { display: grid; gap: .2rem; min-width: 0; }
.hc-mag__popular-title {
	font-size: .75rem;
	font-weight: 800;
	color: #1e293b;
	line-height: 1.55;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.hc-mag__popular-meta { font-size: .65rem; color: #94a3b8; }

.hc-mag__widget--dark {
	background: #0f172a;
	border-color: #1e293b;
	color: #fff;
}
.hc-mag__widget--dark h3 {
	margin: 0 0 .5rem;
	font-size: 1rem;
	font-weight: 800;
}
.hc-mag__widget--dark p { color: #cbd5e1; }
.hc-mag__widget-icon {
	width: 2rem;
	height: 2rem;
	display: flex;
	align-items: center;
	justify-content: center;
	background: rgba(244,67,54,.18);
	color: var(--hc-mag-primary);
	border: 1px solid rgba(244,67,54,.3);
	border-radius: 6px;
	margin-bottom: .75rem;
}
.hc-mag__newsletter {
	display: grid;
	gap: .5rem;
}
.hc-mag__newsletter input {
	width: 100%;
	border: 1px solid #334155;
	background: #1e293b;
	color: #fff;
	border-radius: 6px;
	padding: .7rem .85rem;
	font: inherit;
	font-size: .75rem;
}
.hc-mag__newsletter input:focus {
	outline: none;
	border-color: var(--hc-mag-primary);
}
.hc-mag__newsletter button {
	width: 100%;
	border: 0;
	background: var(--hc-mag-primary);
	color: #fff;
	border-radius: 6px;
	padding: .7rem;
	font: inherit;
	font-size: .75rem;
	font-weight: 800;
	cursor: pointer;
}
.hc-mag__newsletter button:hover { background: #e02e21; }

.hc-mag-toast {
	position: fixed;
	bottom: 5.5rem;
	left: 50%;
	transform: translateX(-50%);
	z-index: 10060;
	background: #0f172a;
	color: #fff;
	border: 1px solid #334155;
	border-radius: 6px;
	padding: .7rem 1.1rem;
	font-size: .75rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	gap: .5rem;
	box-shadow: 0 10px 30px rgba(15,23,42,.25);
}
.hc-mag-toast i { color: #34d399; }
.hc-mag-toast[hidden] { display: none !important; }

.sr-only {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0,0,0,0);
	white-space: nowrap;
	border: 0;
}

body.hc-has-mobile-bottom-nav .hc-mag-toast {
	bottom: calc(88px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 767px) {
	.hc-mag {
		overflow-x: clip;
	}
}
