/**
 * Frontend Styles for CleverCube Eventbrite Sync
 */

/* Events Grid */
.cc-eventbrite-events-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
	margin: 30px 0;
}

/* Event Card */
.cc-event-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	position: relative;
}

.cc-event-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Event Image */
.cc-event-image {
	position: relative;
	width: 100%;
	height: 200px;
	overflow: hidden;
	background: #f5f5f5;
}

.cc-event-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.cc-event-card:hover .cc-event-image img {
	transform: scale(1.05);
}

.cc-event-image a {
	display: block;
	width: 100%;
	height: 100%;
}

/* Date Badge */
.cc-event-date-badge {
	position: absolute;
	top: 15px;
	left: 15px;
	background: rgba(0, 0, 0, 0.8);
	color: #fff;
	padding: 8px 12px;
	border-radius: 4px;
	font-weight: 600;
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Event Content */
.cc-event-content {
	padding: 20px;
}

.cc-event-title {
	margin: 0 0 10px 0;
	font-size: 20px;
	line-height: 1.4;
}

.cc-event-title a {
	color: #333;
	text-decoration: none;
	transition: color 0.3s ease;
}

.cc-event-title a:hover {
	color: #0073aa;
}

.cc-event-venue {
	color: #666;
	font-size: 14px;
	margin-bottom: 15px;
	line-height: 1.6;
}

.cc-event-link {
	display: inline-block;
	color: #0073aa;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	margin-top: 10px;
	transition: color 0.3s ease;
}

.cc-event-link:hover {
	color: #005177;
	text-decoration: underline;
}

/* Single Event */
.cc-event-single {
	max-width: 800px;
	margin: 30px auto;
}

.cc-event-featured-image {
	margin-bottom: 30px;
	border-radius: 8px;
	overflow: hidden;
}

.cc-event-featured-image img {
	width: 100%;
	height: auto;
	display: block;
}

.cc-event-single h2 {
	margin-bottom: 20px;
	color: #333;
}

.cc-event-meta {
	background: #f9f9f9;
	padding: 20px;
	border-radius: 6px;
	margin-bottom: 30px;
	border-left: 4px solid #0073aa;
}

.cc-event-meta p {
	margin: 10px 0;
	line-height: 1.6;
}

.cc-event-meta strong {
	color: #333;
	margin-right: 10px;
}

.cc-event-content {
	line-height: 1.8;
	color: #555;
}

.cc-event-content p {
	margin-bottom: 15px;
}

/* Event Map */
.cc-event-map {
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	margin: 20px 0;
	z-index: 0;
}

/* Leaflet map container adjustments */
.cc-event-map .leaflet-container {
	height: 100%;
	width: 100%;
	border-radius: 8px;
}

/* Responsive */
@media screen and (max-width: 768px) {
	.cc-eventbrite-events-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}
	
	.cc-event-image {
		height: 180px;
	}
	
	.cc-event-content {
		padding: 15px;
	}
	
	.cc-event-title {
		font-size: 18px;
	}
	
	.cc-event-single {
		margin: 20px;
	}
}

@media screen and (max-width: 480px) {
	.cc-eventbrite-events-grid {
		gap: 15px;
	}
	
	.cc-event-image {
		height: 160px;
	}
	
	.cc-event-date-badge {
		top: 10px;
		left: 10px;
		padding: 6px 10px;
		font-size: 12px;
	}
}
