/*
Theme Name: IsObserved.pl
Theme URI: https://isobserved.pl
Author: isobserved.pl
Author URI: https://isobserved.pl
Description: Własny motyw WordPressa w pełni spójny ze stroną główną isobserved.pl. Używa tych samych stylów, header, footer i kolorystyki.
Version: 1.0.20
License: Proprietary
Text Domain: isobserved-pl
*/

/*
 * Fallback: zmienne i baza (gdy style_global.css z głównej strony się nie załaduje)
 */
:root {
  --page-bg: #0c111b;
  --panel-bg: #111a2a;
  --panel-bg-soft: #151f34;
  --panel-border: rgba(255,255,255,0.04);
  --fg: #e7ecf4;
  --fg-muted: #9ba7c0;
  --fg-subtle: #5f6a82;
  --accent-start: #22d3ee;
  --accent-mid: #0ea5e9;
  --accent-end: #2563eb;
  --accent-primary: #0ea5e9;
  --radius-base: 18px;
  --radius-pill: 999px;
  --transition-fast: 160ms ease;
  --shadow-md: 0 16px 40px rgba(2,8,20,0.45);
  --shadow-lg: 0 18px 60px rgba(0, 0, 0, 0.55);
  --shadow-xl: 0 30px 80px rgba(3,6,18,0.65);
  /* Wspólna szerokość z treścią bloga (site-main) */
  --layout-max: 1200px;
  --layout-pad: 24px;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  padding-left: env(safe-area-inset-left, 0);
  padding-right: env(safe-area-inset-right, 0);
  /* Subtelny glow jak na landing */
  background:
    radial-gradient(900px circle at 50% 220px, rgba(14,165,233,0.16), transparent 62%),
    radial-gradient(700px circle at 18% 520px, rgba(34,211,238,0.10), transparent 60%),
    radial-gradient(700px circle at 82% 520px, rgba(37,99,235,0.10), transparent 60%),
    var(--page-bg);
  color: var(--fg);
  font-family: "Inter", "Segoe UI", system-ui, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }

/* Breadcrumbs */
.breadcrumbs {
  margin: 0 0 12px;
  color: rgba(155,167,192,.88);
  font-size: 13px;
}
.breadcrumbs__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.breadcrumbs__item { margin: 0; padding: 0; }
.breadcrumbs__sep { opacity: 0.55; }
.breadcrumbs__link {
  color: rgba(155,167,192,.92);
  text-decoration: none;
}
.breadcrumbs__link:hover { color: #e6edf3; }
.breadcrumbs__current { color: rgba(203,213,225,.96); }

/* CTA w headerze (jak na stronie głównej) */
.landing-nav .nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.06);
  color: var(--fg);
  transition: transform var(--transition-fast), opacity var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
  white-space: nowrap;
}
.landing-nav .nav-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(34,211,238,0.55);
  background: rgba(34,211,238,0.08);
}
.landing-nav .nav-cta--primary {
  border-color: rgba(34,211,238,0.55);
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: #fff;
}
.landing-nav .nav-cta--primary:hover {
  opacity: 0.96;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
}
.landing-nav .nav-cta--ghost {
  background: transparent;
  border-color: rgba(148,163,184,0.35);
  color: rgba(203,213,225,0.95);
}
.landing-nav .nav-cta--ghost:hover {
  border-color: rgba(34,211,238,0.45);
  background: rgba(34,211,238,0.06);
  color: #e6edf3;
}

/* Header jak na isobserved.pl - identyczny jak na stronie głównej */
.landing-header {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  background: rgba(7, 10, 18, 0.72);
  border-bottom: 1px solid rgba(148, 163, 184, 0.22);
  position: sticky;
  top: 0;
  z-index: 1200;
  backdrop-filter: blur(10px);
  box-sizing: border-box;
}

