/**
 * AskAny Pro Features Styling
 * 
 * Reusable styles for Pro badges, locked features, and upgrade modals
 * Usage:
 * - Add .askany-pro-badge to any element to show a Pro badge
 * - Add .askany-locked-feature to lock any feature with blur effect
 * - Use AskanyPro.openModal() to show upgrade modal
 * 
 * @package Askany
 * @since 1.9.0
 */

/* ==================== Pro Badge Component ==================== */
/**
 * Reusable Pro badge that can be added anywhere
 * 
 * Usage:
 * <span class="askany-pro-badge">
 *   <svg>...</svg>
 *   PRO
 * </span>
 * 
 * Sizes: .small, .large (default is medium)
 * Positions: .inline, .absolute-top-right
 */

.askany-pro-badge {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 2px 8px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	font-size: 10px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	border-radius: 12px;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
	vertical-align: middle;
	margin-left: 6px;
	white-space: nowrap;
	user-select: none;
}

.askany-pro-badge:hover {
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.askany-pro-badge svg {
	width: 12px;
	height: 12px;
	flex-shrink: 0;
}

/* Badge sizes */
.askany-pro-badge.small {
	padding: 1px 6px;
	font-size: 9px;
	gap: 3px;
}

.askany-pro-badge.small svg {
	width: 10px;
	height: 10px;
}

.askany-pro-badge.large {
	padding: 4px 12px;
	font-size: 12px;
	gap: 5px;
}

.askany-pro-badge.large svg {
	width: 14px;
	height: 14px;
}

/* Badge positioning */
.askany-pro-badge.inline {
	margin-left: 6px;
	vertical-align: middle;
}

.askany-pro-badge.absolute-top-right {
	position: absolute;
	top: 10px;
	right: 10px;
	margin: 0;
	z-index: 10;
}

/* ==================== Locked Feature ==================== */
.askany-locked-feature {
	position: relative;
	pointer-events: none;
	cursor: not-allowed;
}

.askany-locked-feature::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(3px);
	-webkit-backdrop-filter: blur(3px);
	border-radius: 8px;
	z-index: 1;
	transition: all 0.3s ease;
}

.askany-locked-feature:hover::before {
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	background: rgba(255, 255, 255, 0.85);
}

.askany-locked-feature::after {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 40px;
	height: 40px;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border-radius: 50%;
	z-index: 2;
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='11' width='18' height='11' rx='2' ry='2'%3E%3C/rect%3E%3Cpath d='M7 11V7a5 5 0 0 1 10 0v4'%3E%3C/path%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: center;
	background-size: 20px 20px;
}

.askany-locked-feature .askany-pro-badge {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	pointer-events: all;
}

/* ==================== Pro Modal ==================== */
.askany-pro-modal {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	display: none;
	align-items: center;
	justify-content: center;
	animation: askany-modal-fade-in 0.3s ease;
}

.askany-pro-modal.active {
	display: flex;
}

@keyframes askany-modal-fade-in {
	from {
		opacity: 0;
	}

	to {
		opacity: 1;
	}
}

.askany-pro-modal-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.7);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
}

.askany-pro-modal-content {
	position: relative;
	background: white;
	border-radius: 16px;
	max-width: 500px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	animation: askany-modal-slide-up 0.3s ease;
	z-index: 1;
	margin: 50px auto;
}

@keyframes askany-modal-slide-up {
	from {
		transform: translateY(30px);
		opacity: 0;
	}

	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.askany-pro-modal-close {
	position: absolute;
	top: 15px;
	right: 15px;
	background: rgba(0, 0, 0, 0.05);
	border: none;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: all 0.3s ease;
	z-index: 1;
}