/* Global Share Popup Styles */
.hvnly-property-share-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 999999;
	opacity: 0;
	visibility: hidden;
	transition: all 0.3s ease;
}

.hvnly-property-share-popup-overlay.active {
	opacity: 1;
	visibility: visible;
}

.hvnly-property-share-popup-content {
	background: var(--hvnly-bg-primary, #ffffff);
	border-radius: 16px;
	padding: 25px;
	max-width: 420px;
	width: 90%;
	max-height: 90vh;
	overflow-y: auto;
	transform: scale(0.7) translateY(-20px);
	opacity: 0;
	transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
	position: relative;
}

.hvnly-property-share-popup-overlay.active .hvnly-property-share-popup-content {
	transform: scale(1) translateY(0);
	opacity: 1;
}

/* Popup Header */
.hvnly-property-popup-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid var(--hvnly-border-color, #e5e7eb);
}

.hvnly-property-popup-title {
	font-size: 1.25rem;
	font-weight: 600;
	color: var(--hvnly-text-primary, #1f2937);
	margin: 0;
}

.hvnly-property-popup-close {
	background: none;
	border: none;
	font-size: 1.1rem;
	color: var(--hvnly-text-secondary, #6b7280);
	cursor: pointer;
	padding: 5px;
	border-radius: 50%;
	transition: all 0.3s ease;
	line-height: 1;
}

.hvnly-property-popup-close:hover {
	background: var(--hvnly-bg-tertiary, #f3f4f6);
	color: var(--hvnly-text-primary, #1f2937);
}

/* Share Statistics */
.hvnly-property-share-stats {
	display: flex;
	justify-content: space-between;
	align-items: center;
	background: var(--hvnly-bg-secondary, #f8f9fa);
	padding: 15px;
	border-radius: 12px;
	margin-bottom: 20px;
}

.hvnly-property-share-count {
	display: flex;
	align-items: center;
	gap: 8px;
}

.hvnly-property-count-number {
	font-size: 1.5rem;
	font-weight: 700;
	color: var(--hvnly-brand-primary, #667eea);
}

.hvnly-property-count-label {
	color: var(--hvnly-text-secondary, #6b7280);
	font-size: 0.9rem;
}

.hvnly-property-auto-close-timer {
	display: flex;
	align-items: center;
	gap: 5px;
	color: var(--hvnly-error-color, #ef4444);
	font-size: 0.8rem;
	font-weight: 500;
}

.hvnly-property-auto-close-timer.timer-warning {
	animation: hvnlyPropertyPulse 1s infinite;
}

@keyframes hvnlyPropertyPulse {
	0% { transform: scale(1); }
	50% { transform: scale(1.05); }
	100% { transform: scale(1); }
}

/* Platforms Grid */
.hvnly-property-share-platforms-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 20px;
}

.hvnly-property-share-platform {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 15px 8px;
	border-radius: 12px;
	background: var(--hvnly-bg-secondary, #f8f9fa);
	border: 2px solid transparent;
	cursor: pointer;
	transition: all 0.3s ease;
	text-decoration: none;
	color: inherit;
}

.hvnly-property-share-platform:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
	border-color: var(--hvnly-border-color, #e5e7eb);
}

.hvnly-property-platform-icon {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.2rem;
	color: white;
}

.hvnly-property-platform-name {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--hvnly-text-primary, #1f2937);
	text-align: center;
}

/* Copy Link Section */
.hvnly-property-copy-link-section,
.hvnly-property-email-share-section {
	display: none;
}

.hvnly-property-copy-link-section.hvnly-property-active-section,
.hvnly-property-email-share-section.hvnly-property-active-section {
	display: block;
}

.hvnly-property-copy-link-header,
.hvnly-property-email-share-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 12px;
}

.hvnly-property-copy-title,
.hvnly-property-email-title {
	font-size: 0.95rem;
	font-weight: 600;
	color: var(--hvnly-brand-primary, #667eea);
	margin: 0;
}

.hvnly-property-copy-success {
	font-size: 0.9rem;
	color: var(--hvnly-success-color, #10b981);
	font-weight: 500;
	opacity: 0;
	transition: all 0.3s ease;
}

.hvnly-property-copy-success.show {
	opacity: 1;
}

.hvnly-property-email-back {
	background: none;
	border: none;
	color: var(--hvnly-text-secondary, #6b7280);
	cursor: pointer;
	padding: 5px 8px;
	border-radius: 4px;
	transition: all 0.3s ease;
	line-height: 1;
	font-size: 0.85rem;
	display: flex;
	align-items: center;
	gap: 4px;
}

.hvnly-property-email-back:hover {
	background: var(--hvnly-bg-tertiary, #f3f4f6);
	color: var(--hvnly-text-primary, #1f2937);
}

.hvnly-property-copy-link-input {
	display: flex;
	gap: 8px;
}

.hvnly-property-link-input {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid var(--hvnly-border-light, #d1d5db);
	border-radius: 8px;
	font-size: 0.9rem;
	background: var(--hvnly-bg-primary, #ffffff);
	color: var(--hvnly-text-primary, #1f2937);
}

.hvnly-property-copy-btn {
	background: var(--hvnly-brand-primary, #667eea);
	color: white;
	border: none;
	border-radius: 8px;
	padding: 10px 15px;
	cursor: pointer;
	font-weight: 600;
	transition: all 0.3s ease;
	line-height: 1;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.85rem;
}

.hvnly-property-copy-btn:hover {
	background: var(--hvnly-brand-primary-dark, #5a6fd8);
	transform: translateY(-1px);
}

.hvnly-property-copy-btn.copied {
	background: var(--hvnly-success-color, #10b981);
}

.hvnly-property-copy-btn.copied .hvnly-property-copy-btn-text {
	display: none;
}

.hvnly-property-copy-btn.copied::after {
	content: "Copied!";
}

/* Email Share Section */
.hvnly-property-email-form {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

.hvnly-property-email-field {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.hvnly-property-email-field label {
	font-size: 0.85rem;
	font-weight: 600;
	color: var(--hvnly-text-primary, #1f2937);
}

.hvnly-property-email-input,
.hvnly-property-email-textarea {
	padding: 10px 12px;
	border: 1px solid var(--hvnly-border-light, #d1d5db);
	border-radius: 8px;
	font-size: 0.9rem;
	font-family: inherit;
	transition: all 0.3s ease;
	background: var(--hvnly-bg-primary, #ffffff);
}

.hvnly-property-email-input:focus,
.hvnly-property-email-textarea:focus {
	outline: none;
	border-color: var(--hvnly-brand-primary, #667eea);
	box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.hvnly-property-email-textarea {
	resize: vertical;
	min-height: 80px;
}

.hvnly-property-email-send-btn {
	background: var(--hvnly-brand-primary, #667eea);
	color: white;
	border: none;
	border-radius: 8px;
	padding: 12px 20px;
	cursor: pointer;
	font-weight: 600;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all 0.3s ease;
}

.hvnly-property-email-send-btn:hover {
	background: var(--hvnly-brand-primary-dark, #5a6fd8);
	transform: translateY(-1px);
}

.hvnly-property-email-send-btn:disabled {
	background: var(--hvnly-text-light, #9ca3af);
	cursor: not-allowed;
	transform: none;
}

/* Disabled share buttons */
.hvnly-property-share-trigger.disabled {
	opacity: 0.5;
	cursor: not-allowed;
	pointer-events: none;
}

.hvnly-property-display-shortcode .hvnly-property-archive-container
.hvnly-property-grid-list-share, 

.hvnly-property--grid--listings 
.hvnly-property-grid-list-share 

{
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hvnly-text-primary);
    transition: all var(--hvnly-transition-time);padding: 0;
}
.hvnly-property-field-footer 
.hvnly-property--grid-list--footer
.hvnly-property-grid-list-share {

    background: var(--hvnly-brand-primary);color: var(--hvnly-color-white);
   
}
.hvnly-property-display-shortcode .hvnly-property-archive-container
.hvnly-property-grid-list-share i,
.hvnly-property--grid--listings 
.hvnly-property-grid-list-share i
{font-size: var(--hvnly-font-size-xs);}

.hvnly-property-display-shortcode .hvnly-property-archive-container
.hvnly-property-grid-list-share:hover ,
.hvnly-property--grid--listings 
.hvnly-property-grid-list-share:hover 
{
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 480px) {
	.hvnly-property-share-platforms-grid {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.hvnly-property-share-popup-content {
		padding: 20px;
		margin: 20px;
	}
	
	.hvnly-property-copy-link-input {
		flex-direction: column;
	}
	
	.hvnly-property-copy-btn {
		justify-content: center;
	}
}

/* Prevent body scroll when popup is open */
body.hvnly-property-share-popup-open {
	overflow: hidden;
}