.nav-toggle {
  display: none;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #e6edf3;
  cursor: pointer;
}
.nav-toggle:hover {
  border-color: rgba(34, 211, 238, 0.6);
  background: rgba(34, 211, 238, 0.08);
}
.nav-toggle:focus-visible {
  outline: 2px solid rgba(34, 211, 238, 0.9);
  outline-offset: 3px;
}
.nav-toggle svg {
  width: 22px;
  height: 22px;
  display: block;
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 2200;
  display: none;
  background: rgba(2, 6, 23, 0.7);
  backdrop-filter: blur(8px);
}
.mobile-drawer.is-open {
  display: block;
}
.mobile-drawer__panel {
  position: absolute;
  top: 0;
  right: 0;
  height: 100%;
  max-height: 100dvh;
  width: min(92vw, 380px);
  background: rgba(7, 10, 18, 0.96);
  border-left: 1px solid rgba(148, 163, 184, 0.22);
  box-shadow: var(--shadow-lg);
  padding: 18px 16px max(16px, env(safe-area-inset-bottom, 0));
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  transform: translateX(12px);
  opacity: 0;
  transition: transform 180ms ease, opacity 180ms ease;
}
.mobile-drawer.is-open .mobile-drawer__panel {
  transform: translateX(0);
  opacity: 1;
}
.mobile-drawer__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.mobile-drawer__title {
  font-weight: 700;
  letter-spacing: 0.2px;
  color: #e6edf3;
  font-size: 16px;
}
.mobile-drawer__close {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(255, 255, 255, 0.06);
  color: #e6edf3;
  cursor: pointer;
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
}
.mobile-drawer__close:hover {
  border-color: rgba(34, 211, 238, 0.6);
  background: rgba(34, 211, 238, 0.08);
}
.mobile-drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 6px;
}
.mobile-drawer__nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.04);
  color: #cbd5e1;
  font-size: 15px;
}
.mobile-drawer__nav a:hover {
  border-color: rgba(34, 211, 238, 0.45);
  background: rgba(34, 211, 238, 0.06);
  color: #e6edf3;
}
.mobile-drawer__divider {
  height: 1px;
  background: rgba(148, 163, 184, 0.18);
  margin: 6px 0;
}
body.is-drawer-open {
  overflow: hidden;
}

/* CTA w drawerze (jak w landing mobile-drawer) */
.mobile-drawer__nav a.nav-cta {
  justify-content: center;
  height: auto;
  min-height: 44px;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;
  border-radius: 999px;
}
.mobile-drawer__nav a.nav-cta--primary {
  border-color: rgba(34, 211, 238, 0.55);
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
  color: #fff;
}
.mobile-drawer__nav a.nav-cta--primary:hover {
  opacity: 0.96;
  color: #fff;
  background: linear-gradient(135deg, var(--accent-start), var(--accent-end));
}
.mobile-drawer__nav a.nav-cta--ghost {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.35);
  color: rgba(203, 213, 225, 0.95);
}

