/*
Theme Name: ZE Magazine Express
Theme URI: https://zonaenduro.ro/
Author: Zona Enduro
Author URI: https://zonaenduro.ro/
Description: Temă editorială WordPress rapidă, fără sidebar și fără meniu sticky, optimizată mobile-first pentru știri, articole video și advertoriale.
Version: 2.2.0
Requires at least: 7.0
Tested up to: 7.0.2
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: ze-magazine
Tags: blog, news, one-column, custom-logo, custom-menu, featured-images, post-formats, wide-blocks
*/

:root {
  --ze-bg: #0a0b0d;
  --ze-surface: #121418;
  --ze-surface-2: #191c21;
  --ze-text: #f7f7f5;
  --ze-muted: #a8adb6;
  --ze-border: #2a2e35;
  --ze-accent: #f24822;
  --ze-yellow: #ffd400;
  --ze-max: 1240px;
  --ze-content: 820px;
  --ze-radius: 12px;
  --ze-font: Arial, Helvetica, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--ze-bg);
  color: var(--ze-text);
  font-family: var(--ze-font);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, svg, video, iframe { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--ze-yellow); }
button, input, textarea, select { font: inherit; }

.screen-reader-text,
.skip-link:not(:focus) {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  z-index: 9999;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: #fff;
  color: #000;
}

.ze-container { width: min(calc(100% - 28px), var(--ze-max)); margin-inline: auto; }
.ze-content-width { width: min(100%, var(--ze-content)); margin-inline: auto; }
.site-main { min-height: 60vh; }

/* Header: static, no sticky, no frontend JS. */
.site-header { background: #08090b; border-bottom: 1px solid var(--ze-border); }
.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-branding { display: flex; align-items: center; min-width: 0; }
.custom-logo { width: auto; max-height: 50px; }
.primary-navigation ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-navigation a { display: block; padding: 9px 10px; font-size: .78rem; line-height: 1; font-weight: 900; text-transform: uppercase; white-space: nowrap; }
.primary-navigation .current-menu-item > a,
.primary-navigation .current_page_item > a { background: var(--ze-accent); color: #fff; }

/* Shared editorial elements. */
.ze-section { margin-block: clamp(28px, 5vw, 58px); }
.ze-section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; padding-bottom: 9px; margin-bottom: 15px; border-bottom: 2px solid var(--ze-border); }
.ze-section-title { margin: 0; font-size: clamp(1.25rem, 2.3vw, 2rem); line-height: .95; letter-spacing: -.055em; text-transform: uppercase; }
.ze-section-link { color: var(--ze-muted); font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.ze-kicker {
  --ze-category-color: var(--ze-accent);
  --ze-category-text: #fff;
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  background: var(--ze-category-color);
  color: var(--ze-category-text);
  font-size: .68rem;
  line-height: 1;
  font-weight: 950;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.ze-kicker:hover { color: var(--ze-category-text); filter: brightness(1.08); }
.title-highlight {
  display: inline;
  padding-inline: .12em;
  background: linear-gradient(#d71920 0 0) 0 55% / 100% .84em no-repeat;
  color: #fff;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.ze-inline-highlight {
  display: inline;
  padding-inline: .12em;
  background: #d71920;
  color: #fff;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 7px 12px; color: var(--ze-muted); font-size: .76rem; font-weight: 700; }

/* Home. */
.hero-grid { display: grid; grid-template-columns: 1.55fr 1fr; gap: 14px; margin-top: 20px; }
.hero-main,
.hero-side-card,
.ze-card,
.ze-mini-card { background: var(--ze-surface); border: 1px solid var(--ze-border); overflow: hidden; }
.hero-main { min-height: 520px; position: relative; }
.hero-main > a { display: block; height: 100%; }
.hero-main-media { position: absolute; inset: 0; }
.hero-main-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-main-shade { position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.94), rgba(0,0,0,.1) 68%); }
.hero-main-content { position: absolute; inset: auto 0 0; padding: clamp(18px, 4vw, 38px); }
.hero-main-title { max-width: 900px; margin: 10px 0 11px; font-size: clamp(2rem, 5vw, 4.9rem); line-height: .88; letter-spacing: -.075em; font-weight: 950; text-transform: uppercase; }
.hero-side { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hero-side-card a { display: flex; height: 100%; flex-direction: column; }
.hero-side-card .card-media { flex: 1 1 auto; min-height: 150px; }
.hero-side-card .card-body { flex: 0 0 auto; }

.posts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ze-card { min-width: 0; }
.ze-card > a { display: block; }
.card-media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: var(--ze-surface-2); }
.card-media img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 12px 13px 14px; }
.card-title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; margin: 7px 0 7px; font-size: clamp(1rem, 1.45vw, 1.32rem); line-height: .98; letter-spacing: -.045em; font-weight: 950; text-transform: uppercase; }
.card-excerpt { margin: 0; color: var(--ze-muted); font-size: .87rem; line-height: 1.4; }

.home-category-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 16px; }
.home-category-grid > .ze-card .card-title { font-size: clamp(1.25rem, 2.4vw, 2.15rem); }
.mini-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ze-mini-card > a { display: grid; grid-template-columns: 116px minmax(0, 1fr); min-height: 100%; }
.mini-media { background: var(--ze-surface-2); }
.mini-media img { width: 100%; height: 100%; object-fit: cover; }
.mini-body { min-width: 0; padding: 10px; }
.mini-title { display: -webkit-box; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 4; margin: 6px 0; font-size: .95rem; line-height: 1; letter-spacing: -.035em; font-weight: 950; text-transform: uppercase; }

