﻿/* ========================================================
   RESET ȘI SETĂRI DE BAZĂ
   ======================================================== */
* {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

body {
	color: #e0e0e0;
	font-family: 'Poppins', sans-serif;
	line-height: 1.6;
	overflow-x: hidden;
	background-color: #000;
}

::-webkit-scrollbar {
	width: 10px;
}

::-webkit-scrollbar-track {
	background: #0a0a0a;
}

::-webkit-scrollbar-thumb {
	background: #d4af37;
	border-radius: 5px;
}

	::-webkit-scrollbar-thumb:hover {
		background: #c49f27;
	}

.bg-image {
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background-image: url('fundal.png');
	background-size: cover;
	background-position: center;
	filter: blur(8px) brightness(0.35);
	transform: scale(1.05);
	z-index: -1;
}

.continut-site {
	position: relative;
	z-index: 1;
	width: 100%;
	min-height: 100vh;
	display: flex;
	flex-direction: column;
}

/* --- HEADER & NAVIGARE --- */
.bara-navigare {
	padding: 20px 30px;
	text-align: left;
}

.buton-inapoi {
	display: inline-block;
	padding: 8px 15px;
	color: #d4af37;
	border: 1px solid #d4af37;
	border-radius: 20px;
	text-decoration: none;
	font-size: 0.9rem;
	transition: all 0.3s ease;
	background-color: rgba(0,0,0,0.5);
}

	.buton-inapoi:hover {
		background-color: #d4af37;
		color: #000;
	}

.header-memorial {
	text-align: center;
	padding: 40px 20px 10px 20px;
}

.decor-linie {
	width: 50px;
	height: 2px;
	background-color: #d4af37;
	margin: 0 auto 15px auto;
}

.header-memorial h1 {
	font-family: 'Playfair Display', serif;
	font-size: 2.8rem;
	color: #ffffff;
	font-weight: 400;
	margin-bottom: 5px;
	text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.header-memorial h2 {
	font-family: 'Playfair Display', serif;
	font-size: 2.2rem;
	color: #d4af37;
	font-weight: 400;
	text-shadow: 2px 2px 8px rgba(0,0,0,0.8);
}

.date-viata {
	color: #d4af37;
	letter-spacing: 3px;
	font-size: 1.2rem;
	font-weight: 500;
	text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
}

/* --- FADE-IN LA SCROLL --- */
.element-ascuns {
	opacity: 0;
	transform: translateY(30px);
	transition: opacity 1s ease-out, transform 1s ease-out;
	visibility: hidden;
}

.element-vizibil {
	opacity: 1;
	transform: translateY(0);
	visibility: visible;
}

/* --- OMĂGIU & COPERTĂ --- */
.omagiu {
	text-align: center;
	max-width: 700px;
	margin: 0 auto;
	padding: 10px 30px 40px 30px;
}

	.omagiu p {
		font-family: 'Playfair Display', serif;
		font-style: italic;
		font-size: 1.3rem;
		color: #ffffff;
		line-height: 1.8;
		text-shadow: 1px 1px 6px rgba(0,0,0,0.9);
	}

.decor-stele {
	color: #d4af37;
	font-size: 1.2rem;
	margin-top: 15px;
	opacity: 0.8;
	letter-spacing: 15px;
}

.sectiune-coperta {
	display: flex;
	justify-content: center;
	margin: 20px auto 30px auto;
	padding: 0 20px;
}

.coperta-container {
	position: relative;
	max-width: 450px;
	width: 100%;
	border-radius: 15px;
	overflow: hidden;
	box-shadow: 0 15px 35px rgba(0,0,0,0.7);
	border: 1px solid rgba(212, 175, 55, 0.2);
}

.imagine-coperta {
	width: 100%;
	height: auto;
	display: block;
	filter: grayscale(100%) contrast(110%);
	animation: prindeViata 3s ease forwards 2s;
}

@keyframes prindeViata {
	0% {
		filter: grayscale(100%) contrast(110%);
	}

	100% {
		filter: grayscale(0%) contrast(100%);
	}
}

/* --- MENIU PRINCIPAL --- */
.meniu-principal {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 15px;
	padding: 0 20px;
	margin-bottom: 40px;
}

.buton-meniu {
	display: inline-block;
	padding: 12px 25px;
	background-color: rgba(0, 0, 0, 0.6);
	border: 1px solid #d4af37;
	color: #d4af37;
	text-decoration: none;
	border-radius: 30px;
	font-size: 0.95rem;
	font-family: 'Poppins', sans-serif;
	transition: all 0.3s ease;
}

	.buton-meniu:hover {
		background-color: #d4af37;
		color: #111;
		transform: translateY(-2px);
	}

/* --- GALERIE ȘI LIGHTBOX (Design Minimal) --- */
.galerie-container {
	max-width: 800px;
	margin: 20px auto 60px auto;
	padding: 0 20px;
}

.galerie-single-col {
	display: flex;
	flex-direction: column;
	gap: 30px;
}

.galerie-foto-container {
	position: relative;
	width: 100%;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0,0,0,0.5);
	border: 1px solid rgba(212, 175, 55, 0.15);
	cursor: pointer;
	transition: transform 0.5s ease;
}

	.galerie-foto-container:hover {
		transform: scale(1.01);
	}

.galerie-foto-item {
	width: 100%;
	height: auto;
	display: block;
}

.buton-download-minimal {
	position: absolute;
	bottom: 15px;
	right: 15px;
	background-color: rgba(0,0,0,0.7);
	color: #d4af37;
	border: 1px solid #d4af37;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: flex;
	justify-content: center;
	align-items: center;
	text-decoration: none;
	font-size: 1.1rem;
	transition: all 0.3s ease;
	opacity: 0;
	z-index: 10;
}

.galerie-foto-container:hover .buton-download-minimal {
	opacity: 1;
}

.buton-download-minimal:hover {
	background-color: #d4af37;
	color: #000;
	transform: scale(1.1);
}

.premium-lightbox {
	display: none;
	position: fixed;
	z-index: 999;
	left: 0;
	top: 0;
	width: 100%;
	height: 100%;
	background-color: rgba(0, 0, 0, 0.97);
	justify-content: center;
	align-items: center;
	touch-action: none;
}

.lightbox-box {
	display: flex;
	flex-direction: column;
	align-items: center;
	max-width: 90%;
	max-height: 95%;
	position: relative;
}

.lightbox-continut {
	max-width: 100%;
	max-height: 85vh;
	border-radius: 8px;
	animation: aparitieZoom 0.3s ease;
	box-shadow: 0 0 50px rgba(212, 175, 55, 0.1);
}

@keyframes aparitieZoom {
	from {
		transform: scale(0.9);
		opacity: 0;
	}

	to {
		transform: scale(1);
		opacity: 1;
	}
}

.inchide-lightbox {
	position: absolute;
	top: 20px;
	right: 30px;
	color: rgba(255, 255, 255, 0.6);
	font-size: 40px;
	font-weight: bold;
	cursor: pointer;
	transition: 0.3s;
	z-index: 1001;
}

	.inchide-lightbox:hover {
		color: #d4af37;
		transform: scale(1.1);
	}

.sageata {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	color: rgba(255, 255, 255, 0.4);
	font-size: 50px;
	font-weight: bold;
	cursor: pointer;
	transition: all 0.3s ease;
	padding: 20px;
	z-index: 1001;
	user-select: none;
}

	.sageata:hover {
		color: #d4af37;
		background-color: rgba(212, 175, 55, 0.05);
		border-radius: 50%;
	}

.sageata-stanga {
	left: 20px;
}

.sageata-dreapta {
	right: 20px;
}

.zona-click-mobile {
	position: absolute;
	top: 0;
	width: 30%;
	height: 100%;
	z-index: 1000;
	background: none;
	border: none;
	cursor: pointer;
	outline: none;
	-webkit-tap-highlight-color: transparent;
}

.zona-click-stanga {
	left: 0;
}

.zona-click-dreapta {
	right: 0;
}

/* Butonul download din Lightbox (Micuț și Drăguț) */
.buton-download-lightbox {
	margin-top: 15px;
	background-color: rgba(0, 0, 0, 0.4);
	border: 1px solid rgba(212, 175, 55, 0.4);
	color: rgba(212, 175, 55, 0.9);
	text-decoration: none;
	padding: 6px 16px;
	border-radius: 20px;
	font-size: 0.8rem;
	font-family: 'Poppins', sans-serif;
	letter-spacing: 0.5px;
	transition: all 0.3s ease;
	z-index: 1001;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}

	.buton-download-lightbox:hover {
		background-color: rgba(212, 175, 55, 0.15);
		border-color: #d4af37;
		color: #d4af37;
		transform: translateY(-2px);
	}

/* ========================================================
   LUMÂNAREA TA ORIGINALĂ (Ajustată cu Contor și Spațiu)
   ======================================================== */

.sectiune-lumanare-premium {
	text-align: center;
	margin: 40px auto 30px auto;
	padding: 30px;
	background-color: rgba(17, 17, 17, 0.6);
	border-radius: 15px;
	border: 1px solid rgba(212, 175, 55, 0.1);
	max-width: 600px;
}

	.sectiune-lumanare-premium h2 {
		font-family: 'Playfair Display', serif;
		color: #d4af37;
		margin-bottom: 10px;
		font-size: 2rem;
		font-weight: 400;
	}

	.sectiune-lumanare-premium p {
		color: #ffffff;
		font-size: 1rem;
	}

/* Forma exactă pe care o aveai tu inițial */
.lumanare-originala {
	display: block;
	width: 40px;
	height: 100px;
	background: linear-gradient(to right, #e0e0e0, #ffffff, #dcdcdc);
	border-radius: 4px;
	position: relative;
	cursor: pointer;
	box-shadow: inset 0 -10px 10px rgba(0,0,0,0.2), 0 5px 15px rgba(0,0,0,0.8);
	/* MARGIN TOP DE 60PX: Salvează flacăra să nu se urce pe text */
	margin: 60px auto 20px auto;
	transition: transform 0.3s ease;
}

	.lumanare-originala:hover {
		transform: scale(1.03);
	}

	/* Fitilul original */
	.lumanare-originala .fitil {
		position: absolute;
		width: 4px;
		height: 12px;
		background-color: #333;
		top: -10px;
		left: 50%;
		transform: translateX(-50%);
		border-radius: 2px;
	}

	/* Flacăra originală */
	.lumanare-originala .flacara {
		position: absolute;
		width: 20px;
		height: 35px;
		background: radial-gradient(ellipse at bottom, #ffeb3b 10%, #ff9800 60%, transparent 100%);
		top: -40px;
		left: 50%;
		transform: translateX(-50%);
		border-radius: 50% 50% 20% 20%;
		box-shadow: 0 0 20px 5px rgba(255, 152, 0, 0.6);
		opacity: 0;
		transition: opacity 0.5s ease;
	}

	/* Animația flăcării la click */
	.lumanare-originala.aprinsa .flacara {
		opacity: 1;
		animation: palpaieOriginal 2s infinite alternate;
	}

@keyframes palpaieOriginal {
	0% {
		transform: translateX(-50%) scale(1);
		opacity: 0.9;
	}

	50% {
		transform: translateX(-50%) scale(1.05);
		opacity: 1;
		box-shadow: 0 0 25px 8px rgba(255, 152, 0, 0.8);
	}

	100% {
		transform: translateX(-50%) scale(0.95);
		opacity: 0.85;
	}
}

/* Contor */
.contor-lumanari {
	margin-top: 15px;
	color: #f0f0f0;
	font-size: 1.1rem;
	font-family: 'Poppins', sans-serif;
}

#numar-contor {
	color: #d4af37;
	font-weight: 600;
	font-size: 1.4rem;
	margin: 0 5px;
}

/* Optimizare Telefon */
@media (max-width: 480px) {
	.lumanare-originala {
		margin: 55px auto 20px auto;
	}
}

/* ========================================================
   FORMULARE ȘI FOOTER (Păstrate)
   ======================================================== */
.sectiune-mesaje {
	max-width: 600px;
	margin: 0 auto 60px auto;
	text-align: center;
	padding: 30px;
	background-color: rgba(17, 17, 17, 0.75);
	border-radius: 12px;
	border: 1px solid rgba(212, 175, 55, 0.3);
}

	.sectiune-mesaje h2 {
		font-family: 'Playfair Display', serif;
		color: #d4af37;
		margin-bottom: 10px;
		font-size: 2rem;
	}

	.sectiune-mesaje p {
		color: #e0e0e0;
		margin-bottom: 25px;
		font-size: 0.95rem;
	}

.formular-amintiri {
	display: flex;
	flex-direction: column;
	gap: 15px;
}

	.formular-amintiri input, .formular-amintiri textarea {
		width: 100%;
		padding: 12px 15px;
		background-color: rgba(0, 0, 0, 0.6);
		border: 1px solid #555;
		border-radius: 6px;
		color: #ffffff;
		font-family: 'Poppins', sans-serif;
		transition: border-color 0.3s ease;
	}

		.formular-amintiri input:focus, .formular-amintiri textarea:focus {
			outline: none;
			border-color: #d4af37;
		}

.buton-trimite {
	background-color: #d4af37;
	color: #111;
	border: none;
	padding: 12px;
	border-radius: 30px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.3s ease;
	font-family: 'Poppins', sans-serif;
	margin-top: 10px;
}

	.buton-trimite:hover {
		background-color: #c49f27;
		transform: translateY(-2px);
	}

footer {
	text-align: center;
	padding: 20px;
	margin-top: auto;
}

.credit {
	display: none;
}

/* --- Butonul Înapoi Sus --- */
#inapoiSus {
	display: none;
	position: fixed;
	bottom: 30px;
	right: 30px;
	z-index: 100;
	background-color: transparent;
	color: #d4af37;
	border: 2px solid #d4af37;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	font-size: 24px;
	cursor: pointer;
	transition: all 0.3s ease;
}

	#inapoiSus:hover {
		background-color: #d4af37;
		color: #121212;
		transform: translateY(-3px);
	}

