/* CuisineCo Poseurs - Frontend Styles */

.csp-poseurs-page {
	max-width: 900px;
}

.csp-poseurs-page h2 {
	font-size: 24px;
	font-weight: 700;
	margin-bottom: 8px;
	color: #333;
}

.csp-sector-info {
	color: #666;
	margin-bottom: 20px;
	font-size: 14px;
}

.csp-notice {
	background: #fff3cd;
	border: 1px solid #ffc107;
	border-radius: 8px;
	padding: 16px 20px;
	color: #856404;
}

.csp-notice a {
	color: #856404;
	font-weight: 600;
	text-decoration: underline;
}

/* ====== Lock Alert Banner ====== */
.csp-lock-alert {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	background: linear-gradient(135deg, #fef3c7, #fde68a);
	border: 1px solid #f59e0b;
	border-radius: 12px;
	padding: 16px 20px;
	margin-bottom: 20px;
	color: #92400e;
	animation: cspSlideDown 0.3s ease;
}

.csp-lock-alert svg {
	flex-shrink: 0;
	margin-top: 2px;
	color: #d97706;
}

.csp-lock-alert strong {
	display: block;
	margin-bottom: 4px;
	color: #78350f;
	font-size: 15px;
}

.csp-lock-alert span {
	font-size: 13px;
	color: #92400e;
	line-height: 1.4;
}

@keyframes cspSlideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ====== Locked Card ====== */
.csp-card-locked {
	opacity: 0.5;
	pointer-events: none;
	filter: grayscale(40%);
	position: relative;
}

.csp-card-locked .csp-poseur-actions {
	pointer-events: auto;
}

.csp-btn-disabled {
	background: #9ca3af !important;
	cursor: not-allowed !important;
	opacity: 0.7;
}

.csp-btn-disabled:hover {
	background: #9ca3af !important;
	transform: none !important;
	box-shadow: none !important;
}

.csp-btn-spinner {
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255, 255, 255, 0.3);
	border-top-color: #fff;
	border-radius: 50%;
	animation: cspSpin 0.6s linear infinite;
}

/* ====== Poseur Card ====== */
.csp-poseurs-grid {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.csp-poseur-card {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 16px;
	padding: 24px;
	transition: box-shadow 0.3s, transform 0.3s;
}

.csp-poseur-card:hover {
	box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
	transform: translateY(-2px);
}

.csp-poseur-header {
	display: flex;
	gap: 16px;
	align-items: flex-start;
}

.csp-poseur-photo {
	flex-shrink: 0;
}

.csp-poseur-photo img {
	width: 80px;
	height: 80px;
	object-fit: cover;
	border-radius: 50%;
	border: 3px solid #e5e7eb;
}

.csp-poseur-no-photo {
	width: 80px;
	height: 80px;
	border-radius: 50%;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 24px;
	font-weight: 700;
}

.csp-poseur-info {
	flex: 1;
	min-width: 0;
}

.csp-poseur-info h3 {
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 700;
	color: #1f2937;
}

/* Stars */
.csp-poseur-rating {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

.csp-stars-display .csp-star {
	color: #ddd;
	font-size: 18px;
	line-height: 1;
}

.csp-stars-display .csp-star.filled {
	color: #f5a623;
}

.csp-rating-text {
	font-size: 13px;
	color: #6b7280;
}

/* Ville Badges */
.csp-poseur-villes {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	align-items: center;
}

.csp-ville-badge {
	display: inline-flex !important;
	align-items: center !important;
	background: #eff6ff;
	color: #1d4ed8;
	padding: 1px 10px !important;
	border-radius: 12px !important;
	font-size: 11px !important;
	font-weight: 500;
	line-height: 18px !important;
	height: auto !important;
	min-height: 0 !important;
}

.csp-ville-more {
	background: #1d4ed8 !important;
	color: #fff !important;
	border: none !important;
	cursor: pointer;
	font-weight: 700;
	font-size: 11px !important;
	padding: 1px 12px !important;
	line-height: 18px !important;
	height: auto !important;
	min-height: 0 !important;
	width: auto !important;
	min-width: 0 !important;
	transition: all 0.2s;
}

.csp-ville-more:hover {
	background: #1e40af !important;
	transform: scale(1.05);
}

/* ====== Gallery ====== */
.csp-poseur-galerie {
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #f3f4f6;
}

.csp-poseur-galerie h4 {
	margin: 0 0 10px;
	font-size: 14px;
	font-weight: 600;
	color: #4b5563;
}

.csp-galerie-grid {
	display: flex;
	gap: 8px;
	overflow-x: auto;
	padding-bottom: 6px;
}

.csp-galerie-item {
	flex-shrink: 0;
	width: 100px;
	height: 100px;
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid #e5e7eb;
	cursor: pointer;
	position: relative;
}

.csp-galerie-item img,
.csp-galerie-item video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

/* Video overlay with play icon */
.csp-galerie-video-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	display: flex;
	align-items: center;
	justify-content: center;
	pointer-events: none;
	transition: background 0.3s;
}

.csp-galerie-video-overlay svg {
	opacity: 0.9;
	filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
	transition: all 0.3s;
}

.csp-galerie-item:hover .csp-galerie-video-overlay {
	background: rgba(0, 0, 0, 0.5);
}

.csp-galerie-item:hover .csp-galerie-video-overlay svg {
	transform: scale(1.15);
	opacity: 1;
}

.csp-galerie-item:hover video {
	transform: scale(1.1);
}

.csp-galerie-hover {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background 0.3s;
	pointer-events: none;
}

.csp-galerie-hover svg {
	opacity: 0;
	transform: scale(0.7);
	transition: all 0.3s;
}

.csp-galerie-item:hover img {
	transform: scale(1.1);
}

.csp-galerie-item:hover .csp-galerie-hover {
	background: rgba(0, 0, 0, 0.35);
}

.csp-galerie-item:hover .csp-galerie-hover svg {
	opacity: 1;
	transform: scale(1);
}

/* Gallery "+N" overlay */
.csp-galerie-more-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
}