/* Archive and search. */
.archive-header { padding-block: clamp(28px, 6vw, 62px) 20px; border-bottom: 1px solid var(--ze-border); }
.archive-title { margin: 0; font-size: clamp(2rem, 7vw, 5.4rem); line-height: .88; letter-spacing: -.075em; font-weight: 950; text-transform: uppercase; }
.archive-description { max-width: 760px; color: var(--ze-muted); }
.pagination .nav-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 7px; margin-block: 32px; }
.page-numbers { padding: 7px 10px; background: var(--ze-surface); border: 1px solid var(--ze-border); font-weight: 800; }
.page-numbers.current { background: var(--ze-accent); border-color: var(--ze-accent); color: #fff; }

/* Single post: one column, no sidebar. */
.single-header { padding-block: clamp(26px, 5vw, 52px) 20px; }
.ze-single-eyebrow { display: flex; align-items: center; gap: 12px 18px; width: 100%; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.ze-single-eyebrow::-webkit-scrollbar { display: none; }
.ze-single-eyebrow > .ze-kicker { flex: 0 0 auto; }
.single-title { max-width: 1060px; margin: 12px 0 12px; font-size: clamp(2rem, 6vw, 5rem); line-height: .86; letter-spacing: -.078em; font-weight: 950; text-transform: uppercase; }
.single-featured { margin-bottom: 24px; background: var(--ze-surface); }
.single-featured img { width: 100%; max-height: 720px; object-fit: cover; }
.entry-content { font-size: clamp(1.02rem, 1.4vw, 1.15rem); color: #f0f1f2; }
.entry-content > * { margin-top: 0; margin-bottom: 1.2em; }
.entry-content a { color: var(--ze-yellow); text-decoration: underline; text-underline-offset: 3px; }
.entry-content h2,
.entry-content h3,
.entry-content h4 { margin-top: 1.55em; line-height: .98; letter-spacing: -.05em; }
.entry-content h2 { font-size: clamp(1.7rem, 4vw, 3.2rem); }
.entry-content h3 { font-size: clamp(1.4rem, 3vw, 2.3rem); }
.entry-content blockquote { margin-inline: 0; padding: 16px 18px; background: var(--ze-surface); border-left: 4px solid var(--ze-accent); font-size: 1.08em; font-weight: 700; }
.entry-content .alignwide { width: min(1100px, calc(100vw - 28px)); max-width: none; margin-left: 50%; transform: translateX(-50%); }
.entry-content .alignfull { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.post-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 26px; }
.post-tags a { padding: 6px 9px; border: 1px solid var(--ze-border); color: var(--ze-muted); font-size: .76rem; }
.post-navigation { margin-top: 30px; padding-top: 20px; border-top: 1px solid var(--ze-border); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-navigation a { display: block; padding: 12px; background: var(--ze-surface); border: 1px solid var(--ze-border); font-size: .84rem; font-weight: 800; }

/* Sponsored articles. */
.ze-sponsored-by { display: flex; align-items: center; flex-wrap: wrap; width: fit-content; max-width: 100%; gap: 10px; margin: 0 0 16px; padding: 9px 12px; background: #fff; color: #111; border-radius: 4px; font-size: .78rem; font-weight: 800; letter-spacing: 0; text-transform: none; }
.ze-sponsored-label { flex: 0 0 auto; color: #111; }
.ze-sponsored-link { display: inline-flex; align-items: center; min-height: 30px; color: #111; }
.ze-sponsored-link:hover { color: #111; opacity: .8; }
.ze-sponsored-logo { width: auto; max-width: 180px; max-height: 42px; object-fit: contain; }
.ze-sponsored-name { color: #111; font-size: .96rem; letter-spacing: 0; }

/* Performance-oriented YouTube facade; iframe loads only after interaction. */
.ze-lite-video { position: relative; aspect-ratio: 16 / 9; margin-bottom: 24px; overflow: hidden; background: #000; cursor: pointer; }
.ze-lite-video-poster { width: 100%; height: 100%; object-fit: cover; }
.ze-lite-video::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.28), rgba(0,0,0,.04)); pointer-events: none; }
.ze-lite-video-button { position: absolute; z-index: 2; left: 50%; top: 50%; width: 72px; height: 50px; margin: -25px 0 0 -36px; padding: 0; border: 0; border-radius: 11px; background: #ff0000; cursor: pointer; }
.ze-lite-video-button::before { content: ""; position: absolute; left: 29px; top: 14px; border-style: solid; border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
.ze-lite-video iframe { width: 100%; height: 100%; border: 0; }

/* Related blocks after every post. */
.after-post-blocks { margin-top: clamp(38px, 7vw, 72px); border-top: 4px solid var(--ze-text); }
.after-post-section { padding-top: 24px; content-visibility: auto; contain-intrinsic-size: 650px; }
.after-post-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.after-post-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.after-post-grid .card-excerpt { display: none; }
.after-post-grid .card-title { font-size: clamp(.9rem, 1.3vw, 1.12rem); }

/* Forms and comments. */
.search-form { display: flex; gap: 7px; }
.search-field, textarea, input[type="text"], input[type="email"], input[type="url"] { width: 100%; padding: 10px 11px; border: 1px solid var(--ze-border); background: var(--ze-surface); color: #fff; }
.search-submit, input[type="submit"], button[type="submit"] { border: 0; padding: 10px 14px; background: var(--ze-accent); color: #fff; font-weight: 900; cursor: pointer; }
.comments-area { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--ze-border); }
.comment-list { padding-left: 20px; }
.comment-body { margin-bottom: 20px; }

.site-footer { margin-top: 64px; border-top: 1px solid var(--ze-border); background: #07080a; }
.footer-inner { display:flex; flex-direction:column; align-items:center; justify-content:center; gap:18px; padding-block:clamp(38px,6vw,68px); color:var(--ze-muted); text-align:center; }
.ze-footer-brand { display:flex; flex-direction:column; align-items:center; gap:5px; }
.ze-footer-brand-name { color:#fff; font-size:clamp(1.35rem,3vw,2rem); font-weight:900; letter-spacing:.055em; text-transform:uppercase; }
.ze-footer-tagline { max-width:600px; font-size:.88rem; }
.ze-footer-copy { font-size:.76rem; }
.footer-menu { display:flex; justify-content:center; flex-wrap:wrap; gap:10px 18px; list-style:none; padding:0; margin:0; font-size:.75rem; font-weight:800; text-transform:uppercase; }

.no-thumb { display: grid; place-items: center; width: 100%; height: 100%; min-height: 130px; background: var(--ze-surface-2); color: #646b76; font-size: 2rem; font-weight: 950; }

@media (max-width: 980px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 12px; padding-block: 13px 9px; }
  .primary-navigation { width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; scrollbar-width: thin; }
  .primary-navigation ul { width: max-content; padding-bottom: 5px; }
  .hero-grid, .home-category-grid { grid-template-columns: 1fr; }
  .hero-main { min-height: 470px; }
  .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .after-post-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .ze-container { width: min(calc(100% - 20px), var(--ze-max)); }
  .custom-logo { max-height: 42px; }
  .primary-navigation a { padding: 8px; font-size: .72rem; }
  .hero-grid { gap: 10px; margin-top: 10px; }
  .hero-main { min-height: 410px; }
  .hero-main-title { font-size: clamp(2rem, 12vw, 3.5rem); }
  .hero-side { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-side-card .card-media { min-height: 105px; }
  .hero-side-card .card-body { padding: 9px; }
  .hero-side-card .card-title { font-size: .9rem; }
  .posts-grid { grid-template-columns: 1fr; gap: 12px; }
  .card-body { padding: 10px 11px 12px; }
  .card-title { font-size: 1.08rem; }
  .card-excerpt { display: none; }
  .mini-grid { grid-template-columns: 1fr; }
  .ze-mini-card > a { grid-template-columns: 105px minmax(0, 1fr); }
  .single-title { font-size: clamp(2rem, 13vw, 3.7rem); }
  .single-header { padding-top: 22px; }
  .single-featured, .ze-lite-video { margin-inline: -10px; }
  .entry-content .alignwide { width: calc(100vw - 20px); }
  .post-navigation .nav-links { grid-template-columns: 1fr; }
  .after-post-grid,
  .after-post-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .after-post-grid .card-body { padding: 8px; }
  .after-post-grid .card-title { font-size: .82rem; line-height: .98; }
  .after-post-grid .post-meta { display: none; }
  .ze-sponsored-logo { max-width: 145px; max-height: 34px; }
}

/* Configurable homepage filter and advertising positions. */
.ze-home-filter-section { margin-top: 20px; }
.ze-home-filter {
  display: grid;
  grid-template-columns: minmax(180px, .75fr) minmax(240px, 1.5fr) auto auto;
  align-items: end;
  gap: 10px;
  padding: 12px;
  background: var(--ze-surface);
  border: 1px solid var(--ze-border);
}
.ze-home-filter label { display: grid; gap: 5px; min-width: 0; }
.ze-home-filter label > span { color: var(--ze-muted); font-size: .68rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.ze-home-filter select,
.ze-home-filter input[type="search"] { width: 100%; min-height: 42px; padding: 9px 10px; border: 1px solid var(--ze-border); border-radius: 0; background: var(--ze-bg); color: #fff; }
.ze-home-filter button { min-height: 42px; }
.ze-filter-reset { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 12px; border: 1px solid var(--ze-border); color: var(--ze-muted); font-size: .75rem; font-weight: 900; text-transform: uppercase; }
.ze-filter-count { color: var(--ze-muted); font-size: .78rem; font-weight: 800; }

.ze-home-banner-wrap { margin-block: clamp(20px, 4vw, 42px); }
.ze-home-banner { width: 100%; overflow: hidden; text-align: center; }
.ze-home-banner > * { max-width: 100%; }
.ze-home-banner iframe { width: 100%; border: 0; }
.ze-home-banner img { display: inline-block; }
.ze-home-banner-wrap.is-full-width { width: 100%; }

.hero-grid.has-one-post,
.home-category-grid.has-one-post { grid-template-columns: 1fr; }
.ze-mini-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ze-mini-grid-wide .ze-mini-card > a { grid-template-columns: 150px minmax(0, 1fr); }

@media (max-width: 820px) {
  .ze-home-filter { grid-template-columns: 1fr 1fr; }
  .ze-home-filter button,
  .ze-filter-reset { width: 100%; }
}

@media (max-width: 620px) {
  .ze-home-filter-section { margin-top: 10px; }
  .ze-home-filter { grid-template-columns: 1fr; padding: 10px; }
  .ze-mini-grid-wide { grid-template-columns: 1fr; }
  .ze-mini-grid-wide .ze-mini-card > a { grid-template-columns: 105px minmax(0, 1fr); }
}


/* Article ads, sharing and footer social links. */
.ze-article-banner{margin:clamp(22px,4vw,42px) 0;text-align:center;overflow:hidden}.ze-article-banner>*{max-width:100%}.ze-article-banner iframe{max-width:100%;border:0}
.ze-share-bar{margin:26px auto;padding:18px 14px;border:0;border-radius:12px;background:#202329;text-align:center}.ze-share-title{display:block;margin-bottom:12px;font-size:.76rem;letter-spacing:.055em;text-transform:uppercase}.ze-share-actions{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:9px}.ze-share-button{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:9px 12px;border:0;border-radius:9px;background:#30343b;color:#fff;font:inherit;font-size:.72rem;font-weight:800;cursor:pointer;transition:transform .18s ease,background-color .18s ease,color .18s ease}.ze-share-button:hover,.ze-share-button:focus-visible{background:#3b4048;color:#fff;transform:translateY(-2px)}.ze-share-button svg{width:19px;height:19px;fill:currentColor;flex:none}.ze-share-status{display:block;min-height:1em;margin-top:7px;color:var(--ze-muted);font-size:.7rem}
.ze-footer-social{display:flex;flex-direction:column;align-items:center;gap:12px}.ze-footer-social>strong{color:#fff;font-size:.76rem;text-transform:uppercase;letter-spacing:.06em}.ze-footer-social-links{display:flex;justify-content:center;gap:11px;flex-wrap:wrap}.ze-footer-social-links a{display:inline-flex;align-items:center;justify-content:center;width:48px;height:48px;border-radius:50%;background:#171a1f;color:#fff;transition:transform .18s ease,background-color .18s ease,color .18s ease}.ze-footer-social-links a:hover,.ze-footer-social-links a:focus-visible{background:var(--ze-accent);color:#fff;transform:translateY(-3px)}.ze-footer-social-links svg{width:32px;height:32px;fill:currentColor;flex:none}.ze-footer-social-links a span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.ze-single-meta{display:flex;align-items:center;justify-content:flex-start;flex:0 0 auto;flex-wrap:nowrap;gap:8px 16px;margin:0;color:var(--ze-muted);font-size:.78rem;font-weight:700;white-space:nowrap}.ze-single-meta-item{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto}.ze-single-meta-item svg{width:15px;height:15px;fill:currentColor;flex:none}.ze-single-meta a:hover{color:#fff}
@media(max-width:620px){.ze-share-button{padding:9px;width:44px}.ze-share-button span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.ze-footer-social-links a{width:50px;height:50px}.ze-footer-social-links svg{width:34px;height:34px}.ze-single-eyebrow{gap:10px}.ze-single-meta{gap:7px 12px;font-size:.72rem}.ze-single-meta-item svg{width:14px;height:14px}.ze-single-eyebrow .ze-kicker{padding:6px 8px}}
