/* ==========================================================================
   NOVA ADMIN SUITE - LUXURY EVENTS & CALENDAR ENGINE
   @version 2.8.25
   ========================================================================== */

/* 1. Base Wrapper & Reset */
.nas-events-wrap {
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
	box-sizing: border-box;
	margin: 30px auto;
	width: 100%;
	max-width: 1100px;
	color: #e2e8f0;
}
.nas-events-wrap * {
	box-sizing: border-box;
}

/* 2. Interactive Calendar View */
.nas-calendar-container {
	background: #0f172a;
	border: 1px solid rgba(243, 204, 122, 0.22);
	border-radius: 20px;
	box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45), 0 0 35px rgba(216, 158, 52, 0.08);
	overflow: hidden;
	padding: 24px;
	position: relative;
}

.nas-calendar-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 24px;
	padding-bottom: 18px;
	border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.nas-calendar-title {
	font-size: 22px;
	font-weight: 700;
	color: #f8fafc;
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}
.nas-calendar-title .nas-month-name {
	background: linear-gradient(135deg, #f3cc7a 0%, #d89e34 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
}

.nas-calendar-nav {
	display: flex;
	gap: 8px;
}

.nas-cal-btn {
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.12);
	color: #f8fafc;
	border-radius: 10px;
	padding: 8px 14px;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.nas-cal-btn:hover {
	background: rgba(243, 204, 122, 0.15);
	border-color: rgba(243, 204, 122, 0.4);
	color: #f3cc7a;
	transform: translateY(-1px);
}

/* Grid Days & Cells */
.nas-calendar-grid {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 8px;
}

.nas-calendar-day-label {
	text-align: center;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	color: #94a3b8;
	padding: 10px 0;
}

.nas-calendar-cell {
	min-height: 95px;
	background: rgba(255, 255, 255, 0.02);
	border: 1px solid rgba(255, 255, 255, 0.05);
	border-radius: 12px;
	padding: 8px;
	position: relative;
	transition: all 0.2s ease;
}
.nas-calendar-cell:hover {
	background: rgba(255, 255, 255, 0.04);
	border-color: rgba(255, 255, 255, 0.12);
}
.nas-calendar-cell.nas-other-month {
	opacity: 0.3;
	pointer-events: none;
}
.nas-calendar-cell.nas-today {
	border-color: rgba(243, 204, 122, 0.5);
	background: rgba(243, 204, 122, 0.05);
}

.nas-cell-date {
	font-size: 13px;
	font-weight: 600;
	color: #94a3b8;
	margin-bottom: 6px;
	display: block;
}
.nas-calendar-cell.nas-today .nas-cell-date {
	color: #f3cc7a;
	font-weight: 800;
}

/* Event Pills inside Cell */
.nas-cell-events {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.nas-event-pill {
	background: linear-gradient(135deg, rgba(216, 158, 52, 0.85) 0%, rgba(168, 111, 24, 0.95) 100%);
	color: #0b0e14;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 6px;
	border-radius: 6px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	cursor: pointer;
	transition: all 0.2s ease;
	text-decoration: none;
	display: block;
}
.nas-event-pill:hover {
	transform: scale(1.02);
	filter: brightness(1.15);
	box-shadow: 0 4px 12px rgba(216, 158, 52, 0.4);
}

/* 3. Event List & Cards View */
.nas-events-list-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
	gap: 24px;
}

.nas-event-card {
	background: #0f172a;
	border: 1px solid rgba(255, 255, 255, 0.08);
	border-radius: 18px;
	overflow: hidden;
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
	transition: all 0.25s ease;
	display: flex;
	flex-direction: column;
}
.nas-event-card:hover {
	transform: translateY(-4px);
	border-color: rgba(243, 204, 122, 0.35);
	box-shadow: 0 20px 45px rgba(0, 0, 0, 0.5), 0 0 25px rgba(216, 158, 52, 0.1);
}

.nas-event-img-wrap {
	position: relative;
	width: 100%;
	height: 180px;
	background: #1e293b;
	overflow: hidden;
}
.nas-event-img-wrap img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}
.nas-event-card:hover .nas-event-img-wrap img {
	transform: scale(1.05);
}

.nas-event-date-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	background: rgba(15, 23, 42, 0.9);
	backdrop-filter: blur(12px);
	-webkit-backdrop-filter: blur(12px);
	border: 1px solid rgba(243, 204, 122, 0.35);
	border-radius: 10px;
	padding: 6px 12px;
	text-align: center;
	line-height: 1.1;
	box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}
