/* SANSA AI — Global Brand System */

.sansa-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.sansa-logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s;
}

.sansa-logo-mark img,
.sansa-logo-mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.sansa-logo:hover .sansa-logo-mark {
  transform: scale(1.06);
  box-shadow: 0 0 20px rgba(255, 122, 0, 0.3), 0 0 40px rgba(139, 92, 246, 0.15);
}

.sansa-logo-text {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
}

.sansa-logo-text .ai {
  background: linear-gradient(135deg, #FF7A00, #8B5CF6);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 800;
}

/* Compact mode (sidebar collapsed) */
.sansa-logo.compact .sansa-logo-text {
  display: none;
}

/* Small variant */
.sansa-logo.sm .sansa-logo-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.sansa-logo.sm .sansa-logo-text {
  font-size: 14px;
}

/* Large variant */
.sansa-logo.lg .sansa-logo-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
}
.sansa-logo.lg .sansa-logo-text {
  font-size: 22px;
}

/* XL variant (auth pages, splash) */
.sansa-logo.xl .sansa-logo-mark {
  width: 64px;
  height: 64px;
  border-radius: 16px;
}
.sansa-logo.xl .sansa-logo-text {
  font-size: 28px;
}

/* Animated glow for loading/splash */
@keyframes sansa-logo-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(255, 122, 0, 0.2), 0 0 40px rgba(139, 92, 246, 0.1); }
  50% { box-shadow: 0 0 30px rgba(255, 122, 0, 0.4), 0 0 60px rgba(139, 92, 246, 0.2), 0 0 80px rgba(59, 130, 246, 0.1); }
}

.sansa-logo-mark.glow {
  animation: sansa-logo-pulse 2s ease-in-out infinite;
}

/* Loading screen */
.sansa-splash {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #0B1020;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  transition: opacity 0.4s, visibility 0.4s;
}

.sansa-splash.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.sansa-splash .sansa-logo-mark {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  animation: sansa-logo-pulse 1.8s ease-in-out infinite;
}

.sansa-splash-text {
  font-size: 13px;
  color: #94A3B8;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
}

@keyframes sansa-logo-reveal {
  from { opacity: 0; transform: scale(0.8) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.sansa-logo-mark.reveal {
  animation: sansa-logo-reveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

/* Brand footer */
.sansa-brand-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 16px;
  font-size: 12px;
  color: #64748B;
}

.sansa-brand-footer img {
  width: 18px;
  height: 18px;
  border-radius: 4px;
}

/* Watermark (for exports) */
.sansa-watermark {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(11, 16, 32, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 8px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 600;
  pointer-events: none;
}

.sansa-watermark img {
  width: 16px;
  height: 16px;
  border-radius: 3px;
}
