/**
 * AnyMag Base Animations (~2KB)
 * Always loaded — hover transitions, micro-interactions, dark-mode smoothing.
 * No scroll dependency. Pure CSS. Zero JS.
 */

/* ─── Card Hover Lift ─── */
.mh-grid-card,
.edu-exam-card,
.edu-search-item,
.np-top-side-item,
.edu-related-card,
.mh-cat-item,
.mh-cat-featured {
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mh-grid-card:hover,
.edu-exam-card:hover,
.edu-search-item:hover,
.np-top-side-item:hover,
.edu-related-card:hover,
.mh-cat-item:hover,
.mh-cat-featured:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.10);
}

/* ─── Card Image Zoom ─── */
.mh-grid-card-img img,
.edu-exam-card img,
.edu-search-item-thumb img,
.mh-cat-featured-img img {
	transition: transform 0.4s ease;
}
.mh-grid-card:hover .mh-grid-card-img img,
.edu-exam-card:hover img,
.edu-search-item:hover .edu-search-item-thumb img,
.mh-cat-featured:hover .mh-cat-featured-img img {
	transform: scale(1.04);
}

/* ─── Button & Link Micro-interactions ─── */
.edu-btn,
.edu-search-item-link,
.mh-view-all,
.edu-exam-card-link {
	transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease;
}
.edu-btn:hover,
.edu-exam-card-link:hover {
	transform: translateY(-1px);
}

/* Arrow slide on hover */
.edu-search-item-link .fa-arrow-right,
.mh-view-all .fa-arrow-right,
.edu-exam-card-link .fa-arrow-right {
	transition: transform 0.25s ease;
	display: inline-block;
}
.edu-search-item-link:hover .fa-arrow-right,
.mh-view-all:hover .fa-arrow-right,
.edu-exam-card-link:hover .fa-arrow-right {
	transform: translateX(4px);
}

/* ─── Navigation Underline ─── */
.horizontal-menu > li > a,
.edu-navbar a {
	position: relative;
}
.horizontal-menu > li > a::after,
.edu-navbar a::after {
	content: '';
	position: absolute;
	bottom: 0;
	left: 50%;
	width: 0;
	height: 2px;
	background: currentColor;
	transition: width 0.25s ease, left 0.25s ease;
}
.horizontal-menu > li > a:hover::after,
.horizontal-menu > li.current-menu-item > a::after,
.edu-navbar a:hover::after {
	width: 100%;
	left: 0;
}

/* ─── Filter Tab Transitions ─── */
.edu-search-tab,
.edu-filter-pill {
	transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

/* ─── Sticky Header Transition ─── */
.edu-main-header,
.main-header {
	transition: box-shadow 0.3s ease, background-color 0.3s ease;
}
.header-scrolled {
	box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}

/* ─── Dark Mode Color Transitions ─── */
body,
.main-header,
.edu-main-header,
.mh-grid-card,
.edu-exam-card,
.edu-search-item,
.edu-widget,
.main-footer,
.footer-wrapper,
.sidebar-container {
	transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* ─── Exam Badge Pulse ─── */
@keyframes am-pulse-badge {
	0%, 100% { transform: scale(1); }
	50% { transform: scale(1.04); }
}
.edu-exam-badge-new,
.edu-exam-badge-popular {
	animation: am-pulse-badge 2.5s ease-in-out infinite;
}

/* ─── Focus Styles (Accessibility) ─── */
.edu-btn:focus-visible,
.edu-search-tab:focus-visible,
a:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

/* ─── Reduced Motion: Kill Everything ─── */
@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