.csp-galerie-more-overlay span {
	color: #fff;
	font-size: 22px;
	font-weight: 700;
	text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.csp-galerie-more:hover .csp-galerie-more-overlay {
	background: rgba(0, 0, 0, 0.7);
}

/* ====== Actions ====== */
.csp-poseur-actions {
	display: flex;
	gap: 10px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #f3f4f6;
	flex-wrap: wrap;
}

.csp-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 10px 22px;
	border: none;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.25s;
	text-decoration: none;
}

.csp-btn svg {
	flex-shrink: 0;
}

.csp-btn-contact {
	background: #059669;
	color: #fff;
}

.csp-btn-contact:hover {
	background: #047857;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(5, 150, 105, 0.3);
}

.csp-btn-review {
	background: #f59e0b;
	color: #fff;
}

.csp-btn-review:hover {
	background: #d97706;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(245, 158, 11, 0.3);
}

.csp-btn-primary {
	background: #2563eb;
	color: #fff;
	padding: 12px 28px;
	font-size: 15px;
}

.csp-btn-primary:hover {
	background: #1d4ed8;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.csp-btn-full {
	width: 100%;
	justify-content: center;
}

.csp-btn-whatsapp {
	background: #25d366;
	color: #fff;
	width: 100%;
	justify-content: center;
	margin-top: 12px;
}

.csp-btn-whatsapp:hover {
	background: #1fb855;
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
	color: #fff;
}

.csp-already-reviewed {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 10px 20px;
	background: #f3f4f6;
	color: #6b7280;
	border-radius: 10px;
	font-size: 13px;
}

/* ====== Lightbox ====== */
.csp-lightbox {
	position: fixed;
	inset: 0;
	z-index: 999999;
}

.csp-lightbox-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.92);
	animation: cspFadeIn 0.3s;
}

.csp-lightbox-wrapper {
	position: relative;
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 1;
}

.csp-lightbox-close {
	position: absolute !important;
	top: 20px !important;
	right: 20px !important;
	left: auto !important;
	bottom: auto !important;
	background: rgba(255, 255, 255, 0.15) !important;
	border: none !important;
	width: 48px !important;
	height: 48px !important;
	min-width: 0 !important;
	border-radius: 50% !important;
	cursor: pointer;
	color: #fff !important;
	font-size: 32px !important;
	font-weight: 300 !important;
	line-height: 48px !important;
	text-align: center !important;
	padding: 0 !important;
	margin: 0 !important;
	z-index: 2;
	display: block !important;
	transition: background 0.2s;
}

.csp-lightbox-close:hover {
	background: rgba(255, 255, 255, 0.3) !important;
}

.csp-lightbox-prev,
.csp-lightbox-next {
	position: absolute !important;
	top: 50% !important;
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.15) !important;
	border: none !important;
	width: 52px !important;
	height: 52px !important;
	min-width: 0 !important;
	border-radius: 50% !important;
	cursor: pointer;
	color: #fff !important;
	font-size: 36px !important;
	font-weight: 300 !important;
	line-height: 52px !important;
	text-align: center !important;
	padding: 0 !important;
	margin: 0 !important;
	z-index: 2;
	display: block !important;
	transition: all 0.2s;
}

.csp-lightbox-prev {
	left: 16px !important;
	right: auto !important;
}

