/* === Events Page UX === */

/* Header row — single line: tabs | search | CTA */
.events-header-row {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 40px;
}

/* Tab row — underline tabs */
.events-tab-row {
	display: flex;
	align-items: center;
	border-bottom: 0 !important;
	gap: 0;
	flex-shrink: 0;
	margin: 0;
	padding: 0;
}
.events-tab-row .nav-item {
	list-style: none;
}
.events-tab-row .nav-link {
	display: inline-block;
	font-size: 16px;
	font-weight: 500;
	color: #333333 !important;
	padding: 8px 20px;
	text-align: center;
	border: none !important;
	border-radius: 0 !important;
	border-bottom: 3px solid transparent !important;
	background: transparent !important;
	transition: color 0.2s, border-color 0.2s;
	white-space: nowrap;
	text-decoration: none !important;
	line-height: 1.2;
	box-sizing: border-box;
}
.events-tab-row .nav-link:hover {
	background: transparent !important;
	color: #2557A7 !important;
	border-bottom: 3px solid #2557A7 !important;
}
.events-tab-row .nav-link.active {
	background: transparent !important;
	color: #2557A7 !important;
	border-bottom: 3px solid #2557A7 !important;
	font-weight: 500;
}

/* Inline search */
.events-header-search {
	position: relative;
	flex-shrink: 0;
	margin-left: auto;
	display: flex;
	align-items: center;
}
.events-header-search-input {
	width: 180px;
	height: 38px;
	padding: 8px 36px 8px 14px;
	border: 1px solid #bbb !important;
	border-radius: 20px !important;
	font-size: 13px;
	background: #f9f9f9;
	color: #333;
	transition: width 0.3s ease, border-color 0.2s, box-shadow 0.2s;
	outline: none;
	font-family: inherit;
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
}
.events-header-search-input::placeholder {
	color: #999;
	font-weight: 400;
}
.events-header-search-input:focus {
	width: 220px;
	border-color: #2479D8;
	box-shadow: 0 0 0 3px rgba(36,121,216,0.08);
	background: #fff;
}
.events-header-search-btn {
	position: absolute;
	right: 2px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	padding: 4px 8px;
	font-size: 16px;
	color: #888;
	cursor: pointer;
	transition: color 0.2s;
	line-height: 1;
}
.events-header-search-btn:hover {
	color: #333;
}
.events-header-search-input:focus ~ .events-header-search-btn {
	color: #007bff;
}

/* Post CTA button */
.events-post-cta {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
	flex-shrink: 0;
	background: #0a9e01 !important;
	color: #fff !important;
	font-weight: 600 !important;
	font-size: 13px !important;
	border-radius: 20px !important;
	padding: 7px 18px !important;
	text-decoration: none !important;
	transition: background 0.2s, box-shadow 0.2s;
	box-shadow: 0 1px 3px rgba(10,158,1,0.15);
}
.events-post-cta:hover {
	background: #088a01 !important;
	color: #fff !important;
	text-decoration: none !important;
	box-shadow: 0 2px 6px rgba(10,158,1,0.25);
}

/* Expandable search panel (row 2) */
.events-search-panel {
	max-height: 0;
	overflow: hidden;
	transition: max-height 0.35s ease, margin-top 0.35s ease, opacity 0.3s ease;
	margin-top: 0;
	opacity: 0;
}
.events-search-panel.open {
	max-height: 300px;
	margin-top: 14px;
	opacity: 1;
	overflow: visible;
}
.events-search-panel .form-row > .col.col-md-4 { display: none; }
.events-search-panel .form-row > .col-md-3 { flex: 0 0 38%; max-width: 38%; display: block !important; }
.events-search-panel .form-row > .col-md-3.date-range-dropdown { flex: 0 0 38%; max-width: 38%; display: block !important; }
.events-search-panel .form-row > .col-auto.col-md-2 { flex: 0 0 auto; }
.events-search-panel .search-filter-section { margin: 0 auto; }
.events-search-panel .form-control {
	border-radius: 15px; font-size: 13px; height: 38px;
	padding: 8px 12px 8px 30px; border: 1px solid #bbb;
	background: #f9f9f9; transition: border-color 0.2s, box-shadow 0.2s;
}
.events-search-panel .form-control:focus {
	border-color: #2479D8; box-shadow: 0 0 0 3px rgba(36,121,216,0.08); background: #fff;
}
.events-search-panel .btn-primary { border-radius: 15px; font-size: 13px; font-weight: 600; padding: 8px 20px; }

