/**
 * Footer Widgets Styles
 *
 * Styles for the NewsFactory footer widget area.
 *
 * @package Blanco_Lite
 */

/* ===============================================
   Footer Widgets Container
   =============================================== */

.nf-footer-widgets {
	position: relative;
	padding: 50px 0;
	background-color: var(--nf-surface-primary);
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.nf-footer-widgets__overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.85);
	pointer-events: none;
}

.nf-footer-widgets .container {
	position: relative;
	z-index: 1;
}

/* ===============================================
   Grid Layout
   =============================================== */

.nf-footer-widgets__grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 40px;
}

/* ===============================================
   Widget Base
   =============================================== */

.nf-footer-widget {
	/* Individual widget column */
}

.nf-footer-widget__header {
	margin-bottom: 20px;
}

.nf-footer-widget__title {
	display: inline-block;
	padding: 10px 16px;
	background: var(--nf-accent-primary);
	color: var(--nf-text-primary);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.nf-footer-widget__content {
	/* Widget content area */
}

.nf-footer-widget__text {
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
	color: var(--nf-text-secondary);
}

/* ===============================================
   Recent Posts Widget
   =============================================== */

.nf-footer-posts {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nf-footer-posts__item {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 0;
	border-bottom: 1px solid var(--nf-border-primary);
}

.nf-footer-posts__item:first-child {
	padding-top: 0;
}

.nf-footer-posts__item:last-child {
	border-bottom: none;
	padding-bottom: 0;
}

.nf-footer-posts__thumb {
	flex-shrink: 0;
	width: 45px;
	height: 45px;
	border-radius: 4px;
	background-size: cover;
	background-position: center;
	background-color: var(--nf-surface-elevated);
}

.nf-footer-posts__thumb--placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--nf-text-muted);
	font-size: 16px;
}

.nf-footer-posts__link {
	flex: 1;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
	color: var(--nf-text-primary);
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.2s ease;
}

.nf-footer-posts__link:hover {
	color: var(--nf-accent-primary);
}

/* ===============================================
   Categories Widget
   =============================================== */

.nf-footer-cats {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.nf-footer-cats__item {
	display: inline-block;
	padding: 6px 14px;
	color: var(--nf-text-primary);
	font-size: 12px;
	font-weight: 500;
	text-decoration: none;
	border-radius: 3px;
	transition: all 0.2s ease;
}

.nf-footer-cats__item:hover {
	filter: brightness(1.15);
	transform: translateY(-1px);
}

/* ===============================================
   Search Widget
   =============================================== */

.nf-footer-search {
	margin-top: 25px;
}

.nf-footer-search__form {
	display: flex;
	gap: 0;
}

.nf-footer-search__input {
	flex: 1;
	padding: 12px 16px;
	background: var(--nf-surface-elevated);
	border: none;
	color: var(--nf-text-primary);
	font-size: 14px;
	border-radius: 3px 0 0 3px;
	outline: none;
}

.nf-footer-search__input::placeholder {
	color: var(--nf-text-muted);
}

.nf-footer-search__input:focus {
	background: var(--nf-surface-secondary);
}

.nf-footer-search__btn {
	padding: 12px 20px;
	background: var(--nf-accent-primary);
	border: none;
	color: var(--nf-text-primary);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.04em;
	cursor: pointer;
	border-radius: 0 3px 3px 0;
	transition: all 0.2s ease;
}

.nf-footer-search__btn:hover {
	filter: brightness(1.1);
}

/* ===============================================
   Responsive
   =============================================== */

@media (max-width: 992px) {
	.nf-footer-widgets__grid {
		grid-template-columns: 1fr 1fr;
		gap: 30px;
	}
	
	.nf-footer-widget--cats-search {
		grid-column: span 2;
	}
	
	.nf-footer-cats {
		max-width: 50%;
	}
}

@media (max-width: 768px) {
	.nf-footer-widgets {
		padding: 40px 0;
	}
	
	.nf-footer-widgets__grid {
		grid-template-columns: 1fr;
		gap: 35px;
	}
	
	.nf-footer-widget--cats-search {
		grid-column: auto;
	}
	
	.nf-footer-cats {
		max-width: 100%;
	}
}
