/**
 * Pulses UI Enhance - Custom styles for Newspaper theme
 * Complements the default #4c4084 purple accent palette.
 */

/* ---- Global typography & readability ---- */
body {
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	text-rendering: optimizeLegibility;
}

.td-post-content p,
.td-page-content p {
	line-height: 1.85;
	font-size: 17px;
	color: #2d2d2d;
}

/* ---- Header refinements ---- */
.td-header-wrap {
	box-shadow: 0 2px 20px rgba(76, 64, 132, 0.08);
}

.td-header-menu-wrap {
	transition: box-shadow 0.3s ease;
}

.sf-menu > li > a {
	transition: color 0.25s ease, opacity 0.25s ease;
	letter-spacing: 0.02em;
}

.sf-menu > li > a:hover {
	opacity: 0.85;
}

/* ---- Article cards & grid modules ---- */
.td_module_wrap {
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	border-radius: 6px;
	overflow: hidden;
}

.td_module_wrap:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 30px rgba(76, 64, 132, 0.12);
}

.td-module-thumb {
	overflow: hidden;
	border-radius: 6px 6px 0 0;
}

.td-module-thumb img {
	transition: transform 0.5s ease;
}

.td_module_wrap:hover .td-module-thumb img {
	transform: scale(1.04);
}

.entry-title a {
	transition: color 0.25s ease;
}

/* ---- Category labels ---- */
.td-post-category {
	border-radius: 3px;
	padding: 3px 10px;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	transition: background-color 0.25s ease;
}

/* ---- Block titles ---- */
.block-title,
.td-block-title-wrap .block-title {
	position: relative;
	padding-bottom: 12px;
}

.block-title > span,
.td-block-title-wrap .block-title > span {
	font-weight: 700;
	letter-spacing: 0.03em;
}

/* ---- Single post page ---- */
.td-post-header .entry-title {
	line-height: 1.25;
	letter-spacing: -0.01em;
}

.td-post-content img {
	border-radius: 8px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.td-post-content blockquote {
	border-left: 4px solid #4c4084;
	padding: 16px 24px;
	margin: 24px 0;
	background: rgba(76, 64, 132, 0.04);
	border-radius: 0 8px 8px 0;
	font-style: italic;
}

/* ---- Footer ---- */
.td-footer-wrap {
	border-top: 3px solid #4c4084;
}

.td-footer-wrap .block-title > span {
	color: #fff;
}

/* ---- Buttons ---- */
.td-read-more a,
.wpb_button,
.td_outlined_btn {
	border-radius: 4px;
	transition: all 0.25s ease;
}

.td-read-more a:hover {
	transform: translateX(4px);
}

/* ---- Search widget ---- */
.header-search-wrap .td-drop-down-search {
	border-radius: 8px;
	box-shadow: 0 8px 40px rgba(76, 64, 132, 0.15);
}

/* ---- Pagination ---- */
.page-nav .current {
	border-radius: 4px;
}

/* ---- Trending / sidebar widgets ---- */
.td-trending-now-title,
.widgettitle {
	font-weight: 700;
}

.widget {
	margin-bottom: 30px;
}

/* ---- Mobile improvements ---- */
@media (max-width: 767px) {
	.td-post-content p,
	.td-page-content p {
		font-size: 16px;
		line-height: 1.75;
	}

	.td_module_wrap:hover {
		transform: none;
		box-shadow: none;
	}

	.td-header-wrap {
		box-shadow: 0 1px 10px rgba(76, 64, 132, 0.06);
	}

	.entry-title {
		font-size: 22px !important;
	}
}

/* ---- Loading & scroll performance ---- */
.td-module-image {
	will-change: transform;
}

/* ---- Source link from news importer ---- */
.pni-source-link {
	margin-top: 30px;
	padding-top: 16px;
	border-top: 1px solid #eee;
	font-size: 14px;
	color: #888;
}

.pni-source-link a {
	color: #4c4084;
	text-decoration: none;
}

.pni-source-link a:hover {
	text-decoration: underline;
}

/* ---- Back to top smooth appearance ---- */
.td-scroll-up-visible {
	transition: opacity 0.3s ease, transform 0.3s ease;
}

/* ---- Featured grid overlay text readability ---- */
.td-big-grid-flex .td-module-meta-info {
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* ---- Focus states for accessibility ---- */
a:focus-visible,
button:focus-visible,
input:focus-visible {
	outline: 2px solid #4c4084;
	outline-offset: 2px;
}

/* ---- Reduce motion for users who prefer it ---- */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
