/**
 * Event Calendar Styles
 * Interactive calendar with responsive design
 */

/**
 * Event Calendar Styles
 * Interactive calendar with responsive design
 */

.nts-event-calendar-layout {
	display: grid;
	grid-template-columns: 1fr 400px;
	gap: 60px;
	width: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 30px 20px;
}

.nts-event-calendar {
	width: 100%;
	max-width: 900px;
	padding: 30px 20px;
	animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes highlightPulse {
	0% {
		box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.4);
	}
	70% {
		box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
	}
	100% {
		box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
	}
}

/* Calendar header with navigation */
.nts-calendar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 30px;
	gap: 20px;
}

.nts-calendar-title {
	margin: 0;
	font-size: 28px;
	font-weight: 700;
	color: #333;
	text-align: center;
	flex: 1;
}

.nts-calendar-nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 8px;
	background: white;
	border: 2px solid #f0f0f0;
	color: var(--theme-palette-color-1);
	font-size: 20px;
	font-weight: 600;
	text-decoration: none;
	cursor: pointer;
	transition: all 0.3s ease;
}

.nts-calendar-nav:hover {
	background: var(--theme-palette-color-1);
	color: white;
	border-color: var(--theme-palette-color-1);
	transform: scale(1.05);
}

/* Category Filter Buttons */
.nts-calendar-filters {
	display: flex;
	gap: 12px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.nts-calendar-filter-btn {
	padding: 8px 16px;
	border: 2px solid #f0f0f0;
	border-radius: 6px;
	background: white;
	color: #333;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.nts-calendar-filter-btn:hover {
	border-color: var(--theme-palette-color-1);
	color: var(--theme-palette-color-1);
}

.nts-calendar-filter-btn--active {
	background: var(--theme-palette-color-1);
	color: white;
	border-color: var(--theme-palette-color-1);
}

.nts-calendar-filter-btn--castle:hover {
	border-color: #d4a574;
	color: #d4a574;
}

.nts-calendar-filter-btn--castle.nts-calendar-filter-btn--active {
	background: #d4a574;
	border-color: #d4a574;
	color: white;
}

/* Weekday headers */
.nts-calendar-weekdays {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 10px;
	margin-bottom: 20px;
}

.nts-calendar-weekday {
	text-align: center;
	font-weight: 600;
	color: #666;
	font-size: 14px;
	padding: 12px 0;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

/* Calendar days grid */
.nts-calendar-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 10px;
}

.nts-calendar-day {
	position: relative;
	aspect-ratio: 1;
	background: white;
	border: 1px solid #f0f0f0;
	border-radius: 8px;
	padding: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	transition: all 0.3s ease;
}

.nts-calendar-day--empty {
	background: transparent;
	border: none;
}

.nts-calendar-day-number {
	font-size: 18px;
	font-weight: 600;
	color: #333;
}

/* Days with events */
.nts-calendar-day--has-events {
	background: linear-gradient(135deg, rgba(var(--theme-palette-color-1-rgb, 102, 126, 234), 0.05), rgba(var(--theme-palette-color-2-rgb, 118, 75, 162), 0.05));
	border-color: var(--theme-palette-color-1);
	border-width: 2px;
	cursor: pointer;
}

.nts-calendar-day--has-events:hover {
	background: linear-gradient(135deg, rgba(var(--theme-palette-color-1-rgb, 102, 126, 234), 0.1), rgba(var(--theme-palette-color-2-rgb, 118, 75, 162), 0.1));
	box-shadow: 0 4px 15px rgba(102, 126, 234, 0.2);
	transform: translateY(-2px);
}

/* Days with castle events */
.nts-calendar-day--has-castle-events {
	background: linear-gradient(135deg, rgba(212, 165, 116, 0.05), rgba(212, 165, 116, 0.05));
	border-color: #d4a574;
}

.nts-calendar-day--has-castle-events:hover {
	background: linear-gradient(135deg, rgba(212, 165, 116, 0.1), rgba(212, 165, 116, 0.1));
	box-shadow: 0 4px 15px rgba(212, 165, 116, 0.2);
}

.nts-calendar-day-number {
	order: 1;
}

.nts-calendar-day-events {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	justify-content: center;
	width: 100%;
}

.nts-calendar-event-dot {
	display: inline-block;
	width: 6px;
	height: 6px;
	border-radius: 50%;
	background: var(--theme-palette-color-1);
	transition: all 0.3s ease;
	text-decoration: none;
	cursor: pointer;
	pointer-events: none;
}

.nts-calendar-event-dot--castle {
	background: #d4a574;
}

/* Events list section */
.nts-calendar-events-list {
	display: none;
}

@keyframes slideInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.nts-events-list-content {
	display: none;
}

/* Timeline line for event list */
.nts-events-list-content::before {
	content: '';
	position: absolute;
	left: 8px;
	top: 0;
	bottom: 0;
	width: 2px;
	background: linear-gradient(to bottom, var(--theme-palette-color-1), var(--theme-palette-color-2));
}

.nts-events-list-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 20px 20px 20px 60px;
	background: #333;
	border-radius: 10px;
	margin-bottom: 20px;
	margin-left: 0;
}

