@import url("https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800&display=swap");

/* Global Styles */
* {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

button,
input,
select,
textarea {
	font-family: inherit;
}

:root {
	--primary-color: #1e00ff;
	--primary-hover: #1600cc;
	--secondary-color: #333333;
	--background-light: #f8f8f8;
	--background-card: #ffffff;
	--text-primary: #1a1a2e;
	--text-secondary: #3d4451;
	--text-muted: #6b7280;
	--border-color: #e5e7eb;
	--success-color: #10b981;
	--warning-color: #f59e0b;
	--danger-color: #ef4444;
}

body {
	font-family:
		"Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
	background-color: var(--background-light);
	color: var(--text-primary);
	line-height: 1.6;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.container {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 60px;
}

/* Header Section */
.header {
	text-align: center;
	position: relative;
	background: #000000;
	border-radius: 0;
	overflow: hidden;
	margin-bottom: 30px;
	background-image: url(./dither-effect.png);
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
}

.header::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to right,
		rgba(0, 0, 0, 0.3) 0%,
		rgba(0, 0, 0, 0.75) 50%,
		rgba(0, 0, 0, 0.3) 100%
	);
	z-index: 0;
	pointer-events: none;
}

.header-badge {
	display: inline-block;
	background: rgba(255, 255, 255, 0.1);
	color: #ffffff;
	padding: 6px 18px;
	border-radius: 50px;
	font-size: 0.85rem;
	font-weight: 500;
	margin-bottom: 16px;
	border: 1px solid rgba(255, 255, 255, 0.2);
	letter-spacing: 0.02em;
	position: relative;
	z-index: 1;
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
}

.header-content {
	position: relative;
	z-index: 1;
	height: 100%;
	max-width: 1400px;
	margin: 0 auto;
	padding: 60px 0;
}

.main-title {
	font-size: 2.5rem;
	font-weight: 800;
	margin-bottom: 12px;
	color: #ffffff;
	text-shadow: 0 2px 20px rgba(0, 0, 0, 0.2);
	letter-spacing: -0.02em;
}

.subtitle {
	font-size: 1.1rem;
	color: rgba(255, 255, 255, 0.95);
	max-width: 600px;
	margin: 0 auto;
	line-height: 1.5;
	text-shadow: 0 1px 10px rgba(0, 0, 0, 0.15);
	font-weight: 400;
}

/* List Event Button Wrapper */
.list-event-wrapper {
	display: none;
}

.btn-primary {
	background: var(--primary-color);
	color: white;
	border: none;
	padding: 11px 24px;
	border-radius: 6px;
	font-size: 0.9rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	box-shadow: 0 2px 8px rgba(30, 0, 255, 0.2);
	letter-spacing: 0.01em;
}

.btn-primary:hover {
	background: var(--primary-hover);
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(30, 0, 255, 0.3);
}

.btn-list-event {
	background: var(--primary-color);
	color: white;
	border: none;
	padding: 8px 16px;
	border-radius: 6px;
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.btn-list-event:hover {
	background: var(--primary-hover);
}

/* Filters Section - GitHub-inspired */
.filters-section {
	background: transparent;
	border-radius: 0;
	padding: 0;
	margin-bottom: 24px;
	border: none;
	box-shadow: none;
}

.filters-header {
	display: none;
}

/* Top Toolbar */
.filters-toolbar {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-bottom: 16px;
}

/* Controls Bar: Tabs + View Toggle */
.controls-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 12px 0;
	border-bottom: 1px solid var(--border-color);
	margin-bottom: 20px;
}

.filters-collapsible {
	max-height: 0;
	overflow: hidden;
	transition:
		max-height 0.3s ease-out,
		opacity 0.3s ease-out,
		margin 0.3s ease-out;
	opacity: 0;
}

.filters-collapsible.open {
	max-height: 500px;
	opacity: 1;
	margin-bottom: 16px;
}

