/* SpecPro brand logo — variants A / B / D / E (design.json components.specpro_logo) */

.sp-logo {
  --sp-logo-navy: #051B33;
  --sp-logo-accent: #679FDA;
  --sp-logo-accent-on-dark: #94C1F2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  line-height: 1;
  user-select: none;
}

.sp-logo:hover {
  text-decoration: none;
  color: inherit;
}

.sp-logo__mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--sp-logo-navy);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.sp-logo__mark span {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1;
}

.sp-logo__mark span i {
  color: var(--sp-logo-accent);
  font-style: normal;
}

.sp-logo__word {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  white-space: nowrap;
  letter-spacing: -0.02em;
  font-weight: 700;
  font-size: 1.125rem;
  margin: 0;
  line-height: 1;
}

.sp-logo__spec { color: var(--sp-logo-navy); }
.sp-logo__pro { color: var(--sp-logo-accent); }

/* Size: nav / header */
.sp-logo--nav .sp-logo__word {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

/* Size: login hero */
.sp-logo--login {
  flex-direction: row;
  gap: 14px;
  justify-content: center;
}

.sp-logo--login .sp-logo__mark {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(5, 27, 51, 0.18);
}

.sp-logo--login .sp-logo__mark span { font-size: 15px; }

.sp-logo--login .sp-logo__word {
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: -0.05em;
}

/* Size: invite accept / secondary auth */
.sp-logo--invite {
  gap: 12px;
  justify-content: center;
}

.sp-logo--invite .sp-logo__mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  box-shadow: 0 2px 8px rgba(5, 27, 51, 0.14);
}

.sp-logo--invite .sp-logo__mark span { font-size: 12px; }

.sp-logo--invite .sp-logo__word {
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: -0.04em;
}

/* Email / admin preview fallback wordmark (variant A) */
.logo-fallback .logo-spec,
.ep-logo .logo-spec { color: #051B33; }
.logo-fallback .logo-pro,
.ep-logo .logo-pro { color: #679FDA; }
.logo-fallback {
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Workspace watermark — quiet A wordmark */
.sp-logo--watermark {
  flex-direction: column;
  gap: 0;
  opacity: 0.07;
  pointer-events: none;
  user-select: none;
}

.sp-logo--watermark .sp-logo__word {
  font-size: 3.5rem;
  font-weight: 300;
  letter-spacing: -0.05em;
}

/* Whole-word shimmer (variants B & E) — one shine across SpecPro */
.sp-logo__word--shimmer {
  position: relative;
  display: inline-block;
  isolation: isolate;
}

.sp-logo__word--shimmer::after {
  content: "SpecPro";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 255, 255, 0.85) 50%,
    transparent 62%,
    transparent 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  animation: sp-logo-shine 2.2s linear infinite;
  font: inherit;
  letter-spacing: inherit;
  white-space: nowrap;
}

/* Dark surfaces: Spec is white — blue→white band so shine reads on both halves */
body.dark-mode .sp-logo__spec,
.sp-logo--on-dark .sp-logo__spec {
  color: #fff;
}

body.dark-mode .sp-logo__pro,
.sp-logo--on-dark .sp-logo__pro {
  color: var(--sp-logo-accent-on-dark);
}

body.dark-mode .sp-logo__mark,
.sp-logo--on-dark .sp-logo__mark {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

body.dark-mode .sp-logo__mark span i,
.sp-logo--on-dark .sp-logo__mark span i {
  color: var(--sp-logo-accent-on-dark);
}

body.dark-mode .sp-logo__word--shimmer::after,
.sp-logo--on-dark .sp-logo__word--shimmer::after {
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 32%,
    rgba(103, 159, 218, 0.95) 42%,
    rgba(232, 241, 251, 1) 50%,
    rgba(103, 159, 218, 0.95) 58%,
    transparent 68%,
    transparent 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
}

@keyframes sp-logo-shine {
  0% { background-position: 150% center; }
  100% { background-position: -50% center; }
}

@media (prefers-reduced-motion: reduce) {
  .sp-logo__word--shimmer::after {
    animation: none;
    background: none;
  }
}