@media (min-width: 769px) {
  .nav-toggle {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .landing-header {
    flex-direction: column;
    gap: 16px;
    padding: 24px;
  }
  .landing-nav {
    gap: 18px;
  }
  .nav-toggle {
    display: inline-flex;
    align-self: flex-end;
  }
}
@media (max-width: 640px) {
  .landing-header {
    padding: 16px max(14px, env(safe-area-inset-left, 0)) 16px max(14px, env(safe-area-inset-right, 0));
    display: grid;
    grid-template-columns: 44px 1fr 44px;
    align-items: center;
    gap: 0;
  }
  .landing-header::before {
    content: "";
    width: 44px;
    height: 44px;
  }
  .landing-logo {
    font-size: 24px;
    text-align: center;
    justify-self: center;
    max-width: 100%;
    min-width: 0;
  }
  .landing-logo a {
    display: block;
  }
  .landing-nav {
    display: none !important;
  }
  .nav-toggle {
    justify-self: end;
    align-self: center;
  }
  .landing-nav > a,
  .landing-nav > .dropdown > a {
    padding: 6px 4px;
  }
  .landing-nav .dropdown-menu {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
  }
}
@media (max-width: 380px) {
  .landing-nav {
    font-size: 13px;
    gap: 8px 10px;
  }
}

.landing-logo {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: 0.5px;
  flex-shrink: 0;
  /* Jak hero na stronie głównej isobserved.pl (index.php) */
  background: linear-gradient(90deg, #22d3ee 0%, #0ea5e9 40%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.landing-logo a {
  text-decoration: none;
  color: inherit;
  display: inline-block;
}

.landing-nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 28px;
  font-size: 16px;
  color: #93a7c3;
  list-style: none;
  margin: 0;
  padding: 0;
  min-width: 0;
  flex: 0 0 auto;
  width: auto;
  max-width: 100%;
}

/* Wyższa specyficzność niż ewentualne style WP / globalne dla <nav> */
header.landing-header > nav.landing-nav {
  justify-content: flex-end;
}

.landing-nav li {
  margin: 0;
  padding: 0;
  list-style: none;
}

.landing-nav a {
  color: #93a7c3;
  text-decoration: none;
  transition: color 0.2s;
  display: inline-block;
}

.landing-nav a:hover {
  color: #fff;
}

/* WordPress menu structure support */
.landing-nav ul {
  display: flex;
  gap: 28px;
  align-items: center;
  list-style: none;
  margin: 0;
  padding: 0;
}

.landing-nav ul li {
  margin: 0;
  padding: 0;
  list-style: none;
}

/* Narzędzia – rozwijane menu identyczne jak na stronie głównej (index.php) */
.landing-nav .dropdown {
  position: relative;
}

.landing-nav .dropdown > a {
  position: relative;
}

.landing-nav .dropdown:hover .dropdown-menu,
.landing-nav .dropdown:focus-within .dropdown-menu {
  display: block;
}

.landing-nav .dropdown-menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 0;
  padding-top: 12px;
  background: rgba(14, 21, 35, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  padding: 12px;
  display: none;
  min-width: 220px;
  z-index: 1000;
  animation: landingDropdownFadeIn 0.2s ease;
}

.landing-nav .dropdown-menu::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 12px;
  background: transparent;
}

.landing-nav .dropdown-menu a {
  display: block;
  color: #c9d1d9;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  white-space: nowrap;
}

.landing-nav .dropdown-menu a:hover {
  background: rgba(255,255,255,0.08);
}

@keyframes landingDropdownFadeIn {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

/* WordPress menu z podstronami (np. Narzędzia z dziećmi) – też jako rozwijane */
.landing-nav li.menu-item-has-children {
  position: relative;
}

.landing-nav .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  margin: 0;
  padding: 12px;
  list-style: none;
  display: none;
  min-width: 220px;
  z-index: 1000;
  background: rgba(14, 21, 35, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,0.1);
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  animation: landingDropdownFadeIn 0.2s ease;
}

.landing-nav li.menu-item-has-children:hover .sub-menu,
.landing-nav li.menu-item-has-children:focus-within .sub-menu {
  display: block;
}

.landing-nav .sub-menu li {
  padding: 0;
}

.landing-nav .sub-menu a {
  display: block;
  color: #c9d1d9;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
}

.landing-nav .sub-menu a:hover {
  background: rgba(255,255,255,0.08);
}