#dateRangeInputs { display: none; }

@media (max-width: 768px) {
	.events-header-row { gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
	.events-header-row::-webkit-scrollbar { display: none; }
	.events-tab-row .nav-link { font-size: 12px; padding: 5px 10px; }
	.events-header-search-input { width: 120px; font-size: 12px; padding: 0 32px 0 10px; }
	.events-header-search-input:focus { width: 150px; }
	.events-post-cta { font-size: 11px !important; padding: 6px 14px !important; }
	.events-search-panel .form-control { font-size: 12px; }
}
@media (max-width: 480px) {
	.events-header-search-input { width: 100px; }
	.events-header-search-input:focus { width: 130px; }
}

/* =====================================================
   Event Card Styles — scoped to .ev-listing
   Mirrors club/events ux_overrides.css card design
   ===================================================== */

/* Card container */
.ev-listing .event-container {
	border-radius: 14px !important;
	transition: all 0.25s ease !important;
	overflow: hidden !important;
}
/* Remove inner padding so image is edge-to-edge */
.ev-listing .event-container.event-listing-block-row {
	padding: 0 !important;
}
.ev-listing .event-container:hover {
	transform: translateY(-3px) !important;
	box-shadow: 0 8px 24px rgba(0,0,0,0.10) !important;
}

/* Listing row */
.ev-listing .event-listing-block-row {
	border: 1px solid #e5e7eb !important;
	border-radius: 14px !important;
	background: #fff !important;
	box-shadow: 0 1px 3px rgba(0,0,0,0.04) !important;
	transition: transform 0.2s ease, box-shadow 0.2s ease !important;
	overflow: hidden !important;
	margin-bottom: 16px !important;
	padding: 16px !important;
}
.ev-listing .event-listing-block-row:hover {
	transform: translateY(-3px) !important;
	box-shadow: 0 8px 24px rgba(0,0,0,0.08) !important;
}
.ev-listing .event-listing-block-row.active {
	border-color: #1C52A8 !important;
}

/* Image */
.ev-listing .event-image {
	position: relative;
	overflow: hidden;
	height: 180px !important;
	max-height: 180px !important;
	border-bottom: 1px solid #f0f0f0 !important;
	border-radius: 0 !important;
}
.ev-listing .event-image .events-bg {
	position: absolute;
	width: 100%; height: 100%;
	background-size: cover;
	border-radius: 0;
	z-index: 0;
}
.ev-listing .event-image .glass-overlay {
	position: absolute;
	top: 0; left: 0; width: 100%; height: 100%;
	background: rgba(255,255,255,0.1);
	backdrop-filter: blur(10px);
	z-index: 1;
	border-radius: 0;
}
.ev-listing .event-image .card-img {
	position: relative;
	width: 100%; object-fit: cover;
	border-radius: 0;
	height: 180px !important;
	max-height: 180px !important;
	z-index: 1;
}

/* Action buttons overlay (share/bookmark on image) */
.ev-listing .event-card-actions {
	position: absolute;
	top: 8px; right: 8px;
	display: flex;
	gap: 6px;
	z-index: 2;
	opacity: 0;
	transition: opacity 0.2s ease;
}
.ev-listing .event-container:hover .event-card-actions {
	opacity: 1;
}
.ev-listing .event-action-btn {
	background: rgba(255,255,255,0.92) !important;
	border-radius: 50% !important;
	width: 32px; height: 32px;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	cursor: pointer;
	border: none;
	text-decoration: none !important;
	transition: background 0.2s ease;
}
.ev-listing .event-action-btn:hover {
	background: rgba(255,255,255,1) !important;
}

/* Title */
.ev-listing .event-title {
	font-size: 18px !important;
	font-weight: 600 !important;
	line-height: 1.35 !important;
	color: #111827 !important;
	white-space: normal !important;

	display: -webkit-box;
	-webkit-line-clamp: 2;   /* number of lines to show */
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-overflow: ellipsis;
}
.ev-listing .event-title.min-h { min-height: 50px; }

/* Location / host */
.ev-listing .event-host,
.ev-listing .event-location {
	font-size: 13px !important;
	line-height: 1.4 !important;
	color: #6b7280 !important;
	font-weight: 400 !important;
}

/* Date / type / price */
.ev-listing .event-date,
.ev-listing .event-type,
.ev-listing .event-price {
	font-size: 14px !important;
	font-weight: 400 !important;
	color: #4b5563 !important;
	display: flex;
	align-items: center;
	gap: 8px;
	line-height: 1.5 !important;
}
.ev-listing .event-date svg,
.ev-listing .event-type svg,
.ev-listing .event-price svg {
	min-width: fit-content;
}

/* Date badge */
.ev-listing .event-date {
	color: #ffffff !important;
	background: #2A4E96;
	padding: 6px 8px;
	border-radius: 6px;
	width: fit-content;
	line-height: 1.2 !important;
}

/* Event type badge */
.ev-listing .event-type {
	background: #eff6ff !important;
	color: #2557a7 !important;
	border: 1px solid #dbeafe !important;
	border-radius: 6px !important;
	font-size: 11px !important;
	font-weight: 600 !important;
	text-transform: uppercase !important;
	letter-spacing: 0.04em !important;
	padding: 4px 10px !important;
	width: fit-content;
}

/* Bookmark float */
.ev-listing .bookmark-icon-right { float: right; font-size: 25px; }

@media (max-width: 480px) {
	.ev-listing .event-image,
	.ev-listing .event-image .card-img {
		height: 140px !important;
		max-height: 140px !important;
	}
	.ev-listing .event-title { font-size: 14px !important; }
}

/* =====================================================
   Event Card — date line, pills, CTA buttons, live beacon
   ===================================================== */

/* Date line — simple text */
.event-date-line {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	font-weight: 400;
	color: #555;
	line-height: 1.4;
	padding: 0;
}
.event-date-line i { color: #888; font-size: 13px; }

/* Pills — free / paid / type */
.event-pill {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	font-weight: 500;
	padding: 3px 10px;
	border-radius: 4px;
	line-height: 1.4;
	white-space: nowrap;
}
.event-pill-free { background: #e8f5e9; color: #2e7d32; }
.event-pill-paid { background: #fff3e0; color: #e65100; }
.event-pill-paid i { font-size: 10px; }
.event-pill-type { background: #f0f4ff; color: #2A4E96; }

/* CTA button — base */
.event-card-cta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 500;
	padding: 6px 14px;
	border-radius: 4px;
	text-decoration: none !important;
	transition: all 0.2s ease;
	line-height: 1.4;
	white-space: nowrap;
	background: transparent;
	cursor: pointer;
	border: 1.5px solid transparent;
	margin-left: auto;
}
/* Join Now — green */
.event-card-cta.cta-live {
	background-color: #059669 !important;
	border-color: #059669 !important;
	color: #fff !important;
}
.event-card-cta.cta-live:hover {
	background-color: #047857 !important;
	border-color: #047857 !important;
	color: #fff !important;
}
/* Register / Login — blue */
.event-card-cta.cta-register,
.event-card-cta.cta-login {
	background-color: #2A4E96 !important;
	border-color: #2A4E96 !important;
	color: #fff !important;
}
.event-card-cta.cta-register:hover,
.event-card-cta.cta-login:hover {
	background-color: #1C3A73 !important;
	border-color: #1C3A73 !important;
	color: #fff !important;
}
/* Expired — muted grey, no hover action */
.event-card-cta.cta-expired {
	background: #f3f4f6 !important;
	border-color: #d1d5db !important;
	color: #9ca3af !important;
	cursor: default;
	pointer-events: none;
}

/* Registered — grey outline */
.event-card-cta.cta-registered {
	background: transparent !important;
	border-color: #6B7280 !important;
	color: #6B7280 !important;
}
.event-card-cta.cta-registered:hover {
	background: #6B7280 !important;
	color: #fff !important;
}

/* Live Now beacon overlay */
.event-live-beacon {
	position: absolute;
	top: 8px; left: 8px;
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 10px;
	background: rgba(0,0,0,0.55);
	color: #fff;
	border-radius: 20px;
	font-size: 12px;
	font-weight: 600;
	z-index: 10;
	pointer-events: none;
}
.event-live-dot {
	width: 7px; height: 7px;
	background: #2ecc71;
	border-radius: 50%;
	display: inline-block;
	animation: livePulse 1.2s ease-in-out infinite;
}
@keyframes livePulse {
	0%, 100% { opacity: 1; transform: scale(1); }
	50% { opacity: 0.4; transform: scale(1.3); }
}

/* Live dot (legacy) */
.live-dot {
	width: 7px; height: 7px;
	border-radius: 50%;
	background: #2A4E96;
	animation: pulse-dot 1.5s infinite;
	flex-shrink: 0;
}
@keyframes pulse-dot {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}
