/**
 * wpmyCal Event Popup Styles
 *
 * Styling for the event detail modal popup that displays when clicking
 * on calendar events.
 *
 * @package    WpmyCal
 * @subpackage Assets
 * @since      1.1.0
 */

.wpmycal-popup-overlay {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 9998;
	opacity: 0;
	pointer-events: none; /* Don't block clicks when hidden */
	transition: opacity 0.3s ease;
}

.wpmycal-popup-overlay.is-visible {
	opacity: 1;
	pointer-events: auto; /* Allow clicks when visible */
}

.wpmycal-event-popup {
	position: fixed;
	z-index: 9999;
	background: var(--wpmycal-background);
	border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
	padding: 24px;
	max-width: 400px;
	width: 90%;
	transform: scale(0.9);
	opacity: 0;
	pointer-events: none; /* Don't block clicks when hidden */
	transition: all 0.3s ease;
}

.wpmycal-event-popup.is-visible {
	transform: scale(1);
	opacity: 1;
	pointer-events: auto; /* Allow clicks when visible */
}

.wpmycal-popup-close {
	position: absolute;
	top: 12px;
	right: 12px;
	background: transparent;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #999999;
	padding: 4px;
	line-height: 1;
}

.wpmycal-popup-close:hover {
	color: var(--wpmycal-text-color);
}

.wpmycal-popup-calendar-color {
	width: 4px;
	height: 100%;
	position: absolute;
	left: 0;
	top: 0;
	border-radius: 8px 0 0 8px;
}

.wpmycal-popup-title {
	font-size: 20px;
	font-weight: 700;
	margin-bottom: 16px;
	padding-right: 32px;
	color: var(--wpmycal-text-color);
}

.wpmycal-popup-section {
	margin-bottom: 16px;
}

.wpmycal-popup-section-label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: #666666;
	margin-bottom: 6px;
}

.wpmycal-popup-section-label .dashicons {
	font-size: 18px;
	width: 18px;
	height: 18px;
}

.wpmycal-popup-section-content {
	font-size: 15px;
	color: var(--wpmycal-text-color);
	line-height: 1.6;
}

.wpmycal-popup-description {
	white-space: pre-wrap;
}

.wpmycal-popup-actions {
	display: flex;
	gap: 12px;
	margin-top: 20px;
	padding-top: 20px;
	border-top: 1px solid var(--wpmycal-border-color);
}

.wpmycal-popup-action-btn {
	flex: 1;
	padding: 10px 16px;
	border-radius: 6px;
	border: 1px solid var(--wpmycal-border-color);
	background: var(--wpmycal-background);
	cursor: pointer;
	font-size: 14px;
	transition: all 0.2s ease;
}

.wpmycal-popup-action-btn:hover {
	background: var(--wpmycal-hover-background);
	border-color: var(--wpmycal-primary-color);
}

.wpmycal-popup-action-btn.primary {
	background: var(--wpmycal-primary-color);
	color: #ffffff;
	border-color: var(--wpmycal-primary-color);
}

.wpmycal-popup-action-btn.primary:hover {
	background: #2970b8;
}

/* Accessibility */
.wpmycal-event-popup[aria-hidden="true"] {
	display: none;
}
