/* Frontend Styles for EventFlow Manager */

.efm-events-wrapper {
	font-family: inherit;
}

.efm-filters {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-bottom: 20px;
	justify-content: center;
}

.efm-filter-btn {
	background-color: #f1f1f1;
	border: 1px solid #ddd;
	border-radius: 4px;
	padding: 8px 16px;
	cursor: pointer;
	font-size: 14px;
	transition: all 0.3s ease;
}

.efm-filter-btn:hover {
	background-color: #e2e2e2;
}

.efm-filter-btn.active {
	background-color: #0073aa;
	color: #fff;
	border-color: #0073aa;
}

.efm-events-grid {
	position: relative;
	min-height: 200px;
}

.efm-events-content {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 20px;
}

.efm-loading-indicator {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: rgba(255,255,255,0.8);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	font-weight: bold;
}

/* Event Card */
.efm-event-card {
	border: 1px solid #eaeaea;
	border-radius: 8px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0,0,0,0.05);
	display: flex;
	flex-direction: column;
	position: relative;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.efm-event-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.efm-card-image {
	width: 100%;
	height: 200px;
	overflow: hidden;
	position: relative;
}

.efm-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.efm-badges {
	position: absolute;
	top: 10px;
	right: 10px;
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.efm-badge {
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
	font-weight: bold;
	color: #fff;
	text-transform: uppercase;
}

.efm-badge.sold-out {
	background-color: #d63638;
}

.efm-badge.expired {
	background-color: #646970;
}

.efm-card-body {
	padding: 20px;
	flex-grow: 1;
	display: flex;
	flex-direction: column;
}

.efm-card-title {
	margin: 0 0 10px 0;
	font-size: 20px;
	line-height: 1.3;
}

.efm-card-meta {
	margin-bottom: 15px;
	font-size: 14px;
	color: #555;
}

.efm-meta-item {
	display: flex;
	align-items: center;
	margin-bottom: 5px;
}

.efm-meta-item svg {
	width: 16px;
	height: 16px;
	margin-right: 8px;
	fill: currentColor;
}

.efm-card-desc {
	font-size: 14px;
	color: #666;
	margin-bottom: 20px;
	flex-grow: 1;
}

.efm-card-footer {
	display: flex;
	gap: 10px;
	margin-top: auto;
}

.efm-btn {
	padding: 10px 15px;
	border-radius: 4px;
	text-align: center;
	text-decoration: none;
	font-weight: bold;
	font-size: 14px;
	cursor: pointer;
	border: none;
	transition: background 0.3s ease;
	display: inline-block;
	flex: 1;
}

.efm-btn-book {
	background-color: #d63638;
	color: #fff;
}

.efm-btn-book:hover {
	background-color: #b32d2e;
	color: #fff;
}

.efm-btn-details {
	background-color: #f1f1f1;
	color: #333;
}

.efm-btn-details:hover {
	background-color: #e2e2e2;
	color: #333;
}

.efm-pagination {
	text-align: center;
	margin-top: 30px;
}

.efm-load-more {
	padding: 10px 20px;
	background: #0073aa;
	color: #fff;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 16px;
}

.efm-load-more:hover {
	background: #005177;
}

.efm-no-events {
	text-align: center;
	grid-column: 1 / -1;
	padding: 40px;
	background: #f9f9f9;
	border-radius: 8px;
	color: #666;
}

/* Lightbox Styles */
.efm-lightbox {
	display: none;
	position: fixed;
	z-index: 9999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	overflow: auto;
	background-color: rgba(0,0,0,0.9);
}

.efm-lightbox-content {
	margin: 5% auto;
	padding: 20px;
	width: 80%;
	max-width: 800px;
	position: relative;
	background: #fff;
	border-radius: 8px;
}

.efm-lightbox-close {
	color: #fff;
	position: absolute;
	top: 10px;
	right: 25px;
	font-size: 35px;
	font-weight: bold;
	cursor: pointer;
}

.efm-lightbox-close:hover,
.efm-lightbox-close:focus {
	color: #ccc;
	text-decoration: none;
	cursor: pointer;
}

.efm-gallery-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
	gap: 15px;
	margin-top: 20px;
}

.efm-gallery-item {
	cursor: pointer;
}

.efm-gallery-item img,
.efm-gallery-item video {
	width: 100%;
	height: 150px;
	object-fit: cover;
	border-radius: 4px;
}

/* Add to Calendar Button */
.efm-calendar-links {
	margin-top: 15px;
	display: flex;
	gap: 10px;
}

.efm-cal-btn {
	font-size: 12px;
	text-decoration: none;
	color: #0073aa;
	background: #f1f1f1;
	padding: 5px 10px;
	border-radius: 3px;
	display: inline-flex;
	align-items: center;
}

.efm-cal-btn:hover {
	background: #e2e2e2;
}

.efm-cal-btn svg {
	width: 12px;
	height: 12px;
	margin-right: 5px;
}
