/* =========================================================
   PowerSat Tools Manager v1.1.0
   Style sekcji narzędzi, kafelków i podstron narzędzi.
   ========================================================= */

.ps-tools-band,
.home-tools.ps-tools-band{
  position:relative;
  overflow:hidden;
  background:linear-gradient(180deg,#fff 0%,#f5f9fd 100%)!important;
  color:var(--ink,#111827)!important;
  border-top:1px solid rgba(15,64,108,.08);
  border-bottom:1px solid rgba(15,64,108,.08);
}

.ps-tools-band::before,
.home-tools.ps-tools-band::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 88% 10%,rgba(15,64,108,.08),transparent 30%),
    linear-gradient(90deg,transparent,rgba(15,64,108,.025),transparent);
  pointer-events:none;
}

.ps-tools-band .container,
.home-tools.ps-tools-band .container{
  position:relative;
  z-index:2;
}

.ps-tools-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:26px;
  margin-bottom:30px;
}

.ps-tools-head .eyebrow{
  color:var(--navy,#0f406c)!important;
}

.ps-tools-head h2{
  max-width:760px;
  margin:8px 0 10px;
  color:var(--ink,#111827)!important;
  font-size:clamp(30px,3.2vw,46px);
  line-height:1.06;
  letter-spacing:-.04em;
}

.ps-tools-head p{
  max-width:720px;
  margin:0;
  color:var(--muted,#64748b)!important;
  font-size:16px;
  line-height:1.6;
}

.ps-tools-head .btn{
  white-space:nowrap;
  background:var(--btn-bg,#0f406c)!important;
  color:#fff!important;
  border-color:rgba(15,64,108,.12)!important;
  box-shadow:var(--btn-shadow,0 14px 32px rgba(15,64,108,.18));
}

.ps-tools-head .btn:hover{
  background:var(--btn-bg-hover,#123f67)!important;
  color:#fff!important;
  transform:translateY(-1px);
}

.ps-tools-page{
  position:relative;
  overflow:hidden;
  background:linear-gradient(180deg,#fff 0%,#f5f9fd 100%);
}

.ps-tools-page::before{
  content:"";
  position:absolute;
  inset:0 0 auto;
  height:1px;
  background:linear-gradient(90deg,transparent,rgba(15,64,108,.16),transparent);
}

.ps-tools-page .container{
  position:relative;
  z-index:2;
}

.ps-tools-page-head{
  max-width:860px;
  margin-bottom:30px;
}

.ps-tools-page-head h2{
  margin:8px 0 10px;
  color:var(--ink,#111827);
  font-size:clamp(30px,3.2vw,46px);
  line-height:1.06;
  letter-spacing:-.04em;
}

.ps-tools-page-head p{
  margin:0;
  color:var(--muted,#64748b);
  font-size:16px;
  line-height:1.65;
}

.ps-tools-empty,
.pstm-tools-empty{
  padding:24px;
  background:#fff;
  border:1px solid var(--line,#dfe8f2);
  border-radius:22px;
  color:var(--muted,#64748b);
  font-weight:850;
  box-shadow:0 12px 34px rgba(12,37,64,.06);
}

.ps-tools-grid,
.pstm-tools-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:22px!important;
}

.ps-tool-card,
.pstm-tool-card{
  position:relative!important;
  isolation:isolate;
  min-height:268px!important;
  display:flex!important;
  align-items:flex-end!important;
  overflow:hidden!important;
  padding:0!important;
  color:#fff!important;
  text-decoration:none!important;
  background:#0b2946 var(--tool-bg) center/cover no-repeat!important;
  border:1px solid rgba(15,64,108,.12)!important;
  border-radius:26px!important;
  box-shadow:0 16px 44px rgba(12,37,64,.12)!important;
  transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease!important;
}

.ps-tool-card::before,
.pstm-tool-card::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-2;
  background:
    linear-gradient(180deg,rgba(7,21,37,.04) 0%,rgba(7,21,37,.38) 38%,rgba(7,21,37,.93) 100%),
    linear-gradient(135deg,rgba(15,64,108,.32),transparent 44%);
  pointer-events:none;
}

.ps-tool-card::after,
.pstm-tool-card::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:rgba(15,64,108,.08);
  opacity:0;
  transition:opacity .2s ease;
  pointer-events:none;
}

.ps-tool-card:hover,
.pstm-tool-card:hover{
  transform:translateY(-4px)!important;
  border-color:rgba(15,64,108,.26)!important;
  box-shadow:0 24px 64px rgba(12,37,64,.18)!important;
}

.ps-tool-card:hover::after,
.pstm-tool-card:hover::after{
  opacity:1;
}

.ps-tool-icon,
.ps-tool-card .ps-tool-icon,
.pstm-tool-card .ps-tool-icon{
  display:none!important;
}

.ps-tool-card-overlay{
  position:absolute;
  inset:0;
  z-index:1;
  background:
    linear-gradient(135deg,rgba(15,64,108,.20),transparent 46%),
    linear-gradient(180deg,transparent 18%,rgba(7,21,37,.94));
  pointer-events:none;
}

.ps-tool-card-content,
.pstm-tool-card .ps-tool-card-content{
  position:relative!important;
  z-index:2!important;
  width:100%!important;
  display:grid!important;
  gap:0!important;
  padding:26px!important;
  color:#fff!important;
}

.ps-tool-card-title,
.ps-tool-card strong,
.pstm-tool-card strong{
  display:block!important;
  max-width:360px!important;
  margin:0 0 10px!important;
  color:#fff!important;
  font-size:clamp(21px,2vw,28px)!important;
  font-weight:900!important;
  line-height:1.1!important;
  letter-spacing:-.035em!important;
}

.ps-tool-card-desc,
.ps-tool-card span:not(.ps-tool-icon):not(.ps-tool-card-overlay):not(.ps-tool-card-content):not(.ps-tool-card-link),
.pstm-tool-card .ps-tool-card-desc{
  display:block!important;
  max-width:430px!important;
  margin:0 0 18px!important;
  color:rgba(219,234,254,.90)!important;
  font-size:15px!important;
  font-weight:500!important;
  line-height:1.48!important;
}

.ps-tool-card em,
.ps-tool-card-link,
.pstm-tool-card .ps-tool-card-link{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  justify-self:start!important;
  width:auto!important;
  min-height:40px!important;
  margin:0!important;
  padding:10px 15px!important;
  border:1px solid rgba(255,255,255,.70)!important;
  border-radius:14px!important;
  background:#fff!important;
  color:#0f406c!important;
  font-style:normal!important;
  font-size:14px!important;
  font-weight:950!important;
  line-height:1!important;
  text-decoration:none!important;
  box-shadow:0 12px 26px rgba(0,0,0,.18)!important;
  transition:background-color .18s ease,transform .18s ease,box-shadow .18s ease!important;
}

.ps-tool-card em::after,
.ps-tool-card-link::after{
  content:"→";
  margin-left:8px;
  transition:transform .18s ease;
}

.ps-tool-card:hover em,
.ps-tool-card:hover .ps-tool-card-link,
.pstm-tool-card:hover .ps-tool-card-link{
  background:#eef6ff!important;
  box-shadow:0 16px 30px rgba(0,0,0,.22)!important;
  transform:translateX(2px)!important;
}

.ps-tool-card:hover em::after,
.ps-tool-card:hover .ps-tool-card-link::after,
.pstm-tool-card:hover .ps-tool-card-link::after{
  transform:translateX(3px);
}

/* SINGLE TOOL — article-like layout */
.pstm-single-tool-hero.single-hero{
  position:relative;
  overflow:hidden;
  background:
    radial-gradient(circle at 80% 20%,rgba(42,168,255,.18),transparent 34%),
    linear-gradient(135deg,#071525,#0f406c 62%,#086fc4);
  color:#fff;
  padding:82px 0 70px;
}

.pstm-single-tool-hero.single-hero::before{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(90deg,rgba(7,21,37,.90),rgba(7,21,37,.44));
  pointer-events:none;
}

.pstm-single-tool-hero .container{
  position:relative;
  z-index:2;
  max-width:1240px;
}

.pstm-back-to-tools{
  display:inline-flex;
  align-items:center;
  width:fit-content;
  margin-bottom:26px;
  color:#dbeafe;
  font-weight:850;
  text-decoration:none;
}

.pstm-back-to-tools:hover{
  color:#fff;
}

.pstm-tool-category{
  display:inline-flex;
  align-items:center;
  width:fit-content;
  padding:8px 12px;
  margin-bottom:16px;
  border-radius:999px;
  background:rgba(255,255,255,.14);
  color:#dbeafe;
  border:1px solid rgba(255,255,255,.18);
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.pstm-single-tool-hero h1{
  max-width:1120px;
  margin:10px 0 14px;
  color:#fff;
  font-size:clamp(36px,4.8vw,64px);
  line-height:1.02;
  letter-spacing:-.035em;
}

.pstm-tool-hero-subtitle{
  max-width:860px;
  margin:0;
  color:rgba(219,234,254,.92);
  font-size:clamp(17px,1.45vw,20px);
  line-height:1.65;
}

.pstm-tool-single-section{
  padding:62px 0 76px;
  background:#fff;
}

.pstm-tool-single-container{
  max-width:980px!important;
}

.pstm-tool-description.entry-content{
  max-width:900px;
  margin:0 0 34px;
  color:#243145;
  font-size:18px;
  line-height:1.78;
}

.pstm-tool-description.entry-content p:first-child{
  margin-top:0;
}

.pstm-tool-description.entry-content p:last-child{
  margin-bottom:0;
}

.pstm-tool-frame{
  overflow:hidden;
  background:#fff;
  border:1px solid var(--line,#dfe8f2);
  border-radius:26px;
  box-shadow:0 18px 48px rgba(12,37,64,.10);
}

.pstm-tool-frame-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
  padding:22px 26px;
  background:linear-gradient(135deg,#0f406c,#071525);
  color:#fff;
}

.pstm-tool-frame-head span{
  color:#bfe4ff;
  font-size:12px;
  font-weight:900;
  letter-spacing:.14em;
  text-transform:uppercase;
}

.pstm-tool-frame-head strong{
  color:#fff;
  font-size:18px;
  line-height:1.2;
  text-align:right;
}

.pstm-tool-frame-body{
  padding:30px;
  background:#fff;
}

.ps-tool-empty-code,
.ps-tool-error{
  padding:18px;
  border-radius:18px;
  background:#f8fafc;
  border:1px solid var(--line,#dfe8f2);
  color:#334155;
  font-weight:800;
}

.ps-tool-error{
  background:#fff7f7;
  border-color:#fca5a5;
  color:#7f1d1d;
}

@media(max-width:1100px){
  .ps-tools-grid,
  .pstm-tools-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media(max-width:900px){
  .ps-tools-head{
    display:grid;
    align-items:start;
  }

  .ps-tools-head .btn{
    width:fit-content;
  }

  .pstm-single-tool-hero.single-hero{
    padding:64px 0 58px;
  }

  .pstm-tool-frame-head{
    display:grid;
  }

  .pstm-tool-frame-head strong{
    text-align:left;
  }
}

@media(max-width:640px){
  .ps-tools-grid,
  .pstm-tools-grid{
    grid-template-columns:1fr!important;
  }

  .ps-tools-head{
    margin-bottom:22px;
  }

  .ps-tool-card,
  .pstm-tool-card{
    min-height:225px!important;
    border-radius:22px!important;
  }

  .ps-tool-card-content,
  .pstm-tool-card .ps-tool-card-content{
    padding:22px!important;
  }

  .pstm-single-tool-hero h1{
    font-size:36px;
  }

  .pstm-tool-hero-subtitle,
  .pstm-tool-description.entry-content{
    font-size:16px;
  }

  .pstm-tool-single-section{
    padding:48px 0;
  }

  .pstm-tool-frame-body{
    padding:20px;
  }

  .pstm-tool-frame-head{
    padding:20px;
  }
}
