/*
Theme Name:   PressCenter
Description:  Temă proprie pentru presscenter.ro (identitatea vizuală a presscenter.hu). Șabloanele de conținut și stilurile lor vin din mu-pluginul PressCenter Core.
Author:       Netring
Version:      1.0
Requires at least: 6.5
Requires PHP: 8.0
License:      GNU General Public License v2 or later
Text Domain:  presscenter
*/

:root {
	--pc-ink: #14213d;
	--pc-ink-2: #3a4a66;
	--pc-muted: #6b7689;
	--pc-line: #e3e7ee;
	--pc-soft: #f4f6f9;
	--pc-accent: #f56a0c;
	--pc-accent-dark: #d4580a;
	--pc-text: #26324a;
	--pc-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
	--pc-width: 1240px;
}

/* ---------- Bază ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	background: #fff;
	color: var(--pc-text);
	font-family: var(--pc-font);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--pc-accent-dark); }
a:hover { color: var(--pc-ink); }
h1, h2, h3, h4, h5, h6 { color: var(--pc-ink); font-family: var(--pc-font); font-weight: 700; line-height: 1.25; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--pc-line); margin: 32px 0; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--pc-accent); outline-offset: 2px; }

.site-container { width: 100%; max-width: var(--pc-width); margin: 0 auto; padding-left: 24px; padding-right: 24px; }
@media (max-width: 640px) { .site-container { padding-left: 16px; padding-right: 16px; } }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	left: 12px; top: 12px; z-index: 1000; padding: 10px 16px;
	background: #fff; color: var(--pc-ink); box-shadow: 0 2px 8px rgba(0,0,0,.2);
}

/* ---------- Antet ---------- */
.pc-header { background: #fff; }
.pc-header__main { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 92px; }
.pc-brand { display: flex; align-items: center; gap: 18px; min-width: 0; }
.pc-brand .custom-logo-link { display: block; line-height: 0; flex: none; }
.pc-brand .custom-logo { display: block; width: auto; max-width: 300px; max-height: 48px; }
.pc-logo-text { font-size: 28px; font-weight: 800; color: var(--pc-ink); text-decoration: none; letter-spacing: -.01em; }
.pc-tagline { padding-left: 18px; border-left: 1px solid var(--pc-line); font-size: 13px; line-height: 1.4; color: var(--pc-muted); }

.pc-nav { background: var(--pc-ink); }
.pc-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; }
.pc-menu > li > a {
	display: block; padding: 13px 14px; line-height: 22px;
	color: #dfe5ef; font-size: 15px; font-weight: 600; text-decoration: none;
}
.pc-menu > li:first-child > a { padding-left: 0; }
.pc-menu > li > a:hover,
.pc-menu > li.current-menu-item > a,
.pc-menu > li.current-menu-parent > a,
.pc-menu > li.current-post-ancestor > a,
.pc-menu > li.current-category-ancestor > a { color: #fff; }
.pc-menu > li.current-menu-item:not(.pc-menu-cta) > a,
.pc-menu > li.current-menu-parent:not(.pc-menu-cta) > a,
.pc-menu > li.current-post-ancestor:not(.pc-menu-cta) > a { box-shadow: inset 0 -3px 0 var(--pc-accent); }
.pc-menu > li.pc-menu-cta { margin-left: auto; }
.pc-menu > li.pc-menu-cta > a { background: var(--pc-accent); color: #fff; border-radius: 4px; padding: 6px 14px; margin: 7px 0; }
.pc-menu > li.pc-menu-cta > a:hover { background: var(--pc-accent-dark); }

.pc-nav-toggle {
	display: none; align-items: center; gap: 8px;
	background: none; border: 1px solid var(--pc-line); border-radius: 4px;
	padding: 8px 12px; color: var(--pc-ink); font-weight: 600; font-size: 14px; cursor: pointer;
}
.pc-nav-toggle__bars, .pc-nav-toggle__bars::before, .pc-nav-toggle__bars::after {
	display: block; width: 18px; height: 2px; background: currentColor; position: relative; content: "";
}
.pc-nav-toggle__bars::before { position: absolute; top: -6px; }
.pc-nav-toggle__bars::after { position: absolute; top: 6px; }

@media (max-width: 1024px) {
	.pc-tagline { display: none; }
}
@media (max-width: 900px) {
	.pc-header__main { min-height: 68px; }
	.pc-brand .custom-logo { max-width: 200px; max-height: 32px; }
	.pc-nav-toggle { display: inline-flex; }
	.pc-nav { display: none; }
	.pc-nav.is-open { display: block; }
	.pc-menu { flex-direction: column; align-items: stretch; padding: 6px 0 14px; }
	.pc-menu > li > a, .pc-menu > li:first-child > a { padding: 11px 0; border-bottom: 1px solid rgba(255,255,255,.08); }
	.pc-menu > li.current-menu-item:not(.pc-menu-cta) > a { box-shadow: inset 3px 0 0 var(--pc-accent); padding-left: 12px; }
	.pc-menu > li.pc-menu-cta { margin: 12px 0 0; }
	.pc-menu > li.pc-menu-cta > a { text-align: center; padding: 11px 14px; margin: 0; border: 0; }
}

/* ---------- Subsol ---------- */
.pc-main { display: block; min-height: 50vh; }
.pc-footer { background: #f2f5f7; border-top: 3px solid var(--pc-ink); color: #3a4f66; font-size: 14px; text-align: center; padding: 26px 0 30px; }
.pc-footer__menu { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; }
.pc-footer__menu li + li::before { content: "·"; margin: 0 10px; color: var(--pc-muted); }
.pc-footer__menu a { color: var(--pc-ink); text-decoration: none; font-weight: 500; }
.pc-footer__menu a:hover { color: var(--pc-accent-dark); }
.pc-footer__copy { margin: 0; color: var(--pc-muted); }

/* ---------- Conținut (articole, pagini) ---------- */
.entry-content { color: var(--pc-text); }
.entry-content > * { margin-top: 0; }
.entry-content p, .entry-content ul, .entry-content ol { margin: 0 0 20px; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content li { margin-bottom: 8px; }
.entry-content h2 { font-size: 26px; margin: 40px 0 14px; }
.entry-content h3 { font-size: 21px; margin: 30px 0 10px; }
.entry-content h4 { font-size: 18px; margin: 24px 0 8px; }
.entry-content a { color: var(--pc-accent-dark); text-decoration: underline; text-underline-offset: 3px; }
.entry-content img { border-radius: 4px; }
.entry-content figure { margin: 28px 0; }
.entry-content figcaption, .wp-element-caption { font-size: 13px; color: var(--pc-muted); margin-top: 6px; }
.entry-content blockquote { border-left: 4px solid var(--pc-accent); margin: 28px 0; padding: 4px 0 4px 22px; font-size: 20px; color: var(--pc-ink); }
.entry-content table { width: 100%; border-collapse: collapse; margin: 0 0 24px; font-size: 15px; }
.entry-content th, .entry-content td { border: 1px solid var(--pc-line); padding: 8px 12px; text-align: left; }
.entry-content th { background: var(--pc-soft); }
.alignleft { float: left; margin: 6px 24px 16px 0; }
.alignright { float: right; margin: 6px 0 16px 24px; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.entry-content::after { content: ""; display: table; clear: both; }
.wp-block-image img { display: block; }
.wp-block-button__link { background: var(--pc-accent); color: #fff !important; border-radius: 4px; padding: 12px 22px; font-weight: 700; text-decoration: none !important; display: inline-block; }
.wp-block-button__link:hover { background: var(--pc-accent-dark); }
.wp-block-separator { border: 0; border-top: 1px solid var(--pc-line); }
.has-text-align-center { text-align: center; }

/* Pagini statice */
.pc-page__body { max-width: 760px; font-size: 17px; line-height: 1.75; }
.pc-page__body > p:first-child { font-size: 19px; color: var(--pc-ink-2); }

/* Formulare, căutare */
.search-form { display: flex; gap: 8px; max-width: 520px; margin: 12px 0 0; }
.search-form label { flex: 1; }
.search-field, .entry-content input[type="text"], .entry-content input[type="email"], .entry-content textarea {
	width: 100%; padding: 10px 12px; border: 1px solid #cfd6e0; border-radius: 4px; background: #fff; color: var(--pc-ink);
}
.search-submit, .entry-content button[type="submit"] {
	background: var(--pc-ink); color: #fff; border: 0; border-radius: 4px; padding: 10px 18px; font-weight: 600; cursor: pointer;
}
.search-submit:hover { background: var(--pc-accent-dark); }
