/*
Theme Name: ZN Business
Theme URI: https://znbusiness.ro/
Author: ZN PR Events
Description: Temă editorială de revistă de business, cu antet negru, știri de ultimă oră, alegerea redacției și secțiuni pe categorii. Inspirată de stilul publicațiilor economice internaționale.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: znbusiness
Tags: news, blog, two-columns, custom-logo, custom-menu, featured-images, translation-ready, threaded-comments
*/

/* ---------------------------------------------------------------- Tokens */
:root {
	--accent: #d0021b;
	--black: #000;
	--white: #fff;
	--text: #1a1a1a;
	--muted: #6b6b6b;
	--rule: #dcdcdc;
	--soft: #f2f2f2;
	--max: 1240px;
	--gutter: 20px;
	--sans: "Helvetica Neue", Helvetica, Arial, system-ui, sans-serif;
	--serif: Georgia, "Times New Roman", Times, serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; background: var(--white); color: var(--text);
	font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; }
p { margin: 0 0 1em; }
ul, ol { padding: 0; margin: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px,1px,1px,1px); white-space: nowrap;
}
.skip-link:focus { clip: auto; width: auto; height: auto; background: #fff; color: #000; padding: 12px 16px; z-index: 1000; top: 8px; left: 8px; }

/* ---------------------------------------------------------------- Header */
.hdr-main { background: var(--black); color: var(--white); position: sticky; top: 0; z-index: 60; }
body.admin-bar .hdr-main { top: 32px; }
@media (max-width: 782px) { body.admin-bar .hdr-main { top: 46px; } }

.hdr-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; gap: 12px; }
.hdr-right { display: flex; justify-content: flex-end; align-items: center; gap: 12px; }
.icon-btn { background: none; border: 0; color: inherit; padding: 8px; display: inline-flex; align-items: center; gap: 12px; }
.burger-lines, .burger-lines::before, .burger-lines::after {
	display: block; width: 22px; height: 2px; background: currentColor; position: relative;
}
.burger-lines::before, .burger-lines::after { content: ""; position: absolute; left: 0; }
.burger-lines::before { top: -7px; }
.burger-lines::after { top: 7px; }
.burger-label { font-size: 14px; font-weight: 600; display: none; }

