/*
 Theme Name:  Pressmind (GeneratePress Child)
 Theme URI:   https://pressmind.org
 Description: Ciemny, neonowy motyw potomny do GeneratePress – czysty, szybki, techniczny.
 Author:      Paweł / Pressmind
 Template:    generatepress
 Version:     1.0.0
 License:     GPL-2.0-or-later
 Text Domain: pressmind-gp-child
*/

/* =========================
   1) Zmienne i baza
   ========================= */
:root {
  --pm-bg: #0b0b0e;
  --pm-panel: #11131a;
  --pm-elev: #161926;
  --pm-fg: #e9ecff;
  --pm-muted: #a2a8c7;

  --pm-primary: #9b5cff;
  --pm-accent: #58ffb6;
  --pm-danger: #ff5c99;

  --pm-link: var(--pm-primary);
  --pm-link-hover: #b98cff;

  --pm-border: #1f2333;
  --pm-glow: rgba(155, 92, 255, 0.55);
  --pm-glow-accent: rgba(88, 255, 182, 0.4);

  --pm-radius: 14px;
  --pm-shadow: 0 10px 30px rgba(0, 0, 0, 0.55),
    0 0 60px rgba(155, 92, 255, 0.08);

  /* Zmienne dla kresek - dodane w liniach 1501-1506 */
  --pm-bar-color: #9b5cff;
  --pm-bar-width: 3px;
  --pm-bar-offset: 10px;
  --pm-bar-gap: 8px;
}

html {
  scroll-behavior: smooth;
  scrollbar-gutter: stable both-edges;
}
body {
  background: radial-gradient(
      1200px 600px at 80% -10%,
      rgba(155, 92, 255, 0.08),
      transparent 60%
    ),
    radial-gradient(
      900px 500px at 10% 120%,
      rgba(88, 255, 182, 0.06),
      transparent 60%
    ),
    var(--pm-bg);
  color: var(--pm-fg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.65;
  overflow-y: scroll;
}

/* Linki globalne */
a {
  color: var(--pm-link);
  text-decoration: none;
}
a:hover {
  color: var(--pm-link-hover);
  text-shadow: 0 0 12px var(--pm-glow);
}

/* Przyciski (także Gutenberg) */
button,
.wp-block-button__link,
.button,
input[type="submit"] {
  background: linear-gradient(
      135deg,
      var(--pm-primary),
      #7b34ff 35%,
      #5d2bff 65%
    )
    border-box;
  color: #fff !important;
  border: 1px solid rgba(155, 92, 255, 0.25);
  border-radius: calc(var(--pm-radius) - 4px);
  padding: 0.7rem 1.1rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35), 0 0 30px var(--pm-glow);
  transition: transform 0.12s ease, box-shadow 0.12s ease, filter 0.12s ease;
}
button:hover,
.wp-block-button__link:hover,
.button:hover,
input[type="submit"]:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45), 0 0 42px var(--pm-glow);
  filter: saturate(1.06);
}

/* Karty/panele utility */
.pm-card {
  background: linear-gradient(180deg, var(--pm-panel), var(--pm-elev));
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius);
  box-shadow: var(--pm-shadow);
  padding: 1.1rem;
}

/* Nagłówki */
h1,
h2,
h3,
h4 {
  letter-spacing: 0.2px;
  line-height: 1.25;
}
h1 {
  font-weight: 800;
  text-shadow: 0 0 24px var(--pm-glow);
}
h2 {
  font-weight: 700;
}

/* Lead */
.lead {
  font-size: clamp(1.1rem, 2.2vw, 1.35rem);
  color: #f3f5ff;
  opacity: 0.98;
}

/* Cytaty */
blockquote,
.wp-block-quote {
  background: linear-gradient(
    180deg,
    rgba(155, 92, 255, 0.08),
    rgba(88, 255, 182, 0.06)
  );
  border-left: 3px solid var(--pm-primary);
  padding: 1rem 1.25rem;
  border-radius: var(--pm-radius);
  color: #eae7ff;
}

/* Listy */
ul li::marker {
  color: var(--pm-accent);
}

/* Kod */
pre,
code,
kbd,
samp,
.wp-block-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas,
    "Liberation Mono", monospace;
}

pre,
.wp-block-code {
  background: #0f1220;
  color: #e6ebff;
  border: 1px solid #20243a;
  border-radius: var(--pm-radius);
  padding: 1rem;
  box-shadow: inset 0 0 40px rgba(155, 92, 255, 0.08);
}
code {
  background: #14172a;
  color: #d5d9ff;
  padding: 0.15rem 0.35rem;
  border-radius: 0.4rem;
  border: 1px solid #20243a;
}

/* Tabele */
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--pm-border);
  border-radius: var(--pm-radius);
  overflow: hidden;
  margin: 0.6rem 0 1rem;
}
thead th {
  background: #121528;
  color: #f0f3ff;
}
td,
th {
  padding: 0.75rem;
  border-bottom: 1px solid var(--pm-border);
}
tbody tr:hover {
  background: #0f1220;
}

/* Obrazy i podpisy */
figure img {
  border-radius: calc(var(--pm-radius) - 4px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.5), 0 0 28px rgba(155, 92, 255, 0.12);
}
figcaption {
  color: var(--pm-muted);
  font-size: 0.92rem;
  margin-top: 0.35rem;
}

