/* ==========================================================================
   POLISH Board Studio — Clean Draggable Camera Bubble
   ========================================================================== */

.camera-bubble-wrap {
  position: fixed;
  z-index: 9999;
  user-select: none;
  touch-action: none;
  will-change: transform, left, top;
}

.camera-bubble-circle {
  position: relative;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  overflow: hidden;
  background: #080706;
  cursor: grab;
  /* Shiny Haute Atelier Champagne Gold Ring */
  border: 3.5px solid #E2C799;
  box-shadow: 
    0 18px 48px rgba(0, 0, 0, 0.75),
    0 0 0 1px rgba(255, 245, 230, 0.7),
    0 0 28px rgba(226, 199, 153, 0.5),
    inset 0 0 16px rgba(0, 0, 0, 0.9);
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              height 0.25s cubic-bezier(0.16, 1, 0.3, 1), 
              border-color 0.25s ease,
              box-shadow 0.25s ease;
  animation: goldRingGlow 4s ease-in-out infinite alternate;
}

@keyframes goldRingGlow {
  0% {
    border-color: #C5A880;
    box-shadow: 
      0 18px 48px rgba(0, 0, 0, 0.75),
      0 0 0 1px rgba(255, 235, 200, 0.45),
      0 0 20px rgba(226, 199, 153, 0.35),
      inset 0 0 16px rgba(0, 0, 0, 0.9);
  }
  50% {
    border-color: #FFE7C2;
    box-shadow: 
      0 20px 54px rgba(0, 0, 0, 0.82),
      0 0 0 2px rgba(255, 255, 255, 0.85),
      0 0 36px rgba(226, 199, 153, 0.65),
      inset 0 0 18px rgba(0, 0, 0, 0.9);
  }
  100% {
    border-color: #E2C799;
    box-shadow: 
      0 18px 48px rgba(0, 0, 0, 0.75),
      0 0 0 1.5px rgba(255, 240, 215, 0.6),
      0 0 26px rgba(226, 199, 153, 0.45),
      inset 0 0 16px rgba(0, 0, 0, 0.9);
  }
}

.camera-bubble-wrap.is-dragging .camera-bubble-circle {
  cursor: grabbing;
  border-color: #FFF2DC;
  box-shadow: 
    0 26px 65px rgba(0, 0, 0, 0.88),
    0 0 0 2.5px #FFFFFF,
    0 0 45px rgba(226, 199, 153, 0.85),
    inset 0 0 20px rgba(0, 0, 0, 0.9);
}

/* Subtle Specular Sheen Reflection Arc */
.camera-bubble-circle::after {
  content: '';
  position: absolute;
  top: 4px;
  left: 14px;
  width: 44%;
  height: 24%;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.4) 0%, rgba(226, 199, 153, 0.12) 60%, transparent 100%);
  pointer-events: none;
  transform: rotate(-25deg);
  opacity: 0.8;
  filter: blur(1px);
}

/* Three standard sizes */
.camera-bubble-wrap.size-sm .camera-bubble-circle {
  width: 130px;
  height: 130px;
}

.camera-bubble-wrap.size-md .camera-bubble-circle {
  width: 190px;
  height: 190px;
}

.camera-bubble-wrap.size-lg .camera-bubble-circle {
  width: 270px;
  height: 270px;
}

/* Video element filling circular frame */
.camera-bubble-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  transform: scaleX(-1); /* Mirrored by default */
  background: #080706;
}

.camera-bubble-wrap.is-unmirrored .camera-bubble-video {
  transform: scaleX(1);
}

/* Minimal Hover Controls */
.camera-bubble-controls {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  background: rgba(8, 7, 6, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: 24px;
  border: 1px solid rgba(226, 199, 153, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
  z-index: 10;
}

.camera-bubble-wrap:hover .camera-bubble-controls,
.camera-bubble-wrap.is-touch-active .camera-bubble-controls {
  opacity: 1;
  pointer-events: auto;
}

.camera-bubble-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #F5E6D3;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  line-height: 1;
}

.camera-bubble-btn:hover {
  background: #E2C799;
  color: #080706;
  transform: scale(1.08);
}

.camera-bubble-btn.btn-close:hover {
  background: #E11D48;
  color: #FFFFFF;
}

/* Active HUD Button Indicator */
.vp-btn.camera-active {
  background: #E2C799 !important;
  color: #080706 !important;
  box-shadow: 0 0 12px rgba(226, 199, 153, 0.5) !important;
}
