/* bookmarks.css */
/* Styles for bookmark icons and menu */

/* Bookmark icon on slides (swiper and grid view) */
.bookmark-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  background: rgba(0, 0, 0, 0.5);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0.6;
  transition: opacity 0.2s, background 0.2s;
  z-index: 100;
  padding: 0;
}

.bookmark-icon:hover {
  opacity: 1;
  background: rgba(0, 0, 0, 0.7);
}

.bookmark-icon.bookmarked {
  opacity: 1;
}

.bookmark-icon svg {
  width: 24px;
  height: 24px;
}

/* Grid view specific - smaller bookmark icons */
#gridViewSwiperWrapper .bookmark-icon {
  width: 30px;
  height: 30px;
  top: 4px;
  right: 4px;
}

#gridViewSwiperWrapper .bookmark-icon svg {
  width: 18px;
  height: 18px;
}

/* Bookmark menu button in search panel */
.bookmark-icon-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

/* Bookmark actions menu */
#bookmarkActionsMenu button {
  white-space: nowrap;
}

#bookmarkActionsMenu button svg {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .bookmark-icon {
    width: 44px;
    height: 44px;
  }
  
  .bookmark-icon svg {
    width: 28px;
    height: 28px;
  }

  #gridViewSwiperWrapper .bookmark-icon {
    width: 36px;
    height: 36px;
  }

  #gridViewSwiperWrapper .bookmark-icon svg {
    width: 22px;
    height: 22px;
  }
}