.filters-container {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	padding: 16px;
	background: var(--background-card);
	border: 1px solid var(--border-color);
	border-radius: 6px;
}

.filter-group {
	flex: 1;
	min-width: 160px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.filter-label {
	font-size: 0.75rem;
	font-weight: 600;
	color: var(--text-secondary);
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.filter-select {
	width: 100%;
	padding: 8px 12px;
	background: #ffffff;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	color: var(--text-primary);
	font-size: 0.875rem;
	cursor: pointer;
	transition: all 0.2s ease;
}

.filter-select:hover,
.filter-select:focus {
	border-color: var(--primary-color);
	outline: none;
}

.btn-reset {
	padding: 8px 16px;
	background: transparent;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	color: var(--text-secondary);
	cursor: pointer;
	transition: all 0.2s ease;
	font-weight: 600;
	font-size: 0.875rem;
	display: flex;
	align-items: center;
	gap: 6px;
}

.btn-reset:hover {
	border-color: var(--primary-color);
	color: var(--primary-color);
}

.btn-filter-toggle {
	padding: 8px 12px;
	background: #ffffff;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	color: var(--text-primary);
	cursor: pointer;
	transition: all 0.2s ease;
	font-weight: 500;
	font-size: 0.875rem;
	display: flex;
	align-items: center;
	gap: 6px;
}

.btn-filter-toggle:hover,
.btn-filter-toggle.active {
	border-color: var(--primary-color);
	color: var(--primary-color);
	background: rgba(30, 0, 255, 0.03);
}

.search-wrapper {
	flex: 1;
	position: relative;
}

.search-icon {
	position: absolute;
	left: 12px;
	top: 50%;
	transform: translateY(-50%);
	color: var(--text-muted);
	font-size: 0.85rem;
}

.search-input {
	width: 100%;
	padding: 8px 12px 8px 36px;
	background: #ffffff;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	color: var(--text-primary);
	font-size: 0.875rem;
	transition: all 0.2s ease;
}

.search-input:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(30, 0, 255, 0.06);
}

/* Status Tabs */
.status-tabs {
	display: flex;
	gap: 0;
	flex: 1;
}

.tab-btn {
	background: transparent;
	border: none;
	padding: 12px 16px;
	color: var(--text-muted);
	font-size: 0.875rem;
	font-weight: 600;
	cursor: pointer;
	position: relative;
	transition: all 0.2s ease;
	border-bottom: 2px solid transparent;
	white-space: nowrap;
}

.tab-btn:hover {
	color: var(--text-primary);
}

.tab-btn.active {
	color: var(--primary-color);
	border-bottom-color: var(--primary-color);
}

.tab-btn .count {
	display: inline-block;
	background: #f0f0f0;
	padding: 1px 7px;
	border-radius: 10px;
	font-size: 0.75rem;
	margin-left: 5px;
	color: var(--text-muted);
	font-weight: 600;
}

.tab-btn.active .count {
	background: rgba(30, 0, 255, 0.1);
	color: var(--primary-color);
}

/* Search Container */
.search-container {
	display: none;
}

.view-toggle {
	display: flex;
	gap: 0;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	overflow: hidden;
}

.view-btn {
	padding: 8px 12px;
	background: #ffffff;
	border: none;
	border-right: 1px solid var(--border-color);
	color: var(--text-muted);
	cursor: pointer;
	transition: all 0.2s ease;
	font-size: 0.875rem;
}

.view-btn:last-child {
	border-right: none;
}

.view-btn:hover,
.view-btn.active {
	color: var(--primary-color);
	background: rgba(30, 0, 255, 0.03);
}

/* Events Grid */
.events-section {
	min-height: 400px;
	margin-bottom: 40px;
}

.events-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 20px;
	margin-bottom: 40px;
}

.events-grid.list-view {
	grid-template-columns: 1fr;
}

/* =============================================
   EVENT CARD — Professional redesign
   Structured layout: image → meta strip → content
   ============================================= */