/* Formularze */
input,
textarea,
select {
  background: #0d1020;
  border: 1px solid var(--pm-border);
  border-radius: 10px;
  color: var(--pm-fg);
  padding: 0.6rem 0.75rem;
}
input:focus,
textarea:focus,
select:focus {
  outline: none;
  border-color: #7b34ff;
  box-shadow: 0 0 0 3px rgba(155, 92, 255, 0.18);
}

/* Zaznaczenie */
::selection {
  background: rgba(155, 92, 255, 0.35);
  color: #fff;
}

/* Scrollbar */
*::-webkit-scrollbar {
  height: 12px;
  width: 12px;
}
*::-webkit-scrollbar-thumb {
  background: #23263a;
  border-radius: 10px;
}
*::-webkit-scrollbar-thumb:hover {
  background: #2d3150;
}

/* =========================
   2) Nagłówek i nawigacja
   ========================= */
.site-header,
.inside-header {
  background: #0b0b0e !important;
  border-bottom: 1px solid #1c1f2c;
}
.site-branding a,
.site-title a {
  color: #fff !important;
  text-shadow: 0 0 12px rgba(155, 92, 255, 0.45);
}
.site-description {
  color: #b6baff !important;
}

.main-navigation,
.inside-navigation {
  background: #0b0b0e !important;
  border-bottom: 1px solid #1c1f2c;
  box-shadow: inset 0 -2px 0 rgba(155, 92, 255, 0.08);
}

/* NAV PILLS 2.0 */
.main-navigation .main-nav ul li {
  margin-right: 6px;
}

.main-navigation .main-nav ul li > a {
  background: linear-gradient(180deg, #0f1220 0%, #121425 100%);
  border: 1px solid #20243a;
  color: #dfe3ff;
  border-radius: 12px;
  padding: 0.58rem 0.9rem;
  line-height: 1;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02),
    0 6px 16px rgba(0, 0, 0, 0.35);
  transition: color 0.12s, background 0.12s, border-color 0.12s,
    box-shadow 0.12s, transform 0.12s;
}
.main-navigation .main-nav ul li:hover > a {
  color: #ffffff;
  background: radial-gradient(
      120% 140% at 30% -10%,
      rgba(155, 92, 255, 0.18),
      transparent 60%
    ),
    linear-gradient(180deg, #12162a 0%, #161a2e 100%);
  border-color: #2b2f49;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45), 0 0 22px rgba(155, 92, 255, 0.18);
  /*transform: translateY(-1px);*/
  text-shadow: 0 0 10px var(--pm-glow);
}
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current_page_item > a {
  background: linear-gradient(135deg, #9b5cff 0%, #7b34ff 45%, #5d2bff 80%);
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 0 0 1px rgba(155, 92, 255, 0.35) inset,
    0 8px 26px rgba(0, 0, 0, 0.55), 0 0 34px rgba(155, 92, 255, 0.28),
    0 0 18px rgba(88, 255, 182, 0.12);
  /*transform: translateY(-1px);*/
  position: relative;
}
.main-navigation .main-nav ul li.current-menu-item > a::after,
.main-navigation .main-nav ul li.current_page_item > a::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -6px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(
    90deg,
    rgba(88, 255, 182, 0) 0%,
    rgba(88, 255, 182, 0.45) 50%,
    rgba(88, 255, 182, 0) 100%
  );
  box-shadow: 0 0 16px rgba(88, 255, 182, 0.45),
    0 0 24px rgba(155, 92, 255, 0.35);
}
.main-navigation .main-nav ul li > a {
  outline-color: transparent;
}
.main-navigation .main-nav ul li > a:focus,
.main-navigation .main-nav ul li > a:focus-visible {
  outline: none !important;
  color: #ffffff !important;
  box-shadow: 0 0 0 3px rgba(155, 92, 255, 0.35) !important;
  border-color: #7b34ff !important;
}

/* =========================
   3) Layout i kontenery
   ========================= */



/* =========================
   4) Listy wpisów i karty
   ========================= */
.inside-article {
  background: linear-gradient(180deg, #11131a, #151827);
  border: 1px solid #1f2333;
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
  padding: 1.5rem;
  color: #e9ecff;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  margin-bottom: 22px;
}
.inside-article:hover {
  /* transform: translateY(-2px);*/
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.65), 0 0 34px rgba(155, 92, 255, 0.12);
}
.entry-title a {
  color: #fff !important;
  text-decoration: none;
  text-shadow: 0 0 8px rgba(155, 92, 255, 0.4);
}
.entry-title a:hover {
  color: var(--pm-primary) !important;
}

/* Meta i „żetony" */
.entry-meta,
.cat-links,
.tags-links {
  color: #a7aed1;
  font-size: 0.92rem;
}
.cat-links a,
.tags-links a {
  display: inline-block;
  padding: 0.12rem 0.55rem;
  margin: 0.1rem 0.35rem 0.1rem 0;
  border: 1px solid #262a42;
  border-radius: 999px;
  color: #dfe3ff;
  text-decoration: none;
}
.cat-links a:hover,
.tags-links a:hover {
  background: #121425;
  color: #fff;
}

/* =========================
   5) Sidebar / widgety
   ========================= */
.widget,
.widget-area .widget {
  background: #0e1019;
  border: 1px solid #1f2333;
  border-radius: 14px;
  box-shadow: 0 0 22px rgba(155, 92, 255, 0.05);
  color: #dfe3ff;
  padding: 16px;
  margin-bottom: 18px;
}
.widget-title {
  color: #9b5cff;
  text-transform: uppercase;
  font-size: 0.9rem;
  letter-spacing: 0.6px;
  margin: 0 0 0.6rem;
}
.widget ul {
  margin: 0;
  padding-left: 1rem;
}

/* Wyszukiwarka */
input[type="search"] {
  background: #0c0e18;
  border: 1px solid #2a2e45;
  color: #f5f5ff;
  border-radius: 10px;
}
input[type="search"]:focus {
  box-shadow: 0 0 0 3px rgba(155, 92, 255, 0.3);
}

/* =========================
   6) Treść pojedynczego wpisu
   ========================= */
/*.single .entry-content {
  max-width: 75ch;
}*/
.entry-content {
  color: #e6e9ff;
}
.entry-content p {
  color: #dee2ff;
  margin: 0.65rem 0 1.05rem;
}
.entry-content h1,
h2,
h3 {
  margin-top: 1.2em;
}
.entry-content h2 {
  margin-top: 1.35em;
}
/*.entry-content li {
  margin: 0.25rem 0;
}*/

/* figure inline */
.figure-inline {
  margin: 0.8rem 0 1.2rem;
}
.figure-inline.wide {
  max-width: 680px;
}
.figure-inline.float-left {
  float: left;
  margin-right: 1rem;
}
.figure-inline.float-right {
  float: right;
  margin-left: 1rem;
}
@media (max-width: 860px) {
  .figure-inline,
  .figure-inline.float-left,
  .figure-inline.float-right {
    float: none;
    margin: 0.8rem auto 1.2rem;
    display: block;
  }
}

/* Sekcja „Źródła" */
article h2 + ul {
  list-style: none;
  padding-left: 0;
}
article h2 + ul li {
  background: #0f1220;
  border: 1px solid #20243a;
  border-radius: 12px;
  padding: 0.55rem 0.75rem;
  margin: 0.5rem 0;
  color: #dfe3ff;
  box-shadow: inset 0 0 22px rgba(155, 92, 255, 0.06);
}
article h2 + ul li a {
  color: #9b5cff;
  word-break: break-all;
}
article h2 + ul li a:hover {
  color: #58ffb6;
}

/* Dostępność */
a:focus,
button:focus,
input:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(155, 92, 255, 0.25),
    0 0 0 6px rgba(88, 255, 182, 0.15);
  border-color: #7b34ff !important;
}
.entry-content a {
  overflow-wrap: anywhere;
}