.csp-lightbox-next {
	right: 16px !important;
	left: auto !important;
}

.csp-lightbox-prev:hover,
.csp-lightbox-next:hover {
	background: rgba(255, 255, 255, 0.3) !important;
	transform: translateY(-50%) scale(1.05);
}

.csp-lightbox-img-container {
	max-width: 85vw;
	max-height: 85vh;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

.csp-lightbox-img-container img,
.csp-lightbox-img-container video {
	max-width: 85vw;
	max-height: 85vh;
	object-fit: contain;
	border-radius: 8px;
	animation: cspZoomIn 0.35s;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.csp-lightbox-img-container video {
	background: #000;
}

.csp-lightbox-loader {
	display: none;
	width: 36px;
	height: 36px;
	border: 3px solid rgba(255, 255, 255, 0.2);
	border-top-color: white;
	border-radius: 50%;
	animation: cspSpin 0.8s linear infinite;
	position: absolute;
}

.csp-lightbox-counter {
	position: absolute;
	bottom: 24px;
	left: 50%;
	transform: translateX(-50%);
	color: rgba(255, 255, 255, 0.7);
	font-size: 14px;
	font-weight: 500;
	background: rgba(0, 0, 0, 0.4);
	padding: 6px 16px;
	border-radius: 20px;
}

/* ====== Modals ====== */
.csp-modal {
	position: fixed;
	inset: 0;
	z-index: 99999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.csp-modal-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	backdrop-filter: blur(4px);
	-webkit-backdrop-filter: blur(4px);
	animation: cspFadeIn 0.25s;
}

.csp-modal-content {
	position: relative;
	background: #fff;
	border-radius: 20px;
	padding: 36px 32px;
	max-width: 420px;
	width: 90%;
	max-height: 85vh;
	overflow-y: auto;
	box-shadow: 0 25px 80px rgba(0, 0, 0, 0.2);
	z-index: 1;
	animation: cspSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
	text-align: center;
}

.csp-modal-close {
	position: absolute !important;
	top: 12px !important;
	right: 12px !important;
	left: auto !important;
	bottom: auto !important;
	background: #f3f4f6 !important;
	border: none !important;
	width: 38px !important;
	height: 38px !important;
	min-width: 0 !important;
	border-radius: 50% !important;
	cursor: pointer;
	font-size: 22px !important;
	font-weight: 400 !important;
	line-height: 38px !important;
	text-align: center !important;
	color: #6b7280 !important;
	transition: all 0.2s;
	padding: 0 !important;
	margin: 0 !important;
	z-index: 10;
	display: block !important;
	float: none !important;
	transform: none;
}

.csp-modal-close:hover {
	background: #e5e7eb !important;
	color: #1f2937 !important;
	transform: scale(1.05);
}

.csp-modal-icon {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 20px;
}

.csp-modal-icon-green {
	background: linear-gradient(135deg, #059669, #10b981);
	box-shadow: 0 8px 24px rgba(5, 150, 105, 0.3);
}

.csp-modal-icon-yellow {
	background: linear-gradient(135deg, #f59e0b, #fbbf24);
	box-shadow: 0 8px 24px rgba(245, 158, 11, 0.3);
}

.csp-modal-icon-blue {
	background: linear-gradient(135deg, #2563eb, #3b82f6);
	box-shadow: 0 8px 24px rgba(37, 99, 235, 0.3);
}

.csp-villes-list {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	justify-content: center;
	max-height: 300px;
	overflow-y: auto;
	padding: 4px 0;
}

.csp-villes-list .csp-ville-badge {
	font-size: 12px;
	padding: 4px 14px;
}

.csp-modal-content h3 {
	margin: 0 0 4px;
	font-size: 22px;
	font-weight: 700;
	color: #1f2937;
}

.csp-modal-subtitle {
	margin: 0 0 24px;
	color: #6b7280;
	font-size: 14px;
}

/* Contact Modal */
.csp-contact-phone {
	background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
	padding: 20px;
	border-radius: 14px;
	border: 1px solid #bbf7d0;
	margin: 20px 0 12px;
}

.csp-phone-number {
	font-size: 26px;
	font-weight: 800;
	color: #059669;
	text-decoration: none;
	direction: ltr;
	display: block;
	letter-spacing: 1px;
}

.csp-phone-number:hover {
	color: #047857;
}

.csp-contact-hint {
	color: #9ca3af;
	font-size: 12px;
	margin: 0 0 4px;
}

/* Review Modal */
.csp-rating-input {
	margin-bottom: 20px;
	text-align: center;
}

.csp-rating-input label {
	display: block;
	font-weight: 600;
	margin-bottom: 10px;
	color: #374151;
	font-size: 15px;
}

.csp-stars-input {
	display: flex;
	gap: 6px;
	justify-content: center;
}

.csp-star-input {
	font-size: 40px;
	color: #e5e7eb;
	cursor: pointer;
	transition: all 0.2s;
	line-height: 1;
}

.csp-star-input:hover,
.csp-star-input.active {
	color: #f5a623;
	transform: scale(1.15);
}

.csp-rating-label {
	display: block;
	margin-top: 8px;
	font-size: 13px;
	color: #f59e0b;
	font-weight: 600;
	min-height: 18px;
}

.csp-comment-input {
	margin-bottom: 20px;
	text-align: left;
}

.csp-comment-input label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: #374151;
	font-size: 14px;
}

.csp-comment-input textarea {
	width: 100%;
	border: 2px solid #e5e7eb;
	border-radius: 12px;
	padding: 14px;
	font-size: 14px;
	resize: vertical;
	font-family: inherit;
	transition: all 0.2s;
	box-sizing: border-box;
}

.csp-comment-input textarea:focus {
	outline: none;
	border-color: #2563eb;
	box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.08);
}

/* Image Upload */
.csp-images-input {
	margin-bottom: 20px;
	text-align: left;
}

.csp-images-input label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: #374151;
	font-size: 14px;
}

.csp-required {
	color: #ef4444;
}

.csp-upload-zone {
	border: 2px dashed #d1d5db;
	border-radius: 12px;
	padding: 20px;
	text-align: center;
	cursor: pointer;
	transition: all 0.2s;
	background: #fafbfc;
}

.csp-upload-zone:hover,
.csp-upload-zone.dragover {
	border-color: #2563eb;
	background: #eff6ff;
}

.csp-upload-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
}

.csp-upload-placeholder span {
	font-size: 13px;
	color: #6b7280;
	font-weight: 500;
}

.csp-upload-placeholder small {
	font-size: 11px;
	color: #9ca3af;
}

.csp-upload-preview {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	justify-content: center;
}

.csp-upload-thumb {
	position: relative;
	width: 70px;
	height: 70px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #e5e7eb;
}

.csp-upload-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.csp-upload-thumb-remove {
	position: absolute !important;
	top: 2px !important;
	right: 2px !important;
	left: auto !important;
	width: 20px !important;
	height: 20px !important;
	min-width: 0 !important;
	min-height: 0 !important;
	border-radius: 50% !important;
	background: rgba(239, 68, 68, 0.9) !important;
	color: #fff !important;
	border: none !important;
	cursor: pointer;
	font-size: 14px !important;
	line-height: 20px !important;
	text-align: center !important;
	padding: 0 !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
}

.csp-upload-error {
	margin-top: 8px;
	color: #ef4444;
	font-size: 12px;
}

.csp-review-submit {
	margin-top: 8px;
}

.csp-review-message {
	margin-top: 16px;
	padding: 12px 16px;
	border-radius: 10px;
	font-size: 14px;
	font-weight: 500;
}

.csp-review-message.success {
	background: #d1fae5;
	color: #065f46;
	border: 1px solid #a7f3d0;
}

.csp-review-message.error {
	background: #fee2e2;
	color: #991b1b;
	border: 1px solid #fecaca;
}

/* ====== Animations ====== */
@keyframes cspFadeIn {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes cspSlideUp {
	from {
		opacity: 0;
		transform: translateY(30px) scale(0.95);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

@keyframes cspZoomIn {
	from {
		opacity: 0;
		transform: scale(0.85);
	}
	to {
		opacity: 1;
		transform: scale(1);
	}
}

@keyframes cspSpin {
	to { transform: rotate(360deg); }
}

/* ====== Mobile ====== */
@media (max-width: 600px) {
	.csp-poseur-header {
		flex-direction: column;
		align-items: center;
		text-align: center;
	}

	.csp-poseur-rating {
		justify-content: center;
	}

	.csp-poseur-villes {
		justify-content: center;
	}

	.csp-poseur-actions {
		justify-content: center;
	}

	.csp-poseur-card {
		padding: 16px;
	}

	.csp-modal-content {
		padding: 28px 20px;
		border-radius: 16px;
	}

	.csp-lightbox-prev {
		left: 8px;
		width: 40px;
		height: 40px;
	}

	.csp-lightbox-next {
		right: 8px;
		width: 40px;
		height: 40px;
	}

	.csp-lightbox-img-container img,
	.csp-lightbox-img-container video {
		max-width: 95vw;
		max-height: 80vh;
	}

	.csp-btn {
		width: 100%;
		justify-content: center;
	}

	.csp-btn-whatsapp {
		margin-top: 8px;
	}
}
