/* ==========================================================================
   BPM · futuristic skin pentru tema Atomik (Concrete CMS 9)
   Locație: /application/css/bpm-future.css
   Inclus din: Dashboard > System & Settings > SEO & Statistics > Tracking Codes (Header)
   Nu modifică nimic din /concrete — supraviețuiește update-urilor.
   ========================================================================== */

:root {
  --bpm-bg: #060912;
  --bpm-bg-2: #0a0f1e;
  --bpm-panel: rgba(13, 20, 38, 0.72);
  --bpm-panel-solid: #0d1426;
  --bpm-line: rgba(148, 163, 184, 0.14);
  --bpm-line-strong: rgba(148, 163, 184, 0.28);
  --bpm-text: #e6ebf5;
  --bpm-muted: #8b98b0;
  --bpm-dim: #5b6680;
  --bpm-cyan: #22d3ee;
  --bpm-blue: #3b82f6;
  --bpm-violet: #a78bfa;
  --bpm-green: #34d399;
  --bpm-grad: linear-gradient(120deg, #22d3ee 0%, #3b82f6 45%, #a78bfa 100%);
  --bpm-font: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --bpm-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --bpm-radius: 16px;
  --bpm-max: 1120px;
}

/* ---------- Canvas ---------- */
html, body { background: var(--bpm-bg); }

body {
  color: var(--bpm-text);
  font-family: var(--bpm-font);
  -webkit-font-smoothing: antialiased;
}

.ccm-page.theme-atomik {
  position: relative;
  min-height: 100vh;
  color: var(--bpm-text);
  font-family: var(--bpm-font);
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(167, 139, 250, 0.16), transparent 60%),
    radial-gradient(800px 500px at -10% 10%, rgba(34, 211, 238, 0.12), transparent 60%),
    var(--bpm-bg);
  overflow-x: hidden;
}

