/**
 * NEF Facilitator Popup Styles
 *
 * @package NEF_Platform
 */

/* ==========================================================================
   Popup Trigger Elements
   ========================================================================== */

/* Make elements with popup trigger clickable */
[data-facilitator-popup] {
	cursor: pointer !important;
	transition: opacity 0.2s ease, transform 0.2s ease !important;
}

[data-facilitator-popup]:hover {
	opacity: 0.85 !important;
	transform: scale(1.02) !important;
}

/* For images specifically */
[data-facilitator-popup] img {
	transition: transform 0.3s ease !important;
}

[data-facilitator-popup]:hover img {
	transform: scale(1.05) !important;
}

/* ==========================================================================
   Popup Base
   ========================================================================== */

.nef-popup {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}

.nef-popup-overlay {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.6);
	backdrop-filter: blur(4px);
}

.nef-popup-container {
	position: relative;
	background: #fff;
	border-radius: 16px;
	width: 100%;
	max-width: 560px;
	max-height: 90vh;
	overflow-y: auto;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	animation: nef-popup-in 0.25s ease-out;
}

@keyframes nef-popup-in {
	from {
		opacity: 0;
		transform: scale(0.95) translateY(-10px);
	}
	to {
		opacity: 1;
		transform: scale(1) translateY(0);
	}
}

.nef-popup-close {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 36px;
	height: 36px;
	background: rgba(255, 255, 255, 0.9);
	border: none;
	font-size: 28px;
	line-height: 1;
	color: #6b7280;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	transition: all 0.2s;
	z-index: 10;
}

.nef-popup-close:hover {
	background: #f3f4f6;
	color: #374151;
}

.nef-popup-content {
	padding: 32px;
}

/* ==========================================================================
   Loading State
   ========================================================================== */

.nef-popup-loading {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 200px;
}

.nef-popup-loading .nef-spinner {
	width: 40px;
	height: 40px;
	color: #7c3aed;
	animation: nef-spin 1s linear infinite;
}

@keyframes nef-spin {
	to { transform: rotate(360deg); }
}

/* ==========================================================================
   Error State
   ========================================================================== */

.nef-popup-error {
	text-align: center;
	padding: 40px 20px;
}

.nef-popup-error p {
	margin-bottom: 20px;
	color: #991b1b;
}

/* ==========================================================================
   Facilitator Popup Content
   ========================================================================== */

.nef-facilitator-popup-header {
	display: flex;
	gap: 24px;
	margin-bottom: 24px;
}

.nef-facilitator-popup-photo {
	flex-shrink: 0;
	width: 140px;
	height: 140px;
	border-radius: 12px;
	overflow: hidden;
}

.nef-facilitator-popup-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nef-facilitator-popup-info {
	flex: 1;
	min-width: 0;
}

.nef-facilitator-popup-name {
	margin: 0 0 8px;
	font-size: 24px !important;
	font-weight: 600 !important;
	color: #111827;
}

.nef-facilitator-popup-tagline {
	margin: 0 0 12px;
	font-size: 16px;
	color: #6b7280;
	font-style: italic;
}

.nef-facilitator-popup-location {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0 0 12px;
	font-size: 14px;
	color: #6b7280;
}

.nef-facilitator-popup-location svg {
	color: #9ca3af;
}

.nef-facilitator-popup-rating {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 14px;
}

.nef-facilitator-popup-rating svg {
	color: #f59e0b;
}

.nef-rating-value {
	font-weight: 600;
	color: #111827;
}

.nef-review-count {
	color: #6b7280;
}

/* ==========================================================================
   Modalities
   ========================================================================== */

.nef-facilitator-popup-modalities {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 24px;
}

.nef-modality-tag {
	display: inline-block;
	padding: 6px 12px;
	background: #f3f4f6;
	border-radius: 20px;
	font-size: 13px;
	font-weight: 500;
	color: #374151;
}

/* ==========================================================================
   Bio
   ========================================================================== */

.nef-facilitator-popup-bio {
	margin-bottom: 24px;
	padding: 20px;
	background: #f9fafb;
	border-radius: 12px;
}

.nef-facilitator-popup-bio p {
	margin: 0;
	font-size: 15px;
	line-height: 1.6;
	color: #4b5563;
}

/* ==========================================================================
   Stats
   ========================================================================== */

.nef-facilitator-popup-stats {
	display: flex;
	gap: 24px;
	margin-bottom: 24px;
	padding: 16px 0;
	border-top: 1px solid #e5e7eb;
	border-bottom: 1px solid #e5e7eb;
}

.nef-stat {
	display: flex;
	align-items: center;
	gap: 8px;
}

.nef-stat svg {
	color: #7c3aed;
}

.nef-stat-value {
	font-size: 20px;
	font-weight: 700;
	color: #272727;
}

.nef-stat-label {
	font-size: 14px;
	color: #6b7280;
}

/* ==========================================================================
   Actions
   ========================================================================== */

.nef-facilitator-popup-actions {
	display: flex;
	gap: 12px;
}

.nef-facilitator-popup-actions .nef-btn {
	flex: 1;
	text-align: center;
}

/* ==========================================================================
   Button Styles (if not already defined)
   ========================================================================== */

.nef-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 24px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 8px;
	cursor: pointer;
	transition: all 0.2s;
	border: 2px solid transparent;
	text-decoration: none;
}

.nef-btn-primary {
	background: #d5b828;
	color: #ffffff !important;
}

.nef-btn-primary:hover {
	background: #c0a624;
	color: #ffffff !important;
}

.nef-btn-outline {
	background: transparent;
	color: #7c3aed;
	border-color: #7c3aed;
}

.nef-btn-outline:hover {
	background: #7c3aed;
	color: #fff;
}

/* ==========================================================================
   Body Lock
   ========================================================================== */

body.nef-popup-open {
	overflow: hidden;
}

/* ==========================================================================
   Mobile Responsive
   ========================================================================== */

@media (max-width: 600px) {
	.nef-popup {
		padding: 0;
	}

	.nef-popup-container {
		max-width: 100%;
		max-height: 100vh;
		border-radius: 0;
	}

	.nef-popup-content {
		padding: 24px 20px;
	}

	.nef-facilitator-popup-header {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.nef-facilitator-popup-photo {
		width: 120px;
		height: 120px;
	}

	.nef-facilitator-popup-location {
		justify-content: center;
	}

	.nef-facilitator-popup-rating {
		justify-content: center;
	}

	.nef-facilitator-popup-modalities {
		justify-content: center;
	}

	.nef-facilitator-popup-stats {
		flex-direction: column;
		gap: 12px;
	}

	.nef-facilitator-popup-actions {
		flex-direction: column;
	}
}
