/* ============================================================
   Pretpot Stylish Menu with Marketing - CSS
   ============================================================ */

/* Trigger Button */
.pretpot-menu-trigger {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	cursor: pointer;
	border: none;
	background: transparent;
	transition: all 0.3s ease;
}

.pretpot-menu-trigger:hover {
	opacity: 0.8;
}

/* Overlay */
.pretpot-stylish-menu-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 9999;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.4s ease, visibility 0.4s ease;
	overflow: hidden;
}

.pretpot-stylish-menu-overlay.active {
	opacity: 1;
	visibility: visible;
}

/* Background Types */
.pretpot-menu-blur-bg,
.pretpot-menu-color-bg,
.pretpot-menu-image-bg {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	z-index: 1;
}

.pretpot-menu-blur-bg {
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
}

/* Content Container */
.pretpot-stylish-menu-content {
	position: relative;
	z-index: 2;
	width: 100%;
	height: 100%;
	display: flex;
	flex-direction: column;
	padding: 40px;
	box-sizing: border-box;
}

/* Header */
.pretpot-menu-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 40px;
	position: relative;
	z-index: 10;
}

.pretpot-menu-header-icon {
	background: transparent;
	border: none;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: inherit;
}

/* Menu Body */
.pretpot-menu-body {
	display: flex;
	flex: 1;
	gap: 40px;
	overflow: hidden;
	position: relative;
	width: 100%;
	height: calc(100% - 80px);
}

/* Left Panel - Menu Items */
.pretpot-menu-left-panel {
	flex: 0 0 60%;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	position: relative;
	z-index: 5;
	transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
}

/* Menu Navigation */
.pretpot-menu-nav {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.pretpot-menu-item {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 15px 10px;
	text-decoration: none;
	border-radius: 8px;
	transition: all 0.3s ease;
	cursor: pointer;
	color: inherit;
}

.pretpot-menu-item:hover {
	background: rgba(255, 255, 255, 0.1);
	transform: translateX(10px);
}

/* Social Icons */
.pretpot-menu-social {
	display: flex;
	gap: 15px;
	align-items: center;
	flex-wrap: wrap;
	margin-top: 40px;
}

.pretpot-social-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 45px;
	height: 45px;
	border-radius: 50%;
	transition: all 0.3s ease;
	text-decoration: none;
	color: inherit;
}

