/* Aesthetic overlay for /scorecard/ — parallax + vector icons + redesigned score */

/* --- Parallax layers --- */
.sc-parallax {
  position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden;
}
.sc-parallax::before,
.sc-parallax::after {
  content: ""; position: absolute; inset: -20%;
  background-repeat: repeat;
  will-change: transform; transition: transform .4s ease-out;
}
.sc-parallax::before {
  background-image: radial-gradient(circle at 30% 40%, rgba(201,169,97,.12) 0, transparent 40%),
                    radial-gradient(circle at 70% 60%, rgba(201,169,97,.06) 0, transparent 45%);
  background-size: 900px 900px;
  animation: sc-drift 60s linear infinite;
}
.sc-parallax::after {
  background-image:
    radial-gradient(1.5px 1.5px at 25% 25%, rgba(244,240,229,.18), transparent 50%),
    radial-gradient(1px 1px at 75% 40%, rgba(244,240,229,.12), transparent 50%),
    radial-gradient(2px 2px at 50% 80%, rgba(201,169,97,.14), transparent 50%);
  background-size: 320px 320px, 220px 220px, 480px 480px;
  animation: sc-drift-slow 120s linear infinite;
}
@keyframes sc-drift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-900px, -300px, 0); }
}
@keyframes sc-drift-slow {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(320px, 220px, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .sc-parallax::before, .sc-parallax::after { animation: none; }
}

/* Push existing page content above the parallax */
body > *:not(.sc-parallax) { position: relative; z-index: 1; }

/* --- OTP gate panel --- */
.sc-otp {
  position: relative;
  margin: 24px auto;
  max-width: 620px;
  padding: 32px 32px 28px;
  border: 1px solid rgba(201,169,97,.35);
  background: linear-gradient(180deg, rgba(15,27,60,.7), rgba(15,27,60,.85));
  border-radius: 14px;
  color: #F4F0E5;
  box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.sc-otp h3 {
  margin: 0 0 6px;
  font-family: 'Bricolage Grotesque', serif;
  font-size: 22px;
  font-weight: 600;
  color: #F4F0E5;
}
.sc-otp p.sub {
  margin: 0 0 18px;
  font-size: 14px;
  color: rgba(244,240,229,.72);
}
.sc-otp label {
  display: block;
  font-family: 'Jura', monospace;
  font-size: 10px;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: rgba(201,169,97,.9);
  margin-bottom: 6px;
}
.sc-otp input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid rgba(244,240,229,.16);
  background: rgba(15,27,60,.5);
  border-radius: 8px;
  color: #F4F0E5;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-size: 15px;
  transition: border-color .2s ease;
}
.sc-otp input:focus { outline: none; border-color: #C9A961; box-shadow: 0 0 0 3px rgba(201,169,97,.16); }
.sc-otp .field { margin-bottom: 14px; }
.sc-otp .actions { display: flex; gap: 10px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.sc-otp .actions .btn { min-height: 42px; }
.sc-otp .msg { margin-top: 12px; font-size: 13px; color: rgba(244,240,229,.85); min-height: 18px; }
.sc-otp .msg.err { color: #f0b3b0; }
.sc-otp .msg.ok  { color: #b7e5c7; }
.sc-otp .code-input { letter-spacing: .5em; font-family: monospace; font-size: 22px; text-align: center; }

/* --- Redesigned score card & category cards (overlay onto existing .sc-cat) --- */
.sc-results .sc-cat {
  position: relative;
  padding-left: 74px !important;
}
.sc-results .sc-cat::before {
  content: "";
  position: absolute;
  left: 22px; top: 20px;
  width: 40px; height: 40px;
  border-radius: 10px;
  background-position: center; background-repeat: no-repeat; background-size: 24px 24px;
  background-color: rgba(201,169,97,.14);
  border: 1px solid rgba(201,169,97,.28);
}
/* Icon per category — driven by data-attribute we set from JS */
.sc-results .sc-cat[data-icon="reachability"]::before { background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23C9A961' stroke-width='1.6'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18'/%3E%3C/svg%3E"); }
.sc-results .sc-cat[data-icon="seo"]::before { background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23C9A961' stroke-width='1.6'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-4-4'/%3E%3C/svg%3E"); }
.sc-results .sc-cat[data-icon="geo"]::before { background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23C9A961' stroke-width='1.6'%3E%3Cpath d='M12 22s7-7 7-13a7 7 0 1 0-14 0c0 6 7 13 7 13z'/%3E%3Ccircle cx='12' cy='9' r='2.5'/%3E%3C/svg%3E"); }
.sc-results .sc-cat[data-icon="aeo"]::before { background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23C9A961' stroke-width='1.6'%3E%3Cpath d='M21 12a9 9 0 1 1-3.5-7.1'/%3E%3Cpath d='M21 3v6h-6'/%3E%3C/svg%3E"); }
.sc-results .sc-cat[data-icon="aio"]::before { background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23C9A961' stroke-width='1.6'%3E%3Cpath d='M12 2v4M12 18v4M4 12H2M22 12h-2M5 5l2 2M17 17l2 2M17 7l2-2M5 19l2-2'/%3E%3Ccircle cx='12' cy='12' r='4'/%3E%3C/svg%3E"); }
.sc-results .sc-cat[data-icon="social"]::before { background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23C9A961' stroke-width='1.6'%3E%3Ccircle cx='9' cy='9' r='3'/%3E%3Ccircle cx='17' cy='7' r='2.5'/%3E%3Ccircle cx='16' cy='16' r='2.5'/%3E%3Cpath d='M9 12v3m3-4l4 3M11 10l5-1'/%3E%3C/svg%3E"); }
.sc-results .sc-cat[data-icon="performance"]::before { background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23C9A961' stroke-width='1.6'%3E%3Cpath d='M13 2 4 14h7l-1 8 9-12h-7l1-8z'/%3E%3C/svg%3E"); }
.sc-results .sc-cat[data-icon="security"]::before { background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23C9A961' stroke-width='1.6'%3E%3Cpath d='M12 2 4 6v6c0 5 3.5 9 8 10 4.5-1 8-5 8-10V6l-8-4z'/%3E%3Cpath d='m9 12 2 2 4-4'/%3E%3C/svg%3E"); }

/* Redesigned score ring — glow + gradient stroke via mask */
.sc-results .sc-ring {
  position: relative;
  filter: drop-shadow(0 8px 24px rgba(201,169,97,.35));
}
.sc-results .sc-ring::after {
  content: "";
  position: absolute; inset: -12%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(201,169,97,.22), transparent 70%);
  z-index: -1;
  animation: sc-pulse 3s ease-in-out infinite;
}
@keyframes sc-pulse {
  0%,100% { opacity: .6; transform: scale(1); }
  50%     { opacity: 1;  transform: scale(1.05); }
}

/* Verified badge next to the URL */
.sc-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px 3px 6px;
  border: 1px solid rgba(201,169,97,.4);
  border-radius: 999px;
  font-family: 'Jura', monospace;
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: #C9A961;
  margin-left: 10px;
  vertical-align: middle;
}
.sc-verified-badge::before {
  content: "";
  width: 12px; height: 12px;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg' fill='none' stroke='%23C9A961' stroke-width='2.5'%3E%3Cpath d='m5 12 4 4L20 6'/%3E%3C/svg%3E") no-repeat center / contain;
}
