/**
 * Live Khagaria — Modern visual enhancements
 * Layered on top of main.css
 */

/* ==========================================================================
   Design tokens refresh
   ========================================================================== */

:root {
	--lk-primary: #dc2626;
	--lk-primary-dark: #b91c1c;
	--lk-primary-light: #fef2f2;
	--lk-accent: #f97316;
	--lk-gradient: linear-gradient(135deg, #dc2626 0%, #ea580c 100%);
	--lk-gradient-dark: linear-gradient(135deg, #1f2937 0%, #111827 100%);
	--lk-shadow-card: 0 4px 6px -1px rgba(0, 0, 0, 0.06), 0 2px 4px -2px rgba(0, 0, 0, 0.04);
	--lk-shadow-card-hover: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 8px 10px -6px rgba(220, 38, 38, 0.12);
	--lk-radius-xl: 16px;
	--lk-glass: rgba(255, 255, 255, 0.85);
}

/* ==========================================================================
   Page background & motion
   ========================================================================== */

body {
	background:
		radial-gradient(ellipse at 0% 0%, rgba(220, 38, 38, 0.04) 0%, transparent 50%),
		radial-gradient(ellipse at 100% 100%, rgba(249, 115, 22, 0.04) 0%, transparent 50%),
		#f8fafc;
}

/* Content visible immediately — no fade-in (protects LCP) */

/* ==========================================================================
   Header top bar
   ========================================================================== */

.lk-header-top {
	background: var(--lk-gradient-dark);
	color: rgba(255, 255, 255, 0.75);
	font-family: var(--lk-font-sans);
	font-size: 0.75rem;
	padding: 0.4rem 0;
	border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lk-header-top-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
}

.lk-header-top-right {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	margin-left: auto;
}

.lk-header-social {
	display: flex;
	align-items: center;
	gap: 0.35rem;
}

.lk-header-social-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	border-radius: 50%;
	color: rgba(255, 255, 255, 0.8);
	background: rgba(255, 255, 255, 0.08);
	border: 1px solid rgba(255, 255, 255, 0.12);
	transition: background 0.2s ease, color 0.2s ease;
}

.lk-header-social-link svg {
	width: 14px;
	height: 14px;
}

.lk-header-social-link:hover {
	color: #fff;
	background: var(--lk-primary);
}

.lk-live-pill {
	display: inline-flex;
	align-items: center;
	gap: 0.45rem;
	background: rgba(220, 38, 38, 0.2);
	border: 1px solid rgba(220, 38, 38, 0.4);
	color: #fecaca;
	padding: 0.2rem 0.65rem;
	border-radius: 20px;
	font-weight: 600;
	letter-spacing: 0.02em;
}

.lk-live-dot {
	width: 7px;
	height: 7px;
	background: #ef4444;
	border-radius: 50%;
	box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.6);
	animation: lk-live-pulse 2s infinite;
}

@keyframes lk-live-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
	50% { box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); }
}

.lk-header-date {
	color: rgba(255, 255, 255, 0.55);
}

/* ==========================================================================
   Header glass effect
   ========================================================================== */

