/**
 * ULTIMATE FEATURES - Advanced Visual Features
 * Toast notifications, animations, tooltips, modals, etc.
 *
 * @package Coursee
 * @since 1.0.0
 */

/* ============================================
   TOAST NOTIFICATIONS SYSTEM
   ============================================ */

.coursee-toast-container {
	position: fixed !important;
	top: 2rem !important;
	right: 2rem !important;
	z-index: 99999 !important;
	display: flex !important;
	flex-direction: column !important;
	gap: 1rem !important;
	max-width: 400px !important;
	pointer-events: none !important;
}

.coursee-toast {
	background: rgba(255, 255, 255, 0.98) !important;
	backdrop-filter: blur(20px) saturate(180%) !important;
	-webkit-backdrop-filter: blur(20px) saturate(180%) !important;
	border-radius: 12px !important;
	padding: 1rem 1.5rem !important;
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15),
	            0 4px 16px rgba(0, 0, 0, 0.1),
	            inset 0 1px 0 rgba(255, 255, 255, 0.9) !important;
	border: 1px solid rgba(229, 231, 235, 0.8) !important;
	display: flex !important;
	align-items: center !important;
	gap: 1rem !important;
	min-width: 300px !important;
	max-width: 400px !important;
	pointer-events: auto !important;
	animation: toast-slide-in 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
	position: relative !important;
	overflow: hidden !important;
}

