/* ==========================================================================
   IT-PC News — theme.css
   Design luminos, accent albastru, optimizat pentru citit.
   ========================================================================== */

/* ---------- Variabile ---------- */
:root {
	--accent: #1d4ed8;
	--accent-hover: #1e40af;
	--accent-soft: #eff4ff;
	--text: #0f172a;
	--muted: #5a6b82;
	--bg: #ffffff;
	--surface: #f8fafc;
	--surface-2: #f1f5f9;
	--border: #e5e9f0;
	--border-strong: #cbd5e1;
	--radius: 14px;
	--radius-sm: 9px;
	--shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);
	--shadow: 0 6px 24px rgba(15, 23, 42, .08);
	--shadow-lg: 0 18px 48px rgba(15, 23, 42, .12);
	--font: "Inter", "Noto Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--container: 1200px;
	--content: 760px;
}

/* ---------- Reset de bază ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
	margin: 0;
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.7;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

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

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

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font);
	font-weight: 800;
	line-height: 1.22;
	letter-spacing: -0.01em;
	color: var(--text);
	margin: 0 0 .5em;
}

p { margin: 0 0 1.15em; }

button { font-family: inherit; }

/* Accesibilitate */
.screen-reader-text {
	border: 0; clip: rect(1px,1px,1px,1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; padding: 0; overflow: hidden;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link {
	position: absolute; left: -9999px; top: 0; z-index: 1000;
	background: var(--accent); color: #fff; padding: 12px 18px; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

/* ---------- Utilitare ---------- */
.container {
	width: 100%; max-width: var(--container);
	margin-inline: auto; padding-inline: 20px;
}
.container--narrow { max-width: 820px; }

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: 48px;
	padding-top: 34px;
	padding-bottom: 60px;
}
body.no-sidebar .layout,
.layout:has(.sidebar:empty) { grid-template-columns: minmax(0, 1fr); }

.btn {
	display: inline-block; background: var(--accent); color: #fff;
	padding: 11px 22px; border-radius: 999px; font-weight: 600; border: 0; cursor: pointer;
	transition: background .15s ease, transform .15s ease;
}
.btn:hover { background: var(--accent-hover); color: #fff; transform: translateY(-1px); }

/* ---------- Bara de progres citire ---------- */
.reading-progress {
	position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 9999;
	background: transparent; pointer-events: none;
}
.reading-progress__bar {
	display: block; height: 100%; width: 0;
	background: var(--accent);
}

/* ---------- Antet ---------- */
.topbar {
	background: var(--text); color: #cbd5e1; font-size: 13px;
}
.topbar__inner { display: flex; justify-content: space-between; gap: 16px; padding-block: 8px; }
.topbar__tagline { color: #94a3b8; }

.site-header { position: sticky; top: 0; z-index: 500; background: var(--bg); }
.topbar { transition: margin-top .25s ease, opacity .2s ease; }
.site-header.is-stuck .topbar { margin-top: -34px; opacity: 0; pointer-events: none; }
.site-header.is-stuck .site-header__main { box-shadow: 0 8px 24px rgba(15,23,42,.12); }
.site-header__main { border-bottom: 1px solid var(--border); background: var(--bg); box-shadow: var(--shadow-sm); }
.site-header__inner {
	display: flex; align-items: center; gap: 26px; padding-block: 14px;
}

.site-brand { flex-shrink: 0; }
.site-brand img { max-height: 46px; width: auto; }
.site-brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.site-brand__name { font-weight: 800; font-size: 24px; color: var(--text); letter-spacing: -0.02em; }
.site-brand__tagline { font-size: 12px; color: var(--muted); font-weight: 500; }

/* Meniu principal */
.main-navigation { margin-left: auto; }
.nav-menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-menu > li { position: relative; }
.nav-menu a {
	display: block; padding: 9px 14px; border-radius: 999px;
	font-weight: 600; font-size: 15px; color: var(--text);
}
.nav-menu a:hover,
.nav-menu .current-menu-item > a,
.nav-menu .current-menu-ancestor > a { background: var(--accent-soft); color: var(--accent); }

/* Submeniu */
.nav-menu .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 220px;
	background: #fff; border: 1px solid var(--border); border-radius: var(--radius-sm);
	box-shadow: var(--shadow); padding: 8px; list-style: none; margin: 6px 0 0;
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .15s ease;
	z-index: 600;
}
.nav-menu li:hover > .sub-menu,
.nav-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-menu .sub-menu a { border-radius: 7px; padding: 8px 12px; font-weight: 500; }
.nav-menu .menu-item-has-children > a::after {
	content: "\25BE"; font-size: 9px; line-height: 1; margin-left: 6px; vertical-align: middle; opacity: .6;
}
.nav-menu .menu-categorii > .sub-menu { min-width: 460px; columns: 2; -webkit-columns: 2; column-gap: 10px; }
.nav-menu .menu-categorii > .sub-menu > li { break-inside: avoid; }

/* Acțiuni antet */
.header-actions { display: flex; align-items: center; gap: 6px; }
.search-toggle, .menu-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
	background: #fff; color: var(--text); cursor: pointer; transition: all .15s ease;
}
.search-toggle:hover, .menu-toggle:hover { border-color: var(--accent); color: var(--accent); }

.menu-toggle { display: none; }
.menu-toggle__box { display: flex; flex-direction: column; gap: 4px; width: 20px; }
.menu-toggle__box span { display: block; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, opacity .2s ease; }
.menu-toggle[aria-expanded="true"] .menu-toggle__box span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle__box span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] .menu-toggle__box span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Căutare în antet */
.header-search { border-bottom: 1px solid var(--border); background: var(--surface); }
.header-search .container { padding-block: 16px; }
.header-search[hidden] { display: none; }

.search-form { display: flex; gap: 10px; width: 100%; max-width: 640px; }
.search-form__label { flex: 1; }
.search-form__field {
	width: 100%; padding: 13px 18px; font-size: 16px; font-family: inherit;
	border: 1px solid var(--border-strong); border-radius: 999px; background: #fff; color: var(--text);
}
.search-form__field:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px var(--accent-soft); }
.search-form__submit {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--accent); color: #fff; border: 0; border-radius: 999px;
	padding: 0 22px; cursor: pointer; font-weight: 600;
}
.search-form__submit:hover { background: var(--accent-hover); }