/* =========================
   7) Paginacja
   ========================= */
.paging-navigation .nav-links a,
.pagination .page-numbers {
  display: inline-block;
  margin: 0.15rem 0.2rem;
  padding: 0.45rem 0.7rem;
  border: 1px solid #262a42;
  border-radius: 10px;
  color: #dfe3ff;
}
.pagination .page-numbers.current,
.paging-navigation .nav-links a:hover {
  background: linear-gradient(135deg, #9b5cff, #7b34ff 40%, #5d2bff 75%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 0 20px rgba(155, 92, 255, 0.25);
}

/* =========================
   8) Stopka
   ========================= */
.site-info,
.site-footer {
  background: linear-gradient(90deg, #0b0b0e, #141628);
  border-top: 1px solid #1f2333;
  color: #b8bcdf;
  text-align: center;
  margin-top: 14px;
}
.site-footer a {
  color: #9b5cff;
}
.site-footer a:hover {
  color: #58ffb6;
}

/* === COMMENTS POLISH 2.0 === */
#comments h2,
#reply-title {
  color: #eaf0ff;
  font-weight: 700;
  font-size: 1.2rem;
  margin-bottom: 0.8rem;
  text-shadow: 0 0 14px rgba(155, 92, 255, 0.35);
  border-left: 3px solid #9b5cff;
  padding-left: 0.6rem;
}
.comment {
  background: linear-gradient(180deg, #0f1120 0%, #14172a 100%);
  border: 1px solid #1e2238;
  border-radius: 14px;
  padding: 1.1rem 1.3rem;
  margin-bottom: 1rem;
  color: #dce1ff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), 0 0 30px rgba(155, 92, 255, 0.08);
}
.comment-author img {
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(155, 92, 255, 0.25);
  margin-right: 0.5rem;
}
.comment-author .fn {
  font-weight: 600;
  color: #9b5cff;
}
.comment-metadata a {
  color: #8e93c7;
  font-size: 0.85rem;
}
.comment-reply-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: #58ffb6;
}
.comment-reply-link:hover {
  text-decoration: underline;
  text-shadow: 0 0 10px rgba(88, 255, 182, 0.35);
}
.comment-respond {
  background: linear-gradient(180deg, #101322 0%, #14172a 100%);
  border: 1px solid #1e2238;
  border-radius: 14px;
  padding: 1.5rem 1.4rem;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5);
}
.comment-respond label {
  color: #cdd2f7;
  font-size: 0.95rem;
}
.comment-respond textarea,
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"] {
  background: #0c0f1e;
  border: 1px solid #242941;
  border-radius: 10px;
  color: #f2f5ff;
  padding: 0.6rem 0.75rem;
}
.comment-respond textarea:focus,
.comment-respond input:focus {
  border-color: #7b34ff;
  box-shadow: 0 0 0 3px rgba(155, 92, 255, 0.25);
}
.form-submit .submit {
  margin-top: 0.6rem;
  border-radius: 10px;
  font-weight: 600;
  background: linear-gradient(135deg, #9b5cff, #7b34ff 40%, #5d2bff 75%);
  box-shadow: 0 0 18px rgba(155, 92, 255, 0.45);
}
.comment:hover {
  transform: translateY(-2px);
  transition: all 0.15s ease;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65), 0 0 36px rgba(155, 92, 255, 0.12);
}
.comment .children {
  margin-left: 2rem;
  border-left: 2px solid rgba(155, 92, 255, 0.25);
  padding-left: 1rem;
}

