/* =====================================================================================================
   PAGINA DE PROFIL (pag/profile.php), DESKTOP: varianta 1 "Copertă" aleasa de proprietar (23.11.2026)
   Se incarca doar pe profil (inc/head-pagetitle-metatags.php), dupa css/invitatie-comun.css.
   Doar aspectul: aceleasi date, aceleasi linkuri si butoane (Mesaj / Cadou / Chat, Salveaza / Blocheaza), aceleasi reclame.
   - poza mare (BIG-, doar desktop) in stanga, celelalte poze ca miniaturi sub ea
   - in dreapta: numele mare, eticheta VIP, "online" (cand butonul Chat exista = persoana e online), datele pe un rand,
     descrierea, butoanele ca pastile cu text, Salveaza / Blocheaza discret
   - dedesubt: "Eu", "Personalitate", "Ce caut" ca trei carduri alaturate
   Se aplica doar paginii principale a profilului (#main-content:has(#profile-module)); pagina de poze ramane ca inainte.
   Pe mobil (max 768px) nu se schimba nimic: regulile sunt in css/mobile.css.
   ===================================================================================================== */
@media (min-width:769px) {

/* ---------->>> continutul mai lat (pana la 1100px), tot la mijloc <<<-----------*/
#layout:not(.prima-invitatie) #main:has(#profile-module) {
	grid-template-columns:var(--stanga-latime) minmax(6px, 1fr) minmax(795px, 1100px) minmax(0, 1fr) minmax(0, var(--stanga-latime));}
#main:has(#profile-module) #main-content {
	width:auto;
	display:grid;
	grid-template-columns:300px 32px minmax(0, 1fr);
	grid-template-rows:auto auto auto auto auto auto 1fr;
	align-items:start;
	font-family:"Source Sans 3", Verdana, sans-serif;}
#main:has(#profile-module) #main-content * {
	font-family:"Source Sans 3", Verdana, sans-serif;}
#main:has(#profile-module) #main-content > * {
	grid-column:1 / -1;
	float:none;
	clear:none;
	margin:0;}
#main:has(#profile-module) #profile-top {
	display:contents;}
/* reclama 728x90 ramane deasupra profilului, ca acum */
#main:has(#profile-module) #google-top-ten {
	grid-row:1;
	float:none;
	width:auto;
	height:auto;
	margin:0 0 22px 0;
	text-align:center;}

/* ---------->>> stanga: poza mare + miniaturile celorlalte poze <<<-----------*/
#main:has(#profile-module) #profile-top .left {
	grid-column:1;
	grid-row:2 / 8;
	float:none;
	width:300px;
	margin:0;
	padding:0;}
#main:has(#profile-module) #profile-top .left img {
	display:block;
	width:300px;
	height:360px;
	margin:0;
	padding:0;
	object-fit:cover;
	border:0;
	border-radius:16px;
	background:#E9EEF3;}
#main:has(#profile-module):has(#profile-top p.vip img) #profile-top .left img {
	box-shadow:0 0 0 3px #E12954;}
#main:has(#profile-module) #account-pics {
	grid-column:1;
	grid-row:8;
	float:none;
	width:300px;
	margin:10px 0 0 0;
	display:grid;
	grid-template-columns:repeat(4, minmax(0, 1fr));
	gap:8px;}
#main:has(#profile-module) #account-pics:not(:has(img)) {
	display:none;}
#main:has(#profile-module) #account-pics a {
	display:block;}
#main:has(#profile-module) #account-pics img {
	display:block;
	width:100%;
	height:auto;
	aspect-ratio:1;
	margin:0;
	object-fit:cover;
	border:0;
	border-radius:8px;}
#main:has(#profile-module) #account-pics a:hover img {
	box-shadow:0 0 0 2px #E12954;}

/* ---------->>> dreapta: numele, VIP / online, datele, descrierea, butoanele <<<-----------*/
#main:has(#profile-module) #profile-title {
	grid-column:3;
	grid-row:2;
	width:auto;
	height:auto;
	background:none;}
#main:has(#profile-module) #profile-title-L,
#main:has(#profile-module) #profile-title-R {
	display:none;}
#main:has(#profile-module) #profile-title-M {
	float:none;
	width:auto;
	height:auto;
	padding:0;
	background:none;
	text-align:left;}
