/* HitMag extras: view counter badge + share buttons */

/* ---------- views badge ---------- */
.post-views {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin: 6px 0 0;
	font-size: 14px;
	color: #666;
}
.post-views i {
	font-size: 13px;
	opacity: .8;
}
.entry-header .post-views + .entry-meta {
	margin-top: 4px;
}

/* ---------- share bar ---------- */
.hm-share {
	margin: 18px 0;
}
.hm-share__title {
	display: block;
	margin-bottom: 10px;
	font-size: 15px;
	font-weight: 700;
	color: #222;
}
.hm-share__list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}
.hm-share__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	padding: 0 14px;
	border: 0;
	border-radius: 6px;
	background: #555;
	color: #fff !important;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
	text-decoration: none !important;
	cursor: pointer;
	transition: transform .12s ease, filter .12s ease;
}
.hm-share__btn:hover,
.hm-share__btn:focus {
	filter: brightness(1.1);
	transform: translateY(-1px);
	color: #fff;
}
.hm-share__btn[hidden] {
	display: none;
}
.hm-share__btn i {
	font-size: 16px;
	line-height: 1;
}
.hm-share__imo {
	font-size: 15px;
	font-weight: 800;
	letter-spacing: -.5px;
	line-height: 1;
	text-transform: lowercase;
}

/* brand colours */
.hm-share__btn--facebook  { background: #1877f2; }
.hm-share__btn--messenger { background: #0084ff; }
.hm-share__btn--whatsapp  { background: #25d366; }
.hm-share__btn--imo       { background: #1ba8e0; }
.hm-share__btn--x         { background: #000; }
.hm-share__btn--telegram  { background: #229ed9; }
.hm-share__btn--viber     { background: #7360f2; }
.hm-share__btn--linkedin  { background: #0a66c2; }
.hm-share__btn--pinterest { background: #e60023; }
.hm-share__btn--reddit    { background: #ff4500; }
.hm-share__btn--line      { background: #06c755; }
.hm-share__btn--email     { background: #6b7280; }
.hm-share__btn--copy      { background: #374151; }
.hm-share__btn--print     { background: #4b5563; }
.hm-share__btn--native    { background: #111827; }
.hm-share__btn--download  { background: #0f766e; }

/* compact bar under the headline */
.hm-share--top {
	margin: 12px 0 8px;
}
.hm-share--top .hm-share__list {
	gap: 6px;
}
.hm-share--top .hm-share__btn {
	width: 38px;
	min-height: 38px;
	padding: 0;
	border-radius: 50%;
}
.hm-share--top .hm-share__label {
	display: none;
}

/* bottom bar */
.hm-share--bottom {
	padding: 14px 0 4px;
	border-top: 1px solid #e5e5e5;
}

@media (max-width: 560px) {
	.hm-share--bottom .hm-share__btn {
		width: 44px;
		min-height: 44px;
		padding: 0;
	}
	.hm-share--bottom .hm-share__label {
		display: none;
	}
}

/* ---------- toast ---------- */
.hm-toast {
	position: fixed;
	left: 50%;
	bottom: 28px;
	z-index: 99999;
	max-width: 90%;
	padding: 11px 18px;
	border-radius: 8px;
	background: rgba(17, 24, 39, .94);
	color: #fff;
	font-size: 14px;
	text-align: center;
	transform: translate(-50%, 20px);
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s ease, transform .2s ease;
}
.hm-toast.is-visible {
	opacity: 1;
	transform: translate(-50%, 0);
}

/* ---------- footer legal links ---------- */
.hm-footer-legal {
	padding: 10px 0;
	border-bottom: 1px solid rgba(255, 255, 255, .12);
}
.hm-footer-legal__list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 4px 18px;
	margin: 0;
	padding: 0;
	list-style: none;
	font-size: 13px;
}
.hm-footer-legal__list a {
	opacity: .85;
	text-decoration: none;
}
.hm-footer-legal__list a:hover {
	opacity: 1;
	text-decoration: underline;
}

@media print {
	.hm-share,
	.hm-toast {
		display: none !important;
	}
}
