/*
Theme Name: Blasphemy Protocol Official Theme
Theme URI: https://github.com/lynxcorp/blasphemy-protocol-theme
Author: Remigiusz Przybyszewski
Description: Biomechanical Sci-Fi WordPress Theme dla gry The Blasphemy Protocol (Full-Screen Hero Slideshow + V.A.M.P. Video/GIF + Server-Cached Gantt Pipeline + 3 Latest Devlogs + YouTube Feed + Discord API).
Version: 2.4.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bp-theme
*/

:root {
  --font-head: 'Play', sans-serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  --bp-bg-page: #040705;
  --bp-card: #08110b;
  --bp-card-hover: #0f1e14;
  --bp-border: rgba(52, 84, 60, 0.45);

  --bp-green: #22c55e;
  --bp-green-glow: rgba(34, 197, 94, 0.5);
  --bp-green-bg: rgba(34, 197, 94, 0.12);

  --bp-yellow: #eab308;
  --bp-yellow-glow: rgba(234, 179, 8, 0.55);
  --bp-yellow-bg: rgba(234, 179, 8, 0.12);

  --bp-red: #ef4444;
  --bp-red-glow: rgba(239, 68, 68, 0.6);
  --bp-red-bg: rgba(239, 68, 68, 0.12);

  --text-white: #ffffff;
  --text-body: #e2e8f0;
  --text-muted: #627969;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body.bp-body {
  background-color: var(--bp-bg-page);
  background-image: 
    radial-gradient(circle at 50% 0%, rgba(30, 58, 36, 0.38) 0%, transparent 65%),
    radial-gradient(circle at 90% 90%, rgba(239, 68, 68, 0.05) 0%, transparent 45%);
  color: var(--text-body);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Scanlines CRT */
.bp-scanlines {
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
  background-size: 100% 4px;
  z-index: 9990;
  pointer-events: none;
  opacity: 0.35;
}

h1, h2, h3, h4 { font-family: var(--font-head); color: var(--text-white); }
a { color: inherit; text-decoration: none; transition: all 0.2s ease; }
.text-red { color: var(--bp-red); text-shadow: 0 0 20px var(--bp-red-glow); }
.text-green { color: var(--bp-green); }
.text-amber { color: var(--bp-yellow); }

/* ==========================================================================
   NAWIGACJA
   ========================================================================== */
.bp-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(4, 7, 5, 0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bp-border);
  z-index: 1000;
  transition: transform 0.3s ease;
}
body.admin-bar .bp-nav { top: 32px; }
.bp-nav.header-hidden { transform: translateY(-120%); }

.nav-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  color: var(--text-white);
}
.optic-eye {
  width: 10px; height: 10px;
  background: var(--bp-red);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--bp-red);
  animation: opticPulse 2s infinite;
}
.nav-links, .bp-wp-menu {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
}
.nav-link, .bp-wp-menu li a {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.nav-link:hover, .bp-wp-menu li a:hover, .bp-wp-menu li.current-menu-item a {
  color: var(--text-white);
}
.link-amber, .bp-wp-menu li.highlight-amber a { color: var(--bp-yellow) !important; }
.link-amber:hover, .bp-wp-menu li.highlight-amber a:hover { color: #fef08a !important; text-shadow: 0 0 10px var(--bp-yellow-glow); }

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
}
.mobile-menu-toggle span {
  width: 26px; height: 2px; background: var(--bp-green); transition: 0.25s;
}

/* ==========================================================================
   HERO SECTION (FULL-SCREEN SLIDESHOW + TRANSPARENCY FADE + LOGO)
   ========================================================================== */
.bp-hero {
  position: relative;
  width: 100%;
  min-height: 92vh;
  padding: 165px 24px 110px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.bp-hero-bg-slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.bp-hero-slide {
  position: absolute;
  inset: -3%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0;
  transform: scale(1.06);
  transition: opacity 1.8s ease-in-out, transform 9s ease-out;
  will-change: opacity, transform;
}

.bp-hero-slide.active {
  opacity: var(--hero-bg-opacity, 0.48);
  transform: scale(1);
}

.bp-hero-bg-fade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(4, 7, 5, 0.72) 0%, rgba(4, 7, 5, 0.15) 35%, rgba(4, 7, 5, 0.65) 75%, #040705 100%),
    linear-gradient(to right, rgba(4, 7, 5, 0.94) 0%, rgba(4, 7, 5, 0.72) 45%, rgba(4, 7, 5, 0.25) 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 72%, transparent 100%);
  mask-image: linear-gradient(to bottom, black 72%, transparent 100%);
}

.bp-hero-dots {
  position: absolute;
  bottom: 34px;
  right: 40px;
  z-index: 15;
  display: flex;
  gap: 10px;
}
.bp-hero-dot {
  width: 26px;
  height: 4px;
  background: rgba(98, 121, 105, 0.4);
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
}
.bp-hero-dot.active,
.bp-hero-dot:hover {
  background: var(--bp-green);
  box-shadow: 0 0 10px var(--bp-green-glow);
}

.bp-hero-inner {
  position: relative;
  z-index: 10;
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
}

.hero-content { max-width: 650px; flex: 1; }

.hero-badge, .bp-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--bp-green);
  border: 1px solid rgba(34, 197, 94, 0.35);
  padding: 6px 16px;
  background: rgba(4, 7, 5, 0.75);
  backdrop-filter: blur(6px);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.hero-badge { margin-bottom: 24px; }
