/*
Theme Name: GeneratePress Child - Haryana Presets
Template: generatepress
Version: 1.0.0
*/

/* ==========================================================================
   Haryana Presets — engagement-focused styling on top of GeneratePress.
   Goal: card-based post grid, stronger visual hierarchy, hover motion,
   sticky category chips, better typography — to increase time-on-site.
   ========================================================================== */

:root {
	--hp-accent: #ff6b35;
	--hp-accent-dark: #e0551f;
	--hp-ink: #1a1a2e;
	--hp-muted: #6b6b80;
	--hp-card-bg: #ffffff;
	--hp-card-shadow: 0 2px 10px rgba(26, 26, 46, 0.08);
	--hp-card-shadow-hover: 0 16px 32px rgba(26, 26, 46, 0.16);
	--hp-radius: 14px;
}

body {
	background: #f7f6f9;
}

/* ---- Site header / logo area ---- */
.site-header {
	box-shadow: 0 1px 0 rgba(26, 26, 46, 0.06);
}

.main-navigation .main-nav ul li a {
	font-weight: 600;
	letter-spacing: 0.2px;
}

.main-navigation .main-nav ul li a:hover {
	color: var(--hp-accent);
}

/* ---- Post grid: turn the default stacked list into cards ---- */
.site-content .content-area,
#content .inside-article {
	background: transparent;
}

.posts-nav-links,
.paging-navigation {
	margin-top: 32px;
}

/* Container for the loop becomes a responsive grid */
.blog #main .inside-article,
.archive #main .inside-article,
.home #main .inside-article {
	background: var(--hp-card-bg);
	border-radius: var(--hp-radius);
	box-shadow: var(--hp-card-shadow);
	padding: 0 0 22px;
	margin-bottom: 28px;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	border: 1px solid rgba(26, 26, 46, 0.05);
}

.blog #main .inside-article:hover,
.archive #main .inside-article:hover,
.home #main .inside-article:hover {
	transform: translateY(-4px);
	box-shadow: var(--hp-card-shadow-hover);
}

.blog #main article .featured-image,
.archive #main article .featured-image,
.home #main article .featured-image {
	margin-bottom: 18px;
	border-radius: 0;
	overflow: hidden;
	position: relative;
}

.blog #main article .featured-image img,
.archive #main article .featured-image img,
.home #main article .featured-image img {
	transition: transform 0.4s ease;
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 9;
	object-fit: cover;
}

.blog #main article:hover .featured-image img,
.archive #main article:hover .featured-image img,
.home #main article:hover .featured-image img {
	transform: scale(1.05);
}

.blog #main article .entry-header,
.archive #main article .entry-header,
.home #main article .entry-header {
	padding: 0 22px;
}

.entry-title {
	font-size: 1.4rem;
	line-height: 1.35;
	font-weight: 800;
	color: var(--hp-ink);
	letter-spacing: -0.2px;
}

.entry-title a {
	color: inherit;
}

.entry-title a:hover {
	color: var(--hp-accent);
}

.blog #main article .entry-summary,
.archive #main article .entry-summary,
.home #main article .entry-summary {
	padding: 0 22px;
	color: var(--hp-muted);
	font-size: 0.98rem;
	line-height: 1.65;
}

/* ---- Meta row: date / author / category chips ---- */
.entry-meta {
	padding: 0 22px;
	font-size: 0.82rem;
	color: var(--hp-muted);
	display: flex;
	flex-wrap: wrap;
	gap: 6px 10px;
	align-items: center;
	margin-bottom: 10px;
}

.entry-meta a {
	color: var(--hp-muted);
}

.cat-links a,
.entry-meta .cat-links a {
	display: inline-block;
	background: rgba(255, 107, 53, 0.1);
	color: var(--hp-accent-dark) !important;
	padding: 3px 12px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.75rem;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	transition: background 0.2s ease, color 0.2s ease;
}

.cat-links a:hover {
	background: var(--hp-accent);
	color: #fff !important;
}

/* ---- Read more CTA ---- */
.blog #main article footer,
.archive #main article footer,
.home #main article footer {
	padding: 0 22px;
	margin-top: 14px;
}

a.read-more-button,
.entry-content .more-link {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	background: var(--hp-accent);
	color: #fff !important;
	padding: 10px 20px;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.88rem;
	text-decoration: none;
	transition: background 0.2s ease, transform 0.2s ease;
}

a.read-more-button:hover,
.entry-content .more-link:hover {
	background: var(--hp-accent-dark);
	transform: translateX(2px);
}

/* ---- Single post: readability + engagement ---- */
.single .inside-article {
	background: var(--hp-card-bg);
	border-radius: var(--hp-radius);
	box-shadow: var(--hp-card-shadow);
	padding: 32px clamp(20px, 5vw, 48px);
}

.single .entry-title {
	font-size: clamp(1.6rem, 4vw, 2.3rem);
	margin-bottom: 14px;
}

.single .entry-content {
	font-size: 1.05rem;
	line-height: 1.8;
	color: #2a2a3a;
}

.single .entry-content h2 {
	margin-top: 2.2em;
	padding-top: 0.2em;
	border-top: 3px solid rgba(255, 107, 53, 0.15);
	font-size: 1.5rem;
}

.single .entry-content h3 {
	font-size: 1.2rem;
	color: var(--hp-accent-dark);
}

.single .entry-content img {
	border-radius: 10px;
	box-shadow: var(--hp-card-shadow);
}

.single .entry-content a:not(.read-more-button) {
	color: var(--hp-accent-dark);
	text-decoration underline;
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

/* ---- Sticky "keep reading" progress bar ---- */
#hp-progress-bar {
	position: fixed;
	top: 0;
	left: 0;
	height: 3px;
	width: 0%;
	background: linear-gradient(90deg, var(--hp-accent), #ffb997);
	z-index: 9999;
	transition: width 0.1s ease-out;
}

/* ---- Related posts block ---- */
.hp-related {
	margin-top: 40px;
	padding-top: 28px;
	border-top: 1px solid rgba(26, 26, 46, 0.08);
}

.hp-related h3 {
	font-size: 1.1rem;
	font-weight: 800;
	margin-bottom: 16px;
	color: var(--hp-ink);
}

.hp-related-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 16px;
}

.hp-related-card {
	display: block;
	border-radius: 10px;
	overflow: hidden;
	background: #faf9fb;
	box-shadow: 0 1px 4px rgba(26, 26, 46, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	text-decoration: none;
}

.hp-related-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 22px rgba(26, 26, 46, 0.14);
}

.hp-related-card img {
	width: 100%;
	aspect-ratio: 16/9;
	object-fit: cover;
	display: block;
}

.hp-related-card span {
	display: block;
	padding: 10px 12px;
	font-size: 0.85rem;
	font-weight: 700;
	color: var(--hp-ink);
	line-height: 1.4;
}

/* ---- Responsive tweaks ---- */
@media (max-width: 768px) {
	.single .inside-article {
		padding: 22px 18px;
	}
	.entry-title {
		font-size: 1.2rem;
	}
}
