/*
Theme Name: ArtFX Blog v2
Theme URI: https://artfx.ro
Author: ArtFX Video Artisan
Author URI: https://artfx.ro
Description: ArtFX Blog theme - v2, cu suport extins de Customizer (culori, fonturi, dimensiuni, layout, header, sidebar, footer editabile). Design identic cu v1.
Version: 2.0.1
License: Commercial
License URI: https://www.artfx.ro
Text Domain: lexblog
*/

:root {
	/* Culori de bază - identice cu v1, acum editabile din Customizer */
	--lexred: #e2231a;
	--lexred-dark: #b81b13;
	--lexdark: #1a1a1a;
	--lextext: #333333;
	--lexgray: #373737;
	--lexlight-gray: #dadada;
	--lexborder: #cdcdcd;

	/* Fundaluri (separate ca să poată fi diferite de "dark"/"accent") */
	--lexcolor-page-bg: #292929;
	--lexcolor-boxed-bg: #f6f1e9;
	--lexcolor-header-bg: #ffffff;
	--lexcolor-footer-bg: #1a1a1a;
	--lexcolor-footer-text: #aaaaaa;
	--lexcolor-badge-text: #ffffff;
	--lexcolor-readmore-bg: #e9d7b9;
	--lexcolor-readmore-text: #000000;

	/* Layout */
	--lexcontainer: 1000px;
	--lexboxed-width: 1010px;
	--lexradius: 8px;
	--lextopbar-height: 5px;

	/* Fonturi */
	--lexfont-body: 'Roboto', Arial, sans-serif;
	--lexfont-heading: 'Roboto', Arial, sans-serif;

	/* Dimensiuni text */
	--lexfs-base: 16px;
	--lexfs-logo: 26px;
	--lexfs-nav: 13px;
	--lexfs-section-title: 26px;
	--lexfs-featured-title: 22px;
	--lexfs-card-title: 19px;
	--lexfs-list-title: 15px;
	--lexfs-sidebar-title: 18px;
	--lexfs-single-title: 32px;
	--lexfs-archive-title: 24px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--lexfont-body);
	font-weight: 400;
	font-size: var(--lexfs-base);
	color: var(--lextext);
	background: var(--lexcolor-page-bg);
	line-height: 1.65;
}

.lexsite-boxed {
	max-width: var(--lexboxed-width);
	margin: 0 auto;
	background: var(--lexcolor-boxed-bg);
	min-height: 100vh;
	box-shadow: 0 0 24px rgba(0,0,0,.08);
}

@media (max-width: 820px) {
	.lexsite-boxed { box-shadow: none; max-width: 100%; }
	body { background: var(--lexcolor-boxed-bg); }
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--lextext); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--lexred); }

h1, h2, h3, h4 { font-family: var(--lexfont-heading); font-weight: 700; margin: 0 0 .5em; color: var(--lexdark); line-height: 1.3; }

ul { margin: 0; padding: 0; list-style: none; }

button { cursor: pointer; }

.lexcontainer {
	max-width: var(--lexcontainer);
	margin: 0 auto;
	padding: 0 20px;
}

/* ===================== TOPBAR ===================== */
.lextopbar { height: var(--lextopbar-height); background: var(--lexred); width: 100%; }

/* ===================== HEADER ===================== */
.lexheader { border-bottom: 1px solid var(--lexborder); background: var(--lexcolor-header-bg); position: relative; }
.lexheader-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 78px;
	gap: 24px;
}
.lexlogo { display: flex; flex-direction: column; }
.lexlogo-text { font-size: var(--lexfs-logo); font-weight: 900; letter-spacing: 1px; color: var(--lexdark); display: inline-flex; align-items: center; gap: 6px; }
.lexlogo-text::before {
	content: '';
	width: 26px; height: 26px;
	background: var(--lexred);
	-webkit-mask: polygon(0 100%, 25% 0, 50% 60%, 75% 0, 100% 100%) no-repeat center / contain;
	mask: polygon(0 100%, 25% 0, 50% 60%, 75% 0, 100% 100%) no-repeat center / contain;
	display: inline-block;
}
.lexlogo-text:hover { color: var(--lexdark); }
.lexlogo-tagline { font-size: 11px; color: var(--lexgray); letter-spacing: .5px; margin-left: 2px; }
.custom-logo-link img { max-height: 50px; width: auto; }

