/* ==========================================================================
   REDESIGN SYSTEM: PURPLE LIGHTING, REVERTED OUTLINES, GUIDANCE & STATIC BTN
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. PURPLE / CORAL ROOM AESTHETIC (Maintains Room's Authentic Mood)
   -------------------------------------------------------------------------- */
:root {
  --screen: #ff9ebb;
  --tv-edge: rgba(255, 158, 187, 0.25);
}

/* --------------------------------------------------------------------------
   2. INITIAL ON-SCREEN GUIDANCE HUD (Drag to Move Around)
   -------------------------------------------------------------------------- */
.redesign-guidance-hud {
  position: fixed;
  bottom: 84px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 90;
  pointer-events: auto;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1), transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  max-width: 90vw;
}

.redesign-guidance-hud.hud-hidden {
  opacity: 0;
  transform: translateX(-50%) translateY(20px);
  pointer-events: none;
}

.hud-pill {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(15, 18, 32, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 158, 187, 0.35);
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.6), 0 0 18px rgba(255, 158, 187, 0.15);
  border-radius: 9999px;
  padding: 8px 18px 8px 12px;
  color: #f4e7e2;
  font-family: "Space Grotesk", -apple-system, sans-serif;
}

.hud-icon {
  position: relative;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ff9ebb;
}

.hud-icon svg {
  width: 22px;
  height: 22px;
}

.hud-pulse {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid currentColor;
  opacity: 0.6;
  animation: hudRadar 2s infinite ease-out;
}

@keyframes hudRadar {
  0% { transform: translate(-50%, -50%) scale(0.6); opacity: 0.8; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

.hud-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hud-main {
  font-size: 13px;
  margin: 0;
  line-height: 1.2;
}

.hud-main strong {
  color: #fff;
  font-weight: 600;
}

.hud-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.hud-tag {
  font-size: 10px;
  font-family: "Space Mono", monospace;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 158, 187, 0.25);
  border-radius: 4px;
  padding: 2px 6px;
  color: #cfc8da;
  cursor: pointer;
  transition: all 0.2s ease;
}

.hud-tag:hover {
  background: rgba(255, 158, 187, 0.2);
  border-color: #ff9ebb;
  color: #ffffff;
}

.hud-close {
  background: transparent;
  border: none;
  color: #b9b2c4;
  font-size: 20px;
  line-height: 1;
  padding: 0 4px;
  cursor: pointer;
  transition: color 0.2s;
}

.hud-close:hover {
  color: #ff9ebb;
}

/* --------------------------------------------------------------------------
   3. STATIC VERSION BUTTON (In 3D View)
   -------------------------------------------------------------------------- */
.static-view-container {
  position: fixed;
  top: 18px;
  right: 68px;
  z-index: 100;
}

.static-view-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(15, 18, 32, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 158, 187, 0.35);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 10px rgba(255, 158, 187, 0.18);
  border-radius: 20px;
  padding: 6px 14px;
  color: #f4e7e2;
  font-family: "Space Mono", monospace;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
}

.static-view-btn svg {
  color: #ff9ebb;
}

.static-view-btn:hover {
  border-color: #ff9ebb;
  box-shadow: 0 4px 20px rgba(255, 158, 187, 0.4);
  transform: translateY(-1px);
}

/* --------------------------------------------------------------------------
   4. STATIC MODE HEADER (Return to 3D Room)
   -------------------------------------------------------------------------- */
.static-return-bar {
  position: sticky;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15, 18, 32, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 158, 187, 0.25);
  padding: 10px 24px;
}

.static-return-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.static-badge {
  font-family: "Space Mono", monospace;
  font-size: 12px;
  color: #b9b2c4;
  letter-spacing: 0.05em;
}

.static-return-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ff9ebb;
  color: #0f1220;
  border: none;
  border-radius: 18px;
  padding: 6px 16px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.static-return-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(255, 158, 187, 0.5);
}

@media (max-width: 768px) {
  .static-view-container {
    top: auto;
    bottom: 80px;
    right: 16px;
  }
  .redesign-guidance-hud {
    bottom: 120px;
  }
}
