/**
 * Cam Event Schedule - Frontend Styles
 *
 * @package Cam_Event_Schedule
 */

/* Event Schedule Container */
.cam-event-schedule {
	max-width: 1200px;
	margin: 0 auto;
}

/* Event Card */
.cam-event-card {
	display: flex;
	gap: 20px;
	padding: 30px;
	background: #ffffff;
	border-bottom: 1px solid #e5e5e5;
	position: relative;
}

.cam-event-card:last-child {
	border-bottom: none;
}

/* Left Section - Date and Thumbnail */
.cam-event-card-left {
	display: flex;
	flex-direction: column;
	min-width: 130px;
	align-items: center;
}

/* Event Date Box */
.cam-event-date {
	background: #064367;
	color: #ffffff;
	text-align: center;
	padding: 10px 10px;
	min-width: 70px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 14px;
	text-transform: uppercase;
	line-height: 1;
	font-weight: 600;
	gap: 5px;
}

.cam-event-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
}


/* Event Thumbnail */
.cam-event-thumbnail {
	width: 100%;
	overflow: hidden;
}

.cam-event-thumbnail img {
	width: 100%;
	height: 140px;
	object-fit: cover;
	display: block;
}

/* Right Section - Content */
.cam-event-card-right {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

/* Event Badge */
.cam-event-category {
	display: inline-block;
	background: #064367;
	color: #fff;
	padding: 4px 12px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	align-self: flex-start;
	line-height: 1.8;
}

/* Event Title */
.cam-event-title {
	font-size: 24px;
	font-weight: 700;
	margin: 0;
	line-height: 1.3;
	color: #1a1a1a;
}

/* Event Meta (Time and Location) */
.cam-event-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 5px;
	font-size: 15px;
	color: #555555;
}

.cam-event-time,
.cam-event-location {
	display: flex;
	align-items: center;
}

/* Event Actions */
.cam-event-actions {
	display: flex;
	align-items: center;
	gap: 15px;
	margin-top: 5px;
}

.cam-event-details-btn {
	display: inline-block;
	color: #0056b3;
	font-weight: 600;
	text-decoration: none;
	transition: color 0.3s ease;
	background: none;
	border: none;
	padding: 0;
	cursor: pointer;
	font-size: inherit;
	font-family: inherit;
}

.cam-event-details-btn:hover {
	color: #003d82;
}

.cam-event-details-btn:focus {
	outline: 2px solid #0056b3;
	outline-offset: 2px;
}

.cam-event-rsvp-btn {
	display: inline-block;
	background: #0056b3;
	color: #ffffff;
	padding: 10px 24px;
	border-radius: 4px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none;
	margin-left: auto;
	transition: background 0.3s ease;
	min-width: 130px;
	text-align: center;
}

.cam-event-rsvp-btn:hover {
	background: #003d82;
	color: #ffffff;
	text-decoration: none;
}

/* Event Description - Accordion Styles */
.cam-event-description {
	/*margin-top: 15px;*/
	padding-top: 15px;
	border-top: 1px solid #eeeeee;
	color: #444444;
	line-height: 1.6;
}

/* Accordion Content States */
.cam-event-content-hidden {
	display: none;
}

.cam-event-content-visible {
	display: block;
	animation: slideDown 0.3s ease-out;
}

.cam-event-content-wrapper {
	display: flex;
	align-items: flex-end;
	gap: 40px;
}

@media(max-width: 767px) {
	.cam-event-content-wrapper {
		flex-direction: column;
		align-items: flex-start;
		gap: 20px;
	}
}

/*@keyframes slideDown {*/
/*	from {*/
/*		opacity: 0;*/
/*		max-height: 0;*/
/*	}*/
/*	to {*/
/*		opacity: 1;*/
/*		max-height: 1000px;*/
/*	}*/
/*}*/

/* For browsers that support the hidden attribute */
.cam-event-description[hidden] {
	display: none;
}

/* When content is visible via animation */
.cam-event-description.cam-event-content-visible[hidden] {
	display: block;
}

.cam-event-description ul,
.cam-event-description ol {
	margin-left: 20px;
	margin-bottom: 15px;
}

.cam-event-description li {
	margin-bottom: 8px;
}

.cam-event-description p {
	margin-bottom: 12px;
}

.cam-event-description p:last-child {
	margin-bottom: 0;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
	.cam-event-card {
		flex-direction: column;
		padding: 20px;
		gap: 15px;
	}

	.cam-event-card-left {
		/*flex-direction: row;*/
		/*justify-content: flex-start;*/
		/*min-width: auto;*/
		display: block;
	}

	.cam-event-date {
		width: 150px;
		padding: 8px;
	}

	.cam-event-month {
		font-size: 10px;
	}

	.cam-event-day {
		font-size: 24px;
	}

	.cam-event-thumbnail {
		width: 150px;
		height: 150px;
	}

	.cam-event-title {
		font-size: 20px;
	}

	.cam-event-actions {
		flex-direction: column;
		align-items: flex-start;
	}

	.cam-event-rsvp-btn {
		margin-left: 0;
		width: 100%;
		text-align: center;
	}
}

@media screen and (max-width: 480px) {
	.cam-event-card {
		padding: 15px;
	}

	.cam-event-card-left {
		flex-direction: column;
		align-items: center;
	}

	.cam-event-title {
		font-size: 18px;
	}

	.cam-event-meta {
		flex-direction: column;
		gap: 8px;
	}
}

/* Loading State */
.cam-event-schedule.loading {
	opacity: 0.6;
}

/* Print Styles */
@media print {
	.cam-event-card {
		break-inside: avoid;
		page-break-inside: avoid;
	}

	.cam-event-rsvp-btn {
		display: none;
	}
}

/* Event List Wrapper */
.cam-event-list-wrapper {
	max-width: 1200px;
	margin: 0 auto;
}

.cam-event-list {
	display: flex;
	flex-direction: column;
}

/* Pagination Styles */
.cam-event-pagination {
	margin-top: 40px;
	text-align: center;
}

.cam-event-pagination ul {
	display: flex;
 justify-content: center;
	align-items: center;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.cam-event-pagination li {
	display: inline-block;
}

.cam-event-pagination a,
.cam-event-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	height: 44px;
	padding: 0 12px;
	border: 2px solid #e5e5e5;
	border-radius: 6px;
	background: #ffffff;
	color: #0056b3;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	transition: all 0.3s ease;
}

.cam-event-pagination a:hover,
.cam-event-pagination a:focus {
	border-color: #0056b3;
	background: #0056b3;
	color: #ffffff;
	text-decoration: none;
}

.cam-event-pagination .current {
	border-color: #0056b3;
	background: #0056b3;
	color: #ffffff;
	cursor: default;
}

.cam-event-pagination .dots {
	border-color: transparent;
	background: transparent;
	color: #555555;
	cursor: default;
}

.cam-pagination-prev,
.cam-pagination-next {
	display: flex;
	align-items: center;
	gap: 5px;
}

/* Pagination Responsive */
@media screen and (max-width: 600px) {
	.cam-event-pagination {
		margin-top: 30px;
	}

	.cam-event-pagination ul {
		gap: 5px;
	}

	.cam-event-pagination a,
	.cam-event-pagination span {
		min-width: 36px;
		height: 36px;
		font-size: 14px;
		padding: 0 8px;
	}

	.cam-pagination-prev span:not(.screen-reader-text),
	.cam-pagination-next span:not(.screen-reader-text) {
		display: none;
	}

	.cam-pagination-prev::before,
	.cam-pagination-next::after {
		content: '→';
	}

	.cam-pagination-prev::before {
		content: '←';
	}
}
