/*
Theme Name: ArtFX Blog
Theme URI: https://artfx.ro
Author: ArtFX Video Artisan
Author URI: https://artfx.ro
Description: ArtFX Blog theme
Version: 1.4.0
License: Commercial
License URI: https://www.artfx.ro
Text Domain: artfx-blog
*/

:root {
	--rex-red: #e2231a;
	--rex-red-dark: #b81b13;
	--rex-dark: #1a1a1a;
	--rex-text: #333333;
	--rex-gray: #373737;
	--rex-light-gray: #dadada;
	--rex-border: #cdcdcd;
	--rex-container: 1000px;
	--rex-boxed-width: 1010px;
	--rex-radius: 8px;
}

* { box-sizing: border-box; }

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

body {
	margin: 0;
	font-family: 'Roboto', Arial, sans-serif;
	font-weight: 400;
	color: var(--rex-text);
	background: #808080;
	line-height: 1.65;
}

.rex-site-boxed {
	max-width: var(--rex-boxed-width);
	margin: 0 auto;
	background: #f6f1e9;
	min-height: 100vh;
	box-shadow: 0 0 24px rgba(0,0,0,.08);
}

@media (max-width: 820px) {
	.rex-site-boxed { box-shadow: none; max-width: 100%; }
	body { background: #fff; }
}

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

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

h1, h2, h3, h4 { font-family: 'Roboto', Arial, sans-serif; font-weight: 700; margin: 0 0 .5em; color: var(--rex-dark); line-height: 1.3; }

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

button { cursor: pointer; }

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

/* ===================== TOPBAR ===================== */
.rex-topbar { height: 5px; background: var(--rex-red); width: 100%; }

/* ===================== HEADER ===================== */
.rex-header { border-bottom: 1px solid var(--rex-border); background: #fff; position: relative; }
.rex-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 78px;
	gap: 24px;
}
.rex-logo { display: flex; flex-direction: column; }
.rex-logo-text { font-size: 26px; font-weight: 900; letter-spacing: 1px; color: var(--rex-dark); display: inline-flex; align-items: center; gap: 6px; }
.rex-logo-text::before {
	content: '';
	width: 26px; height: 26px;
	background: var(--rex-red);
	-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;
}
.rex-logo-text:hover { color: var(--rex-dark); }
.rex-logo-tagline { font-size: 11px; color: var(--rex-gray); letter-spacing: .5px; margin-left: 2px; }
.custom-logo-link img { max-height: 50px; width: auto; }

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

.rex-search-toggle, .rex-menu-toggle {
	background: none; border: none; padding: 8px; color: var(--rex-dark);
	display: flex; align-items: center; justify-content: center;
}
.rex-search-toggle:hover { color: var(--rex-red); }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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


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

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

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

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

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

.rex-single-content { font-size: 16px; color: var(--rex-text); }
.rex-single-content p { margin: 0 0 20px; }
.rex-single-content blockquote {
	border-left: 4px solid var(--rex-red);
	font-weight: 500;
	font-size: 18px;
	padding: 10px 30px;
	margin: 30px 0;
}
.rex-single-content img { margin: 20px 0; }
.rex-page-links { margin-top: 20px; font-size: 14px; }

/* ===================== COMMENTS ===================== */
.rex-comments-area { margin-top: 40px; }
.rex-comments-title { font-size: 20px; text-transform: uppercase; border-bottom: 1px solid var(--rex-border); padding-bottom: 14px; }
.rex-comment-list .comment-body { padding: 18px 0; border-bottom: 1px solid var(--rex-border); }
.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(--rex-border); font-family: inherit; font-size: 14px; margin-bottom: 14px;
}
.comment-form-submit input[type="submit"] {
	background: var(--rex-red); 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(--rex-red-dark); }

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

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

/* ===================== RESPONSIVE ===================== */
@media (max-width: 992px) {
	.rex-section-1-grid { grid-template-columns: 1fr; }
	.rex-section-2-layout, .rex-archive-layout, .rex-single-layout { grid-template-columns: 1fr; }
	.rex-card-thumb { width: 180px; }
}

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

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

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

	.rex-single-title { font-size: 24px; }
}

@media (max-width: 480px) {
	.rex-featured-title { font-size: 18px; }
	.rex-card-content, .rex-list-content { width: 100%; }
}