#main:has(#profile-module) #profile-title h1 {
	margin:0;
	font-family:"Playfair Display", Georgia, serif;
	font-size:34px;
	font-weight:600;
	line-height:1.15;
	color:#0B3A5B;}

#main:has(#profile-module) #profile-top .middle {
	grid-column:3;
	grid-row:3;
	float:none;
	width:auto;
	margin:6px 0 0 0;
	padding:0;
	display:flex;
	flex-wrap:wrap;
	align-items:baseline;
	text-align:left;}
/* eticheta VIP (in locul imaginii) si "online" */
#main:has(#profile-module) #profile-top .middle p.vip {
	flex:0 0 100%;
	display:flex;
	gap:8px;
	height:auto;
	margin:0 0 8px 0;}
#main:has(#profile-module) #profile-top .middle p.vip img {
	display:none;}
#main:has(#profile-module) #profile-top .middle p.vip:has(img)::before {
	content:"Membru VIP";
	padding:2px 10px;
	font-size:13px;
	font-weight:700;
	color:#0B3A5B;
	background:#F4C979;
	border-radius:999px;}
#main:has(#profile-module) #profile-top .middle p.vip:has(img[src*="-en."])::before {
	content:"VIP member";}
#main:has(#profile-module) #profile-top .middle p.vip:has(img[src*="-it."])::before {
	content:"Membro VIP";}
#main:has(#profile-module):has(#btn-chat a) #profile-top .middle p.vip::after {
	content:"● online";
	padding:2px 10px;
	font-size:13px;
	font-weight:700;
	color:#1E7A43;
	background:#E7F7EE;
	border-radius:999px;}
/* datele pe un rand: femeie, 36 ani · oras · cauta barbat */
#main:has(#profile-module) #profile-top .middle p.desc {
	float:none;
	width:auto;
	height:auto;
	margin:0;
	font-size:16px;
	line-height:1.5;
	color:#646464;
	text-align:left;}
#main:has(#profile-module) #profile-top .middle p.desc + p.desc::before {
	content:"·";
	margin:0 8px;
	color:#C4C4C4;}
/* linkul spre pagina orasului: dupa descriere, discret */
#main:has(#profile-module) #profile-top .middle p.desc:has(a.profil-oras) {
	order:3;
	flex:0 0 100%;
	margin-top:10px;
	font-size:14px;}
#main:has(#profile-module) #profile-top .middle p.desc:has(a.profil-oras)::before {
	content:none;}
#main:has(#profile-module) #profile-top .middle a.profil-oras {
	color:#006699;
	text-decoration:underline;
	text-underline-offset:3px;}
#main:has(#profile-module) #profile-top .middle p.desc:has(a.profil-oras) + p.desc::before {
	content:"·";}
#main:has(#profile-module) #profile-top p.description {
	order:2;
	flex:0 0 100%;
	width:auto;
	height:auto;
	margin:14px 0 0 0;
	padding:0;
	font-size:17px;
	line-height:1.65;
	color:#333;
	text-align:left;
	overflow-wrap:anywhere;}

/* butoanele Mesaj / Cadou / Chat ca pastile cu text (imaginile vechi se ascund; textul vine din CSS, ca pe mobil) */
#main:has(#profile-module) #profile-right {
	grid-column:3;
	grid-row:4;
	float:none;
	width:auto;
	height:auto;
	margin:20px 0 0 0;
	padding:0;
	display:flex;
	flex-wrap:wrap;
	gap:10px;}
#main:has(#profile-module) #btn-message,
#main:has(#profile-module) #btn-gift,
#main:has(#profile-module) #btn-chat {
	float:none;
	width:auto;
	height:auto;
	margin:0;
	padding:0;}
#main:has(#profile-module) #btn-chat:not(:has(a)) {
	display:none;}
#main:has(#profile-module) #btn-message img,
#main:has(#profile-module) #btn-gift img,
#main:has(#profile-module) #btn-chat img {
	display:none;}
#main:has(#profile-module) #profile-right a {
	display:inline-flex;
	align-items:center;
	gap:8px;
	padding:10px 20px;
	font-size:16px;
	font-weight:700;
	line-height:1.2;
	color:#0B3A5B;
	text-decoration:none;
	background:#FFF;
	border:solid 1px #F0CFDC;
	border-radius:999px;}