/* Footer — spójny z isobserved.pl (jak `www/inc/footer.php`) */
.site-footer {
  width: 100%;
  margin-top: 0;
  border-top: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(7, 10, 18, 0.82);
  backdrop-filter: blur(10px);
}
.site-footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 46px 24px 18px;
  box-sizing: border-box;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 26px 28px;
  align-items: start;
}
.site-footer__brand {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.site-footer__logo {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.4px;
  background: linear-gradient(120deg, #22d3ee, #2563eb);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  display: inline-block;
  text-decoration: none;
}
.site-footer__tagline {
  margin: 0;
  color: rgba(148, 163, 184, 0.92);
  line-height: 1.65;
  font-size: 14px;
}
.site-footer__ctaRow {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.site-footer__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: rgba(255, 255, 255, 0.06);
  color: #e6edf3;
  text-decoration: none;
  transition: transform 150ms ease, opacity 150ms ease, background 150ms ease, border-color 150ms ease;
}
.site-footer__cta:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(34, 211, 238, 0.08);
}
.site-footer__cta--primary {
  border-color: rgba(34, 211, 238, 0.65);
  background: linear-gradient(135deg, #22d3ee, #2563eb);
  color: #fff;
}
.site-footer__cta--primary:hover {
  opacity: 0.96;
  background: linear-gradient(135deg, #22d3ee, #2563eb);
}
.site-footer__colTitle {
  margin: 0 0 12px 0;
  color: #e6edf3;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}
.site-footer__links a {
  color: rgba(148, 163, 184, 0.92);
  font-size: 14px;
  line-height: 1.4;
  text-decoration: none;
}
.site-footer__links a:hover {
  color: #e6edf3;
}
.site-footer__bottom {
  margin-top: 32px;
  padding-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: rgba(148, 163, 184, 0.82);
  font-size: 12px;
}
.site-footer__bottom strong {
  color: #e6edf3;
  font-weight: 700;
}
.site-footer__bottomRight {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.site-footer__social {
  display: flex;
  align-items: center;
  gap: 8px;
}
.site-footer__social a,
.site-footer__iconLink {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.22);
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
  text-decoration: none;
}
.site-footer__social a:hover,
.site-footer__iconLink:hover {
  transform: translateY(-1px);
  border-color: rgba(34, 211, 238, 0.55);
  background: rgba(34, 211, 238, 0.08);
}
.site-footer__social svg,
.site-footer__iconLink svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  color: #cbd5e1;
  display: block;
}
@media (max-width: 960px) {
  .site-footer__grid { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (max-width: 768px) {
  .site-footer__inner { padding: 34px 14px 16px; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; gap: 20px 18px; }
}
@media (max-width: 520px) {
  .site-footer__grid { grid-template-columns: 1fr; }
  .site-footer__bottomRight { justify-content: flex-start; }
}

/* Przyciski */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 15px;
  border: none;
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  cursor: pointer;
  text-decoration: none;
}

.btn-primary,
a.btn-primary,
a.btn.btn-primary {
  background: linear-gradient(130deg, var(--accent-start), var(--accent-end)) !important;
  color: #fff !important;
  box-shadow: 0 12px 25px rgba(34,211,238,0.25) !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  padding: 10px 22px !important;
  cursor: pointer !important;
  transition: transform var(--transition-fast), opacity var(--transition-fast) !important;
}

.btn-primary:hover,
a.btn-primary:hover {
  transform: translateY(-1px) !important;
  opacity: 0.95 !important;
}

/* ============================================
   STYLE SPECYFICZNE DLA WORDPRESSA
   ============================================ */

body.admin-bar { margin-top: 0 !important; }
.admin-bar .site-header { top: 0 !important; }
@media screen and (min-width: 601px) {
  body.admin-bar .landing-header {
    top: 32px;
  }
}
@media screen and (max-width: 600px) {
  body.admin-bar .landing-header {
    top: 0;
  }
}

.site-main {
  max-width: var(--layout-max);
  width: 100%;
  margin: 56px auto;
  padding: 0 var(--layout-pad);
  flex: 1;
  min-width: 0;
  box-sizing: border-box;
}

/* Blog home: H1 + intro + kategorie pills + CTA */
.blog-home-hero {
  margin: 10px 0 36px;
  width: 100%;
  max-width: none;
}
.blog-home-hero__title {
  margin: 0 0 14px 0;
  font-size: 40px;
  line-height: 1.15;
  font-weight: 800;
  background: linear-gradient(90deg, var(--accent-start), var(--accent-mid), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.blog-home-hero__intro {
  display: block;
  width: 100%;
  max-width: 100%;
  color: var(--fg-muted);
  font-size: 15.5px;
  line-height: 1.75;
  padding-bottom: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  text-align: justify;
  hyphens: auto;
  text-wrap: pretty;
}
.blog-home-hero__intro p {
  margin: 0 0 14px 0;
  max-width: none;
}
.blog-home-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}
.blog-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 13px;
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.06);
  color: rgba(203,213,225,0.95);
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}
.blog-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(34,211,238,0.55);
  background: rgba(34,211,238,0.06);
  color: #e6edf3;
}
.blog-home-cta {
  margin-top: 34px;
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.blog-home-cta__card {
  background: rgba(17, 26, 42, 0.75);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-base);
  padding: 26px 28px;
  box-shadow: 0 18px 50px rgba(2,8,20,0.35);
}
.blog-home-cta__title {
  margin: 0 0 10px 0;
  font-size: 22px;
  font-weight: 800;
  color: var(--fg);
}
.blog-home-cta__text {
  margin: 0 0 18px 0;
  color: var(--fg-muted);
  line-height: 1.7;
}
.blog-home-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Dolna sekcja informacyjna na stronie głównej bloga */
.blog-home-bottom {
  margin-top: 20px;
}
.blog-home-bottom__card {
  background: rgba(17, 26, 42, 0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-base);
  padding: 22px 24px;
  box-shadow: 0 14px 40px rgba(2, 8, 20, 0.28);
}
.blog-home-bottom__title {
  margin: 0 0 10px 0;
  font-size: 18px;
  font-weight: 900;
  color: #e6edf3;
}
.blog-home-bottom__card p {
  margin: 0 0 12px 0;
  color: rgba(155,167,192,.92);
  line-height: 1.75;
}
.blog-home-bottom__list {
  margin: 0 0 16px 0;
  padding-left: 18px;
  color: rgba(203,213,225,.94);
}
.blog-home-bottom__list li {
  margin: 6px 0;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .blog-home-bottom__card {
    padding: 18px 18px;
  }
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  border: 1px solid rgba(148,163,184,0.35);
  background: transparent;
  color: rgba(203,213,225,0.95);
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
  text-decoration: none;
}
.btn-ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(34,211,238,0.45);
  background: rgba(34,211,238,0.06);
  color: #e6edf3;
}

@media (max-width: 768px) {
  .blog-home-hero__title { font-size: 30px; }
  .blog-home-hero__intro { font-size: 15px; }
}

@media (max-width: 640px) {
  .blog-home-hero__intro {
    text-align: left;
    hyphens: manual;
  }
}

/* Kontener artykułów - siatka 3 kolumny */
.posts-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
  margin-bottom: 32px;
  width: 100%;
  min-width: 0;
  align-items: stretch;
}