.lk-header {
	background: #ffffff;
	backdrop-filter: none;
	-webkit-backdrop-filter: none;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

/* Old top bar removed from markup — keep rules inert if cached HTML */
.lk-header-top {
	display: none !important;
}

.lk-site-name {
	background: var(--lk-gradient);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
	font-size: 1.45rem;
	letter-spacing: -0.02em;
}

.lk-menu a {
	border-radius: 8px;
	font-weight: 500;
}

.lk-menu a:hover,
.lk-menu .current-menu-item > a {
	background: var(--lk-primary-light);
	color: var(--lk-primary);
}

.lk-search-form {
	border-radius: 999px;
	background: #fff;
	border: 1px solid #d1d5db;
	box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.lk-search-form:focus-within {
	border-color: var(--lk-primary);
	box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

.lk-search-field {
	padding: 0.65rem 1rem;
}

.lk-search-submit {
	border-radius: 999px;
	background: var(--lk-primary, #b91c1c);
}

/* ==========================================================================
   Breaking ticker — bold strip
   ========================================================================== */

.lk-breaking {
	background: var(--lk-gradient);
	box-shadow: 0 2px 8px rgba(220, 38, 38, 0.25);
}

.lk-breaking-label {
	background: rgba(0, 0, 0, 0.25);
	backdrop-filter: blur(4px);
	border-radius: 6px;
}

/* ==========================================================================
   Hero — magazine cover style
   ========================================================================== */

.lk-hero {
	border-radius: var(--lk-radius-xl);
	box-shadow: var(--lk-shadow-card-hover);
	margin-bottom: 2.5rem;
	border: 1px solid rgba(255, 255, 255, 0.1);
}

.lk-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	border-radius: inherit;
	box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
	pointer-events: none;
}

.lk-hero-overlay {
	background:
		linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.1) 100%),
		linear-gradient(135deg, rgba(220, 38, 38, 0.15) 0%, transparent 60%);
}

.lk-hero--no-image {
	background: var(--lk-gradient-dark);
	min-height: 320px;
}

.lk-hero--no-image .lk-hero-content {
	position: relative;
	padding: 2.5rem 2rem;
	min-height: 320px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
}

.lk-hero--no-image .lk-hero-image {
	display: none;
}

.lk-hero-featured-tag {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	background: var(--lk-gradient);
	color: #fff;
	font-family: var(--lk-font-sans);
	font-size: 0.7rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	padding: 0.35rem 0.75rem;
	border-radius: 6px;
	margin-bottom: 0.75rem;
	width: fit-content;
	box-shadow: 0 4px 12px rgba(220, 38, 38, 0.4);
}

.lk-hero-title {
	font-size: clamp(1.35rem, 3.5vw, 2.25rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	/* 1.25 clips Devanagari vowel marks; keep ≥1.4 */
	line-height: 1.4;
}

.lk-hero-link:hover .lk-hero-image img {
	transform: scale(1.04);
}

.lk-hero-image img {
	transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ==========================================================================
   Section headers — editorial style
   ========================================================================== */

.lk-section-header {
	display: flex;
	align-items: center;
	gap: 1rem;
	margin-bottom: 1.5rem;
}

.lk-section-header .lk-section-title {
	margin-bottom: 0;
	padding-bottom: 0;
	border-bottom: none;
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: -0.02em;
	position: relative;
	padding-left: 1.15rem;
}

.lk-section-header .lk-section-title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.15em;
	bottom: 0.15em;
	width: 4px;
	background: var(--lk-gradient);
	border-radius: 4px;
}

.lk-section-header-line {
	flex: 1;
	height: 2px;
	background: linear-gradient(90deg, var(--lk-border), transparent);
}

/* Section blocks — no entrance animation (CWV) */

/* ==========================================================================
   Cards — elevated modern
   ========================================================================== */

.lk-card {
	border: none;
	border-radius: var(--lk-radius-lg);
	box-shadow: var(--lk-shadow-card);
	background: #fff;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.lk-card:hover {
	box-shadow: var(--lk-shadow-card-hover);
	transform: translateY(-4px);
}

.lk-card-image {
	position: relative;
}

.lk-card-image::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.15), transparent 40%);
	opacity: 0;
	transition: opacity 0.3s ease;
	pointer-events: none;
}

.lk-card:hover .lk-card-image::after {
	opacity: 1;
}

.lk-card-image--placeholder {
	background:
		linear-gradient(135deg, #fef2f2 0%, #fff7ed 50%, #f1f5f9 100%);
	position: relative;
	overflow: hidden;
}

.lk-card-image--placeholder::before {
	content: "";
	position: absolute;
	inset: 0;
	background: repeating-linear-gradient(
		-45deg,
		transparent,
		transparent 8px,
		rgba(220, 38, 38, 0.03) 8px,
		rgba(220, 38, 38, 0.03) 16px
	);
}

.lk-card-image--placeholder span {
	position: relative;
	z-index: 1;
	font-weight: 600;
	color: var(--lk-primary);
	opacity: 0.5;
	font-size: 1rem;
}

.lk-badge {
	background: var(--lk-primary-light);
	border: none;
	font-weight: 700;
	border-radius: 6px;
	padding: 0.3rem 0.7rem;
	display: inline-flex;
	width: auto;
	max-width: max-content;
	align-self: flex-start;
}

.lk-card:hover .lk-card-title {
	color: var(--lk-primary);
}

/* ==========================================================================
   Stretched card links — whole card clickable, badge separate
   ========================================================================== */

.lk-card,
.lk-card-h,
.lk-featured-small,
.lk-hero {
	position: relative;
	cursor: pointer;
}

.lk-card-stretched-link {
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}

.lk-card-stretched-link:focus-visible {
	outline: 2px solid var(--lk-primary);
	outline-offset: 2px;
}

.lk-card .lk-badge,
.lk-card-h .lk-badge,
.lk-featured-small .lk-badge,
.lk-hero .lk-badge {
	position: relative;
	z-index: 2;
	display: inline-flex;
	width: auto;
	max-width: max-content;
	align-self: flex-start;
}

.lk-hero {
	position: relative;
}

.lk-hero-content {
	z-index: 1;
}

.lk-hero .lk-badge {
	margin-bottom: 0.65rem;
}

.lk-hero-stretched-link {
	border-radius: var(--lk-radius-xl);
}

.lk-card-h .lk-badge {
	margin-bottom: 0.55rem;
}

.lk-featured-small {
	border-radius: var(--lk-radius-lg);
	overflow: hidden;
	background: #fff;
	box-shadow: var(--lk-shadow-card);
}

.lk-featured-small .lk-featured-small-body h3 {
	transition: color 0.2s ease;
}

.lk-featured-small:has(.lk-card-stretched-link:hover) .lk-featured-small-body h3,
.lk-featured-small:has(.lk-card-stretched-link:focus-visible) .lk-featured-small-body h3 {
	color: var(--lk-primary);
}

.lk-card-title {
	transition: color 0.2s ease;
}

/* ==========================================================================
   Category blocks — premium panels
   ========================================================================== */

.lk-category-block {
	background: #fff;
	border: none;
	border-radius: var(--lk-radius-xl);
	box-shadow: var(--lk-shadow-card);
	padding: 1.75rem;
	position: relative;
	overflow: hidden;
}

.lk-category-block::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 4px;
	background: var(--lk-gradient);
}