#main:has(#profile-module) #profile-right a:hover {
	color:#C90032;
	background:#FFF5F9;
	border-color:#E12954;}
#main:has(#profile-module) #btn-message a {
	color:#FFF;
	background:#E12954;
	border-color:#E12954;}
#main:has(#profile-module) #btn-message a:hover {
	color:#FFF;
	background:#C81F48;
	border-color:#C81F48;}
#main:has(#profile-module) #btn-message a::after {content:"✉  Trimite mesaj";}
#main:has(#profile-module) #btn-message a[href*="/en/"]::after {content:"✉  Send message";}
#main:has(#profile-module) #btn-message a[href*="/it/"]::after {content:"✉  Invia messaggio";}
#main:has(#profile-module) #btn-gift a::after {content:"🎁  Cadou";}
#main:has(#profile-module) #btn-gift a[href*="/en/"]::after {content:"🎁  Gift";}
#main:has(#profile-module) #btn-gift a[href*="/it/"]::after {content:"🎁  Regalo";}
#main:has(#profile-module) #btn-chat a::after {content:"💬  Chat";}

/* Salveaza profil | Blocheaza profil: discret, sub butoane */
#main:has(#profile-module) #profile-subtitle {
	grid-column:3;
	grid-row:5;
	width:auto;
	height:auto;
	margin:14px 0 0 0;
	padding:0;
	font-size:14px;
	line-height:1.4;
	color:#C4C4C4;
	text-align:left;
	background:none;}
#main:has(#profile-module) #profile-subtitle a {
	font-size:14px;
	color:#646464;
	text-decoration:underline;
	text-underline-offset:3px;}
#main:has(#profile-module) #profile-subtitle a:hover {
	color:#C90032;}

/* filele "Detalii profil" / "Poze" ca doua linkuri mici (butonul de Like Facebook ramane langa ele) */
#main:has(#profile-module) #profile-menu {
	grid-column:3;
	grid-row:6;
	float:none;
	width:auto;
	height:auto;
	margin:18px 0 0 0;
	padding:0;
	display:flex;
	flex-wrap:wrap;
	align-items:center;
	gap:8px;
	background:none;}
#main:has(#profile-module) #btn-profile-menu-L,
#main:has(#profile-module) #btn-profile-menu-R {
	display:none;}
#main:has(#profile-module) #btn-profile-menu-M {
	float:none;
	width:auto;
	height:auto;
	padding:0;
	background:none;}
#main:has(#profile-module) #btn-profile-menu-M a {
	display:inline-block;
	padding:6px 14px;
	font-size:14px;
	font-weight:600;
	color:#006699;
	text-decoration:none;
	background:#FFF5F9;
	border:solid 1px #F4C3D3;
	border-radius:999px;}
#main:has(#profile-module) #btn-profile-menu-M a:hover {
	color:#C90032;
	border-color:#E12954;}
#main:has(#profile-module) #profile-menu .fb_google {
	float:none;
	width:auto;
	height:auto;
	margin:0 0 0 6px;}

/* ---------->>> dedesubt: "Eu", "Personalitate", "Ce caut" ca trei carduri alaturate <<<-----------*/
/* titlurile si corpurile sunt frati (titlu, corp, titlu, corp...): grila pe coloane le aseaza pereche */
#main:has(#profile-module) #profile-module {
	grid-column:1 / -1;
	grid-row:9;
	float:none;
	width:auto;
	margin:30px 0 0 0;
	display:grid;
	grid-template-columns:repeat(3, minmax(0, 1fr));
	grid-template-rows:auto 1fr;
	grid-auto-flow:column;
	column-gap:18px;}
#main:has(#profile-module) #profile-modul-title {
	float:none;
	width:auto;
	height:auto;
	margin:0;
	padding:16px 18px 6px 18px;
	background:#FFF;
	border:solid 1px #F0CFDC;
	border-bottom:0;
	border-radius:14px 14px 0 0;}
#main:has(#profile-module) #profile-modul-title-L,
#main:has(#profile-module) #profile-modul-title-R {
	display:none;}
#main:has(#profile-module) #profile-modul-title-M {
	float:none;
	width:auto;
	height:auto;
	padding:0;
	background:none;
	text-align:left;}