.lexnav-menu { display: flex; gap: 30px; }
.lexnav-menu li a {
	font-size: var(--lexfs-nav);
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
	color: var(--lexdark);
	display: block;
	padding: 8px 0;
}
.lexnav-menu li a:hover { color: var(--lexred); }
.lexnav-menu .current-menu-item > a { color: var(--lexred); }

.lexsearch-toggle, .lexmenu-toggle {
	background: none; border: none; padding: 8px; color: var(--lexdark);
	display: flex; align-items: center; justify-content: center;
}
.lexsearch-toggle:hover { color: var(--lexred); }

.lexmenu-toggle { display: none; flex-direction: column; gap: 4px; width: 32px; height: 32px; }
.lexmenu-toggle span { display: block; width: 22px; height: 2px; background: var(--lexdark); transition: all .2s ease; }

.lexsearch-form-wrap {
	max-height: 0;
	overflow: hidden;
	transition: max-height .25s ease;
	background: var(--lexlight-gray);
}
.lexsearch-form-wrap.is-open { max-height: 90px; }
.lexsearch-form { display: flex; padding: 16px 0; gap: 0; }
.lexsearch-input {
	flex: 1; border: 1px solid var(--lexborder); border-right: none;
	padding: 10px 14px; font-family: inherit; font-size: 14px; outline: none;
}
.lexsearch-submit { background: var(--lexred); border: none; color: #fff; padding: 0 18px; }
.lexsearch-submit:hover { background: var(--lexred-dark); }

/* ===================== BADGES / META comune ===================== */
.lexcat-badge {
	display: inline-block;
	background: var(--lexred);
	color: var(--lexcolor-badge-text);
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	padding: 4px 10px;
}
.lexcat-badge-sm { padding: 3px 8px; font-size: 10px; }

.lexmeta-date, .lexmeta-views, .lexmeta-comments {
	font-size: 12px;
	color: var(--lexgray);
	display: inline-flex;
	align-items: center;
	gap: 4px;
}

.lexthumb-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #ddd, #eee);
}

/* ===================== READ MORE BUTTON ===================== */
.lexreadmore {
	display: inline-block;
	background: var(--lexcolor-readmore-bg);
	color: var(--lexcolor-readmore-text) !important;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .5px;
	padding: 1px 1px;
	border: none;
}
.lexreadmore:hover { background: #fff; color: var(--lexred-dark) !important; }

/* ===================== SECTION HEADINGS ===================== */
.lexsection { margin: 50px 0; }
.lexsection-heading { text-align: center; margin-bottom: 32px; }
.lexsection-title {
	display: inline-block;
	position: relative;
	font-size: var(--lexfs-section-title);
	text-transform: uppercase;
	letter-spacing: 1px;
	color: var(--lexred);
	margin: 0;
	padding: 0 24px;
}
.lexsection-title-dark { color: var(--lexdark); }
.lexsection-title::before, .lexsection-title::after {
	content: '';
	position: absolute;
	top: 50%;
	width: 100vw;
	max-width: 320px;
	border-top: 6px groove var(--lexborder);
}
.lexsection-title::before { right: 100%; }
.lexsection-title::after { left: 100%; }
.lexsection-subtitle { color: var(--lexgray); font-size: 14px; margin: 6px 0 0; }

/* ===================== SECTION 1: featured + lista ===================== */
.lexsection-1-grid {
	display: grid;
	grid-template-columns: 1.82fr 0.78fr;
	gap: 28px;
}

.lexfeatured-link { display: block; position: relative; overflow: hidden; border-radius: var(--lexradius); }
.lexfeatured-thumb {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--lexlight-gray);
}
.lexfeatured-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lexfeatured-overlay {
	position: absolute;
	left: 0; right: 0; bottom: 0;
	background: rgba(0,0,0,.72);
	padding: 16px 20px 18px;
}
.lexfeatured-date { color: #cfcfcf; font-size: 12px; margin-left: 10px; vertical-align: middle; }
.lexfeatured-title {
	color: #fff;
	font-size: var(--lexfs-featured-title);
	margin: 10px 0 0;
	text-transform: uppercase;
	line-height: 1.3;
}

.lexsection-1-list { display: flex; flex-direction: column; gap: 18px; }
.lexlist-item { display: flex; align-items: flex-start; gap: 14px; border-bottom: 1px solid var(--lexborder); padding-bottom: 16px; }
.lexlist-item:last-child { border-bottom: none; padding-bottom: 0; }
.lexlist-content { flex: 1; min-width: 0; }
.lexlist-title { font-size: var(--lexfs-list-title); margin: 8px 0 6px; line-height: 1.35; }
.lexlist-title a:hover { color: var(--lexred); }
.lexlist-date { font-size: 11px; color: var(--lexgray); text-transform: uppercase; }
.lexlist-excerpt { display: none; }
.lexlist-thumb {
	flex-shrink: 0;
	width: 110px;
	aspect-ratio: 4 / 3;
	overflow: hidden;
	display: block;
	background: var(--lexlight-gray);
	border-radius: var(--lexradius);
}
.lexlist-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ===================== SECTION 2: cards + sidebar ===================== */
.lexsection-2-layout, .lexarchive-layout {
	display: grid;
	grid-template-columns: 1fr 280px;
	gap: 40px;
	align-items: start;
}

.lexcard {
	display: flex;
	gap: 20px;
	padding-bottom: 28px;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--lexborder);
}
.lexcard:last-of-type { border-bottom: none; }
.lexcard-thumb {
	flex-shrink: 0;
	width: 220px;
	aspect-ratio: 3 / 2;
	overflow: hidden;
	display: block;
	background: var(--lexlight-gray);
	border-radius: var(--lexradius);
}
.lexcard-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lexcard-content { flex: 1; min-width: 0; }
.lexcard-title { font-size: var(--lexfs-card-title); margin: 0 0 8px; line-height: 1.35; }
.lexcard-title a:hover { color: var(--lexred); }
.lexcard-meta { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; flex-wrap: wrap; }
.lexcard-excerpt { font-size: 14px; color: var(--lextext); margin: 0 0 14px; }