/* Artykuły blogowe – karty jak na zrzucie (ciemne tło, delikatny blask) */
article.post,
article.page {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-base);
  padding: 28px 32px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.25), 0 0 0 1px rgba(255,255,255,0.04);
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
  height: 100%;
  min-width: 0;
  overflow: hidden;
}

article.post:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.06);
}

/* Treść artykułu w siatce - fragment w szarym, przycisk na dole */
.posts-container article.post .entry-content {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  color: var(--fg-muted);
  font-size: 15px;
  line-height: 1.65;
}

.posts-container article.post .entry-content p {
  color: var(--fg-muted);
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.posts-container article.post .entry-content .btn {
  margin-top: auto;
  align-self: flex-start;
}

/* Lista wpisów: stała „strefa” tytułu — równe karty i wyrównany przycisk */
.posts-container article.post .entry-header {
  flex-shrink: 0;
  margin-bottom: 14px;
}
.posts-container article.post .entry-title {
  font-size: 1.12rem;
  line-height: 1.38;
  min-height: calc(1.38em * 3);
  margin-bottom: 8px;
}
.posts-container article.post .entry-title a {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.posts-container article.post .entry-meta-inline {
  margin-bottom: 0;
}

/* Miniatury wpisów w listach (index / archive / search) */
.posts-container .post-thumbnail {
  margin: -28px -32px 18px;
  border-radius: var(--radius-base) var(--radius-base) 0 0;
  overflow: hidden;
  flex-shrink: 0;
  /* Kadr jak baner karty — wypełnienie szerokości (object-fit: cover) */
  aspect-ratio: 16 / 9;
  line-height: 0;
  background:
    radial-gradient(100% 120% at 50% 0%, rgba(34, 211, 238, 0.08), transparent 55%),
    linear-gradient(180deg, #121b2e 0%, #080d16 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.posts-container .post-thumbnail a {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  box-sizing: border-box;
}

.posts-container .post-thumbnail img.post-thumbnail-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  display: block;
  border-radius: 0;
}

/* Miniatura na stronie pojedynczego wpisu */
.single-post .post-thumbnail {
  margin-bottom: 24px;
  border-radius: var(--radius-base);
  overflow: hidden;
}

.single-post .post-thumbnail img.post-thumbnail-img {
  width: 100%;
  height: auto;
  display: block;
}

/* Responsywność - mobile */
@media (max-width: 1024px) {
  .posts-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .posts-container {
    grid-template-columns: 1fr;
  }
}

/* Nagłówki artykułów */
.entry-header {
  margin-bottom: 20px;
}

/* Tytuł wpisu – wyraźny cyan/jasnoniebieski jak na zrzucie */
.entry-title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 10px;
  background: linear-gradient(90deg, var(--accent-start), var(--accent-mid), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.entry-title a {
  background: linear-gradient(90deg, var(--accent-start), var(--accent-mid), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
}

.entry-title a:hover {
  filter: drop-shadow(0 0 8px rgba(34, 211, 238, 0.4));
}

/* Data + kategoria w jednej linii (np. 11.02.2026 IsObservedOgólne) */
.entry-meta {
  color: var(--fg-muted);
  font-size: 14px;
  margin-bottom: 16px;
}

.entry-meta-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35em;
  color: var(--fg-muted);
  font-size: 13px;
  margin-bottom: 16px;
}

.entry-meta-inline .posted-on {
  color: var(--fg-muted);
}

.entry-meta .updated-on {
  color: var(--fg-subtle);
  font-size: 13px;
  margin-left: 10px;
}

.entry-meta-inline .cat-links {
  color: var(--fg-muted);
}

.entry-meta-inline .cat-links a {
  color: var(--fg-muted);
  text-decoration: none;
}

.entry-meta-inline .cat-links a:hover {
  color: var(--accent-mid);
}

.entry-meta a {
  color: var(--accent-mid);
  text-decoration: none;
}

.entry-meta a:hover {
  color: var(--accent-start);
}

/* Treść artykułu */
.entry-content {
  color: var(--fg);
  line-height: 1.8;
  font-size: 16px;
}

.entry-content p {
  margin-bottom: 16px;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6 {
  color: var(--fg);
  font-weight: 600;
  margin-top: 32px;
  margin-bottom: 16px;
}

.entry-content h2 {
  font-size: 28px;
  border-bottom: 1px solid var(--panel-border);
  padding-bottom: 8px;
}

.entry-content h3 {
  font-size: 24px;
}

.entry-content a {
  color: var(--accent-mid);
  text-decoration: underline;
}

.entry-content a:hover {
  color: var(--accent-start);
}

.entry-content ul,
.entry-content ol {
  margin-left: 24px;
  margin-bottom: 16px;
}

.entry-content li {
  margin-bottom: 8px;
}

.entry-content blockquote {
  border-left: 4px solid var(--accent-mid);
  padding-left: 24px;
  margin: 24px 0;
  color: var(--fg-muted);
  font-style: italic;
}

.entry-content code {
  background: var(--panel-bg-soft);
  padding: 2px 6px;
  border-radius: 4px;
  font-family: 'Courier New', monospace;
  font-size: 14px;
}

.entry-content pre {
  background: var(--panel-bg-soft);
  padding: 16px;
  border-radius: var(--radius-base);
  overflow-x: auto;
  margin: 24px 0;
}

.entry-content pre code {
  background: transparent;
  padding: 0;
}

.entry-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-base);
  margin: 24px 0;
}

/* Komentarze */
.comments-area {
  background: var(--panel-bg);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-base);
  padding: 32px;
  margin-top: 32px;
}

.comments-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 24px;
  color: var(--fg);
}