/* ---------- Breadcrumbs ---------- */
.breadcrumbs { font-size: 13.5px; color: var(--muted); padding-top: 6px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 14px; padding: 0; }
.breadcrumbs li + li::before { content: "›"; margin-right: 8px; color: var(--border-strong); }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs [aria-current] { color: var(--text); font-weight: 600; }

/* ---------- Hero (prima pagină) ---------- */
.hero {
	display: grid;
	grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
	gap: 22px;
	margin: 8px 0 56px;
}
.hero__main { display: flex; }
.hero__side { display: grid; grid-template-rows: 1fr 1fr; gap: 22px; }

.hero-card {
	display: flex; flex-direction: column; width: 100%;
	background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow-sm);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hero-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.hero-card:hover .entry-thumb img { transform: scale(1.05); }
.hero-card .entry-thumb, .hero-card .thumb-placeholder { aspect-ratio: 3 / 2; }
.hero-card__body { padding: 26px 30px 30px; display: flex; flex-direction: column; flex: 1; }
.hero-card__title {
	font-size: clamp(24px, 2.5vw, 33px); line-height: 1.2; margin: 12px 0 12px;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-card__title a { color: var(--text); }
.hero-card__title a:hover { color: var(--accent); }
.hero-card__excerpt {
	color: var(--muted); font-size: 16px; line-height: 1.6; margin: 0 0 18px;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-card .entry-meta { margin-top: auto; }

.hero-side-card {
	display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
	overflow: hidden; box-shadow: var(--shadow-sm);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hero-side-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.hero-side-card:hover .entry-thumb img { transform: scale(1.05); }
.hero-side-card .entry-thumb, .hero-side-card .thumb-placeholder { aspect-ratio: 2 / 1; }
.hero-side-card__body { padding: 16px 20px 18px; display: flex; flex-direction: column; flex: 1; }
.hero-side-card__title {
	font-size: 18px; line-height: 1.32; margin: 8px 0 10px;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.hero-side-card__title a { color: var(--text); }
.hero-side-card__title a:hover { color: var(--accent); }
.hero-side-card__date { font-size: 13px; color: var(--muted); margin-top: auto; }

/* ---------- Secțiuni ---------- */
.home-section { margin-bottom: 56px; }
.home-section--cat { background: var(--surface); padding-block: 46px; margin-bottom: 0; }

.section-head {
	display: flex; align-items: center; justify-content: space-between;
	gap: 20px; margin-bottom: 26px; padding-bottom: 14px; border-bottom: 1px solid var(--border);
}
.section-title { font-size: 21px; margin: 0; padding-left: 15px; position: relative; }
.section-title::before {
	content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
	width: 5px; height: 21px; background: var(--accent); border-radius: 3px;
}
.section-title a { color: var(--text); }
.section-title a:hover { color: var(--accent); }
.section-more { font-size: 14px; font-weight: 600; white-space: nowrap; color: var(--accent); }

.home-more { text-align: center; margin-top: 30px; }
.home-more .btn { padding: 14px 34px; font-size: 15px; }

/* ---------- Grile de carduri ---------- */
.post-grid { display: grid; gap: 28px 26px; }
.post-grid--2 { grid-template-columns: repeat(2, 1fr); }
.post-grid--3 { grid-template-columns: repeat(3, 1fr); }
.post-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Imagini de articol ---------- */
.entry-thumb { display: block; overflow: hidden; }
.entry-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }

.thumb-placeholder {
	display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--accent), #2563eb); color: #fff;
}
.thumb-placeholder span { font-weight: 800; letter-spacing: .08em; opacity: .9; font-size: 14px; }

/* ---------- Card de articol ---------- */
.post-card {
	display: flex; flex-direction: column; background: #fff; border-radius: var(--radius);
	overflow: hidden; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.post-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.post-card .entry-thumb, .post-card .thumb-placeholder { aspect-ratio: 16 / 10; }
.post-card:hover .entry-thumb img { transform: scale(1.05); }

.post-card__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.post-card__title {
	font-size: 18px; line-height: 1.32; margin: 10px 0 8px;
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card__title a { color: var(--text); }
.post-card__title a:hover { color: var(--accent); }
.post-card__excerpt {
	font-size: 14.5px; color: var(--muted); margin: 0 0 14px;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.post-card__meta { font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; margin-top: auto; }
.dot { color: var(--border-strong); }

/* Badge categorie */
.entry-cats { font-size: 12px; }
.cat-badge {
	display: inline-block; background: var(--accent-soft); color: var(--accent);
	font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
	padding: 5px 11px; border-radius: 999px; font-size: 11.5px;
}
.cat-badge:hover { background: var(--accent); color: #fff; }
.cat-sep { display: none; }

/* Badge „Breaking" */
.badge {
	display: inline-block; font-weight: 700; text-transform: uppercase;
	letter-spacing: .04em; padding: 5px 11px; border-radius: 999px; font-size: 11.5px;
}
.badge--breaking {
	background: #dc2626; color: #fff; margin-right: 6px;
	animation: badge-pulse 2s ease-in-out infinite;
}
@keyframes badge-pulse {
	0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,.55); }
	50% { box-shadow: 0 0 0 5px rgba(220,38,38,0); }
}
@media (prefers-reduced-motion: reduce) { .badge--breaking { animation: none; } }

/* ---------- Meta articol ---------- */
.entry-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 14px; }
.entry-meta a { color: var(--text); font-weight: 600; }
.entry-meta a:hover { color: var(--accent); }

/* ---------- Antet arhivă ---------- */
.archive-header { margin-bottom: 30px; }
.archive-title { font-size: clamp(26px, 3vw, 36px); }
.archive-title span { color: var(--accent); }
.archive-description { color: var(--muted); max-width: 720px; }

/* ---------- Articol singular ---------- */
.single-post .entry-header { margin-bottom: 22px; }
.entry-title { font-size: clamp(30px, 4vw, 46px); margin: 12px 0 14px; }
.entry-lead { font-size: 20px; color: var(--muted); line-height: 1.6; margin-bottom: 18px; font-weight: 400; }

.entry-featured { margin: 26px 0 30px; }
.entry-featured__img { width: 100%; border-radius: var(--radius); }
.entry-featured figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; text-align: center; }

.entry-content { font-size: calc(18px * var(--read-scale, 1)); line-height: 1.8; font-family: var(--reading-font, var(--font)); }
.entry-content > * { max-width: var(--content); }
.entry-content > .alignwide, .entry-content > .wp-block-image.alignwide { max-width: 100%; }
.entry-content > .alignfull { max-width: none; }
.entry-content h2 { font-size: 27px; margin: 1.6em 0 .6em; }
.entry-content h3 { font-size: 22px; margin: 1.4em 0 .5em; }
.entry-content a { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1.5px; }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote {
	margin: 1.6em 0; padding: 18px 24px; border-left: 4px solid var(--accent);
	background: var(--accent-soft); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
	font-size: 19px; color: var(--text);
}
.entry-content ul, .entry-content ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .5em; }
.entry-content code { background: var(--surface-2); padding: 2px 7px; border-radius: 6px; font-size: .9em; }
.entry-content pre { background: #0f172a; color: #e2e8f0; padding: 18px 20px; border-radius: var(--radius-sm); overflow: auto; }
.entry-content pre code { background: none; padding: 0; color: inherit; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 1.4em 0; max-width: var(--content); }
.entry-content th, .entry-content td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; }
.entry-content th { background: var(--surface); font-weight: 700; }

.entry-footer { margin-top: 28px; }
.entry-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.entry-tags__label { font-size: 14px; color: var(--muted); font-weight: 600; }
.tag-link { background: var(--surface-2); color: var(--text); padding: 6px 12px; border-radius: 999px; font-size: 13.5px; font-weight: 500; }
.tag-link:hover { background: var(--accent); color: #fff; }

/* Caseta autor */
.author-box {
	display: flex; gap: 18px; align-items: flex-start; background: var(--surface);
	border: 1px solid var(--border); border-radius: var(--radius); padding: 22px 24px; margin-top: 36px;
}
.author-box__avatar img { border-radius: 50%; }
.author-box__label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.author-box__name { font-size: 20px; margin: 2px 0 6px; }
.author-box__desc { color: var(--muted); font-size: 15px; margin: 0; }

/* Navigare articole */
.post-navigation { margin-top: 40px; }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.post-navigation .nav-previous, .post-navigation .nav-next {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 18px 20px; display: flex; flex-direction: column; gap: 4px;
}
.post-navigation .nav-next { text-align: right; }
.post-navigation .nav-label { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--accent); font-weight: 700; }
.post-navigation .nav-title { font-weight: 600; color: var(--text); }

/* ---------- Articole similare ---------- */
.related-posts { margin-top: 52px; }
.related-posts .section-title { margin-bottom: 24px; }

/* ---------- Comentarii ---------- */
.comments-area { margin-top: 52px; }
.comments-title { font-size: 22px; }
.comment-list { list-style: none; margin: 0 0 24px; padding: 0; }
.comment-list ol.children { list-style: none; padding-left: 28px; }
.comment-body { border-bottom: 1px solid var(--border); padding: 20px 0; }
.comment-author { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 13px; color: var(--muted); margin: 4px 0 10px; }
.comment-content { font-size: 16px; }
.comment-reply-link { font-size: 13px; font-weight: 600; }

.comment-form p { margin-bottom: 16px; }
.comment-form label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
	font-family: inherit; font-size: 16px; color: var(--text); background: #fff;
}
.comment-form textarea { min-height: 140px; }
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 4px var(--accent-soft); }
.comment-form .submit {
	background: var(--accent); color: #fff; border: 0; padding: 12px 26px; border-radius: 999px;
	font-weight: 600; cursor: pointer; font-size: 16px;
}
.comment-form .submit:hover { background: var(--accent-hover); }