/* ===================== SIDEBAR ===================== */
.lexsidebar-box { margin-bottom: 36px;}

.lexsidebar-title {
	font-size: var(--lexfs-sidebar-title);
	text-transform: uppercase;
	letter-spacing: .5px;
	padding-bottom: 14px;
	margin-bottom: 18px;
	border-bottom: 1px solid var(--lexborder);
	text-align: center;
}

.lexcomment-item { padding: 14px 0; border-bottom: 1px solid var(--lexborder); }
.lexcomment-item:last-child { border-bottom: none; }
.lexcomment-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; flex-wrap: wrap; }
.lexcomment-avatar { border-radius: 50%; width: 28px; height: 28px; }
.lexcomment-author { font-weight: 700; font-size: 13px; color: var(--lexred); }
.lexcomment-on { font-size: 12px; color: var(--lexgray); }
.lexcomment-date { font-size: 11px; color: var(--lexgray); text-transform: uppercase; }
.lexcomment-excerpt { font-style: italic; font-size: 13px; color: var(--lexgray); margin: 4px 0; }
.lexcomment-postlink { font-size: 13px; font-weight: 700; }

.lexsidebar-post { display: flex; gap: 12px; margin-bottom: 16px; align-items: center; }
.lexsidebar-post-thumb { flex-shrink: 0; width: 64px; height: 64px; overflow: hidden; display: block; background: var(--lexlight-gray); border-radius: var(--lexradius); }
.lexsidebar-post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.lexsidebar-post-content { display: flex; flex-direction: column; gap: 4px; }
.lexsidebar-post-title { font-size: 13px; font-weight: 700; text-transform: uppercase; line-height: 1.3; }
.lexsidebar-post-title:hover { color: var(--lexred); }
.lexsidebar-post-date { font-size: 11px; color: var(--lexgray); }


.lexloadmore-wrap { text-align: center; margin-top: 10px; }
.lexloadmore-btn { padding: 12px 32px; font-size: 13px; border-radius: var(--lexradius); }
.lexloadmore-btn:disabled { opacity: .6; cursor: default; }

/* ===================== PAGINATION ===================== */
.lexpagination { display: flex; gap: 8px; justify-content: center; margin-top: 10px; }
.lexpagination a, .lexpagination span {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 36px; height: 36px; border: 1px solid var(--lexborder);
	font-size: 13px; font-weight: 700;
}
.lexpagination .current { background: var(--lexred); color: #fff; border-color: var(--lexred); }
.lexpagination a:hover { border-color: var(--lexred); color: var(--lexred); }

/* ===================== SINGLE POST ===================== */
.lexsingle-layout { display: grid; grid-template-columns: 1fr 280px; gap: 40px; align-items: start; margin: 36px 0 60px; }
.lexsingle-title { font-size: var(--lexfs-single-title); line-height: 1.3; margin-bottom: 14px; text-transform: uppercase; }
.lexsingle-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--lexborder); font-size: 13px; color: var(--lexgray); }
.lexmeta-sep { color: var(--lexborder); }
.lexmeta-author { font-weight: 700; color: var(--lexdark); }