.nas-event-date-badge .nas-day {
	font-size: 20px;
	font-weight: 800;
	color: #f3cc7a;
	display: block;
}
.nas-event-date-badge .nas-month {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	color: #94a3b8;
	letter-spacing: 0.5px;
}

.nas-event-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.nas-event-title {
	font-size: 18px;
	font-weight: 700;
	color: #f8fafc;
	margin: 0 0 10px;
	line-height: 1.3;
}
.nas-event-title a {
	color: #f8fafc;
	text-decoration: none;
	transition: color 0.2s ease;
}
.nas-event-title a:hover {
	color: #f3cc7a;
}

.nas-event-meta-row {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 13px;
	color: #94a3b8;
	margin-bottom: 16px;
}
.nas-event-meta-item {
	display: flex;
	align-items: center;
	gap: 8px;
}
.nas-event-meta-item svg,
.nas-event-meta-item .dashicons {
	color: #f3cc7a;
	font-size: 16px;
	width: 16px;
	height: 16px;
}
.nas-event-meta-item a {
	color: #38bdf8;
	text-decoration: none;
}
.nas-event-meta-item a:hover {
	text-decoration: underline;
}

.nas-event-excerpt {
	font-size: 13.5px;
	color: #cbd5e1;
	line-height: 1.5;
	margin-bottom: 18px;
	flex: 1;
}

/* Action Buttons */
.nas-event-actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.nas-ticket-row {
	display: flex;
	align-items: center;
	justify-content: space-between;
}
.nas-ticket-price {
	font-size: 18px;
	font-weight: 800;
	color: #f3cc7a;
}

.nas-btn-buy-ticket {
	background: linear-gradient(135deg, #d89e34 0%, #c48a28 55%, #a86f18 100%);
	color: #0b0e14 !important;
	border: none;
	border-radius: 10px;
	padding: 9px 18px;
	font-size: 13.5px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none !important;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	transition: all 0.2s ease;
	box-shadow: 0 4px 14px rgba(216, 158, 52, 0.35);
}
.nas-btn-buy-ticket:hover {
	transform: translateY(-1px);
	filter: brightness(1.1);
	box-shadow: 0 6px 20px rgba(216, 158, 52, 0.5);
}

.nas-calendar-add-buttons {
	display: flex;
	gap: 8px;
}
.nas-btn-cal-add {
	flex: 1;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid rgba(255, 255, 255, 0.1);
	color: #cbd5e1 !important;
	border-radius: 8px;
	padding: 6px 10px;
	font-size: 11.5px;
	font-weight: 600;
	text-align: center;
	text-decoration: none !important;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 5px;
}
.nas-btn-cal-add:hover {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(243, 204, 122, 0.4);
	color: #f3cc7a !important;
}

/* 4. Event Modal / Popup in Calendar View */
.nas-event-modal-backdrop {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0, 0, 0, 0.75);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	opacity: 0;
	visibility: hidden;
	transition: all 0.25s ease;
}
.nas-event-modal-backdrop.nas-active {
	opacity: 1;
	visibility: visible;
}

.nas-event-modal-content {
	background: #0f172a;
	border: 1px solid rgba(243, 204, 122, 0.35);
	border-radius: 20px;
	max-width: 540px;
	width: 100%;
	overflow: hidden;
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.65), 0 0 30px rgba(216, 158, 52, 0.15);
	transform: scale(0.95);
	transition: transform 0.25s ease;
	position: relative;
}
.nas-event-modal-backdrop.nas-active .nas-event-modal-content {
	transform: scale(1);
}

.nas-modal-close {
	position: absolute;
	top: 14px;
	right: 14px;
	background: rgba(0, 0, 0, 0.5);
	border: 1px solid rgba(255, 255, 255, 0.2);
	color: #fff;
	width: 32px;
	height: 32px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 16px;
	z-index: 10;
	transition: all 0.2s ease;
}
.nas-modal-close:hover {
	background: #ef4444;
	border-color: #ef4444;
}

/* 5. Mobile Responsive */
@media screen and (max-width: 768px) {
	.nas-calendar-container {
		padding: 14px;
	}
	.nas-calendar-day-label {
		font-size: 11px;
	}
	.nas-calendar-cell {
		min-height: 65px;
		padding: 4px;
	}
	.nas-cell-date {
		font-size: 11px;
	}
	.nas-event-pill {
		font-size: 9px;
		padding: 2px 4px;
	}
	.nas-events-list-grid {
		grid-template-columns: 1fr;
	}
}