.comment-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.comment {
  padding: 24px 0;
  border-bottom: 1px solid var(--panel-border);
}

.comment:last-child {
  border-bottom: none;
}

.comment-author {
  font-weight: 600;
  color: var(--fg);
  margin-bottom: 8px;
}

.comment-author a {
  color: var(--accent-mid);
  text-decoration: none;
}

.comment-metadata {
  color: var(--fg-muted);
  font-size: 14px;
  margin-bottom: 12px;
}

.comment-content {
  color: var(--fg);
  line-height: 1.8;
}

.comment-form {
  margin-top: 32px;
}

.comment-form label {
  display: block;
  margin-bottom: 8px;
  color: var(--fg);
  font-weight: 500;
}

/* Przycisk "Dodaj komentarz" - spójny z .btn-primary */
.comment-form input[type="submit"],
.comment-form #submit,
.comment-form .submit,
#commentform input[type="submit"],
#commentform #submit,
#respond input[type="submit"],
#respond #submit {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-weight: 600 !important;
  font-size: 15px !important;
  border: none !important;
  border-radius: var(--radius-pill) !important;
  padding: 10px 22px !important;
  cursor: pointer !important;
  text-decoration: none !important;
  font-family: "Inter", "Segoe UI", system-ui, sans-serif !important;
  background: linear-gradient(130deg, var(--accent-start), var(--accent-end)) !important;
  color: #fff !important;
  box-shadow: 0 12px 25px rgba(34,211,238,0.25) !important;
  transition: transform var(--transition-fast), opacity var(--transition-fast) !important;
}

