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

.ju2-recovery-hero {
  background:
    radial-gradient(circle at 82% 16%, rgba(223, 75, 89, .14), transparent 30%),
    radial-gradient(circle at 12% 88%, rgba(255, 107, 34, .10), transparent 27%),
    linear-gradient(145deg, #fafbfc 0%, #ffffff 52%, #fff1f2 100%);
}

.ju2-pill-alert {
  color: #9d303a;
  border-color: rgba(223,75,89,.22);
}

.ju2-pill-dot-alert {
  background: var(--ju2-red);
  box-shadow: 0 0 0 5px rgba(223,75,89,.13);
}

.ju2-recovery-monitor {
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  box-shadow: var(--ju2-shadow);
  backdrop-filter: blur(12px);
}

.ju2-recovery-monitor-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-recovery-monitor-body {
  padding: 22px;
}

.ju2-recovery-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  border-radius: 12px;
}

.ju2-recovery-status small,
.ju2-recovery-status strong {
  display: block;
}

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

.ju2-recovery-status strong {
  font-size: 14px;
}

.ju2-recovery-status > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  font-weight: 900;
}

.ju2-recovery-status-danger {
  color: #a62f3b;
  background: #fff0f2;
}

.ju2-recovery-status-danger > span {
  background: rgba(223,75,89,.13);
}

.ju2-recovery-status-success {
  color: #23854e;
  background: #ebfaf1;
}

.ju2-recovery-status-success > span {
  background: rgba(53,185,111,.14);
}

.ju2-recovery-log {
  margin: 18px 0;
  padding: 18px;
  border-radius: 14px;
  color: #bac3d0;
  background: #101722;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.ju2-recovery-log p {
  margin: 0 0 7px;
}

.ju2-recovery-log p:last-child {
  margin-bottom: 0;
}

.ju2-recovery-log em {
  color: #ff9b66;
  font-style: normal;
}

.ju2-recovery-progress {
  margin-bottom: 18px;
}

.ju2-recovery-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  margin-bottom: 8px;
  color: var(--ju2-ink);
  font-size: 12px;
}

.ju2-recovery-progress-bar {
  height: 9px;
  overflow: hidden;
  border-radius: 99px;
  background: #e9edf2;
}

.ju2-recovery-progress-bar span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--ju2-red), var(--ju2-orange), var(--ju2-green));
}

.ju2-warning-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.ju2-warning-grid article {
  min-height: 250px;
  padding: 26px;
  border: 1px solid var(--ju2-line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 32px rgba(17,23,34,.045);
}

.ju2-warning-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 14px;
  color: var(--ju2-red);
  background: #fff0f2;
  font-size: 18px;
  font-weight: 900;
}

.ju2-warning-grid h3 {
  margin: 18px 0 9px;
  color: var(--ju2-ink);
  font-size: 20px;
}

.ju2-warning-grid p {
  margin: 0;
  font-size: 13px;
}

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

.ju2-recovery-explainer p {
  font-size: 17px;
}

.ju2-recovery-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 28px;
}

.ju2-recovery-facts div {
  padding: 17px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 12px;
  background: rgba(255,255,255,.06);
}

.ju2-recovery-facts strong,
.ju2-recovery-facts span {
  display: block;
}

.ju2-recovery-facts strong {
  color: #fff;
  font-size: 13px;
}

.ju2-recovery-facts span {
  margin-top: 4px;
  color: #aeb9c8;
  font-size: 11px;
}

.ju2-backdoor-map {
  position: relative;
  min-height: 470px;
}

.ju2-backdoor-core {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  display: grid;
  width: 150px;
  height: 150px;
  transform: translate(-50%, -50%);
  place-items: center;
  align-content: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ju2-orange);
  box-shadow: 0 0 0 20px rgba(255,107,34,.12), 0 0 55px rgba(255,107,34,.30);
}

.ju2-backdoor-core span {
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
}

.ju2-backdoor-core strong {
  font-size: 24px;
}

.ju2-backdoor-point {
  position: absolute;
  z-index: 4;
  display: grid;
  min-width: 145px;
  min-height: 58px;
  place-items: center;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  color: #fff;
  background: rgba(255,255,255,.07);
  box-shadow: 0 15px 35px rgba(0,0,0,.17);
  backdrop-filter: blur(8px);
  font-size: 11px;
  font-weight: 800;
}

.ju2-backdoor-point-a { top: 26px; left: 20px; }
.ju2-backdoor-point-b { top: 72px; right: 0; }
.ju2-backdoor-point-c { bottom: 50px; left: 0; }
.ju2-backdoor-point-d { right: 10px; bottom: 12px; }

.ju2-backdoor-line {
  position: absolute;
  z-index: 1;
  height: 1px;
  transform-origin: left center;
  background: linear-gradient(90deg, rgba(255,107,34,.75), rgba(255,255,255,.08));
}

.ju2-backdoor-line-a {
  top: 115px;
  left: 135px;
  width: 180px;
  transform: rotate(30deg);
}

.ju2-backdoor-line-b {
  top: 140px;
  left: 290px;
  width: 150px;
  transform: rotate(-25deg);
}

.ju2-backdoor-line-c {
  left: 135px;
  bottom: 125px;
  width: 170px;
  transform: rotate(-27deg);
}

.ju2-backdoor-line-d {
  right: 120px;
  bottom: 130px;
  width: 170px;
  transform: rotate(30deg);
}

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

.ju2-prevention-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-prevention-list article > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--ju2-green);
  font-weight: 900;
}

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

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

.ju2-final-cta-alert {
  background:
    radial-gradient(circle at 88% 15%, rgba(223,75,89,.18), transparent 31%),
    linear-gradient(135deg, #111722 0%, #1c273a 100%);
}

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

  .ju2-warning-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ju2-backdoor-map {
    width: min(100%, 560px);
    margin-inline: auto;
  }
}

@media (max-width: 700px) {
  .ju2-warning-grid,
  .ju2-recovery-facts {
    grid-template-columns: 1fr;
  }

  .ju2-backdoor-map {
    min-height: 560px;
  }

  .ju2-backdoor-point {
    min-width: 130px;
  }

  .ju2-backdoor-point-a { top: 20px; left: 0; }
  .ju2-backdoor-point-b { top: 90px; right: 0; }
  .ju2-backdoor-point-c { bottom: 90px; left: 0; }
  .ju2-backdoor-point-d { right: 0; bottom: 10px; }

  .ju2-backdoor-line {
    display: none;
  }
}
