/* ==========================================================================
   MyCreaTools - Header Navigation & Mobile Offcanvas Stylesheet
   ========================================================================== */

:root {
	--mct-avatar-ring-1: #ff3b30;
	--mct-avatar-ring-2: #ff9500;
}

.mct-hn-container {
	position: relative;
	width: 100%;
	background-color: #ffffff;
	border-bottom: 1px solid #f1f5f9;
	box-sizing: border-box;
	z-index: 1000 !important;
	transition: background-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
	            backdrop-filter 0.3s cubic-bezier(0.4, 0, 0.2, 1),
	            -webkit-backdrop-filter 0.3s cubic-bezier(0.4, 0, 0.2, 1),
	            border-color 0.3s cubic-bezier(0.4, 0, 0.2, 1),
	            box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
	            padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.mct-hn-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1280px;
	margin: 0 auto;
	padding: 14px 24px;
	gap: 24px;
	box-sizing: border-box;
	transition: padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Sticky Positioning */
.mct-hn-container.is-sticky-enabled {
	position: sticky;
	top: 0;
	z-index: 1000 !important;
}

.mct-hn-container.is-sticky-enabled.is-fixed-mode {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	width: 100%;
	z-index: 1000 !important;
}

/* Glassmorphism Effect (When scrolled or always active) */
.mct-hn-container.has-glass-effect.is-scrolled,
.mct-hn-container.has-glass-effect.has-glass-always {
	background-color: rgba(255, 255, 255, 1);
	border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}

/* Scrolled Compact Header Padding */
.mct-hn-container.is-scrolled .mct-hn-header,
.mct-hn-container.has-glass-always .mct-hn-header {
	padding-top: 10px;
	padding-bottom: 10px;
}

/* --------------------------------------------------------------------------
   1. Brand Logo
   -------------------------------------------------------------------------- */
.mct-hn-brand {
	display: flex;
	align-items: center;
	text-decoration: none;
	gap: 8px;
	flex-shrink: 0;
}

.mct-hn-logo-img {
	max-height: 40px;
	width: auto;
	display: block;
}

.mct-hn-logo-text-wrap {
	display: flex;
	align-items: center;
	font-family: 'Inter', system-ui, -apple-system, sans-serif;
	font-size: 22px;
	font-weight: 800;
	letter-spacing: -0.02em;
	line-height: 1;
}

.mct-hn-logo-red {
	color: #dc2626;
}

.mct-hn-logo-black {
	color: #1e293b;
	margin-left: 2px;
}

.mct-hn-logo-hand-icon {
	width: 24px;
	height: 24px;
	display: inline-block;
	vertical-align: middle;
	margin: 0 2px;
}

/* --------------------------------------------------------------------------
   2. Desktop Navigation Links
   -------------------------------------------------------------------------- */
.mct-hn-nav-desktop {
	display: flex;
	align-items: center;
	gap: 36px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.mct-hn-nav-item {
	position: relative;
	display: inline-flex;
	align-items: center;
}

.mct-hn-nav-link {
	position: relative;
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 15px;
	font-weight: 600;
	color: #1e293b;
	text-decoration: none;
	padding: 6px 0;
	transition: color 0.2s ease;
}

.mct-hn-nav-link:hover {
	color: #dc2626;
}

.mct-hn-nav-link.is-active {
	color: #dc2626;
	font-weight: 700;
}

/* Red Notification Badge Dot with Animated Pulse & Ping Ring */
.mct-hn-badge-dot {
	position: absolute;
	top: 2px;
	right: -8px;
	width: 7px;
	height: 7px;
	background-color: #dc2626;
	border-radius: 50%;
	box-shadow: 0 0 0 2px #ffffff;
	animation: mctBadgePulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.mct-hn-badge-dot::after {
	content: '';
	position: absolute;
	top: -2px;
	left: -2px;
	right: -2px;
	bottom: -2px;
	border-radius: 50%;
	border: 1.5px solid #dc2626;
	animation: mctBadgePing 1.8s cubic-bezier(0, 0, 0.2, 1) infinite;
	pointer-events: none;
}

@keyframes mctBadgePulse {
	0%, 100% {
		transform: scale(1);
		opacity: 1;
	}
	50% {
		transform: scale(1.2);
		box-shadow: 0 0 8px rgba(220, 38, 38, 0.7);
	}
}

@keyframes mctBadgePing {
	0% {
		transform: scale(0.8);
		opacity: 0.8;
	}
	75%, 100% {
		transform: scale(2.4);
		opacity: 0;
	}
}

/* --------------------------------------------------------------------------
   3. Header Action Buttons & Triggers
   -------------------------------------------------------------------------- */
.mct-hn-actions {
	display: flex;
	align-items: center;
	gap: 16px;
	flex-shrink: 0;
}

/* Search Modal Trigger (Rounded Button) */
.mct-hn-actions .mct-search-trigger-box.mct-search-trigger-icon-only {
	width: 42px;
	height: 42px;
	min-width: 42px;
	min-height: 42px;
	border-radius: 10px;
	background-color: #ffffff;
	border: 1px solid #e2e8f0;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
	box-sizing: border-box;
	box-shadow: none;
}

.mct-hn-actions .mct-search-trigger-box.mct-search-trigger-icon-only:hover {
	background-color: #f8fafc;
	border-color: #cbd5e1;
	box-shadow: none;
	transform: translateY(-1px);
}

.mct-hn-actions .mct-search-trigger-icon-only .mct-search-trigger-icon {
	color: #1e293b;
	font-size: 16px;
	margin-left: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Create Announce Button (Outline Pill) */
.mct-hn-btn-announce {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 22px;
	font-size: 14px;
	font-weight: 600;
	color: #1e293b !important;
	background-color: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 50px;
	text-decoration: none;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	white-space: nowrap;
	box-shadow: none;
}

.mct-hn-btn-announce:hover {
	background-color: #f8fafc;
	border-color: #cbd5e1;
	color: #0f172a !important;
	transform: translateY(-1px);
	box-shadow: none;
}

/* Create Account Button (Solid Red Pill - Image 1) */
.mct-hn-btn-account {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 22px;
	font-size: 14px;
	font-weight: 600;
	color: #ffffff !important;
	background-color: #dc2626;
	border: 1px solid #dc2626;
	border-radius: 50px;
	text-decoration: none;
	transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
	white-space: nowrap;
	box-shadow: none;
}

.mct-hn-btn-account:hover {
	background-color: #b91c1c;
	border-color: #b91c1c;
	color: #ffffff !important;
	transform: translateY(-1px);
	box-shadow: none;
}

/* --------------------------------------------------------------------------
   4. User Avatar & Profile Dropdown (Logged In - Image 2)
   -------------------------------------------------------------------------- */
.mct-hn-user-wrap {
	position: relative;
	display: inline-flex;
	align-items: center;
}

/* Circular Avatar Trigger with Gradient Ring Outline */
.mct-hn-avatar-trigger {
	position: relative;
	width: 42px;
	height: 42px;
	min-width: 42px;
	min-height: 42px;
	border-radius: 50%;
	padding: 2.5px;
	background: linear-gradient(135deg, var(--mct-avatar-ring-1, #ff3b30), var(--mct-avatar-ring-2, #ff9500));
	border: none;
	cursor: pointer;
	outline: none;
	box-sizing: border-box;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: none;
}

.mct-hn-avatar-trigger:hover {
	transform: scale(1.05);
	box-shadow: none;
}

.mct-hn-avatar-inner {
	width: 100%;
	height: 100%;
	border-radius: 50%;
	overflow: hidden;
	background-color: #1e293b;
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}

.mct-hn-avatar-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Ghost Avatar SVG Container matching Image 2 */
.mct-hn-ghost-avatar {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background-color: #1e293b;
	color: #ffffff;
}

/* User Dropdown Menu Card */
.mct-hn-user-dropdown {
	position: absolute;
	top: calc(100% + 12px);
	right: 0;
	width: 230px;
	background-color: #ffffff;
	border: 1px solid #f1f5f9;
	border-radius: 16px;
	padding: 10px;
	box-shadow: 0 12px 32px rgba(15, 23, 42, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
	z-index: 1000;
	box-sizing: border-box;
}

.mct-hn-user-wrap:hover .mct-hn-user-dropdown,
.mct-hn-user-dropdown.is-active {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.mct-hn-dropdown-header {
	padding: 10px 12px;
	border-bottom: 1px solid #f1f5f9;
	margin-bottom: 6px;
}

.mct-hn-dropdown-user-name {
	display: block;
	font-size: 14px;
	font-weight: 700;
	color: #0f172a;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.mct-hn-dropdown-user-badge {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	color: #16a34a;
	background-color: #dcfce7;
	padding: 2px 8px;
	border-radius: 10px;
	margin-top: 4px;
}

.mct-hn-dropdown-body {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.mct-hn-dropdown-item {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 9px 12px;
	border-radius: 10px;
	font-size: 13.5px;
	font-weight: 500;
	color: #334155;
	text-decoration: none;
	transition: all 0.15s ease;
}

.mct-hn-dropdown-item:hover {
	background-color: #f8fafc;
	color: #dc2626;
}

.mct-hn-dropdown-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 18px;
	height: 18px;
	color: #64748b;
	transition: color 0.15s ease;
}

.mct-hn-dropdown-item:hover .mct-hn-dropdown-icon {
	color: #dc2626;
}

.mct-hn-dropdown-divider {
	height: 1px;
	background-color: #f1f5f9;
	margin: 6px 0;
}

.mct-hn-dropdown-logout {
	color: #dc2626 !important;
	font-weight: 600;
}

.mct-hn-dropdown-logout:hover {
	background-color: #fef2f2;
}

/* --------------------------------------------------------------------------
   5. Mobile Hamburger Button & Offcanvas Drawer
   -------------------------------------------------------------------------- */
.mct-hn-hamburger {
	display: none;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	width: 40px;
	height: 40px;
	background: transparent;
	border: 1px solid #e2e8f0;
	border-radius: 10px;
	cursor: pointer;
	padding: 8px;
	box-sizing: border-box;
	transition: all 0.2s ease;
}

.mct-hn-hamburger:hover {
	background-color: #f8fafc;
	border-color: #cbd5e1;
}

.mct-hn-hamburger-line {
	width: 20px;
	height: 2px;
	background-color: #1e293b;
	border-radius: 2px;
	transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mct-hn-hamburger-line + .mct-hn-hamburger-line {
	margin-top: 5px;
}

.mct-hn-offcanvas-backdrop {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	width: 100vw !important;
	height: 100vh !important;
	height: 100dvh !important;
	background-color: rgba(15, 23, 42, 0.5) !important;
	backdrop-filter: blur(4px) !important;
	opacity: 0 !important;
	visibility: hidden !important;
	transition: opacity 0.3s ease, visibility 0.3s ease !important;
	z-index: 999999 !important;
	margin: 0 !important;
	padding: 0 !important;
}

.mct-hn-offcanvas-backdrop.is-active {
	opacity: 1 !important;
	visibility: visible !important;
}

.mct-hn-offcanvas-drawer {
	position: fixed !important;
	top: 0 !important;
	right: -100% !important;
	bottom: 0 !important;
	width: 340px !important;
	max-width: 88vw !important;
	height: 100vh !important;
	height: 100dvh !important;
	background-color: #ffffff !important;
	box-shadow: -8px 0 32px rgba(0, 0, 0, 0.15) !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: space-between !important;
	transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1) !important;
	z-index: 1000000 !important;
	box-sizing: border-box !important;
	margin: 0 !important;
	padding: 0 !important;
}

.mct-hn-offcanvas-backdrop.is-active .mct-hn-offcanvas-drawer {
	right: 0 !important;
}

.mct-hn-offcanvas-header {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	padding: 20px 24px !important;
	border-bottom: 1px solid #f1f5f9 !important;
	background: #ffffff !important;
	flex-shrink: 0 !important;
}

.mct-hn-offcanvas-close-btn {
	background: none !important;
	border: none !important;
	color: #64748b !important;
	cursor: pointer !important;
	padding: 6px !important;
	border-radius: 8px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: all 0.2s ease !important;
}

.mct-hn-offcanvas-close-btn:hover {
	background-color: #f1f5f9 !important;
	color: #0f172a !important;
}

.mct-hn-offcanvas-body {
	padding: 24px 20px !important;
	overflow-y: auto !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: space-between !important;
	flex-grow: 1 !important;
	box-sizing: border-box !important;
}

.mct-hn-offcanvas-nav {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 8px !important;
}

.mct-hn-offcanvas-nav-link {
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	font-size: 16px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	text-decoration: none !important;
	padding: 12px 18px !important;
	border-radius: 14px !important;
	transition: all 0.2s ease !important;
	box-sizing: border-box !important;
}

.mct-hn-offcanvas-nav-link:hover,
.mct-hn-offcanvas-nav-link.is-active {
	background-color: #fef2f2 !important;
	color: #dc2626 !important;
	font-weight: 800 !important;
}

.mct-hn-badge-dot {
	width: 10px !important;
	height: 10px !important;
	border-radius: 50% !important;
	background-color: #dc2626 !important;
	box-shadow: 0 0 0 3px #fee2e2 !important;
	display: inline-block !important;
}

.mct-hn-offcanvas-actions {
	display: flex !important;
	flex-direction: column !important;
	gap: 10px !important;
	margin-top: auto !important;
	padding-top: 20px !important;
	border-top: 1px solid #f1f5f9 !important;
}

.mct-hn-offcanvas-btn-search {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
	width: 100% !important;
	padding: 13px 18px !important;
	background-color: #f8fafc !important;
	border: 1px solid #e2e8f0 !important;
	border-radius: 14px !important;
	color: #64748b !important;
	font-size: 14.5px !important;
	font-weight: 600 !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
	box-sizing: border-box !important;
}

.mct-hn-offcanvas-btn-search:hover {
	background-color: #f1f5f9 !important;
	color: #0f172a !important;
}

.mct-hn-offcanvas-btn-announce {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	padding: 13px 20px !important;
	border-radius: 50px !important;
	background-color: #ffffff !important;
	border: 1px solid #e2e8f0 !important;
	color: #0f172a !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02) !important;
	transition: all 0.2s ease !important;
	box-sizing: border-box !important;
}

.mct-hn-offcanvas-btn-announce:hover {
	background-color: #f8fafc !important;
	border-color: #cbd5e1 !important;
}

.mct-hn-offcanvas-btn-account,
.mct-hn-offcanvas-btn-profile {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	padding: 13px 20px !important;
	border-radius: 50px !important;
	background-color: #dc2626 !important;
	border: 1px solid #dc2626 !important;
	color: #ffffff !important;
	font-size: 15px !important;
	font-weight: 700 !important;
	text-decoration: none !important;
	box-shadow: 0 4px 12px rgba(220, 38, 38, 0.2) !important;
	transition: all 0.2s ease !important;
	box-sizing: border-box !important;
}

.mct-hn-offcanvas-btn-account:hover,
.mct-hn-offcanvas-btn-profile:hover {
	background-color: #b91c1c !important;
	border-color: #b91c1c !important;
}

.mct-hn-offcanvas-btn-logout {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	padding: 11px 18px !important;
	border-radius: 50px !important;
	background-color: #fef2f2 !important;
	color: #dc2626 !important;
	font-size: 14px !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	box-sizing: border-box !important;
}

/* --------------------------------------------------------------------------
   6. Responsive Breakpoints
   -------------------------------------------------------------------------- */
@media (max-width: 991px) {
	.mct-hn-header {
		padding: 12px 18px !important;
		gap: 14px !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	.mct-hn-nav-desktop {
		display: none !important;
	}

	.mct-hn-btn-announce,
	.mct-hn-btn-account {
		display: none !important;
	}

	.mct-hn-hamburger {
		display: flex !important;
	}

	.mct-hn-actions {
		gap: 10px !important;
	}
}

@media (max-width: 768px) {
	.mct-hn-container {
		width: 100% !important;
		max-width: 100vw !important;
		overflow-x: clip !important;
		box-sizing: border-box !important;
	}

	.mct-hn-header {
		padding: 10px 12px !important;
		gap: 8px !important;
		width: 100% !important;
		max-width: 100% !important;
		box-sizing: border-box !important;
	}

	.mct-hn-brand {
		min-width: 0 !important;
		flex-shrink: 1 !important;
	}

	.mct-hn-logo-text-wrap {
		font-size: 17px !important;
		letter-spacing: -0.03em !important;
		white-space: nowrap !important;
	}

	.mct-hn-logo-hand-icon {
		width: 18px !important;
		height: 18px !important;
		margin: 0 1px !important;
	}

	.mct-hn-logo-img {
		max-height: 32px !important;
		width: auto !important;
	}

	.mct-hn-actions {
		gap: 8px !important;
		flex-shrink: 0 !important;
	}

	.mct-hn-actions .mct-search-trigger-box.mct-search-trigger-icon-only {
		width: 36px !important;
		height: 36px !important;
		min-width: 36px !important;
		min-height: 36px !important;
	}

	.mct-hn-actions .mct-search-trigger-icon-only .mct-search-trigger-icon {
		font-size: 14px !important;
	}

	.mct-hn-avatar-trigger {
		width: 36px !important;
		height: 36px !important;
		min-width: 36px !important;
		min-height: 36px !important;
		padding: 2px !important;
	}

	.mct-hn-hamburger {
		width: 36px !important;
		height: 36px !important;
		min-width: 36px !important;
		min-height: 36px !important;
		padding: 6px !important;
	}

	.mct-hn-hamburger-line {
		width: 16px !important;
		height: 2px !important;
	}

	.mct-hn-hamburger-line + .mct-hn-hamburger-line {
		margin-top: 4px !important;
	}
}

@media (max-width: 380px) {
	.mct-hn-header {
		padding: 8px 8px !important;
		gap: 6px !important;
	}

	.mct-hn-logo-text-wrap {
		font-size: 15px !important;
	}

	.mct-hn-logo-hand-icon {
		width: 15px !important;
		height: 15px !important;
	}

	.mct-hn-actions {
		gap: 6px !important;
	}

	.mct-hn-actions .mct-search-trigger-box.mct-search-trigger-icon-only,
	.mct-hn-avatar-trigger,
	.mct-hn-hamburger {
		width: 34px !important;
		height: 34px !important;
		min-width: 34px !important;
		min-height: 34px !important;
	}
}
