/* ===================================================
   EVENIMENTE GUANELLIENE v6 — doar Listă
   Culori: violet #5b1a5e | portocaliu #e8783c
   =================================================== */

/* ---- Wrapper principal ---- */
.eg-lista-wrap {
	max-width: 900px;
	margin: 0 auto;
	font-family: 'Quicksand', 'Poppins', sans-serif;
}

/* ---- Bara de filtrare cu butoane pill ---- */
.eg-filtre-bar {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-bottom: 28px;
}

.eg-filtre-label {
	font-weight: 700;
	color: #5b1a5e;
	font-size: 0.9em;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	white-space: nowrap;
}

.eg-cat-btns {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.eg-cat-btn {
	background: #f3edf3;
	color: #5b1a5e;
	border: 2px solid transparent;
	border-radius: 999px;
	padding: 6px 16px;
	font-family: inherit;
	font-size: 0.88em;
	font-weight: 700;
	cursor: pointer;
	transition: background 0.15s, color 0.15s, border-color 0.15s;
	white-space: nowrap;
}

.eg-cat-btn:hover {
	background: #e0d6e0;
	border-color: #5b1a5e;
}

.eg-cat-btn.active {
	background: #5b1a5e;
	color: #fff;
	border-color: #5b1a5e;
}

/* Culori active per categorie */
.eg-cat-btn-sarbatoare.active       { background: #e8783c; border-color: #e8783c; }
.eg-cat-btn-hram.active             { background: #5b1a5e; border-color: #5b1a5e; }
.eg-cat-btn-eveniment-intern.active { background: #8a6d8e; border-color: #8a6d8e; }
.eg-cat-btn-ad-hoc.active           { background: #2f9e8f; border-color: #2f9e8f; }

/* ---- Lista de carduri ---- */
.eg-lista {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

/* ---- Card eveniment ---- */
.eg-card {
	display: flex;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(91,26,94,0.08);
	transition: box-shadow 0.2s, transform 0.15s;
	min-height: 140px;
}

.eg-card:hover {
	box-shadow: 0 6px 22px rgba(91,26,94,0.15);
	transform: translateY(-2px);
}

/* Imagine stânga */
.eg-card-img-wrap {
	flex-shrink: 0;
	width: 160px;
	overflow: hidden;
}

.eg-card-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

/* Bara colorată când nu e imagine */
.eg-card-no-img {
	flex-shrink: 0;
	width: 10px;
}

.eg-card-no-img.eg-placeholder-sarbatoare       { background: #fdeee6; }
.eg-card-no-img.eg-placeholder-hram             { background: #ede0ee; }
.eg-card-no-img.eg-placeholder-eveniment-intern { background: #f0ebf0; }
.eg-card-no-img.eg-placeholder-ad-hoc           { background: #e0f2ef; }

/* Corp card */
.eg-card-body {
	flex: 1;
	padding: 18px 20px 18px 22px;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

/* Linie colorată stânga */
.eg-card-stripe {
	position: absolute;
	left: 0;
	top: 0;
	bottom: 0;
	width: 5px;
}

.eg-stripe-sarbatoare       { background: #e8783c; }
.eg-stripe-hram             { background: #5b1a5e; }
.eg-stripe-eveniment-intern { background: #8a6d8e; }
.eg-stripe-ad-hoc           { background: #2f9e8f; }

/* Badge-uri */
.eg-badges { display: flex; flex-wrap: wrap; gap: 5px; }

.eg-badge {
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	font-size: 0.75em;
	font-weight: 700;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.eg-badge-sarbatoare       { background: #e8783c; }
.eg-badge-hram             { background: #5b1a5e; }
.eg-badge-eveniment-intern { background: #8a6d8e; }
.eg-badge-ad-hoc           { background: #2f9e8f; }

/* Titlu */
.eg-card-title {
	margin: 0;
	font-size: 1.1em;
	font-weight: 800;
	line-height: 1.3;
}

.eg-card-title a {
	color: #3a1040;
	text-decoration: none;
}

.eg-card-title a:hover {
	color: #5b1a5e;
	text-decoration: underline;
}

/* Meta: dată + locație */
.eg-card-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	font-size: 0.86em;
}

.eg-card-data {
	color: #e8783c;
	font-weight: 700;
}

.eg-card-locatie {
	color: #777;
}

/* Descriere */
.eg-card-descriere {
	margin: 0;
	color: #555;
	font-size: 0.9em;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Acțiuni */
.eg-card-actiuni {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
	margin-top: auto;
	padding-top: 4px;
}

.eg-btn-detalii,
.eg-btn-inscriere {
	display: inline-block;
	padding: 7px 16px;
	border-radius: 7px;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.84em;
	transition: background 0.15s, transform 0.1s;
}

.eg-btn-detalii {
	background: #5b1a5e;
	color: #fff;
}

.eg-btn-detalii:hover {
	background: #7a2480;
	color: #fff;
	transform: translateY(-1px);
}

.eg-btn-inscriere {
	background: #e8783c;
	color: #fff;
}

.eg-btn-inscriere:hover {
	background: #d0662a;
	color: #fff;
	transform: translateY(-1px);
}

/* ---- Noutăți / Apropiate ---- */
.eg-apropiate {
	list-style: none;
	margin: 0;
	padding: 0;
}

.eg-apropiate li {
	padding: 10px 0;
	border-bottom: 1px solid #ede5ed;
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.eg-apropiate li a {
	color: #5b1a5e;
	text-decoration: none;
	font-weight: 600;
	font-size: 0.95em;
}

.eg-apropiate li a:hover { text-decoration: underline; }

.eg-apropiate-locatie {
	font-size: 0.82em;
	color: #999;
}

/* ---- Mesaje goale ---- */
.eg-no-events,
.eg-no-results {
	color: #999;
	font-style: italic;
	padding: 20px 0;
	font-size: 0.95em;
}

/* ===================================================
   Single eveniment
   =================================================== */
.eg-single-wrap {
	max-width: 820px;
	margin: 40px auto;
	padding: 0 20px;
	font-family: 'Quicksand', 'Poppins', sans-serif;
}

.eg-single {
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 4px 20px rgba(91,26,94,0.09);
	overflow: hidden;
}

.eg-single-header {
	padding: 28px 32px 18px;
	border-bottom: 1px solid #f0e8f0;
}

.eg-single-badges { margin-bottom: 10px; }

.eg-single-title {
	font-size: 1.8em;
	font-weight: 900;
	color: #5b1a5e;
	margin: 0 0 14px;
	line-height: 1.25;
}

.eg-single-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	font-size: 0.9em;
}

.eg-single-data    { color: #e8783c; font-weight: 700; }
.eg-single-locatie { color: #555; }
.eg-single-recurent { color: #8a6d8e; font-style: italic; }

.eg-single-thumb { width: 100%; max-height: 380px; overflow: hidden; }
.eg-single-thumb img { width: 100%; height: 380px; object-fit: cover; display: block; }

.eg-single-content { padding: 28px 32px; color: #333; line-height: 1.75; }
.eg-single-content p { margin-bottom: 1em; }

.eg-single-program {
	margin: 0 32px 24px;
	background: #faf5fb;
	border-left: 4px solid #5b1a5e;
	border-radius: 0 8px 8px 0;
	padding: 18px 22px;
}

.eg-single-program h2 { color: #5b1a5e; font-size: 1.05em; margin: 0 0 10px; }
.eg-program-text { color: #444; font-size: 0.93em; line-height: 2; }

.eg-single-galerie { padding: 0 32px 24px; }
.eg-single-galerie h2 { color: #5b1a5e; font-size: 1.05em; margin: 0 0 12px; }

.eg-galerie-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 10px;
}

.eg-galerie-item {
	display: block;
	border-radius: 8px;
	overflow: hidden;
	aspect-ratio: 1;
}

.eg-galerie-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.22s;
}

.eg-galerie-item:hover img { transform: scale(1.06); }

.eg-single-actiuni {
	padding: 20px 32px 28px;
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
	border-top: 1px solid #f0e8f0;
}

.eg-btn-inapoi {
	display: inline-block;
	padding: 9px 18px;
	border-radius: 7px;
	text-decoration: none;
	font-weight: 700;
	font-size: 0.88em;
	background: #f3edf3;
	color: #5b1a5e;
	transition: background 0.15s;
}

.eg-btn-inapoi:hover { background: #e0d6e0; color: #3c0a40; }

/* ===================================================
   RESPONSIVE — mobil
   =================================================== */
@media (max-width: 600px) {
	/* Card pe mobil: imagine sus, text jos */
	.eg-card {
		flex-direction: column;
	}

	.eg-card-img-wrap {
		width: 100%;
		height: 180px;
	}

	.eg-card-img-placeholder {
		width: 100%;
		height: 70px;
	}

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

	.eg-card-title { font-size: 1em; }

	/* Filtru pill pe mobil: scroll orizontal */
	.eg-filtre-bar {
		flex-direction: column;
		align-items: flex-start;
		gap: 8px;
	}

	.eg-cat-btns {
		width: 100%;
		overflow-x: auto;
		flex-wrap: nowrap;
		padding-bottom: 4px;
		-webkit-overflow-scrolling: touch;
	}

	.eg-cat-btn { flex-shrink: 0; }

	/* Single */
	.eg-single-header,
	.eg-single-content,
	.eg-single-galerie,
	.eg-single-actiuni { padding-left: 16px; padding-right: 16px; }
	.eg-single-program { margin-left: 16px; margin-right: 16px; }
	.eg-single-title { font-size: 1.4em; }
	.eg-single-thumb img { height: 220px; }
	.eg-galerie-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   v2.1.0 — Categorie „Concert" + Arhivă foto pe ani
   ============================================================ */

.eg-card-no-img.eg-placeholder-concert { background: #f7e3ec; }
.eg-stripe-concert { background: #b23a6e; }
.eg-badge-concert  { background: #b23a6e; }
.eg-cat-btn-concert.active { background: #b23a6e; border-color: #b23a6e; color: #fff; }

/* Arhivă foto pe ani (pagina evenimentului) */
.eg-single-arhiva {
	margin-top: 40px;
}
.eg-single-arhiva h2 {
	font-size: 24px;
	color: #5b1a5e;
	margin-bottom: 8px;
}
.eg-arhiva-intro {
	color: #666;
	font-size: 15px;
	margin: 0 0 18px;
}
.eg-arhiva-an {
	border: 1px solid #e6dce7;
	border-radius: 10px;
	margin-bottom: 14px;
	background: #fdfbfd;
	overflow: hidden;
}
.eg-arhiva-an[open] {
	box-shadow: 0 2px 10px rgba(91, 26, 94, 0.08);
}
.eg-arhiva-an-titlu {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 18px;
	cursor: pointer;
	list-style: none;
	user-select: none;
	font-weight: 600;
	color: #3d2140;
	transition: background 0.15s ease;
}
.eg-arhiva-an-titlu::-webkit-details-marker { display: none; }
.eg-arhiva-an-titlu::after {
	content: "▾";
	margin-left: auto;
	color: #5b1a5e;
	transition: transform 0.2s ease;
}
.eg-arhiva-an[open] > .eg-arhiva-an-titlu::after {
	transform: rotate(180deg);
}
.eg-arhiva-an-titlu:hover {
	background: #f5eef6;
}
.eg-arhiva-an-badge {
	background: #5b1a5e;
	color: #fff;
	border-radius: 20px;
	padding: 4px 14px;
	font-size: 15px;
	letter-spacing: 0.5px;
}
.eg-arhiva-an-count {
	color: #8a6d8e;
	font-size: 13px;
	font-weight: 400;
}
.eg-arhiva-an .eg-galerie-grid {
	padding: 0 18px 18px;
}

/* ============================================================
   v2.2.0 — Pagina eveniment (canvas), lightbox, carduri clickabile
   ============================================================ */

/* Carduri: linkuri */
a.eg-card-img-wrap, a.eg-card-no-img { display: block; text-decoration: none; }
.eg-card-title-link { color: inherit; text-decoration: none; transition: color .15s; }
.eg-card-title-link:hover { color: #5b1a5e; }
.eg-card-actiuni { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.eg-btn-detalii {
	display: inline-block; padding: 8px 18px; border-radius: 24px;
	background: #5b1a5e; color: #fff !important; text-decoration: none;
	font-size: 14px; font-weight: 600; transition: background .15s, transform .1s;
}
.eg-btn-detalii:hover { background: #7a2b7e; transform: translateY(-1px); }

/* ------- Pagina eveniment (canvas) ------- */
.eg-page { min-height: 100vh; }

.eg-hero {
	position: relative;
	background: linear-gradient(135deg, #5b1a5e 0%, #3a0f3d 60%, #2a0a2d 100%);
	background-size: cover; background-position: center;
	color: #fff;
	padding: 48px 20px 64px;
}
.eg-hero-inner { max-width: 900px; margin: 0 auto; }
.eg-back {
	display: inline-block; color: rgba(255,255,255,.85); text-decoration: none;
	font-size: 14px; margin-bottom: 22px; padding: 6px 14px;
	border: 1px solid rgba(255,255,255,.35); border-radius: 20px;
	transition: background .15s, color .15s;
}
.eg-back:hover { background: rgba(255,255,255,.15); color: #fff; }
.eg-hero-title {
	font-size: clamp(28px, 5vw, 44px); line-height: 1.15;
	margin: 14px 0 18px; color: #fff; font-weight: 700;
}
.eg-hero-meta { display: flex; flex-wrap: wrap; gap: 18px; font-size: 16px; color: rgba(255,255,255,.92); }
.eg-hero-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.eg-single-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.eg-badge-anual { background: #e8783c; }

.eg-data-badge {
	position: absolute; right: 28px; bottom: -32px;
	width: 76px; height: 76px; border-radius: 16px;
	background: #e8783c; color: #fff;
	display: flex; flex-direction: column; align-items: center; justify-content: center;
	box-shadow: 0 6px 18px rgba(0,0,0,.25); z-index: 2;
}
.eg-data-zi { font-size: 28px; font-weight: 800; line-height: 1; }
.eg-data-luna { font-size: 12px; letter-spacing: 2px; margin-top: 2px; }

.eg-container { max-width: 900px; margin: -28px auto 60px; padding: 0 20px; position: relative; }

.eg-panel {
	background: #fff; border-radius: 14px; padding: 28px 30px;
	margin-bottom: 22px; box-shadow: 0 2px 14px rgba(91,26,94,.08);
}
.eg-content-panel { font-size: 17px; line-height: 1.7; }
.eg-content-panel p:first-child { margin-top: 0; }
.eg-h2 {
	font-size: 22px; color: #5b1a5e; margin: 0 0 16px;
	padding-bottom: 10px; border-bottom: 3px solid #e8783c; display: inline-block;
}
.eg-program-text { font-size: 16px; line-height: 1.9; color: #3d2140; }

.eg-galerie-grid {
	display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 12px;
}
.eg-galerie-item {
	display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3;
	box-shadow: 0 2px 8px rgba(0,0,0,.12); transition: transform .15s, box-shadow .15s;
}
.eg-galerie-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.eg-galerie-item:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(91,26,94,.25); }
.eg-galerie-item:hover img { transform: scale(1.06); }

.eg-actiuni { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }
.eg-btn {
	display: inline-block; padding: 12px 28px; border-radius: 28px;
	text-decoration: none; font-weight: 600; font-size: 15px;
	transition: background .15s, transform .1s;
}
.eg-btn-primar { background: #e8783c; color: #fff !important; }
.eg-btn-primar:hover { background: #d1642a; transform: translateY(-1px); }
.eg-btn-secundar { background: #fff; color: #5b1a5e !important; border: 2px solid #5b1a5e; }
.eg-btn-secundar:hover { background: #5b1a5e; color: #fff !important; }

/* ------- Lightbox ------- */
.eg-lb {
	position: fixed; inset: 0; background: rgba(20,5,22,.94);
	display: none; align-items: center; justify-content: center; z-index: 99999;
}
.eg-lb.open { display: flex; }
.eg-lb-img {
	max-width: 90vw; max-height: 84vh; border-radius: 8px;
	box-shadow: 0 10px 40px rgba(0,0,0,.6);
}
.eg-lb-close, .eg-lb-prev, .eg-lb-next {
	position: fixed; background: rgba(255,255,255,.12); color: #fff;
	border: none; cursor: pointer; border-radius: 50%;
	width: 48px; height: 48px; font-size: 26px; line-height: 1;
	display: flex; align-items: center; justify-content: center;
	transition: background .15s; z-index: 100000;
}
.eg-lb-close:hover, .eg-lb-prev:hover, .eg-lb-next:hover { background: rgba(232,120,60,.85); }
.eg-lb-close { top: 20px; right: 20px; }
.eg-lb-prev  { left: 16px; top: 50%; transform: translateY(-50%); }
.eg-lb-next  { right: 16px; top: 50%; transform: translateY(-50%); }
.eg-lb-caption {
	position: fixed; bottom: 18px; left: 0; right: 0; text-align: center;
	color: rgba(255,255,255,.85); font-size: 14px;
}

@media (max-width: 640px) {
	.eg-hero { padding: 36px 16px 52px; }
	.eg-data-badge { right: 16px; width: 64px; height: 64px; }
	.eg-panel { padding: 20px 18px; }
	.eg-galerie-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
	.eg-lb-prev { left: 6px; } .eg-lb-next { right: 6px; }
}

/* v2.2.4 — evenimente cu date trecute vizibile în listă */
.eg-badge-trecut { background: #9a939b; }
.eg-card:has(.eg-badge-trecut) { opacity: .88; }