.lk-category-block-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	flex-wrap: wrap;
	margin-bottom: 0.25rem;
}

.lk-category-block-header .lk-section-header {
	flex: 1;
	margin-bottom: 0;
	min-width: 0;
}

.lk-category-block-header .lk-view-all {
	flex-shrink: 0;
}

.lk-featured-small-link {
	border: none;
	box-shadow: var(--lk-shadow-card);
	border-radius: var(--lk-radius-lg);
	transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.lk-featured-small-link:hover {
	box-shadow: var(--lk-shadow-card-hover);
	transform: translateY(-2px);
}

.lk-category-block-list .lk-card-h {
	border: none;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
	border-radius: var(--lk-radius);
	transition: background 0.2s ease, transform 0.2s ease;
}

.lk-category-block-list .lk-card-h:hover {
	background: var(--lk-primary-light);
	transform: translateX(4px);
}

.lk-view-all {
	font-weight: 600;
	padding: 0.35rem 0.85rem;
	background: var(--lk-primary-light);
	border-radius: 20px;
	transition: background 0.2s ease, color 0.2s ease;
}

.lk-view-all:hover {
	background: var(--lk-primary);
	color: #fff;
}

/* ==========================================================================
   Sidebar widgets
   ========================================================================== */

.lk-widget,
.lk-sidebar .widget {
	border: none;
	box-shadow: var(--lk-shadow-card);
	border-radius: var(--lk-radius-lg);
}

.lk-widget-title,
.lk-sidebar .widget-title {
	border-bottom: none;
	position: relative;
	padding-left: 1.15rem;
	margin-left: 0;
}

.lk-widget-title::before,
.lk-sidebar .widget-title::before {
	content: "";
	position: absolute;
	left: 0;
	top: 0.2em;
	bottom: 0.2em;
	width: 3px;
	background: var(--lk-gradient);
	border-radius: 3px;
}

.lk-sidebar-news .lk-widget-title {
	padding-left: 1.15rem;
}

.lk-sidebar-news .lk-widget-title::before {
	left: 0;
}

/* ==========================================================================
   Article page
   ========================================================================== */

.lk-article-title {
	font-weight: 800;
	letter-spacing: -0.02em;
}

.lk-article-content {
	background: #fff;
	padding: 1.5rem 2rem;
	border-radius: var(--lk-radius-xl);
	box-shadow: var(--lk-shadow-card);
	margin-top: 0.5rem;
}

.lk-article-featured {
	border-radius: var(--lk-radius-xl);
	box-shadow: var(--lk-shadow-card);
}

.lk-share-btn {
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
	border-radius: 10px;
}

/* ==========================================================================
   Footer polish
   ========================================================================== */

.lk-footer {
	background: linear-gradient(180deg, #0f172a 0%, #020617 100%);
}

.lk-footer-accent {
	height: 5px;
	background: var(--lk-gradient);
}

.lk-footer-logo {
	color: #fff;
	background: none;
	-webkit-background-clip: unset;
	-webkit-text-fill-color: unset;
	background-clip: unset;
}

/* ==========================================================================
   404 & buttons
   ========================================================================== */

.lk-btn--primary {
	background: var(--lk-gradient);
	border: none;
	box-shadow: 0 4px 12px rgba(220, 38, 38, 0.3);
}

.lk-btn--primary:hover {
	box-shadow: 0 6px 16px rgba(220, 38, 38, 0.4);
	transform: translateY(-1px);
}

.lk-404-recent {
	box-shadow: var(--lk-shadow-card);
	border: none;
}

/* ==========================================================================
   Progress bar
   ========================================================================== */

.lk-progress {
	height: 3px;
	background: var(--lk-gradient);
	box-shadow: 0 0 8px rgba(220, 38, 38, 0.5);
}

/* ==========================================================================
   Responsive tweaks
   ========================================================================== */

@media (max-width: 768px) {
	.lk-header-top-inner {
		font-size: 0.7rem;
	}

	.lk-header-top-right {
		gap: 0.5rem;
	}

	.lk-header-date {
		display: none;
	}

	.lk-hero {
		margin-bottom: 1.5rem;
	}

	.lk-hero-content {
		padding: 1.25rem 1.25rem 1.5rem;
	}

	.lk-article-content {
		padding: 1.25rem 1rem;
		border-radius: var(--lk-radius-lg);
	}
}
