/* PolskaJob-inspired modern layer (light, clean, card-based)
   Loaded LAST to safely override legacy theme.
*/

:root{
  --pj-bg:#f8fafc;
  --pj-surface:#ffffff;
  --pj-text:#0f172a;
  --pj-muted:#64748b;
  --pj-border:rgba(15,23,42,.10);
  --pj-shadow:0 12px 32px rgba(2,6,23,.08);
  --pj-shadow-sm:0 6px 18px rgba(2,6,23,.06);

  --pj-primary:#7e22ce;      /* purple-700 */
  --pj-primary-2:#a855f7;    /* purple-500 */
  --pj-success:#22c55e;
  --pj-warning:#f59e0b;
  --pj-danger:#ef4444;
}

html, body{height:100%;}
body{
  background:var(--pj-bg) !important;
  color:var(--pj-text);
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji","Segoe UI Emoji";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Global polish */
a{color:inherit;}
img{max-width:100%;height:auto;}

/* Buttons */
.btn{
  border-radius:999px !important;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.btn:hover{transform: translateY(-1px); box-shadow: var(--pj-shadow-sm);}
.btn:active{transform: translateY(0); box-shadow:none;}

.btn-pj-primary{
  background: linear-gradient(90deg, var(--pj-primary), var(--pj-primary-2)) !important;
  border: none !important;
  color:#fff !important;
}
.btn-pj-ghost{
  background: rgba(126,34,206,.08) !important;
  border: 1px solid rgba(126,34,206,.18) !important;
  color: var(--pj-primary) !important;
}

/* Cards */
.pj-card{
  background: var(--pj-surface);
  border: 1px solid var(--pj-border);
  border-radius: 20px;
  box-shadow: var(--pj-shadow-sm);
}

/* Header/nav: keep legacy structure, just soften */
header, .header, .top-bar, .navbar, .nav-menu{
  backdrop-filter: blur(10px);
}

/* Section spacing */
.pj-section{padding: 56px 0;}

/* Hero (fallback when slider not defined) */
.pj-hero-wrap{
  position: relative;
  overflow:hidden;
}
.pj-hero{
  position: relative;
  padding: 56px 0;
}
.pj-container{
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}
.pj-hero-bg{
  position:absolute;
  inset:-20% -10% auto -10%;
  height: 520px;
  background:
    radial-gradient(600px 300px at 20% 20%, rgba(168,85,247,.35), transparent 60%),
    radial-gradient(600px 300px at 80% 0%, rgba(126,34,206,.25), transparent 55%),
    radial-gradient(600px 300px at 70% 60%, rgba(34,197,94,.15), transparent 60%);
  filter: blur(0px);
  pointer-events:none;
}
.pj-hero-inner, .pj-hero-grid{
  position:relative;
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 24px;
  align-items: stretch;
}
@media (max-width: 992px){
  .pj-hero-inner, .pj-hero-grid{grid-template-columns: 1fr;}
}

.pj-h1{
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  font-weight: 900;
  margin: 0 0 12px 0;
}
.pj-sub{
  color: var(--pj-muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 18px 0;
}
.pj-grad{
  background: linear-gradient(90deg, var(--pj-primary), var(--pj-primary-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.pj-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 800;
  text-decoration:none;
  border: 1px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, opacity .12s ease;
}
.pj-btn:hover{transform: translateY(-1px); box-shadow: var(--pj-shadow-sm);}
.pj-btn:active{transform: translateY(0); box-shadow:none;}
.pj-btn-primary{
  background: linear-gradient(90deg, var(--pj-primary), var(--pj-primary-2));
  color:#fff !important;
}
.pj-btn-ghost{
  background: rgba(255,255,255,.75);
  border-color: rgba(126,34,206,.22);
  color: var(--pj-primary) !important;
}

.pj-card-kpi{padding: 18px;}
.pj-kpi{padding: 14px; border-radius: 16px; border: 1px solid var(--pj-border); background: rgba(248,250,252,.7);}
.pj-kpi + .pj-kpi{margin-top: 12px;}
.pj-kpi-n{font-weight: 900;}
.pj-kpi-t{color: var(--pj-muted); font-size: 13px; margin-top: 4px;}

.pj-badges{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:16px;}
.pj-badge{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 12px;
  border-radius: 999px;
  background: rgba(15,23,42,.04);
  border:1px solid rgba(15,23,42,.08);
  color: var(--pj-text);
  font-weight:600;
  font-size: 13px;
}
.pj-dot{
  width: 10px;height:10px;border-radius:50%;
  background: var(--pj-primary-2);
}
.pj-dot.green{background: var(--pj-success);}
.pj-dot.yellow{background: var(--pj-warning);}

.pj-title{
  font-size: 44px;
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 800;
  margin: 0 0 14px;
}
@media (max-width: 576px){
  .pj-title{font-size: 34px;}
}
.pj-sub{
  color: var(--pj-muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0 0 22px;
}
.pj-cta{display:flex;flex-wrap:wrap;gap:12px;margin-bottom:18px;}

.pj-search{
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--pj-border);
  background: var(--pj-surface);
  box-shadow: var(--pj-shadow-sm);
}
.pj-search .pj-search-title{font-weight:800;margin-bottom:10px;font-size:14px;}
.pj-search-row{display:flex;gap:10px;flex-wrap:wrap;}
.pj-input{
  flex: 1 1 220px;
  border-radius: 14px;
  border: 1px solid rgba(15,23,42,.12);
  padding: 12px 12px;
  outline: none;
  background: #fff;
}
.pj-input:focus{border-color: rgba(126,34,206,.45); box-shadow: 0 0 0 4px rgba(126,34,206,.10);}

.pj-chips{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px;}
.pj-chip{
  display:inline-flex;
  align-items:center;
  padding: 10px 12px;
  border-radius:999px;
  background: rgba(126,34,206,.08);
  color: var(--pj-primary);
  border: 1px solid rgba(126,34,206,.18);
  font-weight:700;
  font-size: 13px;
}
.pj-chip:hover{opacity:.9;}

/* Legacy tweaks */
.section-title, h1, h2, h3{letter-spacing:-0.01em;}
.box, .panel, .thumbnail{border-radius: 18px !important;}
.form-control{border-radius: 14px !important;}