/* DARK FIX – containers */
.comments-area,
#respond,
#comments {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--pm-fg);
}
.entry-comments,
.comment-navigation {
  background: none !important;
  border: none !important;
}
.comments-area {
  margin-top: 1.2rem;
  padding: 0 0 1rem;
}

/* =========================
   9) Drobiazgi UX
   ========================= */
hr {
  height: 1px;
  border: 0;
  background: #20243a;
  box-shadow: 0 0 18px rgba(155, 92, 255, 0.08);
}
table {
  overflow-x: auto;
  display: block;
} /* na wąskich ekranach */

/* NAV: wymuś kolory tekstu (także :visited) */
.main-navigation .main-nav ul li > a,
.main-navigation .main-nav ul li > a:link,
.main-navigation .main-nav ul li > a:visited {
  color: #dfe3ff !important;
}
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li:focus-within > a {
  color: #fff !important;
}

/* Link autora wpisu */
.entry-meta a,
.entry-meta a:visited,
.entry-meta a:hover {
  color: #9b5cff !important;
  text-decoration: none;
  box-shadow: none;
}
.entry-meta a:hover {
  color: #b98cff !important;
  text-shadow: 0 0 8px rgba(155, 92, 255, 0.35);
}

/* UNIVERSAL LINK POLISH 3.0 */
a,
a:link {
  color: #9b5cff;
  text-decoration: none;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}
a:hover {
  color: #b98cff;
  text-shadow: 0 0 10px rgba(155, 92, 255, 0.35);
}
a:visited {
  color: #8b4fe0;
}
a:active {
  color: #caa3ff;
  text-shadow: 0 0 12px rgba(155, 92, 255, 0.4);
}
a:focus,
a:focus-visible {
  outline: none !important;
  box-shadow: 0 0 0 2px rgba(155, 92, 255, 0.5),
    0 0 8px rgba(155, 92, 255, 0.35);
  border-radius: 5px;
}

/* Header branding focus i hover */
.site-title a,
.site-branding a {
  color: #fff !important;
  text-shadow: 0 0 10px rgba(155, 92, 255, 0.35);
}
.site-title a:hover,
.site-branding a:hover {
  color: #ffffff !important;
  text-shadow: 0 0 18px rgba(155, 92, 255, 0.55);
}
.site-title a:focus,
.site-branding a:focus {
  box-shadow: 0 0 0 3px rgba(155, 92, 255, 0.45),
    0 0 10px rgba(155, 92, 255, 0.25);
  border-radius: 6px;
}

/* Linki w widgetach */
.widget a {
  color: #b69cff;
}
.widget a:hover {
  color: #58ffb6;
  text-shadow: 0 0 6px rgba(88, 255, 182, 0.4);
}

/* Meta links */
.entry-meta a,
.comment-meta a {
  color: #9b5cff;
  text-decoration: none;
}
.entry-meta a:hover,
.comment-meta a:hover {
  color: #b98cff;
  text-shadow: 0 0 8px rgba(155, 92, 255, 0.3);
}
.entry-meta a:visited,
.comment-meta a:visited {
  color: #8a74d9;
}

/* Click animation */
a,
button {
  transition: all 0.15s ease-in-out;
}

/* COMPAT PACK (lite) */
body,
.site,
#page,
.site-content,
.content-area,
.site-main,
#primary,
#main {
  background: transparent !important;
  color: var(--pm-fg) !important;
}
.site-header,
.inside-header {
  background: rgba(11, 11, 14, 0.92) !important;
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--pm-border);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.45);
}
.site-branding .main-title {
  margin: 0;
  line-height: 1.15;
}
.site-branding .main-title a,
.site-title a {
  color: #fff !important;
  text-shadow: 0 0 12px rgba(155, 92, 255, 0.35);
}
.home .site-branding h1 {
  text-shadow: none;
} /* gaś globalne H1 */