/* ---------- Paginare ---------- */
.pagination { margin-top: 40px; }
.pagination__list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0; padding: 0; }
.pagination__list .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px;
	padding: 0 12px; border: 1px solid var(--border); border-radius: var(--radius-sm);
	color: var(--text); font-weight: 600; background: #fff;
}
.pagination__list a.page-numbers:hover { border-color: var(--accent); color: var(--accent); }
.pagination__list .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ---------- Bara laterală / widgeturi ---------- */
.sidebar { font-size: 15px; }
.widget { margin-bottom: 34px; }
.widget-title { font-size: 17px; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid var(--border); position: relative; }
.widget-title::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 44px; background: var(--accent); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li { padding: 8px 0; border-bottom: 1px solid var(--border); }
.widget ul li a { color: var(--text); font-weight: 500; }
.widget ul li a:hover { color: var(--accent); }
.widget_tag_cloud a { display: inline-block; background: var(--surface-2); padding: 6px 12px; border-radius: 999px; margin: 0 6px 6px 0; font-size: 13.5px !important; color: var(--text); }

.popular-list { list-style: none; margin: 0; padding: 0; }
.popular-list li { border-bottom: 1px solid var(--border); }
.popular-list li:last-child { border-bottom: 0; }
.popular-list__link { display: flex; gap: 12px; align-items: center; padding: 12px 0; }
.popular-list__thumb, .popular-list .entry-thumb { width: 64px; height: 64px; flex-shrink: 0; border-radius: var(--radius-sm); overflow: hidden; }
.popular-list .entry-thumb img { width: 64px; height: 64px; object-fit: cover; aspect-ratio: 1; border-radius: var(--radius-sm); }
.popular-list .thumb-placeholder { width: 64px; height: 64px; aspect-ratio: 1; border-radius: var(--radius-sm); font-size: 10px; }
.popular-list .thumb-placeholder span { font-size: 9px; }
.popular-list__title { display: block; font-weight: 600; color: var(--text); line-height: 1.3; }
.popular-list__link:hover .popular-list__title { color: var(--accent); }
.popular-list__meta { display: block; font-size: 12.5px; color: var(--muted); margin-top: 3px; }