.event-card {
	background: var(--background-card);
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--border-color);
	transition:
		box-shadow 0.2s ease,
		transform 0.2s ease,
		border-color 0.2s ease;
	cursor: pointer;
	position: relative;
	display: flex;
	flex-direction: column;
}

.event-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 28px rgba(0, 0, 0, 0.09);
	border-color: #c7cad1;
}

/* ── Image area: contained thumbnail on blurred bg ── */
.event-image-container {
	position: relative;
	width: 100%;
	height: 172px;
	background: #f8f8f8;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex-shrink: 0;
	border-bottom: 1px solid var(--border-color);
}

.event-image {
	position: relative;
	z-index: 1;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
	display: block;
}

.event-card:hover .event-image {
	transform: scale(1.04);
}

/* Status badge — bottom-right corner of image */
.event-card-badges {
	position: absolute;
	bottom: 10px;
	right: 10px;
	display: flex;
	align-items: center;
	gap: 5px;
	z-index: 2;
}

.event-status-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 0.65rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	background: #000000;
	color: #ffffff;
}

.status-ongoing {
	background: var(--primary-color);
	color: #ffffff;
}

.status-upcoming {
	background: #000000;
	color: #ffffff;
}

.status-ended {
	background: #ffffff;
	color: #000000;
	border: 1px solid #e5e7eb;
}

/* ── Tags: reposition to bottom-left of image ── */
.event-tags-inline {
	display: flex;
	gap: 5px;
	flex-wrap: wrap;
	align-items: center;
	margin-top: 6px;
}

.event-tag-small {
	background: #f8f8f8;
	color: var(--text-secondary);
	padding: 4px 10px;
	border-radius: 4px;
	font-size: 0.65rem;
	font-weight: 600;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	border: 1px solid var(--border-color);
}

