/* ==========================================================================
   NXT Ingredient Events – Frontend Styles
   ========================================================================== */

/* ── Reset / base ─────────────────────────────────────────────────────────── */
.nxt-events-wrapper *,
.nxt-events-wrapper *::before,
.nxt-events-wrapper *::after {
	box-sizing: border-box;
}

.nxt-events-wrapper {
	max-width: 900px;
	margin: 0 auto;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
	font-size: 15px;
	line-height: 1.5;
	color: #212529;
}

/* ── Filter bar ───────────────────────────────────────────────────────────── */
.nxt-events-filters {
	background: #f8f9fa;
	border: 1px solid #e4e7eb;
	border-radius: 10px;
	padding: 20px 22px;
	margin-bottom: 24px;
}

/* Search */
.nxt-search-wrap {
	position: relative;
	margin-bottom: 16px;
}

.nxt-search-icon {
	position: absolute;
	top: 50%;
	left: 12px;
	transform: translateY(-50%);
	width: 18px;
	height: 18px;
	color: #9ca3af;
	pointer-events: none;
}

.nxt-search-input {
	display: block;
	width: 100%;
	padding: 10px 14px 10px 40px;
	font-size: 14px;
	color: #212529;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 7px;
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
	appearance: none;
	-webkit-appearance: none;
}

.nxt-search-input:focus {
	border-color: #1a3c5e;
	box-shadow: 0 0 0 3px rgba(26, 60, 94, 0.12);
}

.nxt-search-input::placeholder {
	color: #9ca3af;
}

/* Filter row */
.nxt-filter-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: flex-end;
}

.nxt-filter-group {
	display: flex;
	flex-direction: column;
	gap: 5px;
}

.nxt-filter-label {
	font-size: 11px;
	font-weight: 700;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.06em;
}

.nxt-select {
	padding: 8px 32px 8px 12px;
	font-size: 14px;
	color: #374151;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='%236b7280'%3E%3Cpath fill-rule='evenodd' d='M5.293 7.293a1 1 0 011.414 0L10 10.586l3.293-3.293a1 1 0 111.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 010-1.414z' clip-rule='evenodd'/%3E%3C/svg%3E") no-repeat right 10px center;
	background-size: 16px;
	border: 1px solid #d1d5db;
	border-radius: 7px;
	min-width: 160px;
	cursor: pointer;
	outline: none;
	appearance: none;
	-webkit-appearance: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.nxt-select:focus {
	border-color: #1a3c5e;
	box-shadow: 0 0 0 3px rgba(26, 60, 94, 0.12);
}

/* Clear filters button */
.nxt-clear-btn {
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	color: #dc2626;
	background: transparent;
	border: 1px solid #fca5a5;
	border-radius: 7px;
	cursor: pointer;
	transition: background 0.15s, color 0.15s;
	white-space: nowrap;
}

.nxt-clear-btn:hover {
	background: #fef2f2;
}

/* Tags filter */
.nxt-tags-filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	padding-top: 16px;
	border-top: 1px solid #e4e7eb;
}

.nxt-tags-label {
	font-size: 11px;
	font-weight: 700;
	color: #6b7280;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin-right: 4px;
}

.nxt-tag-pill {
	display: inline-flex;
	align-items: center;
	padding: 4px 13px;
	font-size: 13px;
	color: #495057;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 999px;
	cursor: pointer;
	transition: background 0.15s, border-color 0.15s, color 0.15s;
	line-height: 1.4;
}

.nxt-tag-pill:hover {
	background: #eef2f7;
	border-color: #1a3c5e;
	color: #1a3c5e;
}

.nxt-tag-pill.active {
	background: #1a3c5e;
	border-color: #1a3c5e;
	color: #fff;
}

/* ── Results bar ──────────────────────────────────────────────────────────── */
.nxt-results-bar {
	margin-bottom: 16px;
	min-height: 20px;
}

.nxt-results-count {
	font-size: 13px;
	color: #6b7280;
}

/* ── Events list ──────────────────────────────────────────────────────────── */
.nxt-events-list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}

/* ── Event card ───────────────────────────────────────────────────────────── */
.nxt-event-card {
	background: #fff;
	border: 1px solid #e4e7eb;
	border-radius: 10px;
	overflow: hidden;
	transition: box-shadow 0.18s;
}

.nxt-event-card:hover {
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.nxt-card-body {
	padding: 22px 24px;
}

/* Type badge(s) */
.nxt-card-types {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 10px;
}

.nxt-card-type {
	display: inline-block;
	padding: 2px 10px;
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #1a3c5e;
	background: #eef4fb;
	border-radius: 999px;
	border: 1px solid #c3d9ef;
}

/* Title */
.nxt-card-title {
	font-size: 18px;
	font-weight: 700;
	color: #1a3c5e;
	margin: 0 0 8px;
	line-height: 1.3;
}

/* Date */
.nxt-card-date {
	font-size: 14px;
	font-weight: 700;
	color: #212529;
	margin-bottom: 5px;
}

/* Location */
.nxt-card-location {
	font-size: 14px;
	color: #6b7280;
	margin-bottom: 12px;
	line-height: 1.5;
}

/* Description */
.nxt-card-desc {
	font-size: 14px;
	color: #4b5563;
	line-height: 1.65;
	margin: 0 0 16px;
}

/* Tags */
.nxt-card-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
	margin-bottom: 16px;
}

.nxt-card-tag {
	display: inline-block;
	padding: 3px 12px;
	font-size: 12px;
	color: #495057;
	background: #f1f3f5;
	border: 1px solid #e4e7eb;
	border-radius: 999px;
}

/* Visit website link */
.nxt-card-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 14px;
	font-weight: 600;
	color: #1a3c5e;
	text-decoration: none;
	transition: color 0.15s;
}

.nxt-card-link::after {
	content: '→';
	font-size: 13px;
	transition: transform 0.15s;
}

.nxt-card-link:hover {
	color: #0d6efd;
	text-decoration: underline;
}

.nxt-card-link:hover::after {
	transform: translateX(3px);
}

/* ── Empty state ──────────────────────────────────────────────────────────── */
.nxt-empty-state {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 52px 24px;
	color: #9ca3af;
	background: #fff;
	border: 1px dashed #d1d5db;
	border-radius: 10px;
	text-align: center;
	gap: 12px;
}

.nxt-empty-state svg {
	width: 44px;
	height: 44px;
	color: #d1d5db;
}

.nxt-empty-state p {
	margin: 0;
	font-size: 15px;
	color: #6b7280;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
	.nxt-events-filters {
		padding: 16px;
	}

	.nxt-filter-row {
		flex-direction: column;
		align-items: stretch;
	}

	.nxt-filter-group {
		width: 100%;
	}

	.nxt-select {
		min-width: unset;
		width: 100%;
	}

	.nxt-clear-btn {
		width: 100%;
		text-align: center;
	}

	.nxt-card-body {
		padding: 16px 18px;
	}

	.nxt-card-title {
		font-size: 16px;
	}
}
