/**
 * Hero Section Components Styles
 *
 * Styles for hero-cards (middle 25%) and hero-tabs (right 25%).
 * Uses CSS variables from customizer-colors.php
 *
 * @package Blanco_Lite
 */

/* ===============================================
   Hero Cards (Middle Column - 2 Stacked)
   =============================================== */

.nf-hero-cards {
	display: flex;
	flex-direction: column;
	gap: 20px;
	height: 100%;
}

.nf-hero-card {
	flex: 1;
	position: relative;
	min-height: 230px;
	border-radius: 6px;
	overflow: hidden;
	background: var(--nf-surface-secondary);
}

.nf-hero-card__link {
	display: block;
	position: absolute;
	inset: 0;
	text-decoration: none !important;
}

.nf-hero-card__image {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	display: block;
	transition: transform 0.4s ease;
}

.nf-hero-card__link:hover .nf-hero-card__image {
	transform: scale(1.05);
}

.nf-hero-card__image--placeholder {
	background: linear-gradient(135deg, var(--nf-surface-secondary) 0%, var(--nf-surface-elevated) 100%);
}

.nf-hero-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.85) 0%,
		rgba(0, 0, 0, 0.3) 50%,
		rgba(0, 0, 0, 0) 100%
	);
	pointer-events: none;
}

/* Video Icon */
.nf-hero-card__video-icon {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 3;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: rgba(0, 0, 0, 0.6);
	border-radius: 50%;
	color: var(--nf-text-primary);
}

/* Content */
.nf-hero-card__content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 16px;
	z-index: 2;
}

/* Category Badges */
.nf-hero-card__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.nf-hero-card__cat-badge {
	display: inline-block;
	padding: 4px 10px;
	background: var(--nf-accent-primary);
	color: var(--nf-text-primary);
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border-radius: 2px;
}

/* Title */
.nf-hero-card__title {
	margin: 0 0 8px 0;
	font-size: 14px;
	font-weight: 700;
	line-height: 1.3;
	color: var(--nf-text-primary);
}

/* Meta (Writer + Date) */
.nf-hero-card__meta {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
}

/* Writer Badge */
.nf-hero-card__writer {
	display: inline-block;
	padding: 3px 8px;
	background: var(--writer-color, var(--nf-accent-primary));
	color: var(--nf-text-primary);
	font-size: 11px;
	font-weight: 600;
	border-radius: 3px;
	white-space: nowrap;
}

/* Date */
.nf-hero-card__date {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 12px;
	color: var(--nf-text-muted);
}

.nf-hero-card__date svg {
	opacity: 0.7;
}

/* ===============================================
   Hero Tabs (Right Column - Latest/Popular)
   =============================================== */

.nf-hero-tabs {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--nf-surface-secondary);
	border-radius: 6px;
	overflow: hidden;
}

/* Tab Header */
.nf-hero-tabs__header {
	display: flex;
	border-bottom: 1px solid var(--nf-border-primary);
}

.nf-hero-tabs__tab {
	flex: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 16px;
	background: transparent;
	border: none;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: var(--nf-text-muted);
	cursor: pointer;
	transition: color 0.2s ease, background 0.2s ease;
}

.nf-hero-tabs__tab:hover {
	color: var(--nf-text-primary);
	background: rgba(255, 255, 255, 0.03);
}

.nf-hero-tabs__tab.is-active {
	color: var(--nf-text-primary);
	background: var(--nf-accent-primary);
}

.nf-hero-tabs__tab.is-active svg {
	fill: currentColor;
}

/* Tab Panels */
.nf-hero-tabs__panels {
	flex: 1;
	overflow: hidden;
}

.nf-hero-tabs__panel {
	display: none;
	height: 100%;
	overflow-y: auto;
}

.nf-hero-tabs__panel.is-active {
	display: block;
}

/* Post List */
.nf-hero-tabs__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.nf-hero-tabs__item {
	border-bottom: 1px solid var(--nf-border-primary);
}

.nf-hero-tabs__item:last-child {
	border-bottom: none;
}

.nf-hero-tabs__link {
	display: flex;
	gap: 12px;
	padding: 14px;
	text-decoration: none !important;
	transition: background 0.2s ease;
}

.nf-hero-tabs__link:hover {
	background: rgba(255, 255, 255, 0.03);
}

/* Thumbnail */
.nf-hero-tabs__thumb {
	flex-shrink: 0;
	width: 80px;
	height: 60px;
	border-radius: 4px;
	overflow: hidden;
	background: var(--nf-surface-elevated);
}

.nf-hero-tabs__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nf-hero-tabs__thumb--placeholder {
	background: linear-gradient(135deg, var(--nf-surface-elevated) 0%, var(--nf-border-primary) 100%);
}

/* Post Info */
.nf-hero-tabs__info {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.nf-hero-tabs__title {
	margin: 0 0 6px 0;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: var(--nf-text-primary);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.nf-hero-tabs__link:hover .nf-hero-tabs__title {
	color: var(--nf-accent-secondary);
}

.nf-hero-tabs__date {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 11px;
	color: var(--nf-text-muted);
}

.nf-hero-tabs__date svg {
	opacity: 0.6;
}

.nf-hero-tabs__empty {
	padding: 20px;
	text-align: center;
	color: var(--nf-text-muted);
	font-size: 13px;
}

/* ===============================================
   Responsive
   =============================================== */

@media (max-width: 1199px) {
	.nf-hero-cards {
		flex-direction: row;
	}

	.nf-hero-card {
		min-height: 280px;
	}
}

@media (max-width: 767px) {
	.nf-hero-cards {
		flex-direction: column;
	}

	.nf-hero-card {
		min-height: 200px;
	}

	.nf-hero-tabs__thumb {
		width: 70px;
		height: 52px;
	}

	.nf-hero-tabs__title {
		font-size: 13px;
	}

	.nf-hero-tabs__link {
		padding: 12px;
		gap: 10px;
	}
}