.blinking-dot {
  width: 6px; height: 6px; background: var(--bp-green); border-radius: 50%;
  animation: pulse 1.2s infinite;
}
.bp-optic-core {
  width: 7px; height: 7px; background: var(--bp-red); border-radius: 50%;
  box-shadow: 0 0 10px var(--bp-red); animation: pulse 1.6s infinite;
}

@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
@keyframes opticPulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.4); opacity: 0.5; } }
@keyframes rotate { 100% { transform: rotate(360deg); } }

.hero-title {
  font-size: clamp(3.2rem, 6.2vw, 5.4rem);
  line-height: 0.95;
  margin-bottom: 24px;
  letter-spacing: 0.02em;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
}
.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.65;
  color: #e2e8f0;
  margin-bottom: 40px;
  border-left: 3px solid var(--bp-red);
  padding-left: 20px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* BUTTONS */
.bp-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 14px 28px;
  cursor: pointer;
  border: none;
  clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
  transition: all 0.2s ease;
}
.btn-primary {
  background: var(--bp-red);
  color: #fff;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.45);
}
.btn-primary:hover { background: #f87171; box-shadow: 0 0 30px rgba(239, 68, 68, 0.75); transform: translateY(-2px); color: #fff; }
.btn-secondary {
  background: rgba(8, 17, 11, 0.85);
  color: var(--text-body);
  border: 1px solid var(--bp-border);
  backdrop-filter: blur(6px);
}
.btn-secondary:hover { border-color: var(--bp-green); color: #fff; transform: translateY(-2px); }
.btn-ghost {
  background: transparent;
  color: var(--bp-yellow);
  border: 1px solid rgba(234, 179, 8, 0.4);
  padding: 10px 20px;
}
.btn-ghost:hover { background: rgba(234, 179, 8, 0.12); color: #fff; }

/* PRAWA STRONA HERO: LOGO GRY LUB FALLBACK HUD RING */
.hero-graphic {
  position: relative;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-hero-logo-wrap {
  position: relative;
  width: 420px;
  max-width: 38vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-hero-logo-ring-subtle {
  position: absolute;
  width: 105%;
  aspect-ratio: 1 / 1;
  border: 1px dashed rgba(34, 197, 94, 0.28);
  border-radius: 50%;
  animation: rotate 75s linear infinite;
  pointer-events: none;
}

.bp-hero-logo-img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: auto;
  max-height: 400px;
  object-fit: contain;
  filter: drop-shadow(0 18px 38px rgba(0, 0, 0, 0.92)) drop-shadow(0 0 24px rgba(239, 68, 68, 0.22));
  transition: transform 0.35s ease;
}
.bp-hero-logo-wrap:hover .bp-hero-logo-img {
  transform: scale(1.03);
}

.placeholder-logo-ring {
  width: 400px; height: 400px;
  border: 2px dashed rgba(52, 84, 60, 0.55);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: rotate 60s linear infinite;
  opacity: 0.5;
}
.placeholder-logo-core {
  width: 190px; height: 190px;
  background: radial-gradient(circle, rgba(239, 68, 68, 0.25) 0%, transparent 70%);
  border-radius: 50%;
}

/* ==========================================================================
   SEKCJE & KARTY (FEATURES + DEVLOG BLOG + YOUTUBE)
   ========================================================================== */
.bp-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 90px 24px;
}
.section-darker {
  background: #030504;
  border-top: 1px solid var(--bp-border);
  border-bottom: 1px solid var(--bp-border);
  max-width: 100%;
  padding: 90px 4%;
}
.section-header { margin-bottom: 48px; }
.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}
.section-meta {
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  display: block;
  margin-bottom: 10px;
}
.section-title { font-size: clamp(1.9rem, 3.8vw, 2.8rem); line-height: 1.1; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.bp-card {
  background: var(--bp-card);
  border: 1px solid var(--bp-border);
  padding: 30px;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
  transition: all 0.25s ease;
  position: relative;
  display: flex;
  flex-direction: column;
}
.bp-card:hover {
  transform: translateY(-5px);
  background: var(--bp-card-hover);
  border-color: var(--bp-green);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.85);
}
.card-icon { font-family: var(--font-mono); font-size: 0.9rem; font-weight: 700; margin-bottom: 16px; }
.icon-green { color: var(--bp-green); text-shadow: 0 0 10px var(--bp-green-glow); }
.icon-red { color: var(--bp-red); text-shadow: 0 0 10px var(--bp-red-glow); }
.icon-amber { color: var(--bp-yellow); text-shadow: 0 0 10px var(--bp-yellow-glow); }

.card-title { font-size: 1.3rem; margin-bottom: 12px; }
.card-desc { font-size: 0.95rem; line-height: 1.6; color: #94a3b8; margin-bottom: 24px; flex-grow: 1; }
.card-tags { display: flex; gap: 8px; flex-wrap: wrap; }
.card-tags span {
  font-family: var(--font-mono); font-size: 0.7rem; color: #cbd5e1;
  border: 1px solid rgba(52, 84, 60, 0.6); padding: 2px 8px; border-radius: 3px;
}

/* KARTY DEVLOGA (BLOG) */
.bp-post-card { padding: 0; overflow: hidden; }
.bp-post-thumb {
  height: 200px;
  background-color: #050a07;
  background-size: cover;
  background-position: center;
  position: relative;
  border-bottom: 1px solid var(--bp-border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.bp-post-thumb-fallback {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  letter-spacing: 0.15em;
}
.bp-post-date {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(4, 7, 5, 0.9);
  border: 1px solid var(--bp-border);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--bp-green);
  padding: 4px 10px;
}
.bp-post-body { padding: 24px; display: flex; flex-direction: column; flex-grow: 1; }

/* KARTY YOUTUBE FEED */
.bp-yt-card { padding: 0; overflow: hidden; }
.bp-yt-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #030604;
  border-bottom: 1px solid var(--bp-border);
  overflow: hidden;
  cursor: pointer;
}
.bp-yt-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease, filter 0.35s ease;
}
.bp-yt-card:hover .bp-yt-media img {
  transform: scale(1.04);
  filter: brightness(1.08);
}
.bp-yt-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 58px;
  height: 40px;
  background: rgba(239, 68, 68, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.4);
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(239, 68, 68, 0.65);
  transition: transform 0.2s ease, background 0.2s ease;
}
.bp-yt-play-btn::after {
  content: "";
  display: block;
  width: 0;
  height: 0;
  margin-left: 4px;
  border-style: solid;
  border-width: 8px 0 8px 14px;
  border-color: transparent transparent transparent #ffffff;
}
.bp-yt-card:hover .bp-yt-play-btn {
  transform: translate(-50%, -50%) scale(1.1);
  background: #f87171;
}
.bp-yt-media iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* SPOTLIGHT SECTION (V.A.M.P. VIDEO / SCREENSHOT / GIF) */
.spotlight-container {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center;
}
.spotlight-desc { font-size: 1.05rem; line-height: 1.7; color: #cbd5e1; margin-bottom: 32px; }
.spotlight-image-placeholder,
.spotlight-image-box {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background: repeating-linear-gradient(45deg, #09120c, #09120c 10px, #060b08 10px, #060b08 20px);
  border: 1px solid var(--bp-border);
  clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
}
.spotlight-image-box:hover {
  border-color: var(--bp-red);
}
.spotlight-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  cursor: zoom-in;
  transition: transform 0.35s ease;
}
.spotlight-image-box:hover .spotlight-img {
  transform: scale(1.03);
}
.spotlight-video-embed,
.spotlight-video-html5 {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  background: #000;
}
.spotlight-hud-tag {
  position: absolute;
  bottom: 12px;
  left: 14px;
  background: rgba(4, 7, 5, 0.88);
  border: 1px solid rgba(239, 68, 68, 0.45);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--bp-red);
  padding: 4px 10px;
  letter-spacing: 0.1em;
  pointer-events: none;
  z-index: 4;
}
.image-overlay { font-family: var(--font-mono); color: var(--text-muted); font-size: 0.85rem; letter-spacing: 0.1em; }

/* ==========================================================================
   SINGLE DEVLOG POST + BOCZNY SPIS TREŚCI (TOC)
   ========================================================================== */
.bp-single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 32px;
  align-items: start;
}
.bp-single-article {
  background: var(--bp-card);
  border: 1px solid var(--bp-border);
  padding: 42px;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}