.coursee-toast::before {
	content: '' !important;
	position: absolute !important;
	left: 0 !important;
	top: 0 !important;
	bottom: 0 !important;
	width: 4px !important;
	background: linear-gradient(180deg, #5624d0 0%, #667eea 100%) !important;
}

.coursee-toast.success::before {
	background: linear-gradient(180deg, #10b981 0%, #059669 100%) !important;
}

.coursee-toast.error::before {
	background: linear-gradient(180deg, #ef4444 0%, #dc2626 100%) !important;
}

.coursee-toast.warning::before {
	background: linear-gradient(180deg, #f59e0b 0%, #d97706 100%) !important;
}

.coursee-toast.info::before {
	background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%) !important;
}

@keyframes toast-slide-in {
	from {
		transform: translateX(400px);
		opacity: 0;
	}
	to {
		transform: translateX(0);
		opacity: 1;
	}
}

.coursee-toast-icon {
	font-size: 1.5rem !important;
	flex-shrink: 0 !important;
	width: 32px !important;
	height: 32px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 50% !important;
	background: rgba(86, 36, 208, 0.1) !important;
	color: #5624d0 !important;
}

.coursee-toast.success .coursee-toast-icon {
	background: rgba(16, 185, 129, 0.1) !important;
	color: #10b981 !important;
}

.coursee-toast.error .coursee-toast-icon {
	background: rgba(239, 68, 68, 0.1) !important;
	color: #ef4444 !important;
}

.coursee-toast.warning .coursee-toast-icon {
	background: rgba(245, 158, 11, 0.1) !important;
	color: #f59e0b !important;
}

.coursee-toast.info .coursee-toast-icon {
	background: rgba(59, 130, 246, 0.1) !important;
	color: #3b82f6 !important;
}

.coursee-toast-content {
	flex: 1 !important;
	min-width: 0 !important;
}

.coursee-toast-title {
	font-size: 0.9375rem !important;
	font-weight: 700 !important;
	color: #1a1a1a !important;
	margin: 0 0 0.25rem 0 !important;
}

.coursee-toast-message {
	font-size: 0.875rem !important;
	color: #6b7280 !important;
	margin: 0 !important;
	line-height: 1.5 !important;
}

.coursee-toast-close {
	background: transparent !important;
	border: none !important;
	color: #9ca3af !important;
	font-size: 1.25rem !important;
	cursor: pointer !important;
	padding: 0 !important;
	width: 24px !important;
	height: 24px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	border-radius: 4px !important;
	transition: all 0.2s ease !important;
	flex-shrink: 0 !important;
}

.coursee-toast-close:hover {
	background: rgba(0, 0, 0, 0.05) !important;
	color: #1a1a1a !important;
}

/* ============================================
   TOOLTIPS SYSTEM
   ============================================ */

.coursee-tooltip {
	position: relative !important;
	cursor: help !important;
}

.coursee-tooltip-content {
	position: absolute !important;
	bottom: 100% !important;
	left: 50% !important;
	transform: translateX(-50%) translateY(-8px) !important;
	background: #1a1a1a !important;
	color: #ffffff !important;
	padding: 0.5rem 0.75rem !important;
	border-radius: 6px !important;
	font-size: 0.8125rem !important;
	white-space: nowrap !important;
	opacity: 0 !important;
	pointer-events: none !important;
	transition: all 0.2s ease !important;
	z-index: 1000 !important;
	margin-bottom: 0.5rem !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

.coursee-tooltip-content::after {
	content: '' !important;
	position: absolute !important;
	top: 100% !important;
	left: 50% !important;
	transform: translateX(-50%) !important;
	border: 6px solid transparent !important;
	border-top-color: #1a1a1a !important;
}

.coursee-tooltip:hover .coursee-tooltip-content {
	opacity: 1 !important;
	transform: translateX(-50%) translateY(0) !important;
}

/* ============================================
   MODAL SYSTEM
   ============================================ */

.coursee-modal-overlay {
	position: fixed !important;
	top: 0 !important;
	left: 0 !important;
	right: 0 !important;
	bottom: 0 !important;
	background: rgba(0, 0, 0, 0.6) !important;
	backdrop-filter: blur(4px) !important;
	-webkit-backdrop-filter: blur(4px) !important;
	z-index: 99998 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	padding: 2rem !important;
	opacity: 0 !important;
	pointer-events: none !important;
	transition: opacity 0.3s ease !important;
}

.coursee-modal-overlay.active {
	opacity: 1 !important;
	pointer-events: auto !important;
}

.coursee-modal {
	background: #ffffff !important;
	border-radius: 16px !important;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3),
	            0 8px 24px rgba(0, 0, 0, 0.2) !important;
	max-width: 600px !important;
	width: 100% !important;
	max-height: 90vh !important;
	overflow: hidden !important;
	display: flex !important;
	flex-direction: column !important;
	transform: scale(0.9) translateY(20px) !important;
	transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.coursee-modal-overlay.active .coursee-modal {
	transform: scale(1) translateY(0) !important;
}

.coursee-modal-header {
	padding: 1.5rem 2rem !important;
	border-bottom: 1px solid #e5e7eb !important;
	display: flex !important;
	align-items: center !important;
	justify-content: space-between !important;
	background: linear-gradient(135deg, #f9fafb 0%, #ffffff 100%) !important;
}

.coursee-modal-title {
	font-size: 1.5rem !important;
	font-weight: 800 !important;
	color: #1a1a1a !important;
	margin: 0 !important;
}

.coursee-modal-close {
	background: transparent !important;
	border: none !important;
	color: #6b7280 !important;
	font-size: 1.5rem !important;
	cursor: pointer !important;
	padding: 0.5rem !important;
	border-radius: 6px !important;
	transition: all 0.2s ease !important;
	width: 36px !important;
	height: 36px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.coursee-modal-close:hover {
	background: rgba(0, 0, 0, 0.05) !important;
	color: #1a1a1a !important;
}

.coursee-modal-body {
	padding: 2rem !important;
	overflow-y: auto !important;
	flex: 1 !important;
}

.coursee-modal-footer {
	padding: 1.5rem 2rem !important;
	border-top: 1px solid #e5e7eb !important;
	display: flex !important;
	gap: 1rem !important;
	justify-content: flex-end !important;
	background: #f9fafb !important;
}

/* ============================================
   SKELETON LOADERS
   ============================================ */

.coursee-skeleton {
	background: linear-gradient(90deg, 
		#f3f4f6 0%, 
		#e5e7eb 50%, 
		#f3f4f6 100%) !important;
	background-size: 200% 100% !important;
	animation: skeleton-loading 1.5s ease-in-out infinite !important;
	border-radius: 8px !important;
}

@keyframes skeleton-loading {
	0% { background-position: 200% 0; }
	100% { background-position: -200% 0; }
}

.coursee-skeleton-text {
	height: 1rem !important;
	margin-bottom: 0.75rem !important;
}

.coursee-skeleton-title {
	height: 1.5rem !important;
	width: 60% !important;
	margin-bottom: 1rem !important;
}

.coursee-skeleton-image {
	width: 100% !important;
	height: 200px !important;
	border-radius: 12px !important;
}

.coursee-skeleton-button {
	height: 48px !important;
	width: 150px !important;
	border-radius: 10px !important;
}

/* ============================================
   WISHLIST BUTTON ENHANCED
   ============================================ */

.coursee-wishlist-btn {
	background: transparent !important;
	border: 2px solid #d1d5db !important;
	color: #6b7280 !important;
	padding: 0.625rem !important;
	border-radius: 50% !important;
	width: 40px !important;
	height: 40px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer !important;
	transition: all 0.3s ease !important;
	font-size: 1.25rem !important;
}

.coursee-wishlist-btn:hover {
	border-color: #ef4444 !important;
	color: #ef4444 !important;
	transform: scale(1.1) !important;
	box-shadow: 0 4px 12px rgba(239, 68, 68, 0.2) !important;
}

.coursee-wishlist-btn.active {
	background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
	border-color: transparent !important;
	color: #ffffff !important;
	box-shadow: 0 4px 16px rgba(239, 68, 68, 0.4) !important;
}

.coursee-wishlist-btn.active:hover {
	transform: scale(1.15) rotate(5deg) !important;
}

/* ============================================
   SHARE BUTTONS ENHANCED
   ============================================ */

.coursee-share-buttons {
	display: flex !important;
	gap: 0.75rem !important;
	flex-wrap: wrap !important;
	margin-top: 1rem !important;
}

.coursee-share-btn {
	display: flex !important;
	align-items: center !important;
	gap: 0.5rem !important;
	padding: 0.625rem 1rem !important;
	border-radius: 8px !important;
	border: 1px solid #e5e7eb !important;
	background: #ffffff !important;
	color: #6b7280 !important;
	text-decoration: none !important;
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	transition: all 0.2s ease !important;
	cursor: pointer !important;
}

.coursee-share-btn:hover {
	transform: translateY(-2px) !important;
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
	border-color: #d1d5db !important;
}

.coursee-share-btn.facebook:hover {
	background: #1877f2 !important;
	border-color: #1877f2 !important;
	color: #ffffff !important;
}

.coursee-share-btn.twitter:hover {
	background: #1da1f2 !important;
	border-color: #1da1f2 !important;
	color: #ffffff !important;
}

.coursee-share-btn.linkedin:hover {
	background: #0077b5 !important;
	border-color: #0077b5 !important;
	color: #ffffff !important;
}

.coursee-share-btn.whatsapp:hover {
	background: #25d366 !important;
	border-color: #25d366 !important;
	color: #ffffff !important;
}

/* ============================================
   FILTERS SYSTEM
   ============================================ */

.coursee-filters {
	background: rgba(255, 255, 255, 0.95) !important;
	backdrop-filter: blur(20px) saturate(180%) !important;
	-webkit-backdrop-filter: blur(20px) saturate(180%) !important;
	border-radius: 12px !important;
	padding: 1.5rem !important;
	margin-bottom: 2rem !important;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08) !important;
	border: 1px solid rgba(229, 231, 235, 0.5) !important;
}

.coursee-filter-group {
	display: flex !important;
	flex-wrap: wrap !important;
	gap: 1rem !important;
	align-items: center !important;
}

.coursee-filter-label {
	font-size: 0.875rem !important;
	font-weight: 600 !important;
	color: #6b7280 !important;
	margin-right: 0.5rem !important;
}

.coursee-filter-btn {
	padding: 0.5rem 1rem !important;
	border-radius: 8px !important;
	border: 1px solid #d1d5db !important;
	background: #ffffff !important;
	color: #6b7280 !important;
	font-size: 0.875rem !important;
	font-weight: 500 !important;
	cursor: pointer !important;
	transition: all 0.2s ease !important;
}

.coursee-filter-btn:hover {
	border-color: #5624d0 !important;
	color: #5624d0 !important;
	background: rgba(86, 36, 208, 0.05) !important;
}

.coursee-filter-btn.active {
	background: linear-gradient(135deg, #5624d0 0%, #667eea 100%) !important;
	border-color: transparent !important;
	color: #ffffff !important;
	box-shadow: 0 2px 8px rgba(86, 36, 208, 0.3) !important;
}

/* ============================================
   PROGRESS INDICATORS ENHANCED
   ============================================ */

.coursee-progress-ring {
	width: 120px !important;
	height: 120px !important;
	position: relative !important;
}

.coursee-progress-ring svg {
	transform: rotate(-90deg) !important;
}

.coursee-progress-ring-circle {
	fill: none !important;
	stroke-width: 8 !important;
	stroke-linecap: round !important;
	transition: stroke-dashoffset 0.5s ease !important;
}

.coursee-progress-ring-bg {
	stroke: #e5e7eb !important;
}

.coursee-progress-ring-progress {
	stroke: url(#progress-gradient) !important;
	stroke-dasharray: 283 !important;
	stroke-dashoffset: 283 !important;
}

.coursee-progress-ring-text {
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%) !important;
	font-size: 1.5rem !important;
	font-weight: 800 !important;
	color: #1a1a1a !important;
}

/* ============================================
   ANIMATIONS ENHANCED
   ============================================ */

@keyframes fade-in-up {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fade-in-down {
	from {
		opacity: 0;
		transform: translateY(-20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes scale-in {
	from {
		opacity: 0;
		transform: scale(0.9);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

.coursee-fade-in-up {
	animation: fade-in-up 0.6s ease-out !important;
}

.coursee-fade-in-down {
	animation: fade-in-down 0.6s ease-out !important;
}

.coursee-scale-in {
	animation: scale-in 0.4s ease-out !important;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 768px) {
	.coursee-toast-container {
		top: 1rem !important;
		right: 1rem !important;
		left: 1rem !important;
		max-width: none !important;
	}
	
	.coursee-toast {
		min-width: auto !important;
		max-width: none !important;
	}
	
	.coursee-modal {
		max-width: 100% !important;
		margin: 1rem !important;
	}
	
	.coursee-modal-header,
	.coursee-modal-body,
	.coursee-modal-footer {
		padding: 1rem 1.5rem !important;
	}
	
	.coursee-filter-group {
		flex-direction: column !important;
		align-items: stretch !important;
	}
	
	.coursee-filter-btn {
		width: 100% !important;
	}
}

