/**
 * Elementor Widget Styles for CleverCube Eventbrite Events
 */

/* Grid Layout */
.cc-el-events-wrapper {
	width: 100%;
}

.cc-el-events-grid {
	display: grid;
	gap: 30px;
}

.cc-el-events-grid.cc-el-columns-1 {
	grid-template-columns: 1fr;
}

.cc-el-events-grid.cc-el-columns-2 {
	grid-template-columns: repeat(2, 1fr);
}

.cc-el-events-grid.cc-el-columns-3 {
	grid-template-columns: repeat(3, 1fr);
}

.cc-el-events-grid.cc-el-columns-4 {
	grid-template-columns: repeat(4, 1fr);
}

/* List Layout */
.cc-el-layout-list .cc-el-events-grid {
	grid-template-columns: 1fr !important;
}

.cc-el-layout-list .cc-el-event-card {
	display: flex;
	flex-direction: row;
}

.cc-el-layout-list .cc-el-event-image {
	width: 300px;
	min-width: 300px;
	height: auto !important;
}

.cc-el-layout-list .cc-el-event-content {
	flex: 1;
}

/* Event Card */
.cc-el-event-card {
	background: #fff;
	border: 1px solid #e0e0e0;
	border-radius: 8px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cc-el-event-card:hover {
	transform: translateY(-5px);
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

/* Event Image */
.cc-el-event-image {
	position: relative;
	width: 100%;
	height: 200px;
	overflow: hidden;
	background: #f5f5f5;
}

.cc-el-event-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s ease;
}

.cc-el-event-card:hover .cc-el-event-image img {
	transform: scale(1.05);
}

.cc-el-event-image a {
	display: block;
	width: 100%;
	height: 100%;
}

/* Date Badge */
.cc-el-date-badge {
	position: absolute;
	top: 15px;
	left: 15px;
	background: #e74c3c;
	color: #fff;
	padding: 8px 12px;
	border-radius: 6px;
	text-align: center;
	line-height: 1.2;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.cc-el-date-day {
	display: block;
	font-size: 22px;
	font-weight: 700;
}

.cc-el-date-month {
	display: block;
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 1px;
}

/* Event Content */
.cc-el-event-content {
	padding: 20px;
}

.cc-el-event-title {
	margin: 0 0 12px 0;
	font-size: 18px;
	line-height: 1.4;
}

.cc-el-event-title a {
	color: #333;
	text-decoration: none;
	transition: color 0.3s ease;
}

.cc-el-event-title a:hover {
	color: #0073aa;
}

/* Event Meta */
.cc-el-event-meta {
	margin-bottom: 15px;
}

.cc-el-event-datetime,
.cc-el-event-venue {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	color: #666;
	font-size: 14px;
	margin-bottom: 8px;
	line-height: 1.5;
}

.cc-el-event-datetime svg,
.cc-el-event-venue svg {
	flex-shrink: 0;
	margin-top: 2px;
}

/* Event Excerpt */
.cc-el-event-excerpt {
	color: #555;
	font-size: 14px;
	line-height: 1.6;
	margin-bottom: 15px;
}

/* Event Button */
.cc-el-event-button {
	display: inline-block;
	background: #0073aa;
	color: #fff;
	padding: 10px 20px;
	border-radius: 4px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 500;
	transition: background-color 0.3s ease, transform 0.2s ease;
}

.cc-el-event-button:hover {
	background: #005177;
	color: #fff;
	transform: translateY(-2px);
}

/* No Events */
.cc-el-no-events {
	text-align: center;
	padding: 40px;
	color: #666;
	font-size: 16px;
}

/* Responsive */
@media screen and (max-width: 1024px) {
	.cc-el-events-grid.cc-el-columns-4 {
		grid-template-columns: repeat(3, 1fr);
	}
}

@media screen and (max-width: 768px) {
	.cc-el-events-grid.cc-el-columns-3,
	.cc-el-events-grid.cc-el-columns-4 {
		grid-template-columns: repeat(2, 1fr);
	}
	
	.cc-el-layout-list .cc-el-event-card {
		flex-direction: column;
	}
	
	.cc-el-layout-list .cc-el-event-image {
		width: 100%;
		height: 200px !important;
	}
}

@media screen and (max-width: 480px) {
	.cc-el-events-grid.cc-el-columns-2,
	.cc-el-events-grid.cc-el-columns-3,
	.cc-el-events-grid.cc-el-columns-4 {
		grid-template-columns: 1fr;
	}
	
	.cc-el-event-image {
		height: 180px;
	}
	
	.cc-el-date-badge {
		top: 10px;
		left: 10px;
		padding: 6px 10px;
	}
	
	.cc-el-date-day {
		font-size: 18px;
	}
	
	.cc-el-date-month {
		font-size: 10px;
	}
}

/* ==========================================================================
   Single Event Widget Styles - Eventbrite Style
   ========================================================================== */

.cc-single-event.cc-eventbrite-style {
	max-width: 1200px;
	margin: 0 auto;
	background: #fff;
}

/* Banner Image */
.cc-single-event-banner {
	width: 100%;
	max-height: 400px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f5f5f5;
	margin-bottom: 30px;
}

.cc-single-event-banner img {
	width: 100%;
	height: auto;
	max-height: 400px;
	object-fit: cover;
}

/* Main Container - Two Column Layout */
.cc-single-event-container {
	display: grid;
	grid-template-columns: 1fr 350px;
	gap: 40px;
	padding: 0 20px;
}

/* Main Content Column */
.cc-single-event-main {
	min-width: 0;
}

.cc-single-event-title {
	margin: 0 0 15px 0;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.3;
	color: #1e0a3c;
}

/* Quick Info Row */
.cc-single-event-quick-info {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 30px;
	padding-bottom: 25px;
	border-bottom: 1px solid #eeedf2;
}

.cc-quick-info-item {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #6f7287;
	font-size: 14px;
}

.cc-quick-info-item svg {
	color: #6f7287;
	flex-shrink: 0;
}

/* Section Styles */
.cc-single-event-section {
	margin-bottom: 35px;
	padding-bottom: 35px;
	border-bottom: 1px solid #eeedf2;
}

.cc-single-event-section:last-child {
	border-bottom: none;
}

.cc-section-title {
	font-size: 22px;
	font-weight: 700;
	color: #1e0a3c;
	margin: 0 0 20px 0;
}

/* Description */
.cc-single-event-description {
	line-height: 1.7;
	font-size: 15px;
	color: #39364f;
}

.cc-single-event-description p {
	margin-bottom: 15px;
}

.cc-single-event-description h3,
.cc-single-event-description h4 {
	color: #1e0a3c;
	margin: 20px 0 10px 0;
}

/* Categories */
.cc-single-event-categories {
	margin-bottom: 30px;
	font-size: 14px;
}

.cc-category-label {
	color: #6f7287;
	margin-right: 5px;
}

.cc-category-value {
	color: #3659e3;
}

/* Good to Know Box */
.cc-good-to-know {
	margin-top: 15px;
}

.cc-highlights-box {
	background: #f8f7fa;
	border-radius: 8px;
	padding: 20px;
}

.cc-highlights-box h4 {
	font-size: 14px;
	font-weight: 600;
	color: #1e0a3c;
	margin: 0 0 15px 0;
}

.cc-highlights-box ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.cc-highlights-box li {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #6f7287;
	font-size: 14px;
	margin-bottom: 10px;
}

.cc-highlights-box li:last-child {
	margin-bottom: 0;
}

.cc-highlights-box svg {
	color: #6f7287;
	flex-shrink: 0;
}

/* Location Details */
.cc-location-details {
	margin-bottom: 20px;
}

.cc-venue-name {
	font-weight: 600;
	color: #1e0a3c;
	margin: 0 0 5px 0;
	font-size: 15px;
}

.cc-venue-address {
	color: #6f7287;
	margin: 0;
	font-size: 14px;
}

.cc-location-tbd {
	color: #6f7287;
	font-size: 15px;
	margin: 0;
}

/* Map */
.cc-single-event-map {
	margin-top: 20px;
	border-radius: 8px;
	overflow: hidden;
	border: 1px solid #eeedf2;
}

/* Organizer Card */
.cc-organizer-card {
	display: flex;
	align-items: center;
	gap: 15px;
	padding: 15px 20px;
	background: #f8f7fa;
	border-radius: 8px;
	border: 1px solid #eeedf2;
}

.cc-organizer-avatar {
	width: 50px;
	height: 50px;
	background: #d1cfd5;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cc-organizer-avatar svg {
	color: #6f7287;
}

.cc-organizer-name {
	font-weight: 600;
	color: #1e0a3c;
	font-size: 15px;
}

/* Sidebar */
.cc-single-event-sidebar {
	position: relative;
}

.cc-sidebar-card {
	position: sticky;
	top: 100px;
	background: #fff;
	border: 1px solid #eeedf2;
	border-radius: 8px;
	padding: 25px;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.cc-sidebar-price {
	font-size: 18px;
	font-weight: 700;
	color: #1e0a3c;
	margin-bottom: 5px;
}

.cc-sidebar-datetime {
	font-size: 14px;
	color: #6f7287;
	margin-bottom: 20px;
}

.cc-single-event-button {
	display: block;
	width: 100%;
	background: #f05537;
	color: #fff;
	padding: 14px 24px;
	border-radius: 4px;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	transition: background-color 0.2s ease;
	box-sizing: border-box;
}

.cc-single-event-button:hover {
	background: #d93a1b;
	color: #fff;
}

/* Placeholder */
.cc-single-event-placeholder {
	padding: 60px 30px;
	text-align: center;
	background: #f8f7fa;
	border: 2px dashed #d1cfd5;
	border-radius: 8px;
}

.cc-single-event-placeholder p {
	margin: 0 0 10px 0;
	color: #6f7287;
}

.cc-single-event-placeholder small {
	color: #a9a8ad;
}

/* Responsive - Single Event */
@media screen and (max-width: 900px) {
	.cc-single-event-container {
		grid-template-columns: 1fr;
		gap: 30px;
	}
	
	.cc-single-event-sidebar {
		order: -1;
	}
	
	.cc-sidebar-card {
		position: relative;
		top: 0;
	}
}

@media screen and (max-width: 600px) {
	.cc-single-event-banner {
		max-height: 250px;
	}
	
	.cc-single-event-title {
		font-size: 22px;
	}
	
	.cc-section-title {
		font-size: 18px;
	}
	
	.cc-single-event-quick-info {
		flex-direction: column;
		gap: 10px;
	}
}

/* ==========================================================================
   Popup Content Widget Styles
   ========================================================================== */

.cc-popup-event {
	position: relative;
	min-height: 200px;
}

.cc-popup-event-loading {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 60px 20px;
	text-align: center;
}

.cc-popup-spinner {
	width: 40px;
	height: 40px;
	border: 3px solid #e0e0e0;
	border-top-color: #0073aa;
	border-radius: 50%;
	animation: cc-spin 0.8s linear infinite;
	margin-bottom: 15px;
}

@keyframes cc-spin {
	to {
		transform: rotate(360deg);
	}
}

.cc-popup-event-loading p {
	margin: 0;
	color: #666;
}

.cc-popup-event-error {
	padding: 40px 20px;
	text-align: center;
	color: #dc3232;
}

.cc-popup-event-image {
	margin-bottom: 20px;
	border-radius: 8px;
	overflow: hidden;
}

.cc-popup-event-image img {
	width: 100%;
	height: auto;
	display: block;
	max-height: 300px;
	object-fit: cover;
}

.cc-popup-event-title {
	margin: 0 0 20px 0;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.3;
	color: #333;
}

.cc-popup-event-meta {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 20px;
}

.cc-popup-event-datetime,
.cc-popup-event-venue,
.cc-popup-event-organizer {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	color: #555;
	font-size: 14px;
	line-height: 1.5;
}

.cc-popup-event-datetime svg,
.cc-popup-event-venue svg,
.cc-popup-event-organizer svg {
	flex-shrink: 0;
	color: #0073aa;
}

.cc-popup-event-datetime strong {
	display: block;
	color: #333;
}

.cc-popup-event-description {
	color: #555;
	font-size: 14px;
	line-height: 1.7;
	margin-bottom: 20px;
}

.cc-popup-event-actions {
	margin-top: 25px;
}

.cc-popup-event-button {
	display: inline-block;
	background: #f05537;
	color: #fff;
	padding: 12px 25px;
	border-radius: 5px;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	transition: background-color 0.3s ease;
}

.cc-popup-event-button:hover {
	background: #d63d1f;
	color: #fff;
}

.cc-popup-placeholder {
	padding: 40px 20px;
	text-align: center;
	background: #f8f9fa;
	border: 2px dashed #ddd;
	border-radius: 8px;
}

.cc-popup-placeholder p {
	margin: 0;
	color: #666;
}

/* ==========================================================================
   Popup Eventbrite Style
   ========================================================================== */

.cc-popup-eventbrite-style {
	background: #fff;
}

.cc-popup-banner {
	width: 100%;
	max-height: 250px;
	overflow: hidden;
	background: #f5f5f5;
}

.cc-popup-banner img {
	width: 100%;
	height: auto;
	max-height: 250px;
	object-fit: cover;
}

.cc-popup-container {
	display: grid;
	grid-template-columns: 1fr 200px;
	gap: 25px;
	padding: 20px;
}

.cc-popup-main {
	min-width: 0;
}

.cc-popup-title {
	margin: 0 0 12px 0;
	font-size: 22px;
	font-weight: 700;
	line-height: 1.3;
	color: #1e0a3c;
}

.cc-popup-quick-info {
	display: flex;
	flex-wrap: wrap;
	gap: 15px;
	margin-bottom: 20px;
	padding-bottom: 15px;
	border-bottom: 1px solid #eeedf2;
}

.cc-popup-quick-item {
	display: flex;
	align-items: center;
	gap: 6px;
	color: #6f7287;
	font-size: 13px;
}

.cc-popup-quick-item svg {
	color: #6f7287;
	flex-shrink: 0;
}

.cc-popup-section {
	margin-bottom: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #eeedf2;
}

.cc-popup-section:last-child {
	border-bottom: none;
	margin-bottom: 0;
	padding-bottom: 0;
}

.cc-popup-section-title {
	font-size: 16px;
	font-weight: 700;
	color: #1e0a3c;
	margin: 0 0 12px 0;
}

.cc-popup-description {
	line-height: 1.6;
	font-size: 14px;
	color: #39364f;
}

.cc-popup-venue-name {
	font-weight: 600;
	color: #1e0a3c;
	margin: 0 0 4px 0;
	font-size: 14px;
}

.cc-popup-venue-address {
	color: #6f7287;
	margin: 0;
	font-size: 13px;
}

.cc-popup-venue-tbd {
	color: #6f7287;
	font-size: 14px;
	margin: 0;
}

.cc-popup-organizer-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 15px;
	background: #f8f7fa;
	border-radius: 6px;
	border: 1px solid #eeedf2;
}

.cc-popup-organizer-avatar {
	width: 40px;
	height: 40px;
	background: #d1cfd5;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cc-popup-organizer-avatar svg {
	color: #6f7287;
}

.cc-popup-organizer-name {
	font-weight: 600;
	color: #1e0a3c;
	font-size: 14px;
}

.cc-popup-sidebar {
	position: relative;
}

.cc-popup-sidebar-card {
	background: #fff;
	border: 1px solid #eeedf2;
	border-radius: 6px;
	padding: 18px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.06);
}

.cc-popup-sidebar-price {
	font-size: 16px;
	font-weight: 700;
	color: #1e0a3c;
	margin-bottom: 4px;
}

.cc-popup-sidebar-datetime {
	font-size: 13px;
	color: #6f7287;
	margin-bottom: 15px;
}

.cc-popup-register-btn {
	display: block;
	width: 100%;
	background: #f05537;
	color: #fff;
	padding: 10px 16px;
	border-radius: 4px;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	text-align: center;
	transition: background-color 0.2s ease;
	box-sizing: border-box;
}

.cc-popup-register-btn:hover {
	background: #d93a1b;
	color: #fff;
}

/* Popup Responsive */
@media screen and (max-width: 600px) {
	.cc-popup-container {
		grid-template-columns: 1fr;
		gap: 15px;
	}
	
	.cc-popup-sidebar {
		order: -1;
	}
	
	.cc-popup-title {
		font-size: 18px;
	}
	
	.cc-popup-section-title {
		font-size: 14px;
	}
	
	.cc-popup-quick-info {
		flex-direction: column;
		gap: 8px;
	}
}

/* Legacy popup styles - kept for backwards compatibility */
.cc-popup-event-title {
	font-size: 20px;
}

/* ==========================================================================
   Individual Event Element Widgets
   ========================================================================== */

/* Event Title Widget */
.cc-event-title {
	margin: 0;
	line-height: 1.3;
}

/* Event Banner Widget */
.cc-event-banner {
	width: 100%;
	overflow: hidden;
	background: #f5f5f5;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cc-event-banner img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Event Date & Time Widget */
.cc-event-datetime {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.cc-event-datetime.cc-layout-inline {
	flex-direction: row;
}

.cc-event-datetime.cc-layout-block {
	flex-direction: column;
}

.cc-event-datetime svg {
	flex-shrink: 0;
	margin-top: 2px;
}

.cc-datetime-content {
	flex: 1;
}

.cc-datetime-date {
	font-weight: 600;
	margin-bottom: 5px;
}

/* Event Venue Widget */
.cc-event-venue {
	display: flex;
	align-items: flex-start;
	gap: 10px;
}

.cc-event-venue svg {
	flex-shrink: 0;
	margin-top: 2px;
}

.cc-venue-content {
	flex: 1;
}

.cc-venue-name {
	font-weight: 600;
	margin-bottom: 5px;
}

.cc-venue-address {
	font-size: 0.9em;
	opacity: 0.8;
}

/* Event Description Widget */
.cc-event-description {
	line-height: 1.7;
}

.cc-event-description p {
	margin-bottom: 15px;
}

.cc-event-description p:last-child {
	margin-bottom: 0;
}

.cc-read-more {
	color: #3659e3;
	text-decoration: none;
}

.cc-read-more:hover {
	text-decoration: underline;
}

/* Event Map Widget */
.cc-event-map {
	width: 100%;
	border: 1px solid #eeedf2;
	border-radius: 8px;
	overflow: hidden;
}

/* Event Organizer Widget */
.cc-event-organizer {
	background: #f8f7fa;
	border: 1px solid #eeedf2;
	border-radius: 8px;
	padding: 15px 20px;
}

.cc-organizer-label {
	font-size: 16px;
	font-weight: 700;
	color: #1e0a3c;
	margin: 0 0 12px 0;
}

.cc-organizer-card {
	display: flex;
	align-items: center;
	gap: 15px;
}

.cc-organizer-avatar {
	width: 50px;
	height: 50px;
	background: #d1cfd5;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
}

.cc-organizer-avatar svg {
	color: #6f7287;
}

.cc-organizer-name {
	font-weight: 600;
	color: #1e0a3c;
	font-size: 15px;
}

/* Event Button Widget */
.cc-event-button-wrapper {
	display: inline-block;
}

.cc-event-button-wrapper.cc-button-full-width {
	width: 100%;
}

.cc-event-button {
	display: inline-block;
	background: #f05537;
	color: #fff;
	padding: 14px 24px;
	border-radius: 4px;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	text-align: center;
	transition: background-color 0.2s ease;
	box-sizing: border-box;
}

.cc-event-button.cc-button-full-width {
	width: 100%;
	display: block;
}

.cc-event-button.cc-button-size-small {
	padding: 10px 18px;
	font-size: 13px;
}

.cc-event-button.cc-button-size-large {
	padding: 18px 30px;
	font-size: 17px;
}

.cc-event-button:hover {
	background: #d93a1b;
	color: #fff;
}

/* Event Categories Widget */
.cc-event-categories {
	font-size: 14px;
}

.cc-category-label {
	color: #6f7287;
	margin-right: 5px;
}

.cc-category-value {
	color: #3659e3;
}

/* Event Quick Info Widget */
.cc-quick-info {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	padding-bottom: 20px;
	border-bottom: 1px solid #eeedf2;
}

.cc-quick-info.cc-layout-block {
	flex-direction: column;
	gap: 10px;
}

.cc-quick-info-item {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #6f7287;
	font-size: 14px;
}

.cc-quick-info-item svg {
	color: #6f7287;
	flex-shrink: 0;
}

/* Event Price Widget */
.cc-event-price {
	font-size: 18px;
	font-weight: 700;
	color: #1e0a3c;
}

/* Widget Placeholder */
.cc-event-widget-placeholder {
	padding: 30px 20px;
	text-align: center;
	background: #f8f7fa;
	border: 2px dashed #d1cfd5;
	border-radius: 8px;
}

.cc-event-widget-placeholder p {
	margin: 0 0 10px 0;
	color: #6f7287;
}

.cc-event-widget-placeholder small {
	color: #a9a8ad;
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
	.cc-event-datetime,
	.cc-event-venue {
		flex-direction: column;
		gap: 5px;
	}
	
	.cc-quick-info {
		flex-direction: column;
		gap: 10px;
	}
}