.bp-breadcrumbs {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-bottom: 18px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.bp-breadcrumbs a:hover { color: var(--bp-green); }

.bp-post-meta-bar {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  padding: 12px 0;
  margin: 20px 0 30px;
  border-top: 1px solid var(--bp-border);
  border-bottom: 1px solid var(--bp-border);
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--text-muted);
}
.bp-post-meta-bar span strong { color: var(--bp-green); }

.bp-single-featured {
  margin-bottom: 30px;
  border: 1px solid var(--bp-border);
  overflow: hidden;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.bp-single-featured img { width: 100%; height: auto; display: block; }

.bp-single-article .entry-content { line-height: 1.8; font-size: 1.05rem; color: #cbd5e1; }
.bp-single-article .entry-content p { margin-bottom: 20px; }
.bp-single-article .entry-content h2 {
  font-size: 1.65rem;
  margin: 38px 0 16px;
  padding-left: 14px;
  border-left: 3px solid var(--bp-green);
  scroll-margin-top: 110px;
}
.bp-single-article .entry-content h3 {
  font-size: 1.3rem;
  margin: 28px 0 12px;
  color: var(--bp-yellow);
  scroll-margin-top: 110px;
}
.bp-single-article .entry-content ul,
.bp-single-article .entry-content ol {
  margin: 0 0 22px 24px;
}
.bp-single-article .entry-content li { margin-bottom: 8px; }
.bp-single-article .entry-content blockquote {
  background: rgba(34, 197, 94, 0.05);
  border-left: 3px solid var(--bp-green);
  padding: 16px 20px;
  margin: 24px 0;
  font-family: var(--font-mono);
  font-size: 0.92rem;
}
.bp-single-article .entry-content pre,
.bp-single-article .entry-content code {
  font-family: var(--font-mono);
  background: #040705;
  border: 1px solid var(--bp-border);
  border-radius: 4px;
}
.bp-single-article .entry-content code { padding: 2px 6px; font-size: 0.88em; color: var(--bp-green); }
.bp-single-article .entry-content pre { padding: 16px; overflow-x: auto; margin-bottom: 22px; }
.bp-single-article .entry-content img { max-width: 100%; height: auto; border: 1px solid var(--bp-border); margin: 16px 0; cursor: zoom-in; }

/* STICKY SIDEBAR TOC */
.bp-sidebar {
  position: sticky;
  top: 105px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.bp-sidebar-box {
  background: var(--bp-card);
  border: 1px solid var(--bp-border);
  padding: 24px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
}
.bp-sidebar-title {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--bp-green);
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--bp-border);
}
.bp-toc-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.bp-toc-list li a {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
  display: block;
  line-height: 1.4;
  padding-left: 10px;
  border-left: 2px solid transparent;
}
.bp-toc-list li.toc-h3 a { padding-left: 22px; font-size: 0.74rem; }
.bp-toc-list li a:hover,
.bp-toc-list li a.active {
  color: var(--text-white);
  border-left-color: var(--bp-green);
}

/* NAWIGACJA MIĘDZY WPISAMI */
.bp-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--bp-border);
}
.bp-post-nav-item {
  background: #050b07;
  border: 1px solid var(--bp-border);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bp-post-nav-item:hover { border-color: var(--bp-green); background: var(--bp-card-hover); }
.bp-post-nav-label { font-family: var(--font-mono); font-size: 0.7rem; color: var(--bp-yellow); }
.bp-post-nav-title { font-family: var(--font-head); font-size: 1rem; color: #fff; }

/* KOMENTARZE WORDPRESS */
.bp-comments-wrapper {
  margin-top: 32px;
  background: var(--bp-card);
  border: 1px solid var(--bp-border);
  padding: 36px;
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}
.bp-comments-wrapper h3, .comments-title {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  color: var(--bp-green);
  margin-bottom: 24px;
  letter-spacing: 0.08em;
}
.comment-list { list-style: none; display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
.comment-body {
  background: #050a07;
  border: 1px solid var(--bp-border);
  padding: 18px;
}
.comment-author { display: flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 0.82rem; margin-bottom: 8px; }
.comment-author img { border-radius: 50%; border: 1px solid var(--bp-green); }
.comment-metadata { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); margin-bottom: 10px; }
.comment-content p { font-size: 0.94rem; line-height: 1.6; color: #cbd5e1; }
.reply a { font-family: var(--font-mono); font-size: 0.72rem; color: var(--bp-yellow); display: inline-block; margin-top: 8px; }

.comment-form p { margin-bottom: 16px; }
.comment-form label { display: block; font-family: var(--font-mono); font-size: 0.76rem; color: var(--text-muted); margin-bottom: 6px; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  background: #040705;
  border: 1px solid var(--bp-border);
  color: var(--text-white);
  padding: 12px 14px;
  font-family: var(--font-body);
  font-size: 0.95rem;
}
.comment-form input:focus, .comment-form textarea:focus {
  outline: none;
  border-color: var(--bp-green);
}
.comment-form input[type="submit"] {
  background: var(--bp-green);
  color: #040705;
  font-family: var(--font-mono);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  padding: 12px 26px;
  border: none;
  cursor: pointer;
  clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%);
}
.comment-form input[type="submit"]:hover { background: #4ade80; }

/* ==========================================================================
   GANTT PIPELINE MODULE
   ========================================================================== */
.bp-gantt-module { width: 100%; }
.bp-top-meta {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-bottom: 14px;
}
.bp-telemetry {
  display: flex; gap: 20px; background: #070d09; border: 1px solid var(--bp-border); padding: 7px 22px;
  font-family: var(--font-mono); font-size: 0.75rem; clip-path: polygon(10px 0, 100% 0, calc(100% - 10px) 100%, 0 100%);
}
.telemetry-item { display: flex; gap: 7px; align-items: center; }
.tel-label { color: var(--text-muted); font-weight: 600; }
.tel-val { font-weight: 700; }
.done-val { color: var(--bp-green); }
.prog-val { color: var(--bp-yellow); }
.plan-val { color: var(--bp-red); }

.bp-controls { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.bp-filter-btn {
  font-family: var(--font-mono); font-size: 0.75rem; font-weight: 700; padding: 6px 16px;
  background: rgba(10, 18, 12, 0.8); border: 1px solid var(--bp-border); color: var(--text-muted);
  cursor: pointer; clip-path: polygon(6px 0, 100% 0, calc(100% - 6px) 100%, 0 100%); transition: all 0.2s ease;
}
.bp-filter-btn:hover, .bp-filter-btn.active {
  color: #fff; border-color: var(--bp-green); background: rgba(34, 197, 94, 0.14); box-shadow: 0 0 12px rgba(34, 197, 94, 0.25);
}
.bp-btn-action { margin-left: auto; border-color: rgba(234, 179, 8, 0.4); color: var(--bp-yellow); background: rgba(234, 179, 8, 0.08); }

.gantt-h-wrapper {
  border: 1px solid var(--bp-border); background: #040805; overflow: hidden;
  box-shadow: 0 20px 50px -10px rgba(0, 0, 0, 0.85);
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}
.gantt-h-scroll {
  overflow-x: auto; overflow-y: hidden; position: relative; scroll-behavior: smooth; padding-bottom: 6px;
  scrollbar-width: thin; scrollbar-color: #22c55e #060d08;
}
.gantt-h-timeline-header {
  display: flex; border-bottom: 2px solid var(--bp-border); background: #060b08; position: sticky; top: 0; z-index: 90;
}
.sticky-header-label {
  width: 320px; min-width: 320px; padding: 14px 20px; font-family: var(--font-mono); font-size: 0.75rem;
  font-weight: 700; color: var(--text-muted); border-right: 2px solid var(--bp-border); background: #060b08;
  position: sticky; left: 0; z-index: 100; letter-spacing: 0.1em; box-shadow: 6px 0 16px rgba(0, 0, 0, 0.85);
}
.timeline-scale-track { display: flex; position: relative; flex-shrink: 0; }
.time-month-slot {
  flex-shrink: 0; width: 150px; padding: 14px 10px; text-align: center; font-family: var(--font-mono);
  font-size: 0.76rem; font-weight: 600; color: var(--text-muted); border-right: 1px solid rgba(52, 84, 60, 0.25);
}
.time-month-slot.is-now { color: var(--bp-yellow); background: rgba(234, 179, 8, 0.06); border-bottom: 2px solid var(--bp-yellow); }

.gantt-h-rows { position: relative; display: flex; flex-direction: column; padding-bottom: 30px; }
.gantt-row {
  display: flex; border-bottom: 1px solid rgba(52, 84, 60, 0.2); min-height: 56px;
  transition: background 0.15s ease; position: relative; width: 100%;
  content-visibility: auto; contain-intrinsic-size: auto 57px;
}
.gantt-row:hover { background: rgba(34, 197, 94, 0.03); }
.row-task-meta {
  width: 320px; min-width: 320px; padding: 10px 18px; display: flex; align-items: center; gap: 12px;
  border-right: 2px solid var(--bp-border); background: #070d09; position: sticky; left: 0; z-index: 80;
  box-shadow: 6px 0 16px rgba(0, 0, 0, 0.85);
}
.meta-badge { font-family: var(--font-mono); font-size: 0.65rem; font-weight: 700; padding: 3px 7px; border-radius: 4px; flex-shrink: 0; }
.badge-DONE { background: var(--bp-green-bg); color: #4ade80; border: 1px solid var(--bp-green); }
.badge-IN_PROGRESS { background: var(--bp-yellow-bg); color: #fde047; border: 1px solid var(--bp-yellow); }
.badge-PLANNED { background: var(--bp-red-bg); color: #f87171; border: 1px solid var(--bp-red); }

.meta-info { overflow: hidden; display: flex; flex-direction: column; }
.meta-title { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.meta-sub { font-family: var(--font-mono); font-size: 0.68rem; color: var(--text-muted); }

.row-timeline-track { position: relative; flex-shrink: 0; display: flex; align-items: center; z-index: 10; }
.gantt-bar {
  position: absolute; height: 32px; background: var(--bp-card); border: 1px solid var(--bp-border); border-radius: 4px;
  display: flex; align-items: center; padding: 0 14px; cursor: pointer; z-index: 20;
  transition: opacity 0.2s ease, filter 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.gantt-bar::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3.5px;
  border-top-left-radius: 3px; border-bottom-left-radius: 3px; background: var(--bar-color, #64748b);
}
.gantt-bar.is-ongoing {
  border-right: 2px dashed var(--bp-yellow);
  background: linear-gradient(90deg, var(--bp-card) 0%, rgba(234, 179, 8, 0.18) 50%, var(--bp-card) 100%);
  background-size: 200% 100%; animation: bgStream 2s linear infinite;
}
@keyframes bgStream { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

.bar-DONE { --bar-color: var(--bp-green); --bar-glow: var(--bp-green-glow); }
.bar-IN_PROGRESS { --bar-color: var(--bp-yellow); --bar-glow: var(--bp-yellow-glow); }
.bar-PLANNED { --bar-color: var(--bp-red); --bar-glow: var(--bp-red-glow); }
.gantt-bar-label { font-family: var(--font-mono); font-size: 0.74rem; font-weight: 600; color: #cbd5e1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }

.gantt-h-rows.is-hovering .gantt-bar:not(.active-hover) { opacity: 0.25; filter: blur(1.5px) grayscale(50%); }
.gantt-bar.active-hover { z-index: 70 !important; background: var(--bp-card-hover); border-color: var(--bar-color); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.95), 0 0 20px var(--bar-glow); }

.global-tooltip {
  position: fixed; width: 460px; max-width: 85vw;
  background: #08110b; border: 1px solid var(--bp-border); border-radius: 8px; padding: 16px 20px;
  box-shadow: 0 25px 55px rgba(0, 0, 0, 0.98);
  opacity: 0; pointer-events: none; transition: opacity 0.15s ease, transform 0.15s ease;
  transform: translateY(8px); z-index: 9999;
}
.global-tooltip.is-visible { opacity: 1; transform: translateY(0); }
.tooltip-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.tooltip-badge { font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 4px; }
.tooltip-dates { font-family: var(--font-mono); font-size: 0.72rem; color: #cbd5e1; font-weight: 600; }
.tooltip-title { font-family: var(--font-head); font-size: 1.15rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.tooltip-desc { font-size: 0.88rem; color: var(--text-body); line-height: 1.55; margin-bottom: 12px; }
.tooltip-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tooltip-tags span { font-family: var(--font-mono); font-size: 0.68rem; background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(52, 84, 60, 0.6); color: #cbd5e1; padding: 2px 8px; border-radius: 3px; }

.bp-loader-msg { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 300px; gap: 16px; font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); }
.bp-loader-gear { width: 32px; height: 32px; border: 2px solid var(--bp-border); border-top-color: var(--bp-green); border-bottom-color: var(--bp-yellow); animation: rotate 1.2s linear infinite; }

/* ==========================================================================
   GALERIA DISCORD & LIGHTBOX
   ========================================================================== */
.bp-sys-msg { font-family: var(--font-mono); font-size: 0.85rem; color: var(--text-muted); padding: 16px; border: 1px solid var(--bp-border); background: var(--bp-card); }
.bp-discord-gallery {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin: 30px 0;
}
.bp-gallery-item {
  position: relative; aspect-ratio: 1/1; overflow: hidden;
  border: 1px solid var(--bp-border); background: var(--bp-card);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.bp-gallery-item img, .bp-gallery-item video {
  width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease;
}
.bp-gallery-item:hover img { transform: scale(1.05); }
.bp-gallery-author {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(4, 7, 5, 0.88); border: 1px solid var(--bp-border);
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--bp-green);
  padding: 3px 8px; opacity: 0; transition: opacity 0.2s ease;
}
.bp-gallery-item:hover .bp-gallery-author { opacity: 1; }

#lightbox-overlay {
  position: fixed; inset: 0; background: rgba(4, 7, 5, 0.92); backdrop-filter: blur(8px);
  display: none; justify-content: center; align-items: center; z-index: 9998; cursor: zoom-out;
}
#lightbox-overlay img { max-width: 92vw; max-height: 90vh; border: 1px solid var(--bp-green); }

/* PAGINATION */
.bp-pagination {
  margin-top: 48px;
  display: flex;
  gap: 10px;
  justify-content: center;
  font-family: var(--font-mono);
}
.bp-pagination .page-numbers {
  padding: 8px 16px;
  background: var(--bp-card);
  border: 1px solid var(--bp-border);
  font-size: 0.82rem;
}
.bp-pagination .page-numbers.current,
.bp-pagination .page-numbers:hover {
  border-color: var(--bp-green);
  color: var(--bp-green);
}

/* FOOTER */
.bp-footer { max-width: 1280px; margin: 0 auto; padding: 60px 24px 40px; border-top: 1px solid var(--bp-border); }
.footer-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 32px; flex-wrap: wrap; gap: 24px; }
.footer-brand { font-family: var(--font-mono); font-weight: 800; font-size: 1.15rem; color: var(--text-white); }
.footer-socials { display: flex; gap: 24px; }
.footer-socials a { color: var(--text-muted); font-family: var(--font-mono); font-size: 0.8rem; font-weight: 700; }
.footer-socials a:hover { color: var(--bp-green); }
.footer-bottom { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text-muted); flex-wrap: wrap; gap: 12px; }
.footer-sys { font-family: var(--font-mono); color: var(--bp-green); }

@media (max-width: 980px) {
  .features-grid { grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); }
  .bp-hero-inner { flex-direction: column; text-align: left; align-items: flex-start; }
  .hero-graphic { width: 100%; justify-content: center; margin-top: 20px; }
  .bp-hero-logo-wrap { max-width: 280px; }
  .placeholder-logo-ring { display: none; }
  .bp-hero-dots { right: 24px; bottom: 20px; }
  .spotlight-container { grid-template-columns: 1fr; }
  .bp-single-layout { grid-template-columns: 1fr; }
  .bp-sidebar { position: static; }
  .bp-single-article { padding: 26px; }
  .bp-post-nav { grid-template-columns: 1fr; }
  .nav-links {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #060c08; border-bottom: 1px solid var(--bp-border);
    flex-direction: column; padding: 24px; gap: 18px;
  }
  .nav-links.open { display: flex; }
  .bp-wp-menu { flex-direction: column; gap: 16px; }
  .mobile-menu-toggle { display: flex; }
  .sticky-header-label, .row-task-meta { width: 210px; min-width: 210px; }
}