/* Right Panel - Marketing */
.pretpot-menu-right-panel {
	flex: 0 0 40%;
	position: relative;
	overflow: visible;
	transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.pretpot-marketing-preview {
	position: relative;
	height: 100%;
	display: flex;
	flex-direction: column;
	gap: 20px;
	overflow-y: auto;
	padding-right: 10px;
}

/* Marketing Item */
.pretpot-marketing-item {
	position: relative;
	border-radius: 15px;
	overflow: hidden;
	cursor: pointer;
	transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
	flex-shrink: 0;
	height: 300px;
}

.pretpot-marketing-media {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

.pretpot-marketing-media img,
.pretpot-marketing-media video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.pretpot-marketing-content {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	padding: 20px;
	background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
	transform: translateY(100%);
	transition: transform 0.4s ease;
}

.pretpot-marketing-item:hover .pretpot-marketing-content {
	transform: translateY(0);
}

.pretpot-marketing-title {
	margin: 0 0 10px;
	font-size: 24px;
	font-weight: 700;
	color: inherit;
}

.pretpot-marketing-desc {
	margin: 0 0 15px;
	font-size: 14px;
	line-height: 1.5;
	color: inherit;
}

/* ============================================================
   MOBILE & TABLET - PEEK FROM RIGHT BEHAVIOR
   ============================================================ */

@media (max-width: 1024px) {
	.pretpot-menu-body {
		position: relative;
		overflow: visible;
	}
	
	/* Left panel takes full width initially */
	.pretpot-menu-left-panel {
		flex: 0 0 100%;
		width: 100%;
		position: relative;
		transform: translateX(0) !important;
	}
	
	/* Right panel positioned absolutely at right edge, peeking in */
	.pretpot-menu-right-panel {
		position: absolute;
		top: 50%;
		right: 0;
		width: 280px;
		height: 400px;
		margin-top: -200px; /* Center vertically */
		z-index: 20;
		/* Initial state: peeking from right (controlled by JS inline style or default) */
		transform: translateX(65%) !important; /* Shows 35% of the panel */
		pointer-events: auto;
		background: transparent;
	}
	
	/* Container for overlapping peek items */
	.pretpot-marketing-preview {
		position: relative;
		width: 100%;
		height: 100%;
		display: block;
		overflow: visible;
		padding: 0;
	}
	
	/* Marketing items overlap each other at the right edge */
	.pretpot-marketing-item {
		position: absolute;
		top: 0;
		right: 0;
		width: 100%;
		height: 100%;
		margin: 0;
		box-shadow: -8px 8px 30px rgba(0,0,0,0.4);
		transform: none !important;
		animation: none !important;
		opacity: 1;
	}
	
	/* First image (front) */
	.pretpot-marketing-item:nth-child(1) {
		z-index: 2;
		transform: translateX(0) !important;
	}
	
	/* Second image (behind, offset) */
	.pretpot-marketing-item:nth-child(2) {
		z-index: 1;
		transform: translateX(-30px) scale(0.92) !important;
		opacity: 0.8;
	}
	
	/* Hide any additional items in peek state */
	.pretpot-marketing-item:nth-child(n+3) {
		display: none !important;
	}
	
	/* Content always visible in peek mode for better engagement */
	.pretpot-marketing-item .pretpot-marketing-content {
		transform: translateY(0);
		background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
		padding: 30px 20px 20px;
	}
	
	/* =========================================================
	   SHIFTED STATE - Marketing Expanded, Menu Peeks
	   ========================================================= */
	
	/* Menu moves to right, peeks from edge */
	.pretpot-menu-body.shifted .pretpot-menu-left-panel {
		transform: translateX(calc(100% - 100px)) !important;
		opacity: 0.3;
		pointer-events: none;
		filter: blur(2px);
	}
	
	/* Marketing panel centers and expands */
	.pretpot-menu-body.shifted .pretpot-menu-right-panel {
		right: 50% !important;
		transform: translate(50%, -50%) !important; /* Center horizontally & vertically */
		width: 85% !important;
		max-width: 400px;
		height: 70vh;
		margin-top: 0 !important;
		top: 50% !important;
	}
	
	/* Marketing items stack properly in expanded view */
	.pretpot-menu-body.shifted .pretpot-marketing-preview {
		display: flex;
		flex-direction: column;
		gap: 20px;
		height: 100%;
		overflow-y: auto;
		padding: 20px;
		background: rgba(0,0,0,0.2);
		backdrop-filter: blur(20px);
		border-radius: 20px;
		box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
	}
	
	.pretpot-menu-body.shifted .pretpot-marketing-item {
		position: relative;
		width: 100%;
		flex: 0 0 auto;
		height: 250px;
		min-height: 200px;
		transform: none !important;
		opacity: 1;
		display: block !important;
		box-shadow: 0 10px 25px rgba(0,0,0,0.3);
	}
	
	/* Reset transforms for all items in expanded state */
	.pretpot-menu-body.shifted .pretpot-marketing-item:nth-child(1),
	.pretpot-menu-body.shifted .pretpot-marketing-item:nth-child(2),
	.pretpot-menu-body.shifted .pretpot-marketing-item:nth-child(n+3) {
		transform: none !important;
		opacity: 1 !important;
		display: block !important;
	}
}

@media (max-width: 768px) {
	.pretpot-stylish-menu-content {
		padding: 30px 20px;
	}
	
	.pretpot-menu-left-panel {
		flex: 0 0 100%;
	}
	
	.pretpot-menu-right-panel {
		width: 240px;
		height: 320px;
		margin-top: -160px;
	}
	
	.pretpot-marketing-item {
		height: 320px;
	}
	
	/* Smaller peek in shifted state */
	.pretpot-menu-body.shifted .pretpot-menu-left-panel {
		transform: translateX(calc(100% - 80px)) !important;
	}
	
	.pretpot-menu-body.shifted .pretpot-marketing-item {
		height: 200px;
		min-height: 180px;
	}
}

@media (max-width: 480px) {
	.pretpot-stylish-menu-content {
		padding: 20px 15px;
	}
	
	.pretpot-menu-right-panel {
		width: 200px;
		height: 280px;
		margin-top: -140px;
		transform: translateX(70%) !important; /* Show less on very small screens */
	}
	
	.pretpot-marketing-item:nth-child(2) {
		transform: translateX(-20px) scale(0.88) !important;
	}
	
	.pretpot-menu-body.shifted .pretpot-menu-left-panel {
		transform: translateX(calc(100% - 60px)) !important;
	}
	
	.pretpot-menu-body.shifted .pretpot-right-panel {
		width: 90% !important;
	}
}

/* Accessibility */
@media (prefers-reduced-motion: reduce) {
	.pretpot-stylish-menu-overlay,
	.pretpot-menu-left-panel,
	.pretpot-menu-right-panel,
	.pretpot-marketing-item {
		transition: none !important;
	}
}