/* ═══════════════════════════════════════════════════════════════════════════
   GOOGLE LENS HUD — v1.0
   Design: Material 3 Intelligent Overlay
   ═══════════════════════════════════════════════════════════════════════════ */

#google-lens-container {
  position: fixed;
  inset: 0;
  z-index: 999995;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}

:root[data-theme="google"] #google-lens-container {
  opacity: 1;
}

/* The Lens HUD Frame */
#google-lens-hud {
  position: absolute;
  width: 280px;
  height: 280px;
  border: 1.5px solid rgba(66, 133, 244, 0.3);
  border-radius: 40px;
  transform: translate(-50%, -50%);
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 
    0 0 0 4000px rgba(255, 255, 255, 0.05),
    inset 0 0 80px rgba(66, 133, 244, 0.05);
}

/* Corner Brackets */
.lens-bracket {
  position: absolute;
  width: 24px;
  height: 24px;
  border-color: #4285F4;
  border-style: solid;
  opacity: 0.8;
}

.lb-tl { top: -2px; left: -2px; border-width: 3px 0 0 3px; border-top-left-radius: 12px; }
.lb-tr { top: -2px; right: -2px; border-width: 3px 3px 0 0; border-top-right-radius: 12px; }
.lb-bl { bottom: -2px; left: -2px; border-width: 0 0 3px 3px; border-bottom-left-radius: 12px; }
.lb-br { bottom: -2px; right: -2px; border-width: 0 3px 3px 0; border-bottom-right-radius: 12px; }

/* The Scanline */
.lens-scanline {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #4285F4, transparent);
  box-shadow: 0 0 15px #4285F4;
  animation: lensScan 4s cubic-bezier(0.455, 0.03, 0.515, 0.955) infinite;
}

@keyframes lensScan {
  0%, 100% { top: 10%; opacity: 0.2; }
  50% { top: 90%; opacity: 0.8; }
}

/* Intelligent Data Labels */
.lens-label {
  position: absolute;
  left: 300px;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  padding: 16px 20px;
  border-radius: 20px;
  border: 1px solid #dadce0;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08);
  width: 240px;
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s var(--ease), opacity 0.4s var(--ease), background-color 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease), color 0.4s var(--ease);
}

.lens-label.active {
  opacity: 1;
  transform: translateY(-50%) translateX(10px);
}

.ll-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.ll-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #34A853;
  animation: blink 1.5s infinite;
}

.ll-title {
  font-family: 'Product Sans', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  color: #202124;
}

.ll-body {
  font-family: 'Roboto', sans-serif;
  font-size: 0.75rem;
  color: #5f6368;
  line-height: 1.5;
}

.ll-meta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eee;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lm-chip {
  background: #f1f3f4;
  color: #3c4043;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.65rem;
  font-family: var(--font-mono);
}

/* Mission Control Banner */
#google-banner {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 6px 20px;
  background: #202124;
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  z-index: 1000000;
  display: none;
  justify-content: space-between;
  letter-spacing: 0.1em;
}

:root[data-theme="google"] #google-banner {
  display: flex;
}

.gb-warn { color: #EA4335; font-weight: 700; }