/* --- Ploaia de Scântei --- */
.scanteie {
	position: fixed;
	bottom: -10px;
	width: 3px;
	height: 3px;
	background-color: #d4af37;
	border-radius: 50%;
	box-shadow: 0 0 10px #d4af37, 0 0 20px #d4af37;
	animation: zboara linear infinite;
	z-index: -1;
	pointer-events: none;
	opacity: 0;
}

@keyframes zboara {
	0% {
		transform: translateY(0) scale(1);
		opacity: 0;
	}

	10% {
		opacity: 0.8;
	}

	100% {
		transform: translateY(-100vh) scale(0);
		opacity: 0;
	}
}

/* ========================================================
   OPTIMIZARE TELEFON (Corecții Forma NOUĂ)
   ======================================================== */
@media (max-width: 480px) {
	.header-memorial h1 {
		font-size: 2rem;
	}

	.header-memorial h2 {
		font-size: 1.6rem;
	}

	.omagiu p {
		font-size: 1rem;
	}

	.sectiune-coperta {
		padding: 0 10px;
	}

	.meniu-principal {
		flex-direction: column;
		gap: 10px;
	}

	.buton-meniu {
		width: 100%;
		text-align: center;
		font-size: 0.9rem;
		padding: 10px 20px;
	}

	.bara-navigare {
		padding: 15px;
	}

	.galerie-container {
		padding: 0 5px;
		gap: 15px;
	}

	.galerie-foto-container {
		border-radius: 8px;
	}

	.buton-download-minimal {
		opacity: 0.7;
		width: 34px;
		height: 34px;
		font-size: 1rem;
		bottom: 10px;
		right: 10px;
	}

	.sageata {
		display: none;
	}

	.inchide-lightbox {
		font-size: 30px;
		top: 10px;
		right: 15px;
	}

	.lightbox-continut {
		max-height: 70vh;
	}

	.buton-download-lightbox {
		width: 95%;
		text-align: center;
		justify-content: center;
		font-size: 0.85rem;
		padding: 10px;
	}

	.sectiune-lumanare-premium {
		margin: 40px 10px 20px 10px;
		padding: 25px 15px;
	}

	/* Ajustări pentru suportul pe telefon */
	.lumanare-suport-wrapper {
		width: 100px;
		height: 200px;
		margin: 60px auto 25px auto; /* Puțin mai puțin spațiu pe verticală */
	}

	.suport-auriu {
		width: 80px;
		height: 10px;
	}

		.suport-auriu::after {
			height: 35px;
			width: 14px;
		}

	.mufa-suport {
		bottom: 45px;
		width: 22px;
		height: 18px;
	}

	.lumanare-taper {
		bottom: 55px;
		width: 16px;
		height: 125px;
	}

	.flacara {
		width: 18px;
		height: 36px;
		top: -44px;
	}

	.sectiune-mesaje {
		margin: 0 10px 30px 10px;
		padding: 20px 10px;
	}

		.sectiune-lumanare-premium h2, .sectiune-mesaje h2 {
			font-size: 1.5rem;
		}

	#inapoiSus {
		bottom: 15px;
		right: 15px;
		width: 40px;
		height: 40px;
		font-size: 18px;
	}
}
