/* Joomla Performance page additions
   Load after joomlaupgrade-v2.css and joomlaupgrade-service-pages.css
*/

.ju2-performance-hero{
  background:
    radial-gradient(circle at 84% 16%, rgba(53,185,111,.15), transparent 31%),
    radial-gradient(circle at 12% 88%, rgba(255,107,34,.10), transparent 28%),
    linear-gradient(145deg,#f9fcfa 0%,#ffffff 52%,#eff8f3 100%);
}

.ju2-performance-dashboard{
  overflow:hidden;
  border:1px solid rgba(255,255,255,.85);
  border-radius:24px;
  background:rgba(255,255,255,.95);
  box-shadow:var(--ju2-shadow);
}

.ju2-performance-dashboard-head{
  display:flex;
  gap:12px;
  align-items:center;
  padding:15px 18px;
  border-bottom:1px solid var(--ju2-line);
  color:#69768a;
  background:#f7f9fb;
  font-size:12px;
  font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
}

.ju2-performance-dashboard-body{
  padding:22px;
}

.ju2-performance-score{
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:18px;
  border-radius:14px;
  color:#23854e;
  background:#ebfaf1;
}

.ju2-performance-score small,
.ju2-performance-score strong{
  display:block;
}

.ju2-performance-score small{
  font-size:9px;
  font-weight:900;
  letter-spacing:.11em;
  text-transform:uppercase;
}

.ju2-performance-score strong{
  font-size:54px;
  line-height:1;
}

.ju2-performance-score > span{
  padding:7px 11px;
  border-radius:999px;
  color:#fff;
  background:var(--ju2-green);
  font-size:11px;
  font-weight:900;
}

.ju2-metric-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin:16px 0;
}

.ju2-metric-grid div{
  padding:14px 10px;
  border:1px solid var(--ju2-line);
  border-radius:12px;
  text-align:center;
}

.ju2-metric-grid small,
.ju2-metric-grid strong,
.ju2-metric-grid span{
  display:block;
}

.ju2-metric-grid small{
  color:var(--ju2-muted);
  font-size:9px;
  font-weight:900;
}

.ju2-metric-grid strong{
  margin:4px 0;
  color:var(--ju2-ink);
  font-size:16px;
}

.ju2-metric-grid span{
  color:var(--ju2-green);
  font-size:9px;
  font-weight:800;
}

.ju2-performance-bars{
  display:grid;
  gap:10px;
}

.ju2-performance-bars > div{
  display:grid;
  grid-template-columns:130px 1fr;
  gap:12px;
  align-items:center;
}

.ju2-performance-bars span{
  color:var(--ju2-ink);
  font-size:11px;
}

.ju2-performance-bars i{
  display:block;
  height:8px;
  overflow:hidden;
  border-radius:99px;
  background:#e9edf2;
}

.ju2-performance-bars b{
  display:block;
  height:100%;
  border-radius:inherit;
  background:linear-gradient(90deg,var(--ju2-orange),var(--ju2-green));
}

.ju2-performance-result{
  display:flex;
  gap:10px;
  align-items:center;
  margin-top:16px;
  padding:13px 15px;
  border-radius:12px;
  color:#23854e;
  background:#ebfaf1;
}

.ju2-performance-result > span{
  display:grid;
  width:30px;
  height:30px;
  place-items:center;
  border-radius:50%;
  background:rgba(53,185,111,.14);
  font-weight:900;
}

.ju2-performance-result strong{
  font-size:11px;
}

.ju2-performance-analysis-grid{
  display:grid;
  grid-template-columns:1.05fr .95fr;
  gap:70px;
  align-items:center;
}

.ju2-performance-analysis-grid p{
  font-size:17px;
}

.ju2-waterfall{
  padding:24px;
  border:1px solid rgba(255,255,255,.12);
  border-radius:18px;
  background:#0d1420;
  box-shadow:0 25px 60px rgba(0,0,0,.32);
}

.ju2-waterfall-head{
  display:flex;
  justify-content:space-between;
  margin-bottom:20px;
  color:#fff;
}

.ju2-waterfall-head span{
  color:#aeb9c8;
  font-size:11px;
}

.ju2-waterfall-head strong{
  font-size:12px;
}

.ju2-waterfall-row{
  display:grid;
  grid-template-columns:90px 1fr 1fr;
  gap:10px;
  align-items:center;
  margin-bottom:12px;
}

.ju2-waterfall-row > span{
  color:#fff;
  font-size:11px;
}

.ju2-waterfall-row i{
  display:block;
  height:10px;
  overflow:hidden;
  border-radius:99px;
  background:rgba(255,255,255,.08);
}

.ju2-waterfall-row b{
  display:block;
  height:100%;
  border-radius:inherit;
}

.ju2-waterfall-before{background:var(--ju2-red);}
.ju2-waterfall-after{background:var(--ju2-green);}

.ju2-waterfall-legend{
  display:flex;
  gap:18px;
  margin-top:18px;
  color:#aeb9c8;
  font-size:10px;
}

.ju2-waterfall-legend span{
  display:flex;
  gap:7px;
  align-items:center;
}

.ju2-waterfall-legend i{
  width:9px;
  height:9px;
  border-radius:50%;
}

.ju2-legend-before{background:var(--ju2-red);}
.ju2-legend-after{background:var(--ju2-green);}

.ju2-vitals-list{
  display:grid;
  gap:14px;
}

.ju2-vitals-list article{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:16px;
  padding:20px;
  border:1px solid var(--ju2-line);
  border-radius:14px;
  background:#fff;
}

.ju2-vitals-list article > span{
  display:grid;
  width:50px;
  height:50px;
  place-items:center;
  border-radius:13px;
  color:#fff;
  background:var(--ju2-navy);
  font-size:11px;
  font-weight:900;
}

.ju2-vitals-list h3{
  margin:0 0 5px;
  color:var(--ju2-ink);
  font-size:18px;
}

.ju2-vitals-list p{
  margin:0;
  font-size:13px;
}

@media(max-width:1020px){
  .ju2-performance-analysis-grid{
    grid-template-columns:1fr;
  }
}

@media(max-width:700px){
  .ju2-metric-grid{
    grid-template-columns:repeat(2,1fr);
  }

  .ju2-performance-bars > div{
    grid-template-columns:1fr;
    gap:5px;
  }

  .ju2-waterfall-row{
    grid-template-columns:70px 1fr 1fr;
  }
}