.cat-list li { display: flex; justify-content: space-between; }

/* ---------- Subsol ---------- */
.site-footer { background: #0b1220; color: #cbd5e1; margin-top: 20px; }
.footer-widgets {
	display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding-block: 54px;
	border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-widgets .widget-title { color: #fff; border-color: rgba(255,255,255,.12); }
.footer-widgets a { color: #cbd5e1; }
.footer-widgets a:hover { color: #fff; }
.footer-widgets .widget ul li { border-color: rgba(255,255,255,.08); }

.footer-bottom { padding-block: 30px; }
.footer-bottom__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; }
.site-footer .site-brand__name { color: #fff; }
.site-footer .site-brand__tagline { color: #94a3b8; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 20px; list-style: none; margin: 0; padding: 0; }
.footer-menu a { color: #cbd5e1; font-size: 14px; }
.footer-menu a:hover { color: #fff; }
.footer-copy { margin: 0; font-size: 13.5px; color: #94a3b8; }

/* ---------- Buton sus ---------- */
.back-to-top {
	position: fixed; right: 24px; bottom: 24px; z-index: 400;
	width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
	background: var(--accent); color: #fff; font-size: 20px; box-shadow: var(--shadow);
	transition: background .15s ease, transform .15s ease;
}
.back-to-top:hover { background: var(--accent-hover); transform: translateY(-2px); }
.back-to-top[hidden] { display: none; }

/* ---------- 404 / fără rezultate ---------- */
.error-404 { text-align: center; padding-block: 40px; }
.error-404__code { font-size: 84px; font-weight: 800; color: var(--accent); margin: 0; line-height: 1; }
.error-404__title { font-size: 30px; margin: 8px 0 12px; }
.error-404__text { color: var(--muted); margin-bottom: 22px; }
.error-404 .search-form { margin: 0 auto 40px; }
.error-404 .section-title { text-align: left; }
.no-results { padding: 30px 0; }
.no-results .search-form { margin-top: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
	.layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.hero { grid-template-columns: 1fr; }
	.hero__side { grid-template-rows: none; grid-template-columns: 1fr 1fr; }
	.hero-card .entry-thumb, .hero-card .thumb-placeholder { aspect-ratio: 16 / 9; }
	.hero-side-card .entry-thumb, .hero-side-card .thumb-placeholder { aspect-ratio: 16 / 9; }
	.post-grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
	.menu-toggle { display: inline-flex; }
	.header-actions { margin-left: auto; }
	.main-navigation {
		position: absolute; top: 100%; left: 0; right: 0; margin: 0;
		background: #fff; border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
		display: none; padding: 8px 20px 18px;
	}
	.main-navigation.is-open { display: block; }
	.nav-menu { flex-direction: column; align-items: stretch; gap: 2px; }
	.nav-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding-left: 14px; }
	.nav-menu .menu-categorii > .sub-menu { columns: 1; -webkit-columns: 1; min-width: 0; }
	.site-header__inner { position: relative; flex-wrap: wrap; }
	.post-grid--3, .post-grid--4 { grid-template-columns: repeat(2, 1fr); }
	.footer-widgets { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 560px) {
	body { font-size: 16px; }
	.post-grid--2, .post-grid--3, .post-grid--4 { grid-template-columns: 1fr; }
	.hero__side { grid-template-columns: 1fr; }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.footer-bottom__inner { flex-direction: column; align-items: flex-start; }
	.entry-content { font-size: 17px; }
	.header-actions { gap: 4px; }
	.theme-toggle, .search-toggle, .menu-toggle, .bookmark-toggle { width: 38px; height: 38px; }
	.post-tools { width: 100%; justify-content: center; }
	.share-buttons { gap: 8px; }
	.share-btn { padding: 8px 13px; font-size: 13.5px; }
}

/* ==========================================================================
   Extindere — componente pentru cititori
   ========================================================================== */

/* Butoane — variante */
.btn--light { background: #fff; color: var(--accent); }
.btn--light:hover { background: rgba(255,255,255,.9); color: var(--accent-hover); }
.btn--ghost { background: transparent; color: var(--accent); border: 1px solid var(--border-strong); }
.btn--ghost:hover { background: var(--accent-soft); color: var(--accent-hover); }

/* Comutator zi/noapte */
.theme-toggle {
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
	background: #fff; color: var(--text); cursor: pointer; transition: all .15s ease;
}
.theme-toggle:hover { border-color: var(--accent); color: var(--accent); }
.theme-toggle__icon { display: flex; }
.theme-toggle__icon--sun { display: none; }
html[data-theme="dark"] .theme-toggle__icon--sun { display: flex; }
html[data-theme="dark"] .theme-toggle__icon--moon { display: none; }

/* Buton „Citește mai mult" pe card */
.post-card__more {
	margin: 0 0 12px; font-size: 14px; font-weight: 700; color: var(--accent);
	display: inline-flex; align-items: center; gap: 6px;
}
.post-card__more span { transition: transform .18s ease; }
.post-card__more:hover span { transform: translateX(4px); }

/* Unelte de citire */
.post-tools {
	display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
	margin: 22px 0 26px; padding: 8px 14px;
	background: var(--surface); border: 1px solid var(--border); border-radius: 999px;
	width: fit-content;
}
.post-tools__label { font-size: 13px; font-weight: 600; color: var(--muted); }
.post-tools__group { display: flex; gap: 2px; background: var(--surface-2); border-radius: 999px; padding: 2px; }
.tool-btn {
	font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1;
	min-width: 34px; height: 32px; padding: 0 10px; border: 0; border-radius: 999px;
	background: transparent; color: var(--text); cursor: pointer; transition: all .15s ease;
}
.tool-btn:hover { background: #fff; color: var(--accent); }
.tool-btn.is-active { background: var(--accent); color: #fff; }
.tool-btn--icon { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; color: var(--muted); }
.tool-btn--icon:hover { color: var(--accent); }

/* Cuprins */
.itpc-toc {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	padding: 16px 20px; margin: 0 0 28px; max-width: var(--content);
}
.itpc-toc[hidden] { display: none; }
.itpc-toc__summary {
	list-style: none; cursor: pointer; font-weight: 800; font-size: 16px;
	display: flex; align-items: center; justify-content: space-between; gap: 10px;
}
.itpc-toc__summary::-webkit-details-marker { display: none; }
.itpc-toc__summary::after { content: "\25BE"; color: var(--accent); transition: transform .2s ease; }
.itpc-toc[open] .itpc-toc__summary::after { transform: rotate(180deg); }
.itpc-toc__list { list-style: none; margin: 14px 0 0; padding: 0; }
.itpc-toc__list li { border-top: 1px dashed var(--border); padding: 9px 0; }
.itpc-toc__list li:first-child { border-top: 0; }
.itpc-toc__list a { color: var(--text); font-weight: 600; font-size: 15px; }
.itpc-toc__list a:hover { color: var(--accent); }
.itpc-toc__list .is-sub { padding-left: 20px; }
.itpc-toc__list .is-sub a { font-weight: 500; font-size: 14.5px; color: var(--muted); }

/* Ancore fluide sub header sticky */
.entry-content h2, .entry-content h3, .entry-content h4 { scroll-margin-top: 96px; }

/* Distribuire */
.share-buttons {
	display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
	margin: 30px 0 0; padding-top: 24px; border-top: 1px solid var(--border);
}
.share-buttons__label { font-size: 14px; font-weight: 700; color: var(--muted); margin-right: 2px; }
.share-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 9px 16px; border-radius: 999px; border: 1px solid var(--border);
	background: #fff; color: var(--text); font-size: 14px; font-weight: 600;
	cursor: pointer; font-family: inherit; transition: all .15s ease;
}
.share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); color: #fff; border-color: transparent; }
.share-btn--facebook:hover { background: #1877f2; }
.share-btn--x:hover { background: #0f172a; }
.share-btn--whatsapp:hover { background: #25d366; }
.share-btn--linkedin:hover { background: #0a66c2; }
.share-btn--telegram:hover { background: #229ed9; }
.share-btn--email:hover { background: #64748b; }
.share-btn--copy:hover { background: var(--accent); }
.share-btn.is-copied { background: #16a34a; color: #fff; border-color: transparent; }

/* Casetă abonare */
.subscribe-box {
	margin: 46px 0 0; padding: 36px 32px; border-radius: var(--radius);
	background: linear-gradient(135deg, var(--accent), #2563eb);
	color: #fff; text-align: center;
}
.subscribe-box h2 { color: #fff; font-size: 24px; margin-bottom: 8px; }
.subscribe-box p { color: rgba(255,255,255,.92); max-width: 560px; margin: 0 auto 20px; }

/* ==========================================================================
   Mod întunecat
   ========================================================================== */
html[data-theme="dark"] {
	--text: #f4f7fb;
	--muted: #a9b7cc;
	--bg: #0c1220;
	--surface: #141d2e;
	--surface-2: #1c2740;
	--border: #2a3752;
	--border-strong: #3d4c6b;
	--accent: #4f8dff;
	--accent-hover: #7aa9ff;
	--accent-soft: #182542;
	--shadow-sm: 0 1px 2px rgba(0,0,0,.4);
	--shadow: 0 8px 28px rgba(0,0,0,.45);
	--shadow-lg: 0 20px 50px rgba(0,0,0,.55);
	color-scheme: dark;
}
/* Text cu contrast puternic în articole */
html[data-theme="dark"] .entry-content,
html[data-theme="dark"] .entry-content p,
html[data-theme="dark"] .entry-content li,
html[data-theme="dark"] .entry-content h2,
html[data-theme="dark"] .entry-content h3,
html[data-theme="dark"] .entry-content h4,
html[data-theme="dark"] .entry-content h5,
html[data-theme="dark"] .entry-content h6,
html[data-theme="dark"] .entry-content strong,
html[data-theme="dark"] .entry-content td,
html[data-theme="dark"] .entry-content dd,
html[data-theme="dark"] .page-content,
html[data-theme="dark"] .page-content p { color: #f4f7fb; }
html[data-theme="dark"] .entry-content a { color: #7aa9ff; }
html[data-theme="dark"] .entry-content a:hover { color: #a8c5ff; }
html[data-theme="dark"] .entry-lead,
html[data-theme="dark"] .entry-content blockquote { color: #d4dceb; }
html[data-theme="dark"] .entry-content blockquote { background: var(--accent-soft); border-left-color: var(--accent); }
html[data-theme="dark"] .entry-content code { background: var(--surface-2); color: #c6d4ea; }

html[data-theme="dark"] .post-card,
html[data-theme="dark"] .hero-card,
html[data-theme="dark"] .hero-side-card { background: var(--surface); }
html[data-theme="dark"] .home-section--cat { background: #0a0f1a; }
html[data-theme="dark"] .post-card:hover,
html[data-theme="dark"] .hero-card:hover,
html[data-theme="dark"] .hero-side-card:hover { background: #17223a; }

html[data-theme="dark"] .theme-toggle,
html[data-theme="dark"] .search-toggle,
html[data-theme="dark"] .menu-toggle,
html[data-theme="dark"] .bookmark-toggle,
html[data-theme="dark"] .share-btn,
html[data-theme="dark"] .pagination__list .page-numbers { background: var(--bg); }
html[data-theme="dark"] .topbar,
html[data-theme="dark"] .site-footer { background: #070b13; }
html[data-theme="dark"] .header-search { background: var(--surface); }
html[data-theme="dark"] .search-form__field,
html[data-theme="dark"] .comment-form input[type="text"],
html[data-theme="dark"] .comment-form input[type="email"],
html[data-theme="dark"] .comment-form input[type="url"],
html[data-theme="dark"] .comment-form textarea { background: var(--surface-2); color: var(--text); }
html[data-theme="dark"] .main-navigation { background: var(--surface); }
html[data-theme="dark"] .nav-menu .sub-menu { background: var(--surface); border-color: var(--border); }
html[data-theme="dark"] .entry-content pre { background: #05080f; }
html[data-theme="dark"] .thumb-placeholder { background: linear-gradient(135deg, #1e3a8a, #2563eb); }
html[data-theme="dark"] .share-btn--x:hover { background: #334155; }
html[data-theme="dark"] .tool-btn:hover { background: var(--surface); }

/* ---------- Font de citire serif ---------- */
html[data-read-font="serif"] { --reading-font: Georgia, "Times New Roman", "Noto Serif", serif; }

/* ---------- Salvare articol (pe carduri) ---------- */
.post-card { position: relative; }
.save-btn {
	position: absolute; top: 12px; right: 12px; z-index: 4;
	width: 38px; height: 38px; border-radius: 50%; border: 0;
	background: rgba(255,255,255,.94); color: #0f172a; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center;
	box-shadow: var(--shadow-sm); transition: all .15s ease;
}
.save-btn:hover { background: #fff; transform: scale(1.08); }
.save-btn.is-saved { background: var(--accent); color: #fff; }
html[data-theme="dark"] .save-btn { background: rgba(20,29,46,.92); color: #f4f7fb; }
html[data-theme="dark"] .save-btn:hover { background: var(--surface); }
html[data-theme="dark"] .save-btn.is-saved { background: var(--accent); color: #fff; }

.tool-btn[data-save] { min-width: 38px; }
.tool-btn[data-save].is-saved { background: var(--accent); color: #fff; }

/* ---------- Listă de citit (header) ---------- */
.bookmark-toggle {
	position: relative;
	display: inline-flex; align-items: center; justify-content: center;
	width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--border);
	background: #fff; color: var(--text); cursor: pointer; transition: all .15s ease;
}
.bookmark-toggle:hover { border-color: var(--accent); color: var(--accent); }
.bookmark-toggle__count {
	position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px;
	padding: 0 4px; border-radius: 999px; background: var(--accent); color: #fff;
	font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center;
}
.reading-list-panel { border-bottom: 1px solid var(--border); background: var(--surface); }
.reading-list-panel[hidden] { display: none; }
.reading-list-panel__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 0 10px; font-weight: 700; font-size: 15px; }
.reading-list-panel__clear { background: none; border: 0; color: var(--accent); font-weight: 600; cursor: pointer; font-size: 14px; font-family: inherit; }
.reading-list-panel__items { list-style: none; margin: 0; padding: 0 0 6px; max-height: 320px; overflow: auto; }
.reading-list-panel__items li { border-bottom: 1px solid var(--border); }
.reading-list-panel__items li:last-child { border-bottom: 0; }
.reading-list-panel__items a { display: block; padding: 11px 0; color: var(--text); font-weight: 600; }
.reading-list-panel__items a:hover { color: var(--accent); }
.reading-list-panel__empty { color: var(--muted); padding: 4px 0 18px; margin: 0; }
html[data-theme="dark"] .reading-list-panel { background: var(--surface); }

/* ---------- Rețele sociale (subsol) ---------- */
.social-links { display: flex; flex-wrap: wrap; gap: 8px; }
.social-link {
	display: inline-flex; align-items: center; justify-content: center;
	width: 38px; height: 38px; border-radius: 50%;
	border: 1px solid rgba(255,255,255,.18); color: #cbd5e1;
	transition: all .15s ease;
}
.social-link:hover { color: #fff; background: var(--accent); border-color: var(--accent); transform: translateY(-2px); }

/* ---------- Banner consimțământ cookie ---------- */
.cookie-banner {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 9990;
	background: var(--surface); border-top: 1px solid var(--border);
	box-shadow: 0 -10px 32px rgba(15,23,42,.14);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; padding: 16px 0; }
.cookie-banner__text { margin: 0; font-size: 14px; color: var(--muted); flex: 1 1 340px; line-height: 1.5; }
.cookie-banner__text a { color: var(--accent); text-decoration: underline; }
.cookie-banner__actions { display: flex; gap: 10px; margin-left: auto; flex-shrink: 0; }
html[data-theme="dark"] .cookie-banner { background: var(--surface); border-top-color: var(--border); }
@media (max-width: 560px) {
	.cookie-banner__actions { margin-left: 0; width: 100%; }
	.cookie-banner__actions .btn { flex: 1; text-align: center; }
}

/* ---------- Zone publicitare ---------- */
.ad-slot { display: block; clear: both; text-align: center; margin: 26px auto; max-width: 100%; overflow: hidden; }
.ad-slot img { max-width: 100%; height: auto; }
.ad-slot > * { max-width: 100%; }

/* Etichetă discretă, pentru transparență (cerință AdSense). */
.ad-slot:not(.ad-slot--empty)::before {
	content: "Publicitate"; display: block; font-size: 10px; letter-spacing: .12em;
	text-transform: uppercase; color: var(--muted); opacity: .55; margin-bottom: 6px;
}

.ad-slot--header { max-width: 970px; min-height: 120px; margin-block: 18px; }
.ad-slot--footer { max-width: 970px; min-height: 120px; }
.ad-slot--loop { max-width: 970px; min-height: 270px; }
.ad-slot--article_top { min-height: 140px; }
.ad-slot--article_middle,
.ad-slot--article_bottom { min-height: 270px; }
.ad-slot--sidebar { min-height: 270px; margin-top: 0; }

.ad-slot--empty {
	display: flex; align-items: center; justify-content: center;
	border: 1px dashed var(--border-strong); border-radius: var(--radius-sm);
	background: var(--surface-2); color: var(--muted);
	font-size: 13px; font-weight: 600; letter-spacing: .02em; padding: 14px;
}
html[data-theme="dark"] .ad-slot--empty { background: var(--surface-2); border-color: var(--border-strong); color: var(--muted); }

/* ---------- Print ---------- */
@media print {
	.site-header, .site-footer, .sidebar, .back-to-top, .reading-progress, .post-navigation, .related-posts, .comments-area,
	.itpc-toc, .share-buttons, .post-tools, .subscribe-box, .toast, .save-btn, .bookmark-toggle, .reading-list-panel, .cookie-banner, .ad-slot { display: none !important; }
	.entry-content { font-size: 12pt; }
}
