/* =========================================================
   Bideew Events – Frontend Styles
   ========================================================= */

.be-events-wrapper {
	width: 100%;
	box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
}

/* Grid */
.be-events-wrapper {
	container-type: inline-size;
	container-name: be-wrapper;
}

.be-events-grid {
	display: grid;
	gap: 28px;
}

.be-grid-1 { grid-template-columns: 1fr; }
.be-grid-2 { grid-template-columns: repeat(2, 1fr); }
.be-grid-3 { grid-template-columns: repeat(3, 1fr); }
.be-grid-4 { grid-template-columns: repeat(4, 1fr); }

@container be-wrapper (max-width: 900px) {
	.be-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@container be-wrapper (max-width: 640px) {
	.be-grid-3,
	.be-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@container be-wrapper (max-width: 480px) {
	.be-grid-2,
	.be-grid-3,
	.be-grid-4 { grid-template-columns: 1fr; }
}

/* Card */
.be-event-card {
	background: #ffffff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.09);
	display: flex;
	flex-direction: column;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.be-event-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 40px rgba(0, 0, 0, 0.14);
}

/* Image zone */
.be-card-link {
	text-decoration: none;
	display: block;
}

.be-card-image {
	position: relative;
	height: 260px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.be-card-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to right,
		rgba(15, 40, 80, 0.72) 0%,
		rgba(15, 40, 80, 0.48) 55%,
		rgba(195, 100, 20, 0.44) 100%
	);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 20px;
}

/* Top badges */
.be-card-top-badges {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 8px;
}

.be-badges-left {
	display: flex;
	align-items: center;
	gap: 8px;
	flex-wrap: wrap;
}

.be-badge-status {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: #f59e0b;
	color: #ffffff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.06em;
	padding: 5px 12px;
	border-radius: 100px;
	white-space: nowrap;
}

.be-badge-featured {
	display: inline-block;
	color: #ffffff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	opacity: 0.9;
	white-space: nowrap;
}

.be-badge-type {
	display: inline-block;
	background: rgba(255, 255, 255, 0.18);
	backdrop-filter: blur(6px);
	border: 1px solid rgba(255, 255, 255, 0.32);
	color: #ffffff;
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.06em;
	padding: 5px 14px;
	border-radius: 100px;
	white-space: nowrap;
}

/* Title area on image */
.be-card-image-content {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.be-card-title {
	margin: 0;
	padding: 0;
	color: #ffffff;
	font-size: 22px;
	font-weight: 800;
	line-height: 1.25;
	text-shadow: 0 1px 6px rgba(0, 0, 0, 0.35);
}

.be-card-tagline {
	margin: 0;
	padding: 0;
	color: rgba(255, 255, 255, 0.88);
	font-size: 14px;
	font-weight: 400;
	line-height: 1.4;
}

/* Details zone */
.be-card-details {
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	flex: 1;
}

/* Meta items */
.be-card-meta {
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.be-meta-item {
	display: flex;
	align-items: center;
	gap: 12px;
	font-size: 14px;
	font-weight: 600;
	color: #1a1a2e;
}

.be-meta-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 10px;
	flex-shrink: 0;
}

.be-meta-item:nth-child(1) .be-meta-icon {
	background: #fef3c7;
	color: #d97706;
}

.be-meta-item:nth-child(2) .be-meta-icon {
	background: #fce7f3;
	color: #db2777;
}

.be-meta-item:nth-child(3) .be-meta-icon {
	background: #eff6ff;
	color: #2563eb;
}

.be-meta-item:nth-child(4) .be-meta-icon {
	background: #f0fdf4;
	color: #16a34a;
}

/* Categories */
.be-card-categories {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.be-category-tag {
	display: inline-block;
	background: #f5f3ff;
	color: #7c3aed;
	border: 1px solid #ddd6fe;
	font-size: 12px;
	font-weight: 500;
	padding: 4px 12px;
	border-radius: 100px;
	line-height: 1.5;
}

/* CTA */
.be-card-cta {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #db2777;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	transition: gap 0.2s ease;
}

.be-card-cta:hover {
	gap: 10px;
	color: #be185d;
}

/* =========================================================
   Sidebar / Minimal Layout
   ========================================================= */

.be-layout-sidebar {
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
}

.be-sidebar-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0;
}

.be-sidebar-item {
	border-bottom: 1px solid #f0f0f0;
}

.be-sidebar-item:last-child {
	border-bottom: none;
}

.be-sidebar-link {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 14px 0;
	text-decoration: none;
	color: inherit;
	transition: opacity 0.18s ease;
}

.be-sidebar-link:hover {
	opacity: 0.78;
}

.be-sidebar-date {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	min-width: 56px;
	width: 56px;
	height: 64px;
	background: #ffffff;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	flex-shrink: 0;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	gap: 0;
}

.be-sidebar-month {
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: #6b7280;
	text-transform: uppercase;
	line-height: 1;
	padding-top: 10px;
}

.be-sidebar-day {
	font-size: 26px;
	font-weight: 800;
	color: #111827;
	line-height: 1.1;
	padding-bottom: 8px;
}

.be-sidebar-thumb {
	width: 72px;
	height: 64px;
	border-radius: 10px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	flex-shrink: 0;
	overflow: hidden;
}

.be-sidebar-thumb--empty {
	background-color: #e5e7eb;
}

.be-sidebar-info {
	display: flex;
	flex-direction: column;
	gap: 4px;
	min-width: 0;
	flex: 1;
}

.be-sidebar-title {
	font-size: 15px;
	font-weight: 700;
	color: #e07820;
	line-height: 1.3;
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.be-sidebar-meta {
	font-size: 13px;
	font-weight: 400;
	color: #374151;
	display: block;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	line-height: 1.4;
}

/* Empty state */
.be-no-events {
	color: #6b7280;
	font-style: italic;
	padding: 16px 0;
	font-size: 15px;
}
