/**
 * Shared Hero Header Component
 *
 * Full-width dark background with featured image (cover),
 * gradient overlay from bottom, title (uppercase, white) and date.
 *
 * Used by: single news, single fotogallery.
 */

/* ==========================================================================
   Layout & Background
   ========================================================================== */

.olimpia-hero-header {
	position: relative;
	left: 50%;
	transform: translateX(-50%);
	width: 100vw;
	min-height: 700px;
	background-color: #000;
	background-size: cover;
	background-position: center center;
	background-repeat: no-repeat;
	display: flex;
	align-items: flex-end;
	justify-content: center;
	overflow: hidden;
}

/* ==========================================================================
   Gradient Overlay
   ========================================================================== */

.olimpia-hero-header__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to top,
		rgba(0, 0, 0, 0.85) 0%,
		rgba(0, 0, 0, 0.5) 40%,
		rgba(0, 0, 0, 0.25) 100%
	);
	pointer-events: none;
	z-index: 1;
}

/* ==========================================================================
   Inner Content
   ========================================================================== */

.olimpia-hero-header__inner {
	position: relative;
	z-index: 2;
	width: 100%;
	max-width: 900px;
	padding: 60px 24px 48px;
	text-align: center;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 12px;
}

/* ==========================================================================
   Badges (categories or count)
   ========================================================================== */

.olimpia-hero-header__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	margin-bottom: 4px;
}

/* Category badge (red, link) */
.olimpia-hero-header__badge--category {
	display: inline-block;
	background: var(--color-primary, #AA1A2D);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	padding: 4px 12px;
	border-radius: 3px;
	line-height: 1.4;
	text-decoration: none;
	transition: background var(--transition-fast, 0.2s ease);
}

.olimpia-hero-header__badge--category:hover {
	background: var(--color-primary-dark, #6e1522);
	color: #fff;
}

/* Count badge (dark, with optional icon) */
.olimpia-hero-header__badge--count {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: var(--color-primary, #AA1A2D);
	color: #fff;
	font-size: 12px;
	font-weight: 600;
	padding: 5px 12px;
	border-radius: 4px;
	line-height: 1;
}

.olimpia-hero-header__badge--count svg {
	flex-shrink: 0;
}

/* ==========================================================================
   Title
   ========================================================================== */

h1.olimpia-hero-header__title {
	font-family: var(--font-bg-title, 'Saira Extra Condensed', sans-serif) !important;
	font-size: clamp(36px, 5vw, 72px) !important;
	font-weight: 700;
	line-height: 1.0;
	color: var(--color-white, #fff);
	text-transform: uppercase;
	letter-spacing: -0.01em;
	text-shadow: 0 2px 16px rgba(0, 0, 0, 0.5);
	margin: 0;
}

/* ==========================================================================
   Date
   ========================================================================== */

.olimpia-hero-header__date {
	font-size: 14px;
	color: var(--color-on-dark-muted, rgba(255, 255, 255, 0.9));
	font-weight: 400;
	margin-top: 4px;
}

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

@media (max-width: 1024px) {
	.olimpia-hero-header {
		min-height: 440px;
	}
}

@media (max-width: 768px) {
	.olimpia-hero-header {
		min-height: 360px;
	}

	.olimpia-hero-header__inner {
		padding: 40px 16px 32px;
	}

	.olimpia-hero-header__title {
		font-size: 32px;
	}
}