/* Nawigacja – uproszczone pilule */
.main-navigation .main-nav ul li {
  margin-right: 6px;
}
.main-navigation .main-nav ul li > a,
.main-navigation .main-nav ul li > a:link,
.main-navigation .main-nav ul li > a:visited {
  background: linear-gradient(180deg, #0f1220 0%, #121425 100%);
  border: 1px solid #20243a;
  border-radius: 12px;
  color: #dfe3ff !important;
  padding: 0.58rem 0.9rem;
  line-height: 1;
  transition: color 0.12s, background 0.12s, border-color 0.12s,
    box-shadow 0.12s, transform 0.12s;
  outline-color: transparent;
}
.main-navigation .main-nav ul li:hover > a {
  color: #fff !important;
  background: radial-gradient(
      120% 140% at 30% -10%,
      rgba(155, 92, 255, 0.18),
      transparent 60%
    ),
    linear-gradient(180deg, #12162a 0%, #161a2e 100%);
  border-color: #2b2f49 !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45), 0 0 22px rgba(155, 92, 255, 0.18) !important;
  /*transform: translateY(-1px);*/
}
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current_page_item > a {
  background: linear-gradient(135deg, #9b5cff 0%, #7b34ff 45%, #5d2bff 80%);
  color: #fff !important;
  border-color: transparent;
  box-shadow: 0 0 0 1px rgba(155, 92, 255, 0.28) inset,
    0 6px 20px rgba(0, 0, 0, 0.5), 0 0 22px rgba(155, 92, 255, 0.18);
}

/* Pre/code – copy button (wizualka) */
pre {
  position: relative;
}
.pm-copy-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  background: rgba(88, 255, 182, 0.2);
  border: 1px solid rgba(88, 255, 182, 0.5);
  color: #58ffb6;
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}
.pm-copy-btn:hover {
  background: rgba(88, 255, 182, 0.3);
  transform: scale(1.05);
}

/* Scroll to top */
.scroll-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #9b5cff;
  color: #fff;
  border: none;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(155, 92, 255, 0.3);
  z-index: 1000;
}

.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
}

.scroll-to-top:hover {
  transform: scale(1.1);
  background: #b98cff;
}

/* opcjonalnie drobna korekta optyczna dla ikony lub strzałki */
.scroll-to-top i,
.scroll-to-top svg,
.scroll-to-top span {
  position: relative;
  top: -1px;
}