/* grilă subtilă, estompată spre margini */
.ccm-page.theme-atomik::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 900px;
  background-image:
    linear-gradient(var(--bpm-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--bpm-line) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
          mask-image: radial-gradient(ellipse 70% 60% at 50% 0%, #000 30%, transparent 75%);
  pointer-events: none;
  z-index: 0;
}
.ccm-page.theme-atomik > * { position: relative; z-index: 1; }

.ccm-page ::selection { background: rgba(34, 211, 238, 0.3); color: #fff; }

/* ---------- Header / nav ---------- */
.bpm-nav {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  background: rgba(6, 9, 18, 0.62);
  border-bottom: 1px solid var(--bpm-line);
}
.bpm-nav__inner {
  max-width: var(--bpm-max);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.bpm-nav__logo { display: inline-flex; align-items: center; text-decoration: none; }
.bpm-nav__logo svg { height: 36px; width: auto; display: block; }
.bpm-nav__links { display: flex; align-items: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.bpm-nav__links a {
  font-family: var(--bpm-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
  color: var(--bpm-muted);
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  transition: color .2s, background .2s;
}
.bpm-nav__links a:hover { color: var(--bpm-text); background: rgba(148, 163, 184, 0.08); }
.bpm-nav__links a.is-cta {
  color: #04121a;
  background: var(--bpm-cyan);
  font-weight: 600;
}
.bpm-nav__links a.is-cta:hover { background: #67e8f9; color: #04121a; }

/* (dacă păstrezi vechiul <img> de logo, măcar îl facem vizibil pe dark) */
.ccm-page > a > img[src*="bpm-logo"] { filter: invert(1) hue-rotate(180deg) brightness(1.2); margin: 16px 24px; }

/* ---------- Breadcrumb ca „path” de terminal ---------- */
.ccm-page nav[aria-label="breadcrumb"] {
  max-width: var(--bpm-max);
  margin: 0 auto;
  padding: 18px 24px 0;
}
.ccm-page .breadcrumb {
  margin: 0;
  padding: 0;
  background: none;
  font-family: var(--bpm-mono);
  font-size: 12.5px;
  color: var(--bpm-dim);
}
.ccm-page .breadcrumb::before { content: "~/"; color: var(--bpm-cyan); margin-right: 6px; }
.ccm-page .breadcrumb-item + .breadcrumb-item::before { content: "/"; color: var(--bpm-dim); }
.ccm-page .breadcrumb-item a { color: var(--bpm-muted); text-decoration: none; }
.ccm-page .breadcrumb-item a:hover { color: var(--bpm-cyan); }
.ccm-page .breadcrumb-item.active { color: var(--bpm-text); }
/* pe Home breadcrumb-ul nu are sens */
.ccm-page-id-1 nav[aria-label="breadcrumb"] { display: none; }

/* ---------- Utilitare ---------- */
.bpm-wrap { max-width: var(--bpm-max); margin: 0 auto; padding: 0 24px; }
.bpm-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--bpm-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--bpm-cyan);
}
.bpm-eyebrow::before { content: ""; width: 24px; height: 1px; background: currentColor; opacity: .7; }
.bpm-grad-text {
  background: var(--bpm-grad);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
}
.bpm-section-title {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  font-weight: 700; letter-spacing: -0.02em;
  color: var(--bpm-text); margin: 10px 0 0;
}

/* ---------- HERO (home) ---------- */
.bpm-hero { padding: clamp(48px, 9vw, 110px) 0 56px; }
.bpm-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 48px;
  align-items: center;
}
.bpm-status {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--bpm-line-strong);
  border-radius: 999px;
  background: rgba(13, 20, 38, 0.6);
  font-family: var(--bpm-mono); font-size: 12px; color: var(--bpm-muted);
}
.bpm-status__dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--bpm-green);
  box-shadow: 0 0 0 0 rgba(52, 211, 153, .6);
  animation: bpm-pulse 2.4s infinite;
}
@keyframes bpm-pulse {
  0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, .55); }
  70% { box-shadow: 0 0 0 10px rgba(52, 211, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}
.bpm-hero__title {
  font-size: clamp(2.3rem, 5.4vw, 4.1rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin: 22px 0 20px;
  color: var(--bpm-text);
}
.bpm-hero__lead {
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.65;
  color: var(--bpm-muted);
  max-width: 540px;
  margin: 0 0 32px;
}
.bpm-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.bpm-btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 12px;
  font-weight: 600; font-size: 15px; text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease, background .2s, border-color .2s;
}
.bpm-btn svg { transition: transform .2s ease; }
.bpm-btn:hover svg { transform: translateX(4px); }
.bpm-btn--primary {
  color: #04121a; background: var(--bpm-grad);
  box-shadow: 0 10px 30px -10px rgba(34, 211, 238, .55);
}
.bpm-btn--primary:hover { color: #04121a; transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(59, 130, 246, .7); }
.bpm-btn--ghost {
  color: var(--bpm-text); border: 1px solid var(--bpm-line-strong); background: rgba(13, 20, 38, .5);
}
.bpm-btn--ghost:hover { color: var(--bpm-text); border-color: var(--bpm-cyan); }

/* terminal */
.bpm-term {
  position: relative;
  border-radius: var(--bpm-radius);
  background: linear-gradient(180deg, rgba(15, 23, 42, .92), rgba(8, 12, 24, .92));
  border: 1px solid var(--bpm-line-strong);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8), 0 0 0 1px rgba(34, 211, 238, .05), 0 0 80px -20px rgba(59, 130, 246, .35);
  overflow: hidden;
  font-family: var(--bpm-mono);
  font-size: 13px;
}
.bpm-term::after { /* scanline discret */
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(255,255,255,.018) 0 1px, transparent 1px 3px);
}
.bpm-term__bar {
  display: flex; align-items: center; gap: 7px;
  padding: 12px 14px; border-bottom: 1px solid var(--bpm-line);
  color: var(--bpm-dim); font-size: 11.5px;
}
.bpm-term__bar i { width: 10px; height: 10px; border-radius: 50%; background: #334155; display: block; }
.bpm-term__bar i:nth-child(1) { background: #f87171; }
.bpm-term__bar i:nth-child(2) { background: #fbbf24; }
.bpm-term__bar i:nth-child(3) { background: #34d399; }
.bpm-term__bar span { margin-left: auto; }
.bpm-term__body { padding: 18px 18px 22px; line-height: 1.85; color: #cbd5e1; }
.bpm-term__line { opacity: 0; transform: translateY(4px); animation: bpm-in .45s ease forwards; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bpm-term__line:nth-child(1) { animation-delay: .2s; }
.bpm-term__line:nth-child(2) { animation-delay: .7s; }
.bpm-term__line:nth-child(3) { animation-delay: .95s; }
.bpm-term__line:nth-child(4) { animation-delay: 1.2s; }
.bpm-term__line:nth-child(5) { animation-delay: 1.45s; }
.bpm-term__line:nth-child(6) { animation-delay: 1.7s; }
.bpm-term__line:nth-child(7) { animation-delay: 2.2s; }
@keyframes bpm-in { to { opacity: 1; transform: none; } }
.bpm-term .p { color: var(--bpm-cyan); }
.bpm-term .k { color: var(--bpm-violet); }
.bpm-term .ok { color: var(--bpm-green); }
.bpm-term .d { color: var(--bpm-dim); }
.bpm-caret { display: inline-block; width: 8px; height: 15px; background: var(--bpm-cyan); vertical-align: -2px; animation: bpm-blink 1s steps(1) infinite; }
@keyframes bpm-blink { 50% { opacity: 0; } }

/* ---------- Domenii (feature grid) ---------- */
.bpm-features { padding: 40px 0 24px; }
.bpm-features__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 28px;
}
.bpm-feature {
  position: relative;
  padding: 22px 20px 24px;
  border-radius: var(--bpm-radius);
  background: var(--bpm-panel);
  border: 1px solid var(--bpm-line);
  transition: border-color .25s, transform .25s, background .25s;
}
.bpm-feature:hover { border-color: rgba(34, 211, 238, .45); transform: translateY(-3px); background: rgba(15, 25, 48, .85); }
.bpm-feature__icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(34, 211, 238, .1); color: var(--bpm-cyan);
  border: 1px solid rgba(34, 211, 238, .25);
  margin-bottom: 16px;
}
.bpm-feature:nth-child(2) .bpm-feature__icon { background: rgba(167,139,250,.1); color: var(--bpm-violet); border-color: rgba(167,139,250,.28); }
.bpm-feature:nth-child(3) .bpm-feature__icon { background: rgba(59,130,246,.1); color: #60a5fa; border-color: rgba(59,130,246,.3); }
.bpm-feature:nth-child(4) .bpm-feature__icon { background: rgba(52,211,153,.1); color: var(--bpm-green); border-color: rgba(52,211,153,.28); }
.bpm-feature h3 { font-size: 1.05rem; font-weight: 600; margin: 0 0 8px; color: var(--bpm-text); letter-spacing: -0.01em; }
.bpm-feature p { font-size: .92rem; line-height: 1.55; color: var(--bpm-muted); margin: 0; }

/* ---------- Page list: carduri (template bpm_cards) ---------- */
.bpm-posts { padding: 32px 0 72px; }
.bpm-posts__head {
  display: flex; align-items: end; justify-content: space-between; gap: 16px;
  margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--bpm-line);
}
.bpm-posts__count { font-family: var(--bpm-mono); font-size: 12.5px; color: var(--bpm-dim); }
.bpm-posts__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.bpm-card {
  position: relative;
  display: flex; flex-direction: column;
  min-height: 210px;
  padding: 22px 22px 20px;
  border-radius: var(--bpm-radius);
  background: var(--bpm-panel);
  border: 1px solid var(--bpm-line);
  text-decoration: none !important;
  color: var(--bpm-text);
  overflow: hidden;
  isolation: isolate;
  transition: transform .25s ease, border-color .25s ease;
}
.bpm-card::before { /* contur gradient la hover */
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: var(--bpm-grad);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .25s ease; z-index: -1;
}
.bpm-card::after { /* glow */
  content: ""; position: absolute; width: 260px; height: 260px; right: -120px; top: -140px;
  background: radial-gradient(circle, rgba(59,130,246,.25), transparent 65%);
  opacity: 0; transition: opacity .3s ease; z-index: -1;
}
.bpm-card:hover { transform: translateY(-4px); border-color: transparent; color: var(--bpm-text); }
.bpm-card:hover::before, .bpm-card:hover::after { opacity: 1; }
.bpm-card__thumb { margin: -22px -22px 18px; aspect-ratio: 16/8; overflow: hidden; border-bottom: 1px solid var(--bpm-line); }
.bpm-card__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; filter: saturate(.9); transition: transform .4s ease; }
.bpm-card:hover .bpm-card__thumb img { transform: scale(1.04); }
.bpm-card__meta {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  font-family: var(--bpm-mono); font-size: 11.5px; color: var(--bpm-dim);
  margin-bottom: 14px;
}
.bpm-card__idx { color: var(--bpm-cyan); }
.bpm-card__title { font-size: 1.16rem; line-height: 1.3; font-weight: 600; letter-spacing: -0.015em; margin: 0 0 10px; color: var(--bpm-text); }
.bpm-card__desc { font-size: .93rem; line-height: 1.55; color: var(--bpm-muted); margin: 0 0 18px; }
.bpm-card__go {
  margin-top: auto;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--bpm-mono); font-size: 12.5px; color: var(--bpm-muted);
  transition: color .2s;
}
.bpm-card__go svg { transition: transform .2s; }
.bpm-card:hover .bpm-card__go { color: var(--bpm-cyan); }
.bpm-card:hover .bpm-card__go svg { transform: translateX(4px); }
/* primul articol = featured: ocupă 2 sau 3 coloane, cât să nu rămână carduri orfane */
.bpm-posts--f2 .bpm-card:first-child { grid-column: span 2; }
.bpm-posts--f3 .bpm-card:first-child { grid-column: 1 / -1; }
.bpm-posts--f2 .bpm-card:first-child,
.bpm-posts--f3 .bpm-card:first-child { min-height: 240px; background: linear-gradient(135deg, rgba(34,211,238,.08), rgba(167,139,250,.06)), var(--bpm-panel); }
.bpm-posts--f2 .bpm-card:first-child .bpm-card__title,
.bpm-posts--f3 .bpm-card:first-child .bpm-card__title { font-size: clamp(1.4rem, 2.4vw, 1.9rem); }
.bpm-posts--f2 .bpm-card:first-child .bpm-card__desc,
.bpm-posts--f3 .bpm-card:first-child .bpm-card__desc { font-size: 1.02rem; max-width: 640px; }
.bpm-posts .pagination { margin-top: 28px; justify-content: center; }
.bpm-posts .page-link { background: var(--bpm-panel-solid); border-color: var(--bpm-line); color: var(--bpm-muted); }
.bpm-posts .page-item.active .page-link { background: var(--bpm-blue); border-color: var(--bpm-blue); color: #fff; }

/* fallback: dacă un Page List rămâne pe template-ul implicit, tot arată decent */
.ccm-page .ccm-block-page-list-header h5 { font-family: var(--bpm-mono); color: var(--bpm-cyan); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.ccm-page .ccm-block-page-list-page-entry { padding: 14px 0; border-bottom: 1px solid var(--bpm-line); }
.ccm-page .ccm-block-page-list-title a { color: var(--bpm-text); font-size: 1.15rem; text-decoration: none; }
.ccm-page .ccm-block-page-list-title a:hover { color: var(--bpm-cyan); }
.ccm-page .ccm-block-page-list-description { color: var(--bpm-muted); }

/* ---------- Pagini de articol ---------- */
/* cardurile albe ale articolelor stau „ca o foaie pe birou”: le dăm doar aer + umbră */
.ccm-page.page-type-blog-entry article { margin-top: 28px !important; margin-bottom: 64px !important; box-shadow: 0 40px 90px -40px rgba(0,0,0,.9), 0 0 0 1px rgba(148,163,184,.12) !important; }

/* ---------- Footer ---------- */
/* Atomik folosește „div.theme-atomik footer” (fundal #f3f3f3) — avem nevoie de specificitate mai mare */
div.theme-atomik.ccm-page footer { border-top: 1px solid var(--bpm-line); background: rgba(6, 9, 18, .6); color: var(--bpm-dim); margin-top: 24px; padding: 0; }
div.theme-atomik.ccm-page footer section.mb-4 { display: none; } /* coloane goale din Atomik */
div.theme-atomik.ccm-page footer .concrete-branding { padding: 22px 0; font-family: var(--bpm-mono); font-size: 12.5px; background: transparent; color: var(--bpm-dim); }
div.theme-atomik.ccm-page footer a { color: var(--bpm-muted); text-decoration: none; }
div.theme-atomik.ccm-page footer a:hover { color: var(--bpm-cyan); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .bpm-hero__grid { grid-template-columns: 1fr; gap: 36px; }
  .bpm-features__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bpm-posts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bpm-posts--f2 .bpm-card:first-child, .bpm-posts--f3 .bpm-card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .bpm-nav__inner { padding: 12px 16px; }
  .bpm-nav__links a { padding: 8px 8px; }
  .bpm-nav__links li:has(.is-cta) { display: none; }
  .bpm-features__grid, .bpm-posts__grid { grid-template-columns: 1fr; }
  .bpm-term { font-size: 12px; }
  .bpm-btn { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .bpm-term__line { animation: none; opacity: 1; transform: none; }
  .bpm-status__dot, .bpm-caret { animation: none; }
  .bpm-card, .bpm-feature, .bpm-btn { transition: none; }
}

/* ---------- Footer custom (bloc HTML .bpm-footer în prima coloană din footer) ---------- */
div.theme-atomik.ccm-page footer section.mb-4:has(.bpm-footer) { display: block; padding: 48px 0 8px; margin: 0 !important; }
div.theme-atomik.ccm-page footer section.mb-4:has(.bpm-footer) .row > div:not(:has(.bpm-footer)) { display: none; }
div.theme-atomik.ccm-page footer section.mb-4 .row > div:has(.bpm-footer) { flex: 0 0 100%; max-width: 100%; }
.bpm-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.bpm-footer__brand { max-width: 380px; }
.bpm-footer__brand strong { display: block; font-size: 1.1rem; color: var(--bpm-text); margin-bottom: 8px; letter-spacing: -0.01em; }
.bpm-footer__brand p { color: var(--bpm-muted); font-size: .92rem; line-height: 1.6; margin: 0; }
.bpm-footer__col h4 { font-family: var(--bpm-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--bpm-cyan); margin: 0 0 12px; }
.bpm-footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bpm-footer__col a { font-size: .92rem; }
div.theme-atomik.ccm-page footer .concrete-branding { border-top: 1px solid var(--bpm-line); }
div.theme-atomik.ccm-page footer .concrete-branding a[href*="/login"] { opacity: .45; }
div.theme-atomik.ccm-page footer .concrete-branding a[href*="/login"]:hover { opacity: 1; }