.site-logo { display: inline-flex; align-items: center; justify-self: center; }
.site-logo:hover { text-decoration: none; }
.logo-img { max-height: 40px; width: auto; }
.logo-invert .hdr-main .logo-img,
.logo-invert .drawer-logo .logo-img,
.logo-invert .foot-logo .logo-img { filter: brightness(0) invert(1); }
.wordmark { font: 400 26px/1 var(--serif); letter-spacing: .01em; color: #fff; }
.wordmark b { font-weight: 700; letter-spacing: .04em; margin-right: .2em; }

.btn-sub {
	border: 1px solid #fff; color: #fff; padding: 7px 16px; font-size: 14px; font-weight: 600;
	border-radius: 2px; transition: background .15s, color .15s;
}
.btn-sub:hover { background: #fff; color: #000; text-decoration: none; }

.search-panel { background: #111; border-top: 1px solid #333; padding: 16px 0; }
.search-panel[hidden] { display: none; }
.search-form { display: flex; gap: 8px; max-width: 640px; }
.search-form input {
	flex: 1; min-width: 0; padding: 12px 14px; font: inherit; border: 1px solid #555;
	background: #000; color: #fff; border-radius: 2px;
}
.search-form button { padding: 12px 20px; background: #fff; color: #000; border: 0; font-weight: 700; border-radius: 2px; }
.not-found .search-form input, .archive-head + .empty + .search-form input { background: #fff; color: #000; border-color: var(--rule); }

.cat-nav { background: #fff; border-bottom: 1px solid var(--rule); }
.cat-nav .wrap { overflow-x: auto; scrollbar-width: none; }
.cat-nav .wrap::-webkit-scrollbar { display: none; }
.cat-nav .menu { display: flex; gap: 4px; white-space: nowrap; }
.cat-nav .menu a { display: block; padding: 14px 12px; font-size: 15px; font-weight: 600; border-bottom: 3px solid transparent; }
.cat-nav .menu a:hover, .cat-nav .current-menu-item > a, .cat-nav .current-cat > a { border-bottom-color: var(--accent); text-decoration: none; }

/* ---------------------------------------------------------------- Drawer */
.drawer-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 70; }
.drawer-overlay[hidden] { display: none; }
.drawer {
	position: fixed; top: 0; bottom: 0; left: 0; width: min(380px, 88vw); background: #000; color: #fff;
	z-index: 80; transform: translateX(-100%); transition: transform .25s ease; overflow-y: auto; padding: 0 24px 32px;
	visibility: hidden;
}
.drawer.is-open { transform: none; visibility: visible; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.drawer .menu > li > a { display: block; padding: 16px 0; font: 700 28px/1.15 var(--serif); color: #fff; border-bottom: 1px solid #2a2a2a; }
.drawer .menu > li > a:hover { color: var(--accent); text-decoration: none; }
.drawer .sub-menu a { display: block; padding: 10px 0 10px 16px; font-size: 18px; color: #bbb; }
.drawer-social { display: flex; gap: 20px; margin-top: 28px; font-size: 14px; color: #bbb; }

/* ---------------------------------------------------------------- Shared */
.kicker { display: inline-block; font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 6px; }
.kicker-plain { font-size: 14px; font-weight: 700; color: var(--accent); margin-bottom: 8px; }
.meta { font-size: 13px; color: var(--muted); margin: 8px 0 0; }
.meta .sep { margin: 0 4px; color: var(--rule); }
.block-title {
	font: 800 14px/1 var(--sans); border-top: 4px solid #000; padding-top: 10px; margin-bottom: 14px;
	display: flex; align-items: center; gap: 8px;
}
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); display: inline-block; }

.card-media { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #e6e6e6; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.card:hover .card-media img, .lead:hover .card-media img { transform: scale(1.03); }
.ph { position: absolute; inset: 0; background: linear-gradient(135deg, #1b1b1b, #4a4a4a); }
.card-title { font: 700 18px/1.25 var(--sans); }
.card-title a:hover { text-decoration: underline; }
.card-excerpt { font: 16px/1.5 var(--serif); color: #444; margin: 10px 0 0; }
.card-body { padding-top: 12px; }
.card-title, .lead-title, .breaking-list a {
	display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden;
}
.card-title { -webkit-line-clamp: 4; }
.card-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; }

.btn-light, .btn-dark {
	display: inline-block; padding: 12px 24px; font-weight: 700; border-radius: 2px; font-size: 15px;
}
.btn-light { background: #fff; color: #000; }
.btn-dark { background: #000; color: #fff; }
.btn-light:hover, .btn-dark:hover { text-decoration: none; opacity: .88; }

/* ------------------------------------------------------------------ Home */
.hero { display: grid; gap: 32px; padding: 28px 0 8px; }
.breaking-list li { padding: 10px 0; border-bottom: 1px solid var(--rule); }
.breaking-list time { display: block; font-size: 12px; color: var(--accent); font-weight: 700; margin-bottom: 2px; }
.breaking-list a { font-weight: 600; font-size: 15px; line-height: 1.3; -webkit-line-clamp: 3; }
.breaking-list a:hover { text-decoration: underline; }

.lead-title { font: 700 clamp(28px, 4vw, 42px)/1.1 var(--serif); margin: 4px 0 12px; -webkit-line-clamp: 5; }
.lead-media { margin-bottom: 16px; aspect-ratio: 16 / 10; }
.lead-excerpt { font: 18px/1.55 var(--serif); color: #333; margin-bottom: 0; }

.picks-list { display: grid; }
.card-row { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.card-row .card-media { aspect-ratio: 4 / 3; }
.card-row .card-body { padding-top: 0; }
.card-row .card-title { font-size: 15px; -webkit-line-clamp: 3; }
.card-row .meta { margin-top: 4px; font-size: 12px; }

.banner-slot { margin: 32px 0; text-align: center; }
.banner-slot img { margin: 0 auto; }

.home-section { margin-top: 12px; }
.sec-head {
	display: flex; justify-content: space-between; align-items: baseline;
	border-top: 4px solid #000; padding-top: 12px; margin: 40px 0 20px;
}
.sec-head h2 { font: 800 26px/1.1 var(--sans); }
.sec-head h2 a:hover { text-decoration: none; color: var(--accent); }
.sec-more { font-size: 14px; font-weight: 600; color: var(--muted); }

.sec-grid, .list-grid { display: grid; gap: 28px 24px; grid-template-columns: 1fr; }
.card-feature .card-title { font: 700 clamp(22px, 2.6vw, 30px)/1.15 var(--serif); -webkit-line-clamp: 5; }

.mag { background: #000; color: #fff; margin: 56px 0 8px; padding: 40px 0; }
.mag-inner { display: grid; gap: 24px; align-items: center; }
.mag-cover { display: block; }
.mag-cover-empty { display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; width: 180px; aspect-ratio: 3 / 4; border: 2px dashed #555; color: #aaa; font-weight: 600; padding: 12px; }
.mag-cover-empty small { font-weight: 400; font-size: 11px; margin-top: 6px; }
.mag-cover img { width: 180px; box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.mag-text h2 { font: 700 clamp(26px, 3.4vw, 38px)/1.1 var(--serif); margin-bottom: 10px; }
.mag-text p { color: #ccc; max-width: 46ch; margin-bottom: 20px; }

/* --------------------------------------------------------------- Archive */
.archive-head { padding: 40px 0 8px; border-bottom: 4px solid #000; margin-bottom: 28px; }
.archive-head h1 { font: 700 clamp(32px, 5vw, 52px)/1.05 var(--serif); }
.archive-desc { color: var(--muted); max-width: 60ch; margin-top: 10px; }
.empty { padding: 32px 0; color: var(--muted); }
.card-wide .card-media { aspect-ratio: 16 / 9; }

.pagination { margin: 48px 0 16px; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pagination .page-numbers { padding: 10px 16px; border: 1px solid var(--rule); font-weight: 600; font-size: 14px; }
.pagination .page-numbers.current { background: #000; border-color: #000; color: #fff; }
.pagination a.page-numbers:hover { border-color: #000; text-decoration: none; }

/* --------------------------------------------------------------- Article */
.article { max-width: 780px; margin: 0 auto; padding: 40px var(--gutter) 24px; }
.article-title { font: 700 clamp(30px, 5vw, 50px)/1.1 var(--serif); letter-spacing: -.01em; margin: 6px 0 18px; }
.standfirst { font: 400 clamp(18px, 2.2vw, 22px)/1.45 var(--serif); color: #444; margin-bottom: 22px; }
.byline { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 20px; padding: 14px 0; border-top: 1px solid var(--rule); font-size: 14px; }
.byline p { margin: 0; }
.byline a { font-weight: 700; }
.byline .meta { margin: 0; }
.share { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.share a, .share button {
	font-size: 13px; font-weight: 600; padding: 7px 14px; border: 1px solid var(--rule);
	background: #fff; color: var(--text); border-radius: 2px;
}
.share a:hover, .share button:hover { background: #000; color: #fff; border-color: #000; text-decoration: none; }

.article-figure { max-width: 1100px; margin: 0 auto 8px; padding: 0 var(--gutter); }
.article-figure figcaption { font-size: 13px; color: var(--muted); padding: 8px 0; max-width: 780px; margin: 0 auto; }
.article-figure img { width: 100%; }

.entry-content { font: 19px/1.7 var(--serif); padding-top: 24px; overflow-wrap: break-word; }
.entry-content > * { max-width: 100%; }
.entry-content h2 { font: 700 28px/1.2 var(--sans); margin: 1.8em 0 .6em; }
.entry-content h3 { font: 700 22px/1.25 var(--sans); margin: 1.6em 0 .5em; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.entry-content blockquote {
	margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--accent);
	font: italic 22px/1.45 var(--serif);
}
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin-bottom: 1.2em; }
.entry-content ul { list-style: disc; }
.entry-content ol { list-style: decimal; }
.entry-content img { height: auto; }
.entry-content table { width: 100%; border-collapse: collapse; font: 15px/1.4 var(--sans); display: block; overflow-x: auto; }
.entry-content th, .entry-content td { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; }
.alignleft { float: left; margin: .4em 1.4em 1em 0; }
.alignright { float: right; margin: .4em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text, .wp-element-caption { font: 13px/1.4 var(--sans); color: var(--muted); margin-top: 6px; }

.article-foot { margin-top: 32px; }
.tags a { display: inline-block; font-size: 13px; background: var(--soft); padding: 5px 12px; margin: 0 6px 6px 0; border-radius: 2px; }
.author-box { display: flex; gap: 16px; padding: 22px 0; border-top: 4px solid #000; margin-top: 24px; }
.author-box img { border-radius: 50%; width: 72px; height: 72px; }
.author-box h2 { font: 700 18px/1.2 var(--sans); margin-bottom: 4px; }
.author-box p { margin: 0; font-size: 15px; color: #444; }
.related { padding-bottom: 24px; }
.related .sec-head { margin-top: 24px; }

.comments-wrap { padding-top: 0; }
.comments-title { font: 800 22px/1.2 var(--sans); border-top: 4px solid #000; padding-top: 12px; margin: 24px 0 16px; }
.comment-list li { padding: 16px 0; border-bottom: 1px solid var(--rule); list-style: none; }
.comment-list .children { padding-left: 24px; }
.comment-meta { font-size: 13px; color: var(--muted); }
.comment-form input[type=text], .comment-form input[type=email], .comment-form input[type=url], .comment-form textarea {
	width: 100%; padding: 10px 12px; font: inherit; border: 1px solid var(--rule); border-radius: 2px;
}
.comment-form .submit { background: #000; color: #fff; border: 0; padding: 12px 24px; font-weight: 700; border-radius: 2px; }

.not-found { padding: 80px var(--gutter); max-width: 640px; }
.not-found h1 { font: 700 40px/1.1 var(--serif); margin-bottom: 12px; }
.not-found .search-form { margin: 20px 0; }

/* ---------------------------------------------------------------- Footer */
.site-footer { background: #000; color: #fff; margin-top: 64px; padding: 44px 0 28px; }
.foot-top { display: grid; gap: 28px; padding-bottom: 28px; border-bottom: 1px solid #2a2a2a; }
.foot-brand .site-logo { justify-self: start; }
.foot-tag { color: #aaa; font-size: 14px; margin: 10px 0 0; }
.foot-nav .menu { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: 14px; }
.foot-social { display: flex; gap: 20px; font-size: 14px; }
.foot-partners { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; padding: 28px 0; border-bottom: 1px solid #2a2a2a; }
.foot-partners .widget img { max-height: 56px; width: auto; background: #fff; padding: 6px; }
.foot-partners .widget-title { display: none; }
.foot-copy { margin: 24px 0 0; font-size: 13px; color: #999; }

/* ------------------------------------------------------------ Breakpoints */
@media (min-width: 640px) {
	.sec-grid, .list-grid { grid-template-columns: repeat(2, 1fr); }
	.mag-inner { grid-template-columns: auto 1fr; gap: 40px; }
	.burger-label { display: inline; }
	.foot-top { grid-template-columns: 1fr auto; }
	.foot-nav { grid-column: 1 / -1; order: 3; }
}
@media (min-width: 1000px) {
	.hero { grid-template-columns: 250px minmax(0, 1fr) 300px; gap: 36px; }
	.hero-lead { order: 0; }
	.sec-grid { grid-template-columns: repeat(4, 1fr); }
	.sec-grid .card-feature { grid-column: span 2; grid-row: span 2; }
	.list-grid { grid-template-columns: repeat(3, 1fr); }
	.list-grid .card-wide { grid-column: span 3; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
	.list-grid .card-wide .card-body { padding-top: 0; }
	.list-grid.list-4 { grid-template-columns: repeat(4, 1fr); }
	.foot-top { grid-template-columns: auto 1fr auto; align-items: center; }
	.foot-nav { grid-column: auto; order: 0; }
	.foot-nav .menu { justify-content: center; }
}
@media (max-width: 999px) {
	.hero-breaking { order: 2; }
	.hero-picks { order: 3; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; scroll-behavior: auto !important; }
}
@media print {
	.hdr-main, .cat-nav, .drawer, .share, .site-footer, .related, .banner-slot { display: none !important; }
	.entry-content { font-size: 12pt; }
}

/* Corecții: bara de admin, coloane hero, meniu lateral */
body.admin-bar .drawer, body.admin-bar .drawer-overlay { top: 32px; }
@media (max-width: 782px) { body.admin-bar .drawer, body.admin-bar .drawer-overlay { top: 46px; } }
.hero > * { min-width: 0; }
.card-row { grid-template-columns: 96px minmax(0, 1fr); }
.mag { margin: 32px 0 0; }

/* Ediții anterioare */
.mag-price { font-weight: 700; color: #fff; margin-bottom: 14px; }
.mag-prev { margin-top: 36px; padding-top: 28px; border-top: 1px solid #2a2a2a; }
.mag-prev-title { font: 800 14px/1 var(--sans); margin-bottom: 20px; }
.prev-grid { display: grid; gap: 24px; grid-template-columns: 1fr; }
.prev-item { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: center; }
.prev-cover { display: block; }
.prev-cover img { width: 96px; box-shadow: 0 6px 18px rgba(0,0,0,.6); }
.prev-cover .mag-cover-empty { width: 96px; font-size: 11px; padding: 6px; }
.prev-cover .mag-cover-empty small { display: none; }
.prev-info h4 { font: 700 17px/1.25 var(--serif); margin-bottom: 6px; }
.prev-info .mag-price { margin-bottom: 10px; font-size: 14px; color: #ccc; }
.btn-small { padding: 8px 16px; font-size: 14px; }
@media (min-width: 640px) { .prev-grid { grid-template-columns: repeat(3, 1fr); } }
