/**
 * Hisar Bottom Navigation - Widget Styles
 * Modern, responsive bottom navigation bar
 */

/* ===== CRITICAL: Mobile-Only Visibility ===== */
/* Force hide on tablet and desktop - MUST be at top with !important */
@media (min-width: 768px) {
	.hisar-bottom-nav-container {
		display: none !important;
		visibility: hidden !important;
		opacity: 0 !important;
		pointer-events: none !important;
	}
}

/* ===== Container Styles ===== */
.hisar-bottom-nav-container {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	width: 100%;
	background: #ffffff;
	box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
	z-index: 999;
	padding: 8px 0;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Gradient Overlay */
.hisar-bottom-nav-container.hisar-has-gradient::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	opacity: 0.1;
	pointer-events: none;
	z-index: -1;
}

/* Smooth Transitions */
.hisar-bottom-nav-container.hisar-smooth-transitions * {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ===== Navigation Wrapper ===== */
.hisar-bottom-nav-wrapper {
	display: flex;
	justify-content: space-around;
	align-items: center;
	gap: 0;
	max-width: 100%;
	margin: 0 auto;
}

/* ===== Navigation Items ===== */
.hisar-nav-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	flex: 1;
	padding: 12px 8px;
	text-decoration: none;
	cursor: pointer;
	border-radius: 8px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.hisar-nav-item:hover {
	background-color: rgba(59, 130, 246, 0.1);
	transform: translateY(-2px);
}

.hisar-nav-item.active {
	background-color: rgba(59, 130, 246, 0.15);
}

.hisar-nav-item.active::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	transform: translateX(-50%);
	width: 40%;
	height: 3px;
	background: linear-gradient(90deg, #3b82f6, #8b5cf6);
	border-radius: 2px 2px 0 0;
}

/* ===== Navigation Content ===== */
.hisar-nav-content {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
}

/* ===== Icon Styles ===== */
.hisar-nav-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 24px;
	color: var(--hisar-icon-color, #6b7280);
	margin-bottom: 4px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hisar-nav-icon i,
.hisar-nav-icon svg {
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.hisar-nav-item:hover .hisar-nav-icon,
.hisar-nav-item.active .hisar-nav-icon {
	color: var(--hisar-icon-hover-color, #3b82f6);
	transform: scale(1.1);
}

/* ===== Label Styles ===== */
.hisar-nav-label {
	font-size: 11px;
	font-weight: 500;
	color: var(--hisar-icon-color, #6b7280);
	text-align: center;
	line-height: 1.2;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.hisar-nav-item:hover .hisar-nav-label,
.hisar-nav-item.active .hisar-nav-label {
	color: var(--hisar-icon-hover-color, #3b82f6);
	font-weight: 600;
}

/* ===== Entrance Animations ===== */
@keyframes fadeIn {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(20px);
	}

	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}
}

@keyframes fadeInDown {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(-20px);
	}

	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}
}

@keyframes slideInUp {
	from {
		transform: translateX(-50%) translateY(100%);
	}

	to {
		transform: translateX(-50%) translateY(0);
	}
}

@keyframes slideInDown {
	from {
		transform: translateX(-50%) translateY(-100%);
	}

	to {
		transform: translateX(-50%) translateY(0);
	}
}

@keyframes bounceIn {
	0% {
		opacity: 0;
		transform: translateX(-50%) scale(0.3);
	}

	50% {
		opacity: 1;
		transform: translateX(-50%) scale(1.05);
	}

	70% {
		transform: translateX(-50%) scale(0.9);
	}

	100% {
		transform: translateX(-50%) scale(1);
	}
}

@keyframes zoomIn {
	from {
		opacity: 0;
		transform: translateX(-50%) scale(0.5);
	}

	to {
		opacity: 1;
		transform: translateX(-50%) scale(1);
	}
}

/* Apply entrance animations */
.hisar-animate-fadeIn {
	animation: fadeIn 0.6s ease-out;
}

.hisar-animate-fadeInUp {
	animation: fadeInUp 0.6s ease-out;
}

.hisar-animate-fadeInDown {
	animation: fadeInDown 0.6s ease-out;
}

.hisar-animate-slideInUp {
	animation: slideInUp 0.6s ease-out;
}

.hisar-animate-slideInDown {
	animation: slideInDown 0.6s ease-out;
}

.hisar-animate-bounceIn {
	animation: bounceIn 0.6s ease-out;
}

.hisar-animate-zoomIn {
	animation: zoomIn 0.6s ease-out;
}

/* ===== Hover Animations ===== */
@keyframes pulse {

	0%,
	100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.05);
	}
}

@keyframes bounce {

	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-5px);
	}
}

@keyframes shake {

	0%,
	100% {
		transform: translateX(0);
	}

	25% {
		transform: translateX(-3px);
	}

	75% {
		transform: translateX(3px);
	}
}

@keyframes swing {

	0%,
	100% {
		transform: rotate(0deg);
	}

	25% {
		transform: rotate(-5deg);
	}

	75% {
		transform: rotate(5deg);
	}
}

/* Apply hover animations to icons */
[data-hover-animation="grow"] .hisar-nav-item:hover .hisar-nav-icon {
	transform: scale(1.2);
}

[data-hover-animation="pulse"] .hisar-nav-item:hover .hisar-nav-icon {
	animation: pulse 0.6s ease-in-out;
}

[data-hover-animation="bounce"] .hisar-nav-item:hover .hisar-nav-icon {
	animation: bounce 0.6s ease-in-out;
}

[data-hover-animation="shake"] .hisar-nav-item:hover .hisar-nav-icon {
	animation: shake 0.4s ease-in-out;
}

[data-hover-animation="swing"] .hisar-nav-item:hover .hisar-nav-icon {
	animation: swing 0.6s ease-in-out;
}

/* ===== Responsive Adjustments ===== */
@media (max-width: 480px) {
	.hisar-nav-item {
		padding: 10px 6px;
	}

	.hisar-nav-icon {
		font-size: 20px;
		margin-bottom: 3px;
	}

	.hisar-nav-label {
		font-size: 10px;
	}
}

@media (max-width: 360px) {
	.hisar-nav-item {
		padding: 8px 4px;
	}

	.hisar-nav-icon {
		font-size: 18px;
		margin-bottom: 2px;
	}

	.hisar-nav-label {
		font-size: 9px;
	}
}

/* ===== Glassmorphism Effect (Optional) ===== */
.hisar-bottom-nav-container.hisar-glass-effect {
	background: rgba(255, 255, 255, 0.8);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
}

/* ===== Dark Mode Support ===== */
@media (prefers-color-scheme: dark) {
	.hisar-bottom-nav-container {
		background-color: #1f2937;
		border-top-color: #374151;
	}

	.hisar-nav-icon {
		color: #9ca3af;
	}

	.hisar-nav-label {
		color: #9ca3af;
	}

	.hisar-nav-item:hover {
		background-color: rgba(59, 130, 246, 0.2);
	}

	.hisar-nav-item.active {
		background-color: rgba(59, 130, 246, 0.25);
	}
}

/* ===== Accessibility ===== */
.hisar-nav-item:focus {
	outline: 2px solid #3b82f6;
	outline-offset: 2px;
}

.hisar-nav-item:focus:not(:focus-visible) {
	outline: none;
}

/* ===== Print Styles ===== */
@media print {
	.hisar-bottom-nav-container {
		display: none !important;
	}
}