.comment-form input[type="submit"]:hover,
.comment-form #submit:hover,
#commentform input[type="submit"]:hover,
#respond input[type="submit"]:hover {
  transform: translateY(-1px) !important;
  opacity: 0.95 !important;
}

/* Nawigacja postów */
.post-navigation {
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--panel-border);
}

.post-navigation a {
  color: var(--accent-mid);
  text-decoration: none;
}

.post-navigation a:hover {
  color: var(--accent-start);
}

/* Nawigacja nad artykułem (prev / back / next) */
.post-top-nav {
  margin: 0 0 18px;
}
.post-top-nav--bottom {
  margin: 22px 0 0;
}
.post-top-nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
}
.post-top-nav__side {
  display: flex;
  justify-content: flex-start;
  min-width: 0;
}
.post-top-nav__side--right {
  justify-content: flex-end;
}
.post-top-nav__center {
  display: flex;
  justify-content: center;
}
.post-top-nav__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.2px;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast), opacity var(--transition-fast);
}
.post-top-nav__btn--pill {
  border: 1px solid rgba(34,211,238,0.55);
  background: rgba(34,211,238,0.10);
  color: #e6edf3;
}
.post-top-nav__btn--pill:hover {
  transform: translateY(-1px);
  background: rgba(34,211,238,0.16);
  border-color: rgba(34,211,238,0.75);
}
.post-top-nav__btn--ghost {
  border: 1px solid rgba(148,163,184,0.35);
  background: rgba(255,255,255,0.06);
  color: rgba(203,213,225,0.95);
}
.post-top-nav__btn--ghost:hover {
  transform: translateY(-1px);
  border-color: rgba(34,211,238,0.45);
  background: rgba(34,211,238,0.06);
  color: #e6edf3;
}
@media (max-width: 820px) {
  .post-top-nav__inner {
    grid-template-columns: 1fr;
  }
  .post-top-nav__side,
  .post-top-nav__side--right,
  .post-top-nav__center {
    justify-content: center;
  }
}

