/*
Theme Name:   Executor Gavrilescu
Description:  Temă copil pentru Twenty Twenty-Five, realizată pentru Biroul Executorului Judecătoresc Gavrilescu Alin-Mihail.
Author:       Active Tech Systems
Author URI:   https://www.activesys.ro/
Template:     twentytwentyfive
Version:      1.0.3
Requires at least: 6.7
Requires PHP: 7.4
Text Domain:  executor-gavrilescu
License:      GNU General Public License v2 or later
*/

/* ---------- General ---------- */
html { scroll-behavior: smooth; }
::selection { background: var(--wp--preset--color--accent-1); color: #fff; }

/* Conținut vechi (din editorul clasic): ignoră fonturile și mărimile puse direct în text */
.wp-block-post-content span[style],
.wp-block-post-content font,
.wp-block-post-content p[style] {
	font-family: inherit !important;
	font-size: inherit !important;
}
.wp-block-post-content p[align="center"] { text-align: left; }
.wp-block-post-content table:not(.tablepress) { border: 0; width: 100%; }
.wp-block-post-content table:not(.tablepress) td { border: 0; padding: 0; vertical-align: top; }
.wp-block-post-content hr {
	border: 0;
	border-top: 1px solid var(--wp--preset--color--accent-6);
	margin: 2.5rem 0;
}
.wp-block-post-content img.alignright { float: right; margin: 0 0 1rem 1.5rem; border-radius: 10px; }
.wp-block-post-content ul li::marker { color: var(--wp--preset--color--accent-1); }

/* ---------- Antet ---------- */
.eg-topbar a { text-decoration: none; }
.eg-topbar a:hover { text-decoration: underline; }
.eg-header { box-shadow: 0 1px 0 var(--wp--preset--color--accent-6); }
.eg-brand-small { letter-spacing: .14em; }
.eg-header .wp-block-navigation-item__content { position: relative; padding: .35rem 0; }
.eg-header .wp-block-navigation-item__content::after {
	content: ""; position: absolute; left: 0; right: 100%; bottom: 0;
	height: 2px; background: var(--wp--preset--color--accent-1);
	transition: right .2s ease;
}
.eg-header .wp-block-navigation-item__content:hover::after,
.eg-header .current-menu-item > .wp-block-navigation-item__content::after { right: 0; }
.eg-header .wp-block-navigation-item__content:hover { text-decoration: none; }

/* ---------- Prima pagină ---------- */
.eg-hero { position: relative; overflow: hidden; }
.eg-hero::before {
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(60rem 30rem at 85% 20%, rgba(184,145,63,.18), transparent 60%);
	pointer-events: none;
}
.eg-hero > * { position: relative; }
.eg-hero-img img {
	border-radius: 14px;
	box-shadow: 0 24px 60px rgba(0,0,0,.45);
	aspect-ratio: 3 / 2;
	object-fit: cover;
	width: 100%;
}
.eg-eyebrow { letter-spacing: .16em; }

.eg-card {
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
	height: 100%;
}
.eg-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 30px rgba(20,26,38,.08);
	border-color: var(--wp--preset--color--accent-1) !important;
}
.eg-num {
	display: inline-flex; align-items: center; justify-content: center;
	width: 2.2rem; height: 2.2rem; border-radius: 50%;
	background: rgba(184,145,63,.14);
}
.eg-link-card a { text-decoration: none; }
.eg-link-card a:hover { text-decoration: underline; }
.eg-legal li { margin-bottom: .6rem; }

/* ---------- Titlu pagini interioare ---------- */
.eg-pagehead { border-bottom: 1px solid var(--wp--preset--color--accent-6); }

/* ---------- TablePress: Publicații de vânzare ---------- */
.tablepress { border-collapse: separate; border-spacing: 0; width: 100%; font-size: .95rem; border: 1px solid var(--wp--preset--color--accent-6); border-radius: 12px; overflow: hidden; }
.tablepress thead th,
.tablepress tfoot th {
	background: var(--wp--preset--color--accent-3) !important;
	color: #fff !important;
	font-weight: 600;
	padding: .8rem 1rem;
	text-align: left;
}
.tablepress tbody td { padding: .75rem 1rem; border-top: 1px solid var(--wp--preset--color--accent-6); vertical-align: top; }
.tablepress tbody tr:nth-child(even) td { background: var(--wp--preset--color--accent-5); }
.tablepress tbody tr:hover td { background: rgba(184,145,63,.08); }
.tablepress a { color: var(--wp--preset--color--accent-1); font-weight: 600; }
.dt-container .dt-search input,
.dataTables_wrapper .dataTables_filter input { border: 1px solid var(--wp--preset--color--accent-6); border-radius: 8px; padding: .4rem .7rem; }

/* ---------- Subsol ---------- */
.eg-footer a { color: inherit; text-decoration: none; }
.eg-footer a:hover { color: var(--wp--preset--color--accent-1); }

/* ---------- Mobil ---------- */
@media (max-width: 781px) {
	.eg-topbar .eg-topbar-right { display: none; }
	.eg-hero-img { order: -1; }
	.wp-block-post-content img.alignright { float: none; display: block; margin: 0 0 1rem; max-width: 100%; height: auto; }
	/* Tabelul de publicații devine o listă de carduri pe telefon */
	.tablepress { border: 0; border-radius: 0; overflow: visible; }
	.tablepress thead, .tablepress tfoot { display: none; }
	.tablepress, .tablepress tbody, .tablepress tr, .tablepress td { display: block; width: 100%; }
	.tablepress tbody tr {
		border: 1px solid var(--wp--preset--color--accent-6);
		border-radius: 12px;
		margin-bottom: 1rem;
		padding: .5rem 1rem;
		background: var(--wp--preset--color--accent-5);
	}
	.tablepress tbody tr:nth-child(even) td,
	.tablepress tbody tr:hover td,
	.tablepress tbody td { background: transparent !important; border-top: 0; padding: .45rem 0; }
	.tablepress tbody td + td { border-top: 1px dashed var(--wp--preset--color--accent-6); }
	.tablepress tbody td::before {
		display: block;
		font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
		color: var(--wp--preset--color--accent-1);
		margin-bottom: .15rem;
	}
	.tablepress tbody td[data-label]::before { content: attr(data-label); }
	.dt-container .dt-layout-row, .dataTables_wrapper { font-size: .9rem; }
}