.nts-events-list-header .title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
    color: white;
}

.nts-events-list-close {
	background: transparent;
	border: none;
	color: white;
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	padding: 0;
	width: 36px;
	height: 36px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.2s ease;
	flex-shrink: 0;
}

.nts-events-list-close:hover {
	transform: scale(1.2);
}

.nts-events-list-items {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
	z-index: 2;
}

.nts-events-list-items li {
	position: relative;
	margin-bottom: 30px;
	padding-left: 60px;
	opacity: 0;
	animation: fadeInListItem 0.6s ease-out forwards;
}

.nts-events-list-items li:nth-child(1) {
	animation-delay: 0s;
}

.nts-events-list-items li:nth-child(2) {
	animation-delay: 0.1s;
}

.nts-events-list-items li:nth-child(3) {
	animation-delay: 0.2s;
}

.nts-events-list-items li:nth-child(4) {
	animation-delay: 0.3s;
}

.nts-events-list-items li:nth-child(5) {
	animation-delay: 0.4s;
}

@keyframes fadeInListItem {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Timeline marker for each event */
.nts-events-list-items li::before {
	content: '';
	position: absolute;
	left: 0;
	top: 8px;
	width: 16px;
	height: 16px;
	background: white;
	border: 3px solid var(--theme-palette-color-1);
	border-radius: 50%;
	box-shadow: 0 0 0 4px #f5f5f5;
}

.nts-events-list-item {
	display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
	padding: 20px;
	color: #333;
	text-decoration: none;
	font-weight: 500;
	transition: all 0.3s ease;
	background: white;
	border: 1px solid #f0f0f0;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
	line-height: 1.4;

}

.nts-events-list-item__arrow {
    margin-right: 8px;
	font-size: 20px;
	color: #333;
	font-weight: 600;
	transition: transform 0.3s ease, color 0.3s ease;
	display: inline-block;
}

.nts-events-list-item:hover {
	background: linear-gradient(135deg, rgba(var(--theme-palette-color-1-rgb, 102, 126, 234), 0.05), rgba(var(--theme-palette-color-2-rgb, 118, 75, 162), 0.05));
	border-color: var(--theme-palette-color-1);
	color: var(--theme-palette-color-1);
	box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
	transform: translateY(-3px);
}

.nts-events-list-item:hover .nts-events-list-item__arrow {
	transform: translateX(4px);
    color: var(--theme-palette-color-1);
}

/* Events List Panel (Desktop Sidebar) */
.nts-calendar-list-panel {
	background: #f8f9fb;
	border-radius: 0;
	padding: 30px 20px;
	height: fit-content;
	max-height: 600px;
	overflow-y: auto;
	animation: fadeIn 0.4s ease-out;
}

.nts-calendar-list-title {
	margin: 0 0 20px 0;
	font-size: 18px;
	font-weight: 700;
	color: #333;
	text-align: center;
	padding-bottom: 15px;
	border-bottom: 2px solid #f0f0f0;
}

.nts-calendar-list-items {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.nts-calendar-list-item {
	position: relative;
	display: flex;
	gap: 12px;
	text-decoration: none;
	color: inherit;
	transition: all 0.3s ease;
	overflow: hidden;
	padding: 8px;
	padding-left: 14px;
	margin: -8px;
	border: 1px solid #f0f0f0;
	background-color: #fff;
	border-radius: 10px;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nts-calendar-list-item:hover {
	background: rgb(255 255 255 / 44%);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
	transform: translateY(-5px);
	border-color: var(--theme-palette-color-1);
}

.nts-calendar-list-item:hover::before {
	width: 0;
}

.nts-calendar-list-item--highlighted {
	animation: highlightPulse 0.4s ease-out;
}

.nts-calendar-list-item--castle::before {
	background: #d4a574;
}

.nts-calendar-list-item--castle:hover {
	border-color: #d4a574;
}

.nts-calendar-event-category-badge {
	display: inline-block;
	margin-left: 8px;
	padding: 2px 8px;
	background: #d4a574;
	color: white;
	font-size: 11px;
	font-weight: 600;
	border-radius: 0px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.nts-calendar-list-item__thumbnail {
	flex-shrink: 0;
	width: 80px;
	height: 80px;
	border-radius: 6px;
	overflow: hidden;
	background: #f0f0f0;
}

.nts-calendar-list-item__thumbnail img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.nts-calendar-list-item__content {
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-width: 0;
}

.nts-calendar-list-item__date {
	font-size: 12px;
	color: var(--theme-palette-color-1);
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	margin-bottom: 4px;
}

.nts-calendar-list-item__title {
	font-size: 14px;
	font-weight: 600;
	color: #333;
	line-height: 1.4;
	word-break: break-word;
}

.nts-calendar-list-empty {
	text-align: center;
	color: #999;
	font-size: 14px;
	padding: 20px;
	margin: 0;
}

/* Scrollbar styling for list panel */
.nts-calendar-list-panel::-webkit-scrollbar {
	width: 6px;
}

.nts-calendar-list-panel::-webkit-scrollbar-track {
	background: transparent;
}

.nts-calendar-list-panel::-webkit-scrollbar-thumb {
	background: #ddd;
	border-radius: 3px;
}

.nts-calendar-list-panel::-webkit-scrollbar-thumb:hover {
	background: #999;
}

/* Mobile Responsive */
@media (max-width: 768px) {
	.nts-event-calendar-layout {
		display: flex;
		flex-direction: column;
		gap: 40px;
		padding: 20px 15px;
	}

	.nts-event-calendar {
		padding: 20px 15px;
	}

	.nts-calendar-list-panel {
		order: 2;
		max-height: none;
		padding: 20px 15px;
	}

	.nts-calendar-list-title {
		font-size: 16px;
		margin-bottom: 15px;
	}

	.nts-calendar-list-items {
		gap: 14px;
		padding: 5px;
	}

	.nts-calendar-list-item {
		padding: 6px;
		margin: -6px;
	}

	.nts-calendar-list-item__thumbnail {
		width: 70px;
		height: 70px;
	}

	.nts-calendar-list-item__date {
		font-size: 11px;
	}

	.nts-calendar-list-item__title {
		font-size: 13px;
	}

	.nts-calendar-header {
		margin-bottom: 20px;
		gap: 10px;
	}

	.nts-calendar-title {
		font-size: 22px;
	}

	.nts-calendar-nav {
		width: 40px;
		height: 40px;
		font-size: 18px;
	}

	.nts-calendar-filters {
		gap: 8px;
		margin-bottom: 15px;
	}

	.nts-calendar-filter-btn {
		padding: 6px 12px;
		font-size: 12px;
	}

	.nts-calendar-weekdays {
		gap: 8px;
		margin-bottom: 15px;
	}

	.nts-calendar-weekday {
		font-size: 12px;
		padding: 8px 0;
	}

	.nts-calendar-days {
		gap: 8px;
	}

	.nts-calendar-day {
		padding: 4px;
	}

	.nts-calendar-day-number {
		font-size: 14px;
	}

	.nts-calendar-day-events {
		gap: 3px;
	}

	.nts-calendar-event-dot {
		width: 4px;
		height: 4px;
		pointer-events: none;
	}

	.nts-events-list-header {
		padding: 15px 15px 15px 50px;
	}

	.nts-events-list-header .title {
		font-size: 16px;
	}

	.nts-events-list-content::before {
		left: 6px;
	}

	.nts-events-list-items li {
		padding-left: 45px;
		margin-bottom: 20px;
	}

	.nts-events-list-items li::before {
		left: 0;
		width: 12px;
		height: 12px;
		border-width: 2px;
	}

	.nts-events-list-item {
		padding: 15px;
		font-size: 14px;
	}
}

/* Extra small screens */
@media (max-width: 480px) {
	.nts-event-calendar-layout {
		padding: 15px 10px;
	}

	.nts-event-calendar {
		padding: 15px 10px;
	}

	.nts-calendar-list-panel {
		padding: 15px 10px;
	}

	.nts-calendar-list-title {
		font-size: 14px;
	}

	.nts-calendar-list-item__thumbnail {
		width: 60px;
		height: 60px;
	}

	.nts-calendar-list-item__date {
		font-size: 10px;
	}

	.nts-calendar-list-item__title {
		font-size: 12px;
	}

	.nts-calendar-header {
		flex-direction: row;
		gap: 8px;
		margin-bottom: 15px;
	}

	.nts-calendar-title {
		font-size: 16px;
	}

	.nts-calendar-nav {
		width: 36px;
		height: 36px;
		font-size: 16px;
		flex-shrink: 0;
	}

	.nts-calendar-filters {
		gap: 6px;
		margin-bottom: 12px;
	}

	.nts-calendar-filter-btn {
		padding: 5px 10px;
		font-size: 11px;
	}

	.nts-calendar-weekday {
		font-size: 11px;
	}

	.nts-calendar-day {
		min-height: auto;
	}

	.nts-calendar-day-number {
		font-size: 12px;
	}

	.nts-calendar-event-dot {
		width: 3px;
		height: 3px;
		pointer-events: none;
	}

	.nts-events-list-content {
		padding: 15px 0;
	}

	.nts-events-list-content::before {
		left: 4px;
	}

	.nts-events-list-header {
		padding: 12px 12px 12px 40px;
		margin-bottom: 15px;
		font-size: 14px;
	}

	.nts-events-list-header .title {
		font-size: 14px;
	}

	.nts-events-list-items li {
		padding-left: 25px;
		margin-bottom: 15px;
	}

	.nts-events-list-items li::before {
		left: 0;
		width: 10px;
		height: 10px;
		border-width: 2px;
		top: 6px;
	}

	.nts-events-list-item {
		padding: 15px;
		font-size: 13px;
	}
}