/* ── Card body ── */
.event-content {
	padding: 14px 16px 18px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* Date line — colored, small caps */
.event-date-line {
	font-size: 0.73rem;
	font-weight: 700;
	color: var(--primary-color);
	text-transform: uppercase;
	letter-spacing: 0.055em;
	margin-bottom: 5px;
}

/* Title — prominent, 2-line clamp */
.event-title {
	font-size: 1rem;
	font-weight: 700;
	margin-bottom: 8px;
	color: var(--text-primary);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	line-height: 1.38;
	letter-spacing: -0.015em;
}

/* Organizer line */
.event-organizer-line {
	font-size: 0.8rem;
	color: var(--text-muted);
	font-weight: 400;
	margin-bottom: 8px;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.event-organizer-line strong {
	font-weight: 600;
	color: var(--text-secondary);
}

/* Info rows — compact, no icons */
.event-info {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin-bottom: 0;
}

.info-row {
	display: flex;
	align-items: center;
	color: var(--text-muted);
	font-size: 0.8rem;
	line-height: 1.45;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.info-row i {
	width: 14px;
	color: var(--text-muted);
	margin-right: 6px;
	font-size: 0.75rem;
	text-align: center;
}

/* Divider */
.event-card-divider {
	width: 100%;
	height: 1px;
	background: var(--border-color);
	margin: 12px 0;
}

/* Footer — type + price */
.event-card-footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-top: auto;
	padding-top: 12px;
}

.event-type-label {
	font-size: 0.72rem;
	font-weight: 600;
	color: var(--text-muted);
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.event-price-label {
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--text-primary);
}

/* ── List view overrides ── */
.events-grid.list-view .event-card {
	flex-direction: row;
	max-height: 148px;
}

.events-grid.list-view .event-image-container {
	width: 200px;
	min-width: 200px;
	height: 148px;
	flex-shrink: 0;
	border-bottom: none;
	border-right: 1px solid var(--border-color);
}

.events-grid.list-view .event-content {
	padding: 14px 20px;
	justify-content: center;
}

.events-grid.list-view .event-title {
	font-size: 0.98rem;
	-webkit-line-clamp: 1;
	line-clamp: 1;
}

.events-grid.list-view .event-info {
	flex-direction: row;
	flex-wrap: wrap;
	gap: 0 14px;
}

.events-grid.list-view .event-card-divider {
	display: none;
}

.events-grid.list-view .event-card-footer {
	padding-top: 6px;
}

/* Loading Spinner */
.loading-spinner {
	text-align: center;
	padding: 60px 20px;
	color: var(--text-secondary);
}

.loading-spinner i {
	font-size: 2.5rem;
	margin-bottom: 12px;
	color: var(--primary-color);
	display: block;
}

/* No Results */
.no-results {
	text-align: center;
	padding: 60px 20px;
	color: var(--text-muted);
}

.no-results i {
	font-size: 3rem;
	margin-bottom: 14px;
	opacity: 0.4;
	display: block;
}

/* Pagination */
.pagination {
	display: flex;
	justify-content: center;
	gap: 6px;
	margin: 40px 0;
}

.page-btn {
	padding: 8px 14px;
	background: var(--background-card);
	border: 1px solid var(--border-color);
	border-radius: 6px;
	color: var(--text-primary);
	cursor: pointer;
	transition: all 0.2s ease;
	font-weight: 500;
	font-size: 0.875rem;
}

.page-btn:hover {
	border-color: var(--primary-color);
	color: var(--primary-color);
}

.page-btn.active {
	background: var(--primary-color);
	border-color: var(--primary-color);
	color: white;
}

.page-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

/* Modal Styles */
.modal {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1000;
	overflow-y: auto;
	padding: 20px;
}

.modal.active {
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal-content {
	background: var(--background-card);
	border-radius: 12px;
	max-width: 960px;
	width: 100%;
	position: relative;
	animation: modalSlideIn 0.25s ease;
	border: 1px solid var(--border-color);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

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

.modal-close {
	position: absolute;
	top: 16px;
	right: 16px;
	background: transparent;
	border: none;
	width: 36px;
	height: 36px;
	border-radius: 4px;
	color: var(--text-muted);
	font-size: 1.2rem;
	cursor: pointer;
	z-index: 10;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal-close:hover {
	background: rgba(0, 0, 0, 0.05);
	color: var(--text-primary);
}

.modal-body {
	display: grid;
	grid-template-columns: 1fr 1.3fr;
	gap: 0;
}

.modal-left {
	position: relative;
}

.modal-image-container {
	position: relative;
	height: 100%;
	min-height: 480px;
	background: #fff;
	border-radius: 12px 0 0 12px;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.modal-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	padding: 6px;
	border-radius: 16px;
}

.modal-status-badge {
	position: absolute;
	bottom: 16px;
	right: 16px;
	padding: 6px 14px;
	border-radius: 4px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	background: #000000aa;
	color: #ffffff;
}

.modal-right {
	padding: 36px 40px;
	overflow-y: auto;
	max-height: 580px;
	display: flex;
	flex-direction: column;
}

.modal-title {
	font-size: 1.6rem;
	font-weight: 800;
	margin-bottom: 24px;
	color: var(--text-primary);
	line-height: 1.25;
	letter-spacing: -0.02em;
}

.modal-info {
	display: flex;
	flex-direction: column;
	gap: 14px;
	margin-bottom: 24px;
}

.info-item {
	display: flex;
	align-items: flex-center;
	justify-content: start;
	gap: 10px;
	color: var(--text-secondary);
	font-size: 0.9rem;
}

.info-item i {
	height: 20px;
	color: var(--primary-color);
	margin-top: 4px;
	flex-shrink: 1;
}

.info-item > div {
	flex: 1;
}

.view-map-link {
	color: var(--primary-color);
	text-decoration: none;
	font-size: 0.85rem;
	display: inline-block;
	margin-top: 3px;
	font-weight: 600;
}

.view-map-link:hover {
	text-decoration: underline;
}

.modal-tags {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: auto;
	padding-bottom: 24px;
}

.modal-tag {
	background: #f8f8f8;
	color: var(--text-secondary);
	padding: 5px 12px;
	border-radius: 4px;
	font-size: 0.8rem;
	font-weight: 600;
	border: 1px solid var(--border-color);
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.modal-actions {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}

#modalTicketBtn {
	grid-column: 1 / -1;
}

.btn-large {
	padding: 13px 20px;
	font-size: 0.9rem;
	border-radius: 6px;
	font-weight: 600;
	text-align: center;
	text-decoration: none;
	transition: all 0.2s ease;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	letter-spacing: 0.01em;
}

.btn-secondary {
	background: transparent;
	border: 1px solid var(--border-color);
	color: var(--text-primary);
	cursor: pointer;
}

.btn-secondary:hover {
	border-color: var(--primary-color);
	color: var(--primary-color);
	background: rgba(30, 0, 255, 0.03);
}

/* Share Modal */
.share-modal-content {
	max-width: 460px;
	padding: 36px;
}

.share-title {
	font-size: 1.4rem;
	font-weight: 800;
	margin-bottom: 24px;
	text-align: center;
	letter-spacing: -0.02em;
}

.share-buttons {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-bottom: 20px;
	flex-wrap: wrap;
}

.share-btn {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	border: none;
	color: white;
	font-size: 1.3rem;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.share-btn:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.share-btn.twitter {
	background: #000000;
}
.share-btn.linkedin {
	background: #0077b5;
}
.share-btn.whatsapp {
	background: #25d366;
}
.share-btn.facebook {
	background: #1877f2;
}
.share-btn.email {
	background: #ea4335;
}
.share-btn.google {
	background: #4285f4;
}
.share-btn.outlook {
	background: #0078d4;
}
.share-btn.apple {
	background: #000000;
}
.share-btn.ics {
	background: #6366f1;
}

.share-btn span {
	font-size: 0.68rem;
	margin-top: 3px;
	display: block;
	font-weight: 600;
}

.share-btn {
	flex-direction: column;
	padding: 10px;
	min-width: 72px;
	height: auto;
	min-height: 72px;
	border-radius: 10px;
}

.share-text {
	text-align: center;
	color: var(--text-muted);
	margin-bottom: 14px;
	font-size: 0.875rem;
}

.share-link-container {
	display: flex;
	gap: 10px;
}

.share-link-input {
	flex: 1;
	padding: 10px 14px;
	background: #f8f8f8;
	border: 1px solid var(--border-color);
	border-radius: 6px;
	color: var(--text-primary);
	font-size: 0.85rem;
}

.btn-copy {
	padding: 10px 20px;
	background: var(--primary-color);
	color: white;
	border: none;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 0.875rem;
}

.btn-copy:hover {
	background: var(--primary-hover);
}

/* Responsive Design */
@media (max-width: 1024px) {
	.modal-body {
		grid-template-columns: 1fr;
	}
	.modal-image-container {
		min-height: 280px;
		border-radius: 12px 12px 0 0;
	}
	.container {
		padding: 0 32px;
	}
}

@media (max-width: 768px) {
	.container {
		padding: 0 20px;
	}
	.header {
		padding: 40px 0 30px;
		margin-bottom: 20px;
	}
	.main-title {
		font-size: 2rem;
	}
	.subtitle {
		font-size: 1rem;
		max-width: 90%;
	}
	.filters-toolbar {
		flex-wrap: wrap;
	}
	.search-wrapper {
		order: -1;
		width: 100%;
		flex: none;
	}
	.btn-filter-toggle {
		flex: 1;
		justify-content: center;
	}
	.btn-list-event {
		flex: 1;
		justify-content: center;
	}
	.view-toggle {
		display: none;
	}
	.controls-bar {
		flex-direction: column;
		align-items: stretch;
		gap: 12px;
		padding: 0 0 16px;
	}
	.status-tabs {
		overflow-x: auto;
		flex-wrap: nowrap;
		border-bottom: 1px solid var(--border-color);
		padding-bottom: 0;
	}
	.filters-container {
		flex-direction: column;
	}
	.filter-group {
		width: 100%;
	}
	.events-grid {
		grid-template-columns: 1fr;
	}
	.modal-right {
		padding: 24px;
		max-height: none;
	}
	.modal-actions {
		grid-template-columns: 1fr;
	}
	.btn-large {
		width: 100%;
	}
	.events-grid.list-view .event-card {
		flex-direction: column;
		max-height: none;
	}
	.events-grid.list-view .event-image-container {
		width: 100%;
		height: 160px;
	}
}

/* ===== BFM Times Navbar ===== */
.bfm-navbar {
	background: #ffffff;
	padding: 0;
	position: sticky;
	top: 0;
	z-index: 1000;
	box-shadow: 0 1px 6px rgba(0, 0, 0, 0.08);
	font-family:
		"Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	border-bottom: 1px solid #e5e7eb;
}

.bfm-navbar-inner {
	max-width: none;
	margin: 0;
	display: flex;
	align-items: center;
	padding: 0 20px 0 10px;
	height: 64px;
	gap: 0;
}

.bfm-logo {
	flex-shrink: 0;
	margin-right: auto;
}

.bfm-logo a {
	display: flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
}

.bfm-logo-img {
	height: 48px;
	width: auto;
	margin: 1em 0.5em;
	object-fit: contain;
}

.bfm-logo-text {
	display: none;
	font-weight: 700;
	font-size: 0.75rem;
	line-height: 1.1;
	color: #1a1a2e;
	text-transform: lowercase;
	letter-spacing: 0.5px;
}

.bfm-nav-menu {
	display: flex;
	list-style: none;
	margin: 0 auto;
	padding: 0;
	gap: 0;
	flex: 0 1 auto;
}

.bfm-nav-item > a {
	display: flex;
	align-items: center;
	gap: 4px;
	padding: 20px 14px;
	color: #374151;
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
	white-space: nowrap;
	transition: color 0.2s ease;
	position: relative;
}

.bfm-nav-item > a:hover {
	color: #1a1a2e;
}

.bfm-nav-item > a::after {
	content: "";
	position: absolute;
	bottom: 0;
	left: 14px;
	right: 14px;
	height: 2px;
	background: var(--primary-color);
	transform: scaleX(0);
	transition: transform 0.2s ease;
}

.bfm-nav-item > a:hover::after {
	transform: scaleX(1);
}

.bfm-nav-highlight {
	background: var(--primary-color);
	border-radius:8px;
	transform: skewX(-8deg);
	margin: 0 8px;
	position: relative;
	overflow: hidden;
	align-self: center;
}

.bfm-nav-highlight > a {
	color: #ffffff !important;
	font-weight: 600;
	transform: skewX(8deg);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 6px 16px !important;
	height: 100%;
}

.bfm-nav-highlight > a:hover {
	color: #ffffff;
	opacity: 0.9;
}

.bfm-nav-highlight > a::after {
	display: none;
}

.bfm-nav-highlight::before {
	content: "";
	position: absolute;
	top: -4px;
	left: -20px;
	width: 12px;
	height: 125%;
	background: linear-gradient(to right, #ffffff00 0%, #ffffffff 100%);
	transform: skewY(12deg);
	z-index: 1;
	animation: moveLine 3s infinite linear;
	filter: blur(1px);
}

@keyframes moveLine {
	0% {
		left: -20%;
		opacity: 0;
	}
	20% {
		opacity: 1;
	}
	80% {
		opacity: 1;
	}
	100% {
		left: 120%;
		opacity: 0;
	}
}

.bfm-nav-item > a .fas.fa-chevron-down {
	font-size: 0.55rem;
	margin-left: 2px;
	opacity: 0.7;
}

.bfm-has-dropdown {
	position: relative;
}

.bfm-dropdown {
	display: none;
	position: absolute;
	top: 100%;
	left: 0;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 8px 0;
	min-width: 220px;
	list-style: none;
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
	z-index: 100;
}

.bfm-has-dropdown:hover .bfm-dropdown {
	display: block;
}

.bfm-dropdown li a {
	display: block;
	padding: 10px 20px;
	color: #374151;
	text-decoration: none;
	font-size: 0.85rem;
	font-weight: 400;
	transition: all 0.15s ease;
}

.bfm-dropdown li a:hover {
	color: #1a1a2e;
	background: #f3f4f6;
	padding-left: 24px;
}

.bfm-nav-actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-shrink: 0;
	margin-left: auto;
}

.bfm-search-btn {
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #f3f4f6;
	border: none;
	color: #374151;
	font-size: 0.9rem;
	cursor: pointer;
	transition: all 0.2s ease;
	display: flex;
	align-items: center;
	justify-content: center;
}

.bfm-search-btn:hover {
	background: #e5e7eb;
	color: #1a1a2e;
}

.bfm-advertise-btn {
	display: inline-flex;
	align-items: center;
	padding: 8px 20px;
	background: var(--primary-color);
	color: #ffffff;
	text-decoration: none;
	border-radius: 6px;
	font-size: 0.825rem;
	font-weight: 600;
	white-space: nowrap;
	transition: all 0.2s ease;
	box-shadow: 0 2px 8px rgba(30, 0, 255, 0.35);
}

.bfm-advertise-btn:hover {
	background: var(--primary-hover);
	transform: translateY(-1px);
	box-shadow: 0 4px 16px rgba(30, 0, 255, 0.45);
}

/* ===== Trending Topics Bar ===== */
.bfm-trending-bar {
	background: #1a1a1a;
	border-bottom: none;
	overflow: hidden;
}

.bfm-trending-inner {
	max-width: 1400px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 16px;
	height: 42px;
	overflow-x: auto;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

.bfm-trending-inner::-webkit-scrollbar {
	display: none;
}

.bfm-trending-icon {
	color: #ffffff;
	font-size: 1rem;
	font-weight: 600;
	flex-shrink: 0;
}

.bfm-trending-links {
	display: flex;
	list-style: none;
	margin: 0;
	padding: 0;
	gap: 0;
	white-space: nowrap;
}

.bfm-trending-links li {
	display: flex;
	align-items: center;
}

.bfm-trending-links li:not(:last-child)::after {
	content: "/";
	color: rgba(255, 255, 255, 0.25);
	margin: 0 12px;
	font-size: 0.9rem;
}

.bfm-trending-links li a {
	color: rgba(255, 255, 255, 0.75);
	text-decoration: none;
	font-size: 0.8rem;
	font-weight: 600;
	transition: color 0.2s ease;
	padding: 4px 0;
}

.bfm-trending-links li a:hover {
	color: #ffffff;
}

/* ===== Responsive Navbar ===== */
@media (max-width: 1200px) {
	.bfm-nav-item > a {
		padding: 20px 10px;
		font-size: 0.8rem;
	}
}

@media (max-width: 1024px) {
	.bfm-nav-menu {
		display: none;
	}
	.bfm-navbar-inner {
		justify-content: space-between;
	}
}

@media (max-width: 768px) {
	.bfm-navbar-inner {
		height: 56px;
		padding: 0 16px;
	}
	.bfm-logo-img {
		height: 32px;
	}
	.bfm-advertise-btn {
		padding: 6px 14px;
		font-size: 0.75rem;
	}
	.bfm-trending-inner {
		height: 36px;
		padding: 0 16px;
	}
	.bfm-trending-links li a {
		font-size: 0.75rem;
	}
}
