/* Breaking News Ticker CSS - Clean, High-Contrast Red Design */
:root {
	--hinden-ticker-bg: #c8102e; /* Classic Deep Red */
	/* Dominant Red Gradient: 85%+ bold vibrant red, subtle dark fade only at the far right edge */
	--hinden-ticker-gradient: linear-gradient(90deg, #c8102e 0%, #c8102e 65%, #ad0d27 82%, #680516 93%, #1a0307 100%);
	--hinden-ticker-text: #ffffff;
	--hinden-ticker-hover: #ffffff;
	--hinden-ticker-border: rgba(255, 255, 255, 0.25);
}

.hinden-ticker-wrapper {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	background: var(--hinden-ticker-gradient);
	color: var(--hinden-ticker-text);
	z-index: 99998;
	border-bottom: 1px solid rgba(0, 0, 0, 0.15);
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	display: flex;
	justify-content: center;
	align-items: center;
	height: 40px;
	overflow: hidden;
}

.hinden-ticker-wrapper.hinden-ticker-solid {
	background: var(--hinden-ticker-bg);
}

/* Push down sticky headers for known themes (e.g. Soledad) to prevent overlapping */
body.hinden-ticker-active .penci_builder_sticky_header_desktop.sticky-apply {
	top: 40px !important;
}
body.admin-bar.hinden-ticker-active .penci_builder_sticky_header_desktop.sticky-apply {
	top: 72px !important;
}
body.hinden-ticker-active .penci_navbar_mobile.mobile-sticky {
	top: 40px !important;
}
body.admin-bar.hinden-ticker-active .penci_navbar_mobile.mobile-sticky {
	top: 40px !important;
}

.hinden-ticker-inner {
	display: flex;
	align-items: center;
	width: 100%;
	max-width: 1400px;
	height: 100%;
	padding: 0 16px;
}

/* Badge Section - Clean Classic "• BREAKING NEWS |" */
.hinden-ticker-badge {
	display: flex;
	align-items: center;
	padding-right: 15px;
	border-right: 1px solid rgba(255, 255, 255, 0.25);
	white-space: nowrap;
	flex-shrink: 0;
}

.hinden-badge-text {
	color: #ffffff !important;
	font-weight: 800 !important;
	font-size: 12px !important;
	letter-spacing: 0.8px !important;
	text-transform: uppercase !important;
	line-height: 1 !important;
}

.pulse-dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	background-color: #ffffff;
	border-radius: 50%;
	margin-right: 8px;
	box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
	animation: hinden-pulse 2s infinite;
	flex-shrink: 0;
}

@keyframes hinden-pulse {
	0% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
	}
	70% {
		transform: scale(1);
		box-shadow: 0 0 0 7px rgba(255, 255, 255, 0);
	}
	100% {
		transform: scale(0.95);
		box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
	}
}

.hinden-ticker-content-wrapper {
	flex-grow: 1;
	position: relative;
	height: 100%;
	display: flex;
	align-items: center;
	margin: 0 15px;
	overflow: hidden;
}

.hinden-ticker-content {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

/* Smooth FadeInUp Headline Animation */
.hinden-ticker-item {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	transform: translateY(16px);
	transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.45s;
	will-change: transform, opacity;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
}

.hinden-ticker-item.active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.hinden-ticker-item.fade-out {
	opacity: 0;
	visibility: hidden;
	transform: translateY(-16px);
}

.hinden-ticker-headline {
	color: #ffffff !important;
	text-decoration: none !important;
	font-size: 13px;
	font-weight: 500;
	letter-spacing: 0.1px;
	line-height: 1.4;
	transition: opacity 0.2s ease;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	display: block;
	width: 100%;
	border: none !important;
	outline: none !important;
	box-shadow: none !important;
	background: transparent !important;
}

.hinden-ticker-headline::before,
.hinden-ticker-headline::after,
.hinden-ticker-item::before,
.hinden-ticker-item::after {
	display: none !important;
	content: none !important;
}

.hinden-ticker-headline:hover {
	opacity: 0.88;
	text-decoration: underline !important;
}

.hinden-ticker-controls {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-shrink: 0;
	border-left: 1px solid rgba(255, 255, 255, 0.25);
	padding-left: 15px;
}

.hinden-control-btn {
	background: none;
	border: 1px solid transparent;
	color: #ffffff;
	cursor: pointer;
	padding: 4px;
	display: inline-flex;
	justify-content: center;
	align-items: center;
	border-radius: 50%;
	transition: all 0.2s ease;
}

.hinden-control-btn:hover {
	background-color: rgba(255, 255, 255, 0.15);
	border-color: rgba(255, 255, 255, 0.3);
}

.hinden-control-btn svg {
	width: 14px;
	height: 14px;
}

/* Fix spacing issue - apply padding to body when ticker is active */
body.hinden-ticker-active {
	padding-top: 40px !important;
}

/* Adjust WP Admin bar padding if logged in */
body.admin-bar .hinden-ticker-wrapper {
	top: 32px;
}

@media screen and (max-width: 782px) {
	body.admin-bar .hinden-ticker-wrapper {
		top: 0;
	}
	
	.hinden-ticker-badge {
		font-size: 11px;
		padding-right: 10px;
	}
	
	.hinden-ticker-headline {
		font-size: 12px;
	}
}

@media screen and (max-width: 600px) {
	.hinden-badge-text {
		display: none;
	}
	
	.hinden-ticker-badge {
		padding-right: 8px;
	}
	
	.hinden-ticker-content-wrapper {
		margin: 0 8px;
	}
	
	.hinden-ticker-controls {
		padding-left: 8px;
		gap: 4px;
	}
	
	.hinden-control-btn svg {
		width: 12px;
		height: 12px;
	}
}