/* Page loader – bez reflow (transform zamiast width) */
.page-loader{
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 100%;                /* stała szerokość */
  background: linear-gradient(90deg, #9b5cff, #58ffb6);
  transform-origin: 0 50%;    /* start od lewej krawędzi */
  transform: scaleX(0);       /* animujemy tylko transform */
  transition: transform 0.3s ease, opacity 0.3s ease; /* NIE animujemy width */
  will-change: transform, opacity;
  z-index: 10000;
}
@media (prefers-reduced-motion: reduce) {
  .page-loader{ transition: none; }

}
@media (prefers-reduced-motion: no-preference) {
  html:root { scroll-behavior: smooth; }
}

/* Animacje wejścia */
@media (prefers-reduced-motion: no-preference) {
  article,
  .widget,
  .comment {
    animation: pm-fade-in 0.5s ease-out;
  }
  @keyframes pm-fade-in {
    from {
      opacity: 0;
      transform: translateY(20px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
}

/* --- [A] OGRANICZ TYPOGRAFIĘ NAGŁÓWKÓW DO TREŚCI, NIE BRANDU --- */
.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.inside-article h1,
.inside-article h2,
.inside-article h3,
.inside-article h4 {
  letter-spacing: 0.2px;
  line-height: 1.25;
}
.entry-content h1,
.inside-article h1 {
  text-shadow: 0 0 24px var(--pm-glow);
}

/* Wyłącz wpływ H* w headerze */
.site-header h1,
.site-header h2,
.site-header h3,
.site-header h4 {
  letter-spacing: normal;
  line-height: 1.15;
  text-shadow: none;
}

/* --- [B] BRANDING --- */
.site-branding .main-title {
  margin: 0;
  line-height: 1.15;
}
.site-branding .main-title a,
.site-title a {
  color: #fff !important;
  text-shadow: 0 0 10px rgba(155, 92, 255, 0.35);
  display: inline-block;
}
.home .site-branding .main-title,
.home .site-branding .main-title a {
  text-shadow: 0 0 10px rgba(155, 92, 255, 0.35) !important;
}
.site-branding a:hover,
.site-title a:hover {
  text-shadow: 0 0 18px rgba(155, 92, 255, 0.5);
}
.site-branding a:focus,
.site-title a:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(155, 92, 255, 0.35);
  border-radius: 6px;
}
.site-branding a:visited,
.site-title a:visited {
  color: #fff !important;
}

/* --- [C] LINKI GLOBALNE – delikatniejsza poświata --- */
a {
  transition: color 0.15s ease, text-shadow 0.15s ease;
}
a:hover {
  text-shadow: 0 0 8px rgba(155, 92, 255, 0.28);
}
a:visited {
  color: #8b4fe0;
}

/* --- [D] MENU – bez visited --- */
.main-navigation .main-nav ul li > a,
.main-navigation .main-nav ul li > a:link,
.main-navigation .main-nav ul li > a:visited {
  color: #dfe3ff !important;
  text-shadow: none;
}
.main-navigation .main-nav ul li:hover > a,
.main-navigation .main-nav ul li:focus-within > a {
  color: #fff !important;
}
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current_page_item > a {
  color: #fff !important;
}

/* --- [E] Header cień subtelniej --- */
.site-header,
.inside-header {
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

/* =========================
   HOTFIX 1: Ciemne tło WSZĘDZIE
   ========================= */
body,
.site,
#page,
.site-content,
.content-area,
.site-main,
#primary,
#main,
.separate-containers .site-main,
.separate-containers .inside-article,
.separate-containers .inside-right-sidebar,
.separate-containers .inside-left-sidebar,
.sidebar .widget,
.widget-area,
.widget,
.container,
.grid-container {
  background: transparent !important;
  color: var(--pm-fg) !important;
}
.home .site-content,
.blog .site-content,
.archive .site-content {
  background: transparent !important;
}

/* =========================
   HOTFIX 2: Karty wpisów – spójne
   ========================= */
.blog .inside-article,
.archive .inside-article,
.search .inside-article,
.single .inside-article,
.page .inside-article {
  background: linear-gradient(180deg, #11131a, #151827) !important;
  border: 1px solid #1f2333 !important;
  border-radius: 14px !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.5) !important;
  padding: 1.5rem !important;
  color: #e9ecff !important;
}
.blog .entry-header,
.archive .entry-header,
.single .entry-header,
.page .entry-header {
  margin-bottom: 0.8rem;
}
.blog .entry-summary,
.archive .entry-summary,
.blog .entry-content,
.archive .entry-content {
  color: #dee2ff;
}

/* =========================
   HOTFIX 3: Przycisk „Szukaj"
   ========================= */
.widget_search .search-submit,
.search-submit,
.widget_search input[type="submit"] {
  background: linear-gradient(
    135deg,
    var(--pm-primary),
    #7b34ff 35%,
    #5d2bff 65%
  ) !important;
  color: #fff !important;
  border: 1px solid rgba(155, 92, 255, 0.25) !important;
  border-radius: 10px !important;
  padding: 0.55rem 0.9rem !important;
  line-height: 1 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 24px var(--pm-glow) !important;
  transition: transform 0.12s ease, box-shadow 0.12s ease !important;
}
.widget_search .search-submit:hover,
.search-submit:hover {
 /* transform: translateY(-1px);*/
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 36px var(--pm-glow) !important;
}
.widget_search .search-field,
.search-form .search-field,
input[type="search"] {
  background: #0c0e18 !important;
  border: 1px solid #2a2e45 !important;
  color: #f5f5ff !important;
  border-radius: 10px !important;
  padding: 0.55rem 0.8rem !important;
}
.search-form .search-field:focus {
  box-shadow: 0 0 0 3px rgba(155, 92, 255, 0.3) !important;
}

/* =========================
   HOTFIX 4: Nawigacja – pilule zawsze jednakowe
   ========================= */
.blog .main-navigation .main-nav ul li > a,
.home .main-navigation .main-nav ul li > a,
.archive .main-navigation .main-nav ul li > a {
  background: linear-gradient(180deg, #0f1220 0%, #121425 100%) !important;
  border: 1px solid #20243a !important;
  color: #dfe3ff !important;
  border-radius: 12px !important;
  padding: 0.58rem 0.9rem !important;
}
.blog .main-navigation .main-nav ul li:hover > a,
.home .main-navigation .main-nav ul li:hover > a,
.archive .main-navigation .main-nav ul li:hover > a {
  color: #fff !important;
  background: radial-gradient(
      120% 140% at 30% -10%,
      rgba(155, 92, 255, 0.18),
      transparent 60%
    ),
    linear-gradient(180deg, #12162a 0%, #161a2e 100%) !important;
  border-color: #2b2f49 !important;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45), 0 0 22px rgba(155, 92, 255, 0.18) !important;
 /* transform: translateY(-1px);*/
}

/* =========================
   HOTFIX 5: Tło nagłówka – spójne
   ========================= */
/* Już zdefiniowane wcześniej w COMPAT PACK */

/* === PRESSMIND • DARK OVERRIDES for GeneratePress ===================== */
/* 1) Globalne zmienne GP na ciemne */
:root {
  --base-3: #0b0b0e;
  --base-2: #0e1019;
  --base: #11131a;
  --contrast: #e9ecff;
  --contrast-2: #cfd3f2;
  --contrast-3: #a2a8c7;
  --accent: #9b5cff;
}
/* 2) Wrappery zawsze transparent */
.separate-containers .site-main,
.separate-containers .inside-article,
.separate-containers .inside-right-sidebar,
.separate-containers .inside-left-sidebar,
.grid-container,
.container,
.site-content,
.content-area,
.site-main,
#primary,
#main {
  background: transparent !important;
}
/* 3) Upewnij się, że żadne bloki nie wymalują bieli */
.gb-container,
.wp-block-group,
.wp-block {
  background: transparent !important;
}

/* ===== PRESSMIND FIX PACK — drop-in patch (place at very end) ===== */

/* 0) Wymuś ciemny UA-styling dla formularzy */
:root {
  color-scheme: dark;
}

/* 1) Białe plastry GeneratePress (kontenery, gridy, hentry) */
html,
body {
  background: var(--pm-bg) !important;
}
/* Już zdefiniowane w HOTFIX 1 */

/* 2) Karty wpisów – identyczne na HOME/archiwach/single */
/* Już zdefiniowane w HOTFIX 2 */

/* 2a) Bywa że GP narzuca „blade" kolory na blogu – wyłącz to */
.blog .inside-article * {
  opacity: 1 !important;
  filter: none !important;
}

/* 3) Sidebar, widgety i grupy bloków też na ciemno */
.widget,
.widget-area .widget,
.sidebar .widget,
.wp-block-group,
.wp-block-group.has-background {
  background: #0e1019 !important;
  border: 1px solid #1f2333 !important;
  border-radius: 14px !important;
  color: #dfe3ff !important;
  box-shadow: 0 0 22px rgba(155, 92, 255, 0.05) !important;
}

/* 4) Wyszukiwarka – pole i przycisk (classic + Gutenberg) */
/* Już zdefiniowane w HOTFIX 3 */

.search-form .search-submit,
.widget_search .search-submit,
.wp-block-search__button,
.wp-block-search .wp-block-search__button {
  background: linear-gradient(
    135deg,
    var(--pm-primary),
    #7b34ff 35%,
    #5d2bff 65%
  ) !important;
  color: #fff !important;
  border: 1px solid rgba(155, 92, 255, 0.25) !important;
  border-radius: 10px !important;
  padding: 0.55rem 0.9rem !important;
  line-height: 1 !important;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35), 0 0 24px var(--pm-glow) !important;
  transition: transform 0.12s ease, box-shadow 0.12s ease !important;
}
.search-form .search-submit:hover,
.widget_search .search-submit:hover,
.wp-block-search__button:hover {
  /*transform: translateY(-1px);*/
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 36px var(--pm-glow) !important;
}

/* 5) Header – spójny na każdej podstronie (bez przypadkowych jaśnień) */
/* Już zdefiniowane wcześniej */

/* 6) Dodatkowo: czasem GP dorzuca jasny „panel" pod .site-main */
.separate-containers .site-main {
  background-color: transparent !important;
}

/* === WIDGET CUSHION PACK – więcej oddechu w sidebarze === */

/* Większy padding w ramkach widgetów */
.widget,
.widget-area .widget {
  padding: 22px 22px 18px !important;
}

/* Tytuł widgetu: oddech na dole i lekki odsuw od krawędzi */
.widget .widget-title {
  margin: 0 0 12px !important;
  padding-left: 2px;
  line-height: 1.25;
}

/* Ujednolicenie wewnątrz widgetu, bez zbędnych białych teł */
.widget .wp-block-group,
.widget .wp-block-group.has-background {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

/* Listy w widgetach – bez punktorów i z poduszką dla linków */
.widget ul {
  margin: 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
}
.widget ul li {
  margin: 2px 0 !important;
}
.widget ul li a {
  display: block;
  padding: 8px 10px !important;
  border-radius: 10px;
  line-height: 1.35;
}
.widget ul li a:hover {
  background: #121425;
}

/* Gutenbergowe „Latest Posts/Comments" też dostają oddech */
.wp-block-latest-posts__list li a {
  display: block;
  padding: 8px 10px !important;
  border-radius: 10px;
}
.wp-block-latest-comments__comment {
  padding: 8px 10px !important;
  border-radius: 10px;
}

/* Wyszukiwarka w sidebarze – lekko większe wnętrze */
.widget .wp-block-search__input,
.widget .search-form .search-field {
  padding: 0.65rem 0.9rem !important;
}
.widget .wp-block-search__button,
.widget .search-submit {
  padding: 0.65rem 0.95rem !important;
}

/* Drobny zapas na węższych ekranach */
@media (max-width: 782px) {
  .widget {
    padding: 18px !important;
  }
  .widget ul li a,
  .wp-block-latest-posts__list li a {
    padding: 10px 12px !important;
  }
}

/* === PRESSMIND • SIDEBAR POLISH & SPACING TUNING ===================== */
/* 1) Widget – więcej oddechu + spójne odstępy listy */
.widget,
.widget-area .widget {
  padding: 20px 18px;
}
.widget-title {
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  font-weight: 700;
  letter-spacing: 0.4px;
}
.widget ul {
  margin: 0;
  padding-left: 0;
  list-style: none;
}
.widget ul li {
  padding: 6px 0;
  line-height: 1.3;
}
.widget a {
  line-height: 1.25;
}

/* 2) Karty „Recent …" – więcej marginesu wewnątrz + ciut delikatniejszy cień */
.widget,
.widget-area .widget {
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.38), 0 0 18px rgba(155, 92, 255, 0.05) !important;
  border-color: #222643 !important;
}
.widget .pm-card {
  padding: 14px;
}

/* 3) Nagłówki w kartach treści – niech oddychają */
.inside-article h1 {
  margin: 0.1rem 0 1rem;
}
.inside-article h2 {
  margin: 1.15rem 0 0.65rem;
}
.entry-header {
  margin-bottom: 1rem !important;
}

/* 4) Search widget – wycentrowanie optyczne */
.widget_search .search-field {
  height: 42px;
}
.widget_search .search-submit {
  height: 42px;
  padding: 0 14px !important;
}

/* 5) Globalny rytm tekstu w kartach */
.inside-article p,
.inside-article li {
  line-height: 1.6;
}
.inside-article {
  padding: 22px;
}

/* 6) Delikatniejsze glow dla nagłówków widgetów (bez przesady) */
.widget-title {
  color: #c9b7ff;
  text-shadow: 0 0 10px rgba(155, 92, 255, 0.18);
}

/* 7) Mobile kompakt – < 768px */
@media (max-width: 768px) {
  .inside-article {
    padding: 16px !important;
  }
  .widget,
  .widget-area .widget {
    padding: 16px 14px;
  }
  .widget-title {
    margin-bottom: 10px;
  }
  .search-form .search-field,
  .wp-block-search__input {
    padding: 0.5rem 0.7rem !important;
  }
}

/* 8) Focus – precyzyjniej i bez „rozlewu" */
a:focus,
button:focus,
input:focus,
.search-form .search-field:focus,
.wp-block-search__input:focus {
  box-shadow: 0 0 0 2px rgba(155, 92, 255, 0.38) !important;
  outline: none !important;
}

/* 9) Mini-detal: spójny radius inputów */
input,
textarea,
select,
.search-form .search-field,
.wp-block-search__input {
  border-radius: 12px !important;
}

/* 10) Hover kart widgetów – bardzo subtelny „lift" */
.widget:hover {
  transform: translateY(-1px);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.45), 0 0 22px rgba(155, 92, 255, 0.08) !important;
}

/* === Pressmind • Jednolita fioletowa kreska w listach i nagłówkach === */
/* Zmienne już zdefiniowane na początku w :root */

/* Wpisy i komentarze w sidebarze – ten sam wygląd */
.wp-block-latest-posts__list li > a.wp-block-latest-posts__post-title,
.wp-block-latest-comments__comment {
  position: relative;
  padding-left: calc(
    var(--pm-bar-offset) + var(--pm-bar-width) + 8px
  ) !important;
  line-height: 1.35;
}

.wp-block-latest-posts__list li > a.wp-block-latest-posts__post-title::before,
.wp-block-latest-comments__comment::before {
  content: "";
  position: absolute;
  left: var(--pm-bar-offset);
  top: var(--pm-bar-gap);
  bottom: var(--pm-bar-gap);
  width: var(--pm-bar-width);
  border-radius: 2px;
  background: var(--pm-bar-color);
  box-shadow: 0 0 6px rgba(155, 92, 255, 0.45);
  opacity: 0.95;
  transition: box-shadow 0.2s ease, opacity 0.2s ease;
}

.wp-block-latest-posts__list
  li
  > a.wp-block-latest-posts__post-title:hover::before,
.wp-block-latest-comments__comment:hover::before {
  opacity: 1;
  box-shadow: 0 0 8px rgba(155, 92, 255, 0.7);
}

/* Ujednolicenie pozostałych „kresek" */
#comments h2,
#reply-title {
  border-left: var(--pm-bar-width) solid var(--pm-bar-color);
}
blockquote,
.wp-block-quote {
  border-left: var(--pm-bar-width) solid var(--pm-bar-color);
}
.comment .children {
  border-left: var(--pm-bar-width) solid rgba(155, 92, 255, 0.25);
}

/* NAV – aktywna pigułka bez zielonej poświaty (mono-violet) */
.main-navigation .main-nav ul li.current-menu-item > a,
.main-navigation .main-nav ul li.current_page_item > a {
  box-shadow: 0 0 0 1px rgba(155, 92, 255, 0.35) inset,
    0 8px 26px rgba(0, 0, 0, 0.55), 0 0 34px rgba(155, 92, 255, 0.28) !important;
}

/* fioletowe podkreślenie zamiast zielonego „neonu" */
.main-navigation .main-nav ul li.current-menu-item > a::after,
.main-navigation .main-nav ul li.current_page_item > a::after {
  background: linear-gradient(
    90deg,
    rgba(155, 92, 255, 0) 0%,
    rgba(155, 92, 255, 0.55) 50%,
    rgba(155, 92, 255, 0) 100%
  ) !important;
  box-shadow: 0 0 14px rgba(155, 92, 255, 0.45) !important;
}

/* === Fix 1: globalny hover linków – bez „flasha" na ciemnym motywie === */
a:hover, a:focus, a:active {
  transition: color .18s ease;
}
/* Linki w nawigacji – czytelne na ciemnym tle i bez podkreślenia */
.main-navigation .main-nav a { text-decoration: none !important; }
.main-navigation .main-nav a:hover { color: var(--pm-accent, #58ffb6) !important; }

/* === Fix 2: przycisk „Szukaj" – bez skoku, prawidłowy gradient === */
.wp-block-search__button.wp-element-button {
  background-image: linear-gradient(135deg, #9b5cff, #7b34ff 35%, #5d2bff 65%);
  background-color: transparent;
  border: 0;
  will-change: transform, background-color, box-shadow;
  transform: translateZ(0);
  transition:
    transform .22s cubic-bezier(.22,1,.36,1),
    background-color .22s ease,
    box-shadow .22s ease;
}
.wp-block-search__button.wp-element-button:hover {
  transform: translateY(-0.5px);
  box-shadow: 0 6px 18px rgba(91, 73, 255, .25);
}

/* === Fix 3: menu – zero mikrodrgnięć przy hoverze (GPU + brak underline) === */
.main-navigation .main-nav ul li > a {
  will-change: color, transform;
  transform: translateZ(0);
  transition: color .18s ease, transform .22s cubic-bezier(.22,1,.36,1);
}
.main-navigation .main-nav ul li:hover > a {
  transform: translateY(-0.5px);
}

/* === Fix 4: drobna literówka, która potrafi siać zamęt w layout === */
.grid-container { width: 100% !important; }

/* === A11y: wyłącz animacje dla prefers-reduced-motion === */
@media (prefers-reduced-motion: reduce) {
  .main-navigation .main-nav ul li > a,
  .wp-block-search__button.wp-element-button {
    transition: none !important;
    transform: none !important;
  }
}