/* Related posts */
.related-posts {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.related-posts__title {
  margin: 0 0 14px;
  font-size: 18px;
  font-weight: 800;
  color: var(--fg);
}
.related-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.related-posts__card {
  display: block;
  background: rgba(17, 26, 42, 0.75);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 14px;
  padding: 14px 16px;
  text-decoration: none;
  transition: transform var(--transition-fast), border-color var(--transition-fast), background var(--transition-fast);
}
.related-posts__card:hover {
  transform: translateY(-1px);
  border-color: rgba(34,211,238,0.35);
  background: rgba(17, 26, 42, 0.88);
}
.related-posts__cardTitle {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.35;
  color: #e6edf3;
  margin-bottom: 8px;
}
.related-posts__meta {
  font-size: 12px;
  color: rgba(155,167,192,.86);
}
@media (max-width: 1024px) {
  .related-posts__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .related-posts__grid { grid-template-columns: 1fr; }
}

/* Author box */
.author-box {
  margin-top: 18px;
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 14px;
  background: rgba(17, 26, 42, 0.6);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-base);
  padding: 16px 18px;
}
.author-box__avatar img {
  border-radius: 18px;
  border: 1px solid rgba(255,255,255,0.08);
}
.author-box__name {
  font-weight: 900;
  color: #e6edf3;
  margin-bottom: 6px;
}
.author-box__bio {
  color: rgba(155,167,192,.92);
  font-size: 14px;
  line-height: 1.7;
}
.author-box__bio p { margin: 0 0 10px; }
.author-box__link {
  display: inline-flex;
  margin-top: 4px;
  color: var(--accent-mid);
  text-decoration: none;
  font-weight: 800;
  font-size: 13px;
}
.author-box__link:hover { color: var(--accent-start); }
@media (max-width: 640px) {
  .author-box { grid-template-columns: 1fr; }
}

/* Sidebar / Widgety */
.sidebar,
.widget-area {
  background: var(--panel-bg-soft);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-base);
  padding: 24px;
  margin-bottom: 24px;
}

.widget {
  margin-bottom: 32px;
}

.widget:last-child {
  margin-bottom: 0;
}

.widget-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--fg);
}

.widget ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget li {
  padding: 8px 0;
  border-bottom: 1px solid var(--panel-border);
}

.widget li:last-child {
  border-bottom: none;
}

.widget a {
  color: var(--accent-mid);
  text-decoration: none;
}

.widget a:hover {
  color: var(--accent-start);
}

/* Archiwum / Lista postów */
.archive-header,
.page-header {
  margin-bottom: 32px;
}

.archive-title,
.page-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--accent-start), var(--accent-mid), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.archive-description {
  max-width: 980px;
  color: var(--fg-muted);
  font-size: 15.5px;
  line-height: 1.75;
  padding-bottom: 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.archive-description p {
  margin: 0 0 14px 0;
}

/* Paginacja */
.pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 32px;
  padding-top: 32px;
  border-top: 1px solid var(--panel-border);
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 8px 12px;
  border-radius: var(--radius-pill);
  background: var(--panel-bg-soft);
  border: 1px solid var(--panel-border);
  color: var(--fg);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.pagination a:hover {
  background: rgba(34, 211, 238, 0.15);
  border-color: var(--accent-mid);
  color: var(--accent-start);
}

.pagination .current {
  background: linear-gradient(130deg, var(--accent-start), var(--accent-end));
  border-color: var(--accent-mid);
  color: #fff;
}

/* 404 */
.error-404 {
  text-align: center;
  padding: 80px 24px;
}

.error-404 h1 {
  font-size: 72px;
  font-weight: 700;
  margin-bottom: 16px;
  background: linear-gradient(90deg, var(--accent-start), var(--accent-mid), var(--accent-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.error-404 p {
  font-size: 18px;
  color: var(--fg-muted);
  margin-bottom: 32px;
}

/* Responsywność */
@media (max-width: 768px) {
  .site-main {
    padding: 0 var(--layout-pad);
  }

  article.post,
  article.page {
    padding: 24px;
  }

  .single-post .entry-header .entry-title {
    font-size: 24px;
  }

  .entry-content h2 {
    font-size: 22px;
  }

  .comments-area {
    padding: 24px;
  }
}
