/* 
 * AAtoons Study Community - Popup System Styles 
 */

#aatoons-popup-container {
	position: fixed;
	z-index: 999999;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	pointer-events: none; /* Let clicks pass through when empty */
}

.aatoons-popup-overlay {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.4);
	backdrop-filter: blur(4px);
	display: flex;
	align-items: center;
	justify-content: center;
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: auto; /* Catch clicks */
}

.aatoons-popup-overlay.active {
	opacity: 1;
}

.aatoons-popup-box {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
	width: 90%;
	max-width: 400px;
	padding: 24px;
	transform: scale(0.95) translateY(10px);
	transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.aatoons-popup-overlay.active .aatoons-popup-box {
	transform: scale(1) translateY(0);
}

.aatoons-popup-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}

.aatoons-popup-icon svg {
	width: 24px;
	height: 24px;
}

.aatoons-popup-icon.success {
	background: #ECFDF5;
	color: #10B981;
}

.aatoons-popup-icon.error {
	background: #FEF2F2;
	color: #EF4444;
}

.aatoons-popup-icon.warning {
	background: #FFFBEB;
	color: #F59E0B;
}

.aatoons-popup-icon.info {
	background: #EEF2FF;
	color: #4F46E5;
}

.aatoons-popup-content {
	width: 100%;
}

.aatoons-popup-title {
	margin: 0 0 8px 0;
	font-size: 1.25rem;
	font-weight: 700;
	color: #1F2937;
}

.aatoons-popup-message {
	margin: 0 0 20px 0;
	font-size: 0.95rem;
	color: #4B5563;
	line-height: 1.5;
	white-space: pre-wrap;
}

.aatoons-popup-input {
	width: 100%;
	padding: 12px 16px;
	border: 1px solid #E5E7EB;
	border-radius: 8px;
	font-size: 0.95rem;
	margin-bottom: 20px;
	box-sizing: border-box;
	transition: border-color 0.2s, box-shadow 0.2s;
	font-family: inherit;
}

.aatoons-popup-input:focus {
	outline: none;
	border-color: #4F46E5;
	box-shadow: 0 0 0 3px #EEF2FF;
}

.aatoons-popup-actions {
	display: flex;
	gap: 12px;
	width: 100%;
}

.aatoons-popup-btn {
	flex: 1;
	padding: 10px 16px;
	border: none;
	border-radius: 8px;
	font-weight: 600;
	font-size: 0.95rem;
	cursor: pointer;
	transition: background-color 0.2s, transform 0.1s;
	font-family: inherit;
}

.aatoons-popup-btn:active {
	transform: scale(0.98);
}

.aatoons-popup-btn-cancel {
	background: #F3F4F6;
	color: #374151;
}

.aatoons-popup-btn-cancel:hover {
	background: #E5E7EB;
}

.aatoons-popup-btn-primary {
	background: #4F46E5;
	color: #fff;
}

.aatoons-popup-btn-primary:hover {
	background: #4338CA;
}

.aatoons-popup-btn-danger {
	background: #EF4444;
	color: #fff;
}

.aatoons-popup-btn-danger:hover {
	background: #DC2626;
}

/* Share Popup Styles */
.aatoons-share-link-wrapper {
	display: flex;
	gap: 10px;
	margin-bottom: 25px;
	align-items: center;
}
.aatoons-share-link-wrapper input {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid #E5E7EB;
	border-radius: 6px;
	background: #F9FAFB;
	color: #374151;
	font-size: 14px;
	outline: none;
}
.aatoons-share-copy-btn {
	padding: 10px 16px;
	background: #3B82F6;
	color: white;
	border: none;
	border-radius: 6px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: background-color 0.2s;
	white-space: nowrap;
}
.aatoons-share-copy-btn:hover {
	background: #2563EB;
}
.aatoons-share-social-grid {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	justify-content: center;
}
.aatoons-share-social-btn {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 50%;
	background: #F3F4F6;
	transition: all 0.2s;
	text-decoration: none;
}
.aatoons-share-social-btn:hover {
	background: #E5E7EB;
	transform: translateY(-2px);
}
.aatoons-share-social-btn svg {
	width: 24px;
	height: 24px;
}