#main:has(#profile-module) #profile-modul-title-M h3 {
	margin:0;
	font-family:"Playfair Display", Georgia, serif;
	font-size:21px;
	font-weight:600;
	line-height:1.2;
	color:#0B3A5B;}
#main:has(#profile-module) #account-modul-body {
	float:none;
	width:auto;
	height:auto;
	margin:0;
	padding:4px 18px 14px 18px;
	background:#FFF;
	border:solid 1px #F0CFDC;
	border-top:0;
	border-radius:0 0 14px 14px;}
/* fiecare rand: eticheta in stanga, valoarea in dreapta */
#main:has(#profile-module) #account-modul-body > div {
	float:none;
	display:flex;
	justify-content:space-between;
	align-items:baseline;
	gap:12px;
	width:auto;
	height:auto;
	margin:0;
	padding:7px 0;
	border-bottom:dashed 1px #F0CFDC;}
#main:has(#profile-module) #account-modul-body > div:last-child {
	border-bottom:0;}
#main:has(#profile-module) #account-modul-body label {
	float:none;
	flex:1 1 0;
	min-width:0;
	width:auto;
	margin:0;
	padding:0;
	font-size:14px;
	line-height:1.4;
	color:#646464;
	text-align:left;}
#main:has(#profile-module) #account-modul-body p {
	float:none;
	flex:0 1 auto;
	max-width:62%;
	width:auto;
	height:auto;
	margin:0;
	padding:0;
	font-size:15px;
	line-height:1.4;
	font-weight:600;
	color:#0B3A5B;
	text-align:right;}

/* ---------->>> ecrane mai inguste: poza putin mai mica <<<-----------*/
@media (max-width:1279px) {
	#main:has(#profile-module) #main-content {
		grid-template-columns:240px 24px minmax(0, 1fr);}
	#main:has(#profile-module) #profile-top .left,
	#main:has(#profile-module) #profile-top .left img,
	#main:has(#profile-module) #account-pics {
		width:240px;}
	#main:has(#profile-module) #profile-top .left img {
		height:288px;}
	#main:has(#profile-module) #profile-module {
		grid-template-columns:repeat(3, minmax(0, 1fr));
		column-gap:12px;}
}
}

/* ---------->>> galeria (js/profil-galerie.js, doar desktop): poza mica peste care e mouse-ul + fereastra cu poza marita <<<-----------*/
@media (min-width:769px) {
#main:has(#profile-module) #account-pics a.activ img {
	box-shadow:0 0 0 3px #0B3A5B;}
#main:has(#profile-module) #profile-top .left img.galerie-mare {
	cursor:zoom-in;}
html.galerie-blocat {
	overflow:hidden;}
.galerie-fereastra {
	position:fixed;
	inset:0;
	z-index:10000;
	display:none;
	align-items:center;
	justify-content:center;
	gap:18px;
	padding:30px 70px;
	background:rgba(11,26,40,.9);}
.galerie-fereastra.deschisa {
	display:flex;}
.galerie-fereastra figure {
	margin:0;
	text-align:center;}
.galerie-fereastra img {
	display:block;
	max-width:min(1000px, 100vw - 220px);
	max-height:calc(100vh - 110px);
	width:auto;
	height:auto;
	border-radius:10px;
	box-shadow:0 20px 60px rgba(0,0,0,.45);
	background:#1B2B3A;}
.galerie-fereastra figcaption {
	margin-top:12px;
	font:600 15px/1.2 "Source Sans 3", Verdana, sans-serif;
	color:#E9EEF3;}
.galerie-fereastra button {
	display:grid;
	place-items:center;
	width:52px;
	height:52px;
	padding:0;
	font:300 40px/1 "Source Sans 3", Verdana, sans-serif;
	color:#FFF;
	background:rgba(255,255,255,.12);
	border:solid 1px rgba(244,201,121,.6);
	border-radius:50%;
	cursor:pointer;}
.galerie-fereastra button:hover,
.galerie-fereastra button:focus-visible {
	color:#0B3A5B;
	background:#F4C979;
	outline:none;}
.galerie-fereastra .galerie-inchide {
	position:absolute;
	top:20px;
	right:24px;
	width:46px;
	height:46px;
	font-size:32px;}
.galerie-fereastra.o-poza .galerie-inapoi,
.galerie-fereastra.o-poza .galerie-inainte {
	visibility:hidden;}
}