.lexshare { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; }
.lexshare-label { font-size: 13px; font-weight: 700; color: var(--lexdark); margin-right: 4px; }
.lexshare-btn {
	width: 34px; height: 34px; border-radius: 3px;
	display: flex; align-items: center; justify-content: center;
	color: #fff !important;
}
.lexshare-fb { background: #3b5998; }
.lexshare-tw { background: #1da1f2; }
.lexshare-pin { background: #cb2027; }
.lexshare-li { background: #0077b5; }
.lexshare-btn:hover { opacity: .85; }

.lexsingle-thumb { margin-bottom: 24px; aspect-ratio: 16/9; overflow: hidden; background: var(--lexlight-gray); border-radius: var(--lexradius); }
.lexsingle-thumb img { width: 100%; height: 100%; object-fit: cover; }

.lexsingle-content { font-size: var(--lexfs-base); color: var(--lextext); }
.lexsingle-content p { margin: 0 0 20px; }
.lexsingle-content blockquote {
	border-left: 4px solid var(--lexred);
	font-weight: 500;
	font-size: 18px;
	padding: 10px 30px;
	margin: 30px 0;
}
.lexsingle-content img { margin: 20px 0; }
.lexpage-links { margin-top: 20px; font-size: 14px; }

/* ===================== COMMENTS ===================== */
.lexcomments-area { margin-top: 40px; }
.lexcomments-title { font-size: 20px; text-transform: uppercase; border-bottom: 1px solid var(--lexborder); padding-bottom: 14px; }
.lexcomment-list .comment-body { padding: 18px 0; border-bottom: 1px solid var(--lexborder); }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 10px 12px; border: 1px solid var(--lexborder); font-family: inherit; font-size: 14px; margin-bottom: 14px;
}
.comment-form-submit input[type="submit"] {
	background: var(--lexred); color: #fff; border: none; padding: 10px 24px; font-weight: 700; text-transform: uppercase; font-size: 13px;
}
.comment-form-submit input[type="submit"]:hover { background: var(--lexred-dark); }

/* ===================== ARCHIVE TITLE ===================== */
.lexarchive-title { font-size: var(--lexfs-archive-title); text-transform: uppercase; margin-bottom: 26px; border-bottom: 2px solid var(--lexdark); padding-bottom: 14px; }
.lexarchive-title span { color: var(--lexred); }

/* ===================== FOOTER ===================== */
.lexfooter { background: var(--lexcolor-footer-bg); padding: 26px 0; margin-top: 40px; }
.lexfooter-text { color: var(--lexcolor-footer-text); font-size: 13px; text-align: center; margin: 0; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
	.lexsection-1-grid { grid-template-columns: 1fr; }
	.lexsection-2-layout, .lexarchive-layout, .lexsingle-layout { grid-template-columns: 1fr; }
	.lexcard-thumb { width: 180px; }
}

@media (max-width: 768px) {
	.lexnav {
		display: none;
		position: absolute;
		top: 100%; left: 0; right: 0;
		background: #fff;
		border-top: 1px solid var(--lexborder);
		box-shadow: 0 8px 16px rgba(0,0,0,.08);
		z-index: 50;
	}
	.lexnav.is-open { display: block; }
	.lexnav-menu { flex-direction: column; gap: 0; padding: 10px 20px; }
	.lexnav-menu li a { padding: 12px 0; border-bottom: 1px solid var(--lexborder); }
	.lexmenu-toggle { display: flex; order: 2; }
	.lexsearch-toggle { order: 3; }
	.lexlogo { order: 1; }
	.lexheader-inner { flex-wrap: wrap; }

	.lexsection-title { font-size: 21px; }
	.lexsection-title::before, .lexsection-title::after { max-width: 60px; }

	/* Cardurile postarilor: poza sus, titlu, excerpt - pentru toate tipurile de postari */
	.lexlist-item, .lexcard {
		flex-direction: column;
	}
	.lexlist-item { gap: 10px; }
	.lexlist-thumb, .lexcard-thumb {
		order: -1;
		width: 100%;
		aspect-ratio: 16 / 10;
	}
	.lexlist-excerpt { display: block; font-size: 13px; color: var(--lexgray); margin: 4px 0 0; }
	.lexcard-meta { gap: 10px; }

	.lexsingle-title { font-size: 24px; }
}

@media (max-width: 480px) {
	.lexfeatured-title { font-size: 18px; }
	.lexcard-content, .lexlist-content { width: 100%; }
